/* =========================================
   CONTACT US
========================================= */
.contact-section {
    position: relative;
    padding-block: 60px;
    /* border-top: 4px solid var(--dts-secondary); */
    /* background: url(../images/contact-bg.png); */
    background-image: url('../images/contact-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
}
.contact-badge{
    font-size: 18px;
}
.contact-inner {
    display: grid;
    grid-template-columns: 0.7134fr 1fr;
    gap: 115px;
    align-items: start;
}

.contact-title {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 3rem;
    line-height: 56px;
    color: #1A1A1A;
    margin: 29px 0px 17px 0px;
}

.contact-title .highlight {
    color: var(--dts-secondary);
}

.contact-desc {
    font-size: 1.5rem;
    line-height: 29.25px;
    color: var(--dts-text);
    max-width: 687px;
    margin-bottom: 50px;
}

/* ---- Info cards (matches .why-career-card exactly) ---- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 32px;
}

/* .contact-card {
    position: relative;
    padding: 23px 30px;
    border: 1px solid #E5E7EF;
    border-radius: 13px;
    background: radial-gradient(180px 184px at 100% 0%, rgba(216, 27, 96, 0.18) 0%, rgba(216, 27, 96, 0) 75%);
    overflow: hidden;
} */
.contact-card {
    position: relative;
    padding: 23px 30px;
    border: 1px solid #E5E7EF;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    /* min-height:185px; */
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 70.8%;   /* 223px / 315px reference frame width */
    top: 4px;
    width: 29.2%;  /* 92px / 315px reference frame width */
    height: 94px;
    border: 26px solid rgba(216, 27, 96, 0.66);
    border-radius: 50%;
    filter: blur(99.8px);
    pointer-events: none;
    z-index: 0;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--dts-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
}

.contact-card__icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.contact-card__title {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 24px;
    color: #1A1A1A;
    line-height: 32px;
    margin-bottom: 0.6rem;
}

.contact-card__text {
    font-size: 1rem;
    line-height: 20px;
    color: var(--dts-text);
    /* margin-bottom: 0.35rem; */
}

.contact-card__value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dts-primary);
    text-decoration: none;
    line-height: 1.6;
}

.contact-card__value:hover {
    color: var(--dts-secondary);
}

/* ---- Form card ---- */
.contact-form-card {
    position: relative;
    overflow: hidden;
    /* height: 760px; */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 380px 300px at 95% 5%, rgba(216, 27, 96, 0.3) 0%, rgba(216, 27, 96, 0) 60%),
        linear-gradient(160deg, #0A1633 0%, #14224A 100%);
    border-radius: 24px;
    padding: 4.5rem 3rem;
    max-width: 875px;
}

.contact-form-card .dts-contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form-card .dts-cf-submit {
    margin-top: auto;
}
.dts-contact-form__feedback {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.dts-contact-form__feedback:not(:empty) {
    display: block;
}

.dts-contact-form__feedback.is-success {
    background: rgba(46, 204, 113, 0.15);
    color: #6EE7A8;
    margin-top:20px
}

.dts-contact-form__feedback.is-error {
    background: rgba(216, 27, 96, 0.15);
    color: #FF8FAE;
}

.dts-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* .dts-cf-field {
    margin-bottom: 1.25rem;
} */

.dts-cf-field label {
    display: block;
    font-family: var(--dts-font-inter);
    font-weight: 500;
    font-size: 20px;
    color: var(--dts-white-color);
    margin-bottom: 14px;
}

.dts-cf-required {
    color: var(--dts-secondary);
}

.dts-cf-field input[type="text"],
.dts-cf-field input[type="email"],
.dts-cf-field input[type="tel"], 
.dts-cf-field select {

    width: 100%;
    height:51px;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--dts-white-color);
    font-size: 18px;
    color: #1A1A1A;
    transition: var(--dts-transition-effects);
}

.dts-cf-field input::placeholder {
    color: #9AA0AC;
}

.dts-cf-field input:focus,
.dts-cf-field select:focus {
    outline: none;
    border-color: var(--dts-secondary);
}

.dts-cf-field.has-error input,
.dts-cf-field.has-error select {
    border-color: #FF6B6B;
}

.dts-cf-error {
    display: block;
    font-size: 0.75rem;
    color: #FF8FAE;
    margin-top: 6px;
    min-height: 1em;
}

.dts-cf-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.dts-cf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 20px;
    color: rgba(255, 255, 255);
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.dts-cf-checkbox input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--dts-secondary);
    flex: none;
    margin-top: 6px; /* nudges checkbox to align with first line of text */
}

.dts-cf-checkbox.has-error {
    color: #FF8FAE;
}

.dts-cf-submit {
    width: 100%;
    background: var(--dts-secondary);
    color: var(--dts-white-color);
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    transition: var(--dts-transition-effects);
    margin-top: 1.75rem;
}

.dts-cf-submit:hover {
    opacity: 0.9;
}

.dts-cf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dts-cf-submit.is-loading {
    position: relative;
    color: transparent;
}

.dts-cf-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--dts-white-color);
    border-radius: 50%;
    animation: dts-spin 0.6s linear infinite;
}


.contact-card:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: start;
    gap: 1.25rem;
}

.contact-card:last-child .contact-card__icon {
    margin-bottom: 0;
    flex: none;
}

.contact-card:last-child .contact-card__title {
    /* margin-bottom: 0.3rem; */
}

.contact-card:last-child .contact-card__text {
    /* margin-bottom: 0.15rem; */
}.dts-cf-checkbox a {
    color: #ffffff;
    text-decoration: underline;
    /* font-weight: 600; */
        white-space: nowrap;

}

.dts-cf-checkbox a:hover {
    color: #ff2f7b;
}


.dts-cf-field select {
    height: 51px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.dts-cf-field {
    position: relative;
}

.dts-cf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


@keyframes dts-spin {
    to { transform: rotate(360deg); }
}



.dts-cf-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 500;
    color: #fff;
    margin-top: 17px;
}

.dts-cf-note__icon {
    
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .contact-inner {
        gap: 2rem;
    }

    .contact-title {
        font-size: 3rem; /* 48px — standard mobile h1 (desktop is already 48px, so tablet keeps it flat rather than shrinking below) */
    }

    .contact-section {
        background-size: 400px;
    }
}

@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        order: 0;
    }
.contact-form-card {
        height: auto;
    }

    .contact-form-card {
        padding: 3rem 2.25rem;
    }
}

@media (max-width: 768px) {
    /* .contact-badge, .contact-desc, .contact-card__title and the whole
       form's labels/inputs/checkbox/submit/note had NO mobile font
       treatment before — sizes fell straight through from desktop. */
    .contact-badge {
        font-size: 14px; /* standard mobile badge */
    }

    .contact-desc {
        font-size: 1rem; /* 16px — standard mobile p */
        line-height: 1.5;
        margin-bottom: 32px;
    }

    .contact-card__title {
        font-size: 20px; /* standard mobile h3 */
        line-height: 1.3;
    }

    .contact-card__value {
        font-size: 14px; /* standard mobile badge/emphasis scale */
    }

    .dts-cf-field label {
        font-size: 1rem; /* 16px — matched to mobile p scale (not one of the
                             named tiers, but form labels read as body text) */
        margin-bottom: 10px;
    }

    .dts-cf-field input[type="text"],
    .dts-cf-field input[type="email"],
    .dts-cf-field input[type="tel"],
    .dts-cf-field select {
        font-size: 1rem; /* 16px — keeps mobile Safari from auto-zooming
                             on focus (it zooms on any input under 16px) */
    }

    .dts-cf-checkbox {
        font-size: 1rem; /* 16px — standard mobile p */
        line-height: 1.4;
    }

    .dts-cf-submit {
        font-size: 14px; /* standard mobile button */
    }

    .dts-cf-note {
        font-size: 14px; /* standard mobile badge/caption scale */
    }
}

@media (max-width: 600px) {
    .contact-title {
        font-size: 3rem; /* keep 48px standard mobile h1 (was shrinking to 1.5rem/24px before) */
        line-height: 1.2;
    }

    .contact-section {
        background: none; /* decorative bg image was fighting for space
                              with stacked mobile content */
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 1.75rem;
    }

    .dts-cf-row {
        grid-template-columns: 1fr;
    }
    .contact-card:last-child {
        flex-direction: column;
        gap:10px;
    }
}



/* =========================================
   CONTACT FORM: consistent spacing + validation alignment
========================================= */

/* One spacing system: everything in the form is separated by the same gap */
.contact-form-card .dts-contact-form {
    gap: 20px;
}

/* Two-column rows: same vertical gap as the rest of the form */
.dts-cf-row {
    row-gap: 20px;
    column-gap: 1rem;
}

/* Errors: no reserved empty space, and they only take room when shown */
.dts-cf-error {
    min-height: 0;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.dts-cf-error:empty {
    display: none;
}

/* Consent: checkbox and its error stay together, error aligns with the text */
.dts-cf-consent {
    display: flex;
    flex-direction: column;
}
.dts-cf-checkbox {
    margin-bottom: 0;
    line-height: 1.4;
}
.dts-cf-consent .dts-cf-error {
    padding-left: 27px; /* checkbox 19px + 8px gap, so it lines up with the text */
}

/* Button: the gap already spaces it, so cancel the old margins */
.contact-form-card .dts-cf-submit {
    margin-top: 8px;
}

/* "Obligation free quote" and the feedback box */
.dts-cf-note {
    margin-top: 0;
}
.dts-contact-form__feedback,
.dts-contact-form__feedback.is-success {
    margin: 0;
    padding: 14px 16px;
    line-height: 1.5;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .contact-form-card .dts-contact-form {
        gap: 18px;
    }

    .dts-cf-error {
        font-size: 13px;
    }

    .dts-cf-checkbox input[type="checkbox"] {
        margin-top: 2px; /* lines up with the first line of 16px text */
    }

    .dts-cf-consent .dts-cf-error {
        padding-left: 27px;
    }

    .dts-contact-form__feedback {
        font-size: 14px;
    }
}

