/* Contact Page Styles */
.contact-section {
    padding: 125px 0 0px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    z-index: 10;
}


.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contact-info {
    flex: 0 0 50%;
    max-width: 475px;
}

.contact-info h6 {
    text-transform: uppercase;
    color: var(--global--color-blue);
    margin-bottom: 50px;
}

/* 
.contact-info .line {
    display: inline-block;
    width: 56px;
    height: 12px;
    background-color: var(--global--color-green);
    margin-right: 10px;
    margin-bottom: 14px;
} */

.contact-info .title {
    margin-bottom: 50px;
    color: var(--global--color-blue);
    text-transform: uppercase;
}

.contact-info .title h2,
.contact-info .title h3 {
    margin: 0;
}

.contact-info .title span {
    font-size: 45px;
    line-height: 53px;
    display: block;
    margin-top: -3px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 56px;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 500;
    max-width: 357px;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--global--color-blue);
}

.contact-details .icon {
    flex: 0 0 30px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.contact-form-wrapper {
    flex: 1;
    background-color: #D4DDF7;
    padding: 40px 40px 59px;
    border-radius: 20px;
    margin-top: 116px;
    max-width: 650px;
}

.contact-form-wrapper .form-title {
    font-weight: 600;
    color: var(--global--color-blue);
    margin-bottom: 40px;
    margin-top: 0;
}

/* Custom Contact Form */
.custom-contact-form {
    width: 100%;
}

.custom-contact-form .form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.custom-contact-form .form-col {
    flex: 1;
}

.custom-contact-form .form-col p {
    margin: 0;
}

.custom-contact-form .form-col.full-width {
    flex: 0 0 100%;
}

.wpcf7-form-control-wrap {
    display: inline-block;
    width: 100%;
    z-index: 0;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="tel"],
.custom-contact-form input[type="number"],
.custom-contact-form input[type="date"],
.custom-contact-form textarea,
.custom-contact-form select {
    width: 100%;
    padding: 11.5px 20px;
    background-color: #FFF !important;
    border: 1px solid #fff !important;
    border-radius: 0 !important;
    font-family: inherit;
    /* color: #333; */
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    font-weight: 500;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('../../images/arrowdown.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 14px !important;
}

.custom-contact-form .salary-group {
    display: flex;
    gap: 0;
}

.custom-contact-form .salary-group .currency-select {
    width: 113px;
}

.custom-contact-form .salary-group .salary-input {
    width: calc(100% - 113px);
    position: relative;
}

.custom-contact-form .form-section-title {
    text-align: center;
    margin: 30px 0 15px;
}

.custom-contact-form .agreement-row {
    padding-top: 10px;
}

form p {
    margin: 0;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border-color: #39008D !important;
}

.custom-contact-form textarea {
    height: 100px;
    resize: vertical;
}

.custom-contact-form .form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 34px;
}

.custom-contact-form .custom-submit-btn {
    background: transparent;
    border: none;
    color: #7427E5;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
    border: 0;
}

.custom-contact-form .custom-submit-btn:hover {
    opacity: 0.8;
}

.custom-contact-form .custom-submit-btn .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--global--color-blue);
    color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
}

/* Fake Placeholder for Red Asterisk */
.custom-contact-form .custom-input-wrap {
    position: relative;
}

.custom-contact-form .custom-input-wrap label {
    position: absolute;
    left: 20px;
    top: 15px;
    /* color: #757575; */
    /* Default placeholder color */
    pointer-events: none;
    font-size: 15px;
    margin: 0;
    transition: 0.3s ease all;
    font-weight: 500;
    z-index: 2;
}

.custom-contact-form .custom-input-wrap label .required {
    color: #FF0000;
}

.custom-contact-form .custom-input-wrap.is-focused label,
.custom-contact-form .custom-input-wrap.has-value label {
    opacity: 0 !important;
}

/* Hide native placeholder when label is visible to prevent overlap */
.custom-contact-form .custom-input-wrap:not(.is-focused):not(.has-value) input::placeholder,
.custom-contact-form .custom-input-wrap:not(.is-focused):not(.has-value) textarea::placeholder {
    color: transparent;
}

.custom-input-wrap.date-wrap {
    position: relative;
}

.custom-input-wrap.date-wrap input[type="date"] {
    width: 100%;
    height: 54px;
}

.custom-input-wrap.date-wrap:not(.has-value) input[type="date"]::-webkit-datetime-edit {
    color: transparent !important;
    opacity: 0 !important;
}

.custom-input-wrap.date-wrap:not(.has-value) input[type="date"]::selection,
.custom-input-wrap.date-wrap:not(.has-value) input[type="date"]::-webkit-datetime-edit-month-field::selection,
.custom-input-wrap.date-wrap:not(.has-value) input[type="date"]::-webkit-datetime-edit-day-field::selection,
.custom-input-wrap.date-wrap:not(.has-value) input[type="date"]::-webkit-datetime-edit-year-field::selection {
    background: transparent !important;
    color: transparent !important;
}

.custom-contact-form .custom-input-wrap.date-wrap:not(.has-value) label {
    opacity: 0.5;
}

.custom-input-wrap.date-wrap.has-value input[type="date"] {
    color: #292929 !important;
}

.custom-contact-form .custom-input-wrap.date-wrap.has-value label {
    opacity: 0 !important;
}

.custom-input-wrap.date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2V5' stroke='%2339008D' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 2V5' stroke='%2339008D' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.5 9.08984H20.5' stroke='%2339008D' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 8.5V17C21 20 19.5 22 16 22H8C4.5 22 3 20 3 17V8.5C3 5.5 4.5 3.5 8 3.5H16C19.5 3.5 21 5.5 21 8.5Z' stroke='%2339008D' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.6947 13.6992H15.7037' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.6947 16.6992H15.7037' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.9955 13.6992H12.0045' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.9955 16.6992H12.0045' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.29431 13.6992H8.30329' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.29431 16.6992H8.30329' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    cursor: pointer;
    width: 24px;
    height: 24px;
    opacity: 1;
    padding: 0;
}

/* File Upload Input Styles */
.custom-input-wrap.file-upload-wrap {
    position: relative;
}

/* Hide native 'Choose File' button */
.custom-input-wrap.file-upload-wrap input[type="file"]::file-selector-button {
    display: none;
}

.custom-input-wrap.file-upload-wrap input[type="file"]::-webkit-file-upload-button {
    display: none;
}

/* Hide text when empty */
.custom-input-wrap.file-upload-wrap:not(.has-value) input[type="file"] {
    color: transparent;
}

.custom-input-wrap.file-upload-wrap input[type="file"] {
    background-color: #fff !important;
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: 100%;
    height: 52px;
    padding: 12px 25px;
    padding-right: 50px;
}

/* Label as placeholder */
.custom-contact-form .custom-input-wrap.file-upload-wrap:not(.has-value) label {
    z-index: 2;
    color: #292929;
    opacity: 0.5;
}

/* Make native file text transparent */
.custom-input-wrap.file-upload-wrap.has-value input[type="file"] {
    color: transparent !important;
}

/* Keep label visible and use it to display the chosen file name */
.custom-contact-form .custom-input-wrap.file-upload-wrap.has-value label {
    opacity: 1 !important;
    color: #292929;
    /* Optional: add ellipsis if file name is too long */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 40px;
    /* leave space for the upload icon */
    max-width: 100%;
    box-sizing: border-box;
}

/* Upload Icon SVG */
.custom-input-wrap.file-upload-wrap::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 14px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.4405 8.90039C20.0405 9.21039 21.5105 11.0604 21.5105 15.1104V15.2404C21.5105 19.7104 19.7205 21.5004 15.2505 21.5004H8.74047C4.27047 21.5004 2.48047 19.7104 2.48047 15.2404V15.1104C2.48047 11.0904 3.93047 9.24039 7.47047 8.91039' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 14.9991V3.61914' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.3504 5.85L12.0004 2.5L8.65039 5.85' stroke='%2339008D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 767px) {
    .custom-contact-form .form-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 991px) {
    .contact-grid {
        flex-direction: column;
        gap: 33px;
    }

    .contact-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-form-wrapper {
        width: 100%;
        padding: 30px 29px 46px;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .cpn-contact-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Contact Teams Styles */
.contact-teams {
    position: relative;
    padding: 1px 0 199px;
    background-color: #fff;
    overflow: hidden;
    /* Clips the bleeding slider at the viewport edge */
    border-radius: 0 0 40px 40px;
}

.contact-teams-header {
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-top: 0;
    margin-right: auto;
}


.contact-teams-swiper {
    overflow: visible;
    /* Allows slider to bleed to the right edge of the screen */
    width: 100%;
}


.contact-teams .swiper-nav-buttons {
    display: inline-flex;
    gap: 15px;
    margin-left: auto;
    margin-right: 0;
}


.team-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: all .5s;
}

.swiper-slide-active .team-card,
.team-card:hover {
    border-radius: 20px;
}

.team-card .team-image {
    position: relative;
    width: 100%;
}

.team-card .team-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.5s ease;
    pointer-events: none;
}

.swiper-slide-active .team-card .team-image::after,
.team-card:hover .team-image::after {
    background: rgba(0, 0, 0, 0);
}

.team-card .team-image img {
    width: 100%;
    aspect-ratio: 420 / 500;
    object-fit: cover;
    display: block;
}

.team-card .team-info {
    position: absolute;
    bottom: 34px;
    left: 34px;
    width: calc(100% - 68px);
    background-color: #fff;
    padding: 21px 30px;
    z-index: 2;
    transition: all .4s ease-in-out;
}

.swiper-slide-active .team-card .team-info,
.team-card:hover .team-info {
    border-radius: 20px;
}

.team-card .team-title {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.team-card .team-title .pin-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.team-card .team-contact p {
    margin: 0 0 2px 0;
    font-weight: 500;
}

.team-card .team-contact p:last-child {
    margin-bottom: 0;
}

.team-card .team-contact a {
    font-weight: 500;
}

.team-card .team-contact p a.phone {
    text-decoration: none;
}

.team-card .team-contact p a.phone:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .contact-teams-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 4px;
    }

    .team-card .team-info {
        bottom: 20px;
        left: 20px;
        width: calc(100% - 40px);
        padding: 16px 20px;
    }

    .team-card .team-title {
        font-size: 18px;
        line-height: 24px;
    }

    .section-map::before,
    .section-map::after {
        height: 64px;
    }

    .contact-section {
        padding: 99px 0 0px;
    }

    .subheading:before {
        width: 46px;
        margin-bottom: 11px;
    }

    .subheading {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 29px;
    }

    .contact-details {
        padding-left: 0;
    }

    .contact-info .title span {
        font-size: 26px;
        line-height: 32px;
        margin-top: 0px;
    }

    .contact-info .title {
        margin-bottom: 29px;
    }

    .contact-details .icon {
        margin-right: 23px;
    }

    .contact-details li {
        margin-bottom: 12px;
    }

    .contact-form-wrapper .form-title {
        margin-bottom: 29px;
        font-size: 22px;
        line-height: 28px;
    }

    .custom-contact-form input[type="text"],
    .custom-contact-form input[type="email"],
    .custom-contact-form input[type="tel"],
    .custom-contact-form textarea {
        padding: 8.5px 20px;
    }

    .custom-contact-form .custom-input-wrap label {
        top: 12px;
    }

    .custom-contact-form .form-submit-row {
        margin-top: 24px;
    }

}

/* Section Map */
.section-map {
    padding: 200px 0;
    background-color: #EAF8F8;
    position: relative;
    overflow: visible;
}

.section-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 118px;
    background-image: linear-gradient(to top, #EAF8F8, #fff);
    pointer-events: none;
}

.section-map::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 118px;
    background-image: linear-gradient(to bottom, #EAF8F8, #fff);
    pointer-events: none;
}

.map-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.map-header .line {
    display: inline-block;
    width: 56px;
    height: 12px;
    background-color: var(--global--color-green);
    margin-bottom: 14px;
}

.map-header .subheading {
    margin-bottom: 0;
}

.map-iframe-container {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.map-iframe-container iframe {
    width: 100%;
    height: 520px;
    display: block;
    border: 0;
}

.contact-teams .container {
    display: flex;
    flex-wrap: wrap;
}

.application-form-wrapper form {
    max-width: 900px;
    margin: 0 auto;
}

.application-section {
    background: #D4DDF7;
    border-radius: 40px;
    background-image: url('../../images/contact-vector.svg');
    background-repeat: no-repeat;
    background-position: right -35px bottom 80px;
}



.application-page {
    padding: 140px 0 0;
}

.application-title {
    color: #39008D;
    text-transform: uppercase;
    margin-bottom: 99px;
}

.application-form-wrapper {
    padding: 112px 0px 177px;
}

.application-form-wrapper h5 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 39px;
}

.application-page .custom-contact-form input[type="text"],
.application-page .custom-contact-form input[type="email"],
.application-page .custom-contact-form input[type="tel"],
.application-page .custom-contact-form input[type="number"],
.application-page .custom-contact-form textarea,
.application-page .custom-contact-form select {
    padding: 11.5px 25px;
}

.application-page .custom-contact-form .custom-input-wrap label {
    left: 25px;
    color: #292929;
    opacity: 0.5;
}

.application-page .custom-contact-form select {
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    height: 52px;
    padding: 11.5px 20px;
}


.form-row.agreement-row p {
    display: flex;
    margin: 0;
}

.form-row.agreement-row p a {
    /* white-space: nowrap; */
    /* display: inline-block; */
    /* margin-left: 5px; */
    /* text-decoration: none; */
}

.form-row.agreement-row p a:hover {
    text-decoration: underline;
}

input[type="checkbox"]+.wpcf7-list-item-label:before {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

input[type="checkbox"]:checked+.wpcf7-list-item-label:before {
    background-color: #39008D;
    background-image: url('../../images/checked.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 80%;
    height: 100%;
    cursor: pointer;
}

.form-row.agreement-row p .wpcf7-list-item-label {
    display: inline-block;
    align-items: center;
    padding-left: 40px;
    width: 100%;
    position: relative;
}

.form-row.agreement-row p label {
    position: relative;
}

.form-row.agreement-row p .wpcf7-list-item {
    margin: 0;
}

.form-row+.form-section-title {
    padding-top: 42px;
}

.wpcf7-not-valid-tip {
    margin-top: 5px;
}

/* Ensure error tip is always visible for file upload */
.custom-input-wrap.file-upload-wrap .wpcf7-not-valid-tip {
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    color: #dc3232 !important;
    font-size: 14px;
}

.application-page .custom-contact-form .form-submit-row {
    justify-content: center;
    margin-top: 50px;
}

@media (max-width: 1199px) {
    .contact-details {
        padding-left: 20px;
    }

    .custom-contact-form .form-row {
        flex-wrap: wrap;
    }

    .custom-contact-form .form-col {
        width: 100%;
        flex: auto;
    }

    .section-map {
        padding: 100px;
    }
}

@media (max-width: 991px) {
    .section-map {
        padding: 99px 0;
    }

    .map-header {
        margin-bottom: 30px;
    }

    .map-iframe-container iframe {
        height: 353px;
    }

    .contact-teams .swiper-nav-buttons {
        position: absolute;
        bottom: 139px;
        gap: 22px;
    }
}

@media (min-width: 992px) {

    .custom-contact-form input::placeholder,
    .custom-contact-form textarea::placeholder {
        color: transparent;
    }

    .contact-section {
        background-image: url('../../images/contact-liner-1.svg');
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% auto;
    }

    .contact-teams {
        background-image: url('../../images/contact-vector.svg');
        background-repeat: no-repeat;
        background-position: right 0 bottom 48px;
    }

    .page-template-aplication .site-content {
        background-image: url('../../images/aplication.svg');
        background-repeat: no-repeat;
        background-position: left 0 top 0;
        overflow: hidden;
    }
}

@media (max-width: 991px) {
    .contact-section {
        background-image: url('../../images/contact-liner-mb.svg');
        background-repeat: no-repeat;
        background-position: top -8px right -5px;
        background-size: 100% auto;
    }

    .contact-teams {
        background-image: url('../../images/contact-liner-mb-2.svg');
        background-repeat: no-repeat;
        background-position: left 0 bottom 24px;
        padding: 1px 0 209px;
    }

    .application-page {
        padding: 50px 0 0;
    }

    .application-title {
        margin-bottom: 40px;
    }

    .application-section {
        background-position: left -249px bottom 39px;
        background-image: url('../../images/cms-vector-bottom.svg');
    }

    .application-form-wrapper {
        padding: 50px 30px 119px;
    }

    .application-form-wrapper h5 {
        margin-bottom: 25px;
    }

    .application-page .custom-contact-form .custom-input-wrap label {
        opacity: 1;
        left: 19px;
    }

    .custom-contact-form .custom-input-wrap.date-wrap:not(.has-value) label {
        opacity: 1;
    }

    .custom-contact-form .custom-input-wrap.file-upload-wrap label {
        color: rgba(41, 41, 41, 1);
        text-align: center;
        width: 100%;
        left: 0;
    }

    .application-page .custom-contact-form .form-row {
        margin-bottom: 16px;
    }

    .custom-input-wrap.file-upload-wrap::after {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 44px;
    }

    .custom-input-wrap.file-upload-wrap input[type="file"] {
        padding-right: 25px;
        height: 80px;
    }

    .application-page .custom-contact-form .agreement-row .wpcf7-form-control-wrap {
        width: auto;
    }

    .application-section .container {
        padding: 0;
    }

    .application-page .custom-contact-form input[type="text"],
    .application-page .custom-contact-form input[type="email"],
    .application-page .custom-contact-form input[type="tel"],
    .application-page .custom-contact-form textarea,
    .application-page .custom-contact-form select {
        padding: 8.5px 18px;
        height: 46px;
    }

    .custom-input-wrap.date-wrap:not(.has-value) input[type="date"] {
        height: 46px;
    }

    .form-row+.form-section-title {
        padding-top: 31px;
    }

    .custom-contact-form .agreement-row {
        padding-top: 3px;
    }

    .custom-contact-form .form-submit-row {
        margin-top: 39px;
    }
}