/* ============================================================
   contact.css — Contact + Thank You page styles
   Sections: teal hero (base), photo + form on cream,
   Our Values (from about.css), CTA band (base).
   thank-you.html swaps the form for a confirmation message.
   ============================================================ */

/* ------------------------------------------------------------
   Photo + form layout
   ------------------------------------------------------------ */
.contact-section {
    background: var(--cream);
    padding: var(--section-py) 0 120px;
}

.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;
    align-items: start;
}

.contact-photo img {
    width: 100%;
    aspect-ratio: 608 / 715;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------
   Form
   ------------------------------------------------------------ */
.contact-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
}

.contact-form .field {
    margin-bottom: 22px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #A9A9A9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(0, 99, 101, 0.12);
}

/* Custom chevron for the select */
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

.contact-form select:invalid,
.contact-form select option[value=""] {
    color: #A9A9A9;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: 18px;
}

/* Inline validation message */
.form-error {
    display: none;
    margin-top: 16px;
    font-size: 14px;
    color: var(--red);
}

.form-error.is-visible {
    display: block;
}

/* ------------------------------------------------------------
   Thank-you variant — message centered beside the photo
   ------------------------------------------------------------ */
.thanks-message {
    align-self: center;
    text-align: center;
}

.thanks-message h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink-soft);
}

.thanks-message p {
    margin-top: 14px;
    font-size: 16px;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    /* Stack: photo sits flush under the teal hero and runs
       edge-to-edge with square corners, like the About page */
    .contact-section {
        padding-top: 0;
    }

    .contact-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-photo {
        width: calc(100% + 2 * var(--container-px));
        margin-left: calc(-1 * var(--container-px));
    }

    .contact-photo img {
        border-radius: 0;
    }

    .thanks-message {
        padding: 24px 0 40px;
    }
}
