/* BOSS CONTACT PAGE
   Loads after style.css and extends the same homepage design language. */

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 105px;
    background:
        radial-gradient(circle at 6% 14%, rgba(238,232,248,.72), transparent 27%),
        radial-gradient(circle at 94% 20%, rgba(223,244,232,.88), transparent 29%),
        #fff;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 72px;
    align-items: start;
}

.contact-intro {
    padding-top: 36px;
}

.contact-intro h1 {
    max-width: 610px;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.01;
    letter-spacing: -3.8px;
}

.contact-intro h1 span {
    display: block;
    color: var(--mintStrong);
}

.contact-lead {
    max-width: 590px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 18px;
}

.contact-points {
    display: grid;
    gap: 16px;
    margin-top: 36px;
}

.contact-points > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
}

.contact-point-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(37,45,52,.07);
    color: var(--mintStrong);
}

.contact-point-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
}

.contact-points strong {
    display: block;
    padding-top: 2px;
    font-size: 14px;
}

.contact-points p {
    margin-top: 2px;
    max-width: 470px;
    color: var(--muted);
    font-size: 12px;
}

.contact-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 31px;
}

.contact-audience span {
    padding: 7px 11px;
    border: 1px solid #e2e6e7;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: #626a72;
    font-size: 9px;
    font-weight: 800;
}

.contact-audience span:nth-child(1),
.contact-audience span:nth-child(5) {
    background: var(--mint);
}

.contact-audience span:nth-child(2),
.contact-audience span:nth-child(6) {
    background: var(--lav);
}

.contact-audience span:nth-child(3),
.contact-audience span:nth-child(7) {
    background: var(--blue);
}

.contact-audience span:nth-child(4) {
    background: var(--pink);
}

.contact-form-shell {
    position: relative;
    padding: 40px;
    border: 1px solid rgba(221,225,227,.95);
    border-radius: 34px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 75px rgba(37,45,52,.11);
}

.contact-form-shell::before {
    content: "";
    position: absolute;
    width: 145px;
    height: 145px;
    right: -35px;
    top: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mint) 0%, rgba(223,244,232,0) 70%);
    pointer-events: none;
}

.contact-form-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}

.contact-form-heading > span {
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 900;
    color: #758078;
}

.contact-form-heading h2 {
    margin-top: 7px;
    font-size: 35px;
    line-height: 1.06;
    letter-spacing: -1.6px;
}

.contact-form-heading p {
    margin-top: 8px;
    max-width: 520px;
    color: var(--muted);
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.field {
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: #505960;
    font-size: 11px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #dfe4e6;
    border-radius: 11px;
    outline: none;
    background: #fbfcfc;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
    min-height: 128px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--mintStrong);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95,174,131,.10);
}

.field-warning {
    display: block;
    min-height: 15px;
    margin-top: 4px;
    color: #b34f63;
    font-size: 10px;
    font-weight: 700;
}

.demo-fields {
    padding: 22px;
    border: 1px solid #dfe9e3;
    border-radius: 20px;
    background: linear-gradient(145deg, #f9fdfb, var(--mint));
}

.demo-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 19px;
}

.demo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #fff;
    color: var(--mintStrong);
    box-shadow: 0 8px 20px rgba(37,45,52,.07);
}

.demo-icon svg {
    width: 20px;
    height: 20px;
}

.demo-heading strong {
    display: block;
    font-size: 13px;
}

.demo-heading p {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.demo-grid {
    gap: 12px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.timeSlot {
    min-height: 42px;
    padding: 8px 7px;
    border: 1px solid #cbd6d0;
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.timeSlot:hover {
    transform: translateY(-1px);
    border-color: var(--mintStrong);
}

.timeSlot.selected {
    border-color: var(--mintStrong);
    background: var(--mintStrong);
    color: #fff;
    box-shadow: 0 8px 18px rgba(95,174,131,.20);
}

.time-slot-hint {
    grid-column: 1 / -1;
    padding: 10px 0;
    color: var(--muted);
    font-size: 10px;
}

.selected-time {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: #516159;
    font-size: 11px;
}

.selected-time svg {
    width: 17px;
    height: 17px;
    color: var(--mintStrong);
}

.contact-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 23px;
}

.contact-submit,
.contact-reset {
    min-height: 49px;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 23px;
    border: 0;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 26px rgba(32,37,44,.15);
}

.contact-submit svg {
    width: 16px;
    height: 16px;
}

.contact-submit:hover {
    transform: translateY(-2px);
}

.contact-submit:disabled {
    opacity: .55;
    cursor: wait;
}

.contact-reset {
    padding: 0 18px;
    border: 1px solid #dfe3e5;
    background: #fff;
    color: #677078;
}

.contact-form-note {
    margin-top: 17px;
    color: #838b91;
    font-size: 9px;
}

.contact-bottom {
    padding: 0 0 74px;
    background: #fff;
}

.contact-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(90deg, #f8fbfa, #fff, #f8fbfb);
    text-align: center;
    font-size: 15px;
}

#loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(20,25,29,.64);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.contact-loader {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(255,255,255,.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contactSpin .8s linear infinite;
}

@keyframes contactSpin {
    to { transform: rotate(360deg); }
}

.flatpickr-calendar {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    border-color: var(--mintStrong);
    background: var(--mintStrong);
}

@media(max-width: 980px) {
    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-intro {
        padding-top: 0;
    }

    .contact-form-shell {
        max-width: 760px;
        width: 100%;
    }
}

@media(max-width: 620px) {
    .contact-hero {
        padding: 68px 0 75px;
    }

    .contact-intro h1 {
        font-size: 46px;
        letter-spacing: -2.7px;
    }

    .contact-form-shell {
        padding: 27px 20px;
        border-radius: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .time-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-submit,
    .contact-reset {
        width: 100%;
        justify-content: center;
    }

    .contact-bottom-inner {
        align-items: flex-start;
        text-align: left;
    }
}
/* FIX PHONE FIELD STRETCHING */
#txt_DaytimePhone {
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: block;
}

/* Keep the email + phone row the same height */
.form-grid > .field {
    align-self: start;
}

/* Don't allow individual fields to stretch vertically */
.field {
    height: auto !important;
    min-height: 0;
}

/* Only textarea should be tall */
.field textarea {
    height: 128px;
    min-height: 128px;
}
/* ALIGN EMAIL + PHONE PERFECTLY */
.form-grid {
    align-items: start;
}

.form-grid .field {
    align-self: start;
    margin-top: 0 !important;
}

#txt_Email,
#txt_DaytimePhone {
    height: 48px !important;
    min-height: 48px !important;
    margin-top: 0 !important;
}
/* EMAIL + PHONE ROW FIX */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.form-grid > .field {
    align-self: start;
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* EMAIL + PHONE DEDICATED ROW */

.contact-pair {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;

    align-items: start;
}

.contact-pair .field {
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-pair label {
    display: block;
    margin: 0 0 7px 0;
}

.contact-pair input {
    display: block;

    width: 100%;
    height: 48px;
    min-height: 48px;

    margin: 0;
    padding: 11px 13px;

    box-sizing: border-box;
}

/* Mobile */
@media(max-width: 620px) {

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

}
.contact-testimonial {
    margin-top: 35px;
    max-width: 460px;
}

.testimonial-heading {
    margin-bottom: 14px;
}

.testimonial-heading h3 {
    margin-top: 5px;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.testimonial-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.testimonial-video {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #111;
    box-shadow: var(--shadow);
}

.testimonial-video video {
    width: 100%;
    height: auto;
    display: block;
}
/* =========================================
   CONTACT PAGE - MOBILE
========================================= */

@media (max-width: 700px) {

    /* Main contact page layout */
    .contact-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Make both sides full width */
    .contact-copy,
    .contact-form-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Contact form itself */
    .contact-form {
        width: 100% !important;
        padding: 20px !important;
    }

    /* ALL form grids become one column */
    .form-grid,
    .contact-pair,
    .demo-fields,
    .time-slots {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    /* Every individual field gets full width */
    .field,
    .field-full {
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 1 / -1 !important;
    }

    /* Inputs */
    .field input,
    .field select,
    .field textarea,
    .field-full input,
    .field-full select,
    .field-full textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Demo scheduling box */
    .demo-fields {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    /* Prevent date/time content from getting squeezed */
    .demo-fields > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Questions textarea */
    textarea {
        min-height: 130px;
    }

    /* Submit area */
    .contact-submit {
        width: 100% !important;
    }

    .contact-submit button,
    .contact-submit .button {
        width: 100% !important;
        justify-content: center;
    }

}