/* ============================================================
   CONTACT PAGE — /contact
   ============================================================ */

/* Hero + form — two-column layout */
.contact-hero {
    padding-top: 160px;
    padding-bottom: 128px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.contact-intro {
    min-width: 0;
}

.contact-eyebrow {
    display: inline-block;
}

.contact-right {
    min-width: 0;
    max-width: 560px;
}

.contact-right h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.96px;
    line-height: 45.6px;
    margin: 0 0 28px;
}

.contact-left {
    min-width: 0;
}

.contact-left .platform-heading {
    margin-top: 0;
    margin-bottom: 16px;
}

.contact-left-intro {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    opacity: 0.8;
    margin: 0 0 32px;
}

/* Checklist */
.contact-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.contact-checklist-item i {
    font-size: 22px;
    color: rgba(10, 10, 10, 0.5);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0px;
}

.contact-checklist-item strong {
    font-weight: 500;
    color: rgb(10, 10, 10);
}

.contact-checklist-item span {
    color: rgba(10, 10, 10, 0.8);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-field-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-field-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-field label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(10, 10, 10, 0.8);
}

.contact-optional {
    font-weight: 400;
    color: rgba(10, 10, 10, 0.45);
    margin-left: 4px;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field textarea,
.contact-field select {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(10, 10, 10);
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.2);
    border-radius: 4px;
    padding: 9px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(10, 10, 10, 0.35);
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    outline: none;
    border-color: rgba(10, 10, 10, 0.6);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.contact-field input:user-invalid,
.contact-field textarea:user-invalid {
    border-color: rgba(180, 60, 50, 0.55);
}

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

/* Custom select — caret SVG */
.contact-select-wrap {
    position: relative;
}

.contact-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='rgba(10,10,10,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Submit row */
.contact-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.contact-submit {
    /* Match header's .cta-btn exactly — button UA defaults
       differ from the anchor version, so pin them. */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background-color: rgb(10, 10, 10);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.contact-submit:disabled,
.contact-submit[disabled] {
    cursor: default;
    opacity: 0.6;
    pointer-events: none;
}

/* Ensure the form is fully hidden once submission succeeds —
   needed because .contact-form sets display: flex, which would
   otherwise override the [hidden] attribute's default. */
.contact-form[hidden] {
    display: none !important;
}

.contact-helper {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(10, 10, 10, 0.55);
    margin: 0;
}

/* Thank-you state */
.contact-thankyou {
    padding: 32px 32px;
    border: 1px solid rgba(10, 10, 10, 0.12);
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.02);
}

.contact-thankyou h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.6px;
    line-height: 36px;
    margin: 0 0 12px;
}

.contact-thankyou p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 22px;
    opacity: 0.8;
    margin: 0;
}

/* Calendly block */
.contact-calendly-block {
    padding: 96px 0 128px;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.contact-calendly-inner {
    max-width: 720px;
}

.contact-calendly-inner .platform-heading {
    margin-top: 8px;
    margin-bottom: 16px;
}

.contact-calendly-inner p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    opacity: 0.8;
    margin: 0 0 24px;
    max-width: 560px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
    .contact-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 56px;
    }

    .contact-right h1 {
        font-size: 40px;
        letter-spacing: -0.8px;
        line-height: 38px;
    }
}

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

@media (max-width: 768px) {
    .contact-hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .contact-right h1 {
        font-size: 32px;
        letter-spacing: -0.64px;
        line-height: 30.4px;
        margin-bottom: 24px;
    }

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

    .contact-submit-row {
        gap: 12px;
    }

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