/* ========================================
   CONTACT FORM
======================================== */

.contact-form {
    max-width: 700px;
    margin: 60px auto;
    padding: 45px;
    background: linear-gradient(rgba(255,250,235,.96), rgba(245,230,190,.96));
    border: 3px solid #c69c4a;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

.contact-form label {
    display: block;
    margin-top: 25px;
    margin-bottom: 8px;
    font-family: var(--title-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: #5a3518;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #c69c4a;
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    font-family: var(--body-font);
    font-size: 18px;
    color: #3b2618;
    box-shadow: inset 0 1px 4px rgba(70,45,20,.06);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form textarea {
    min-height: 220px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #a87525;
    box-shadow: 0 0 0 4px rgba(198,156,74,.18), 0 6px 18px rgba(70,45,20,.08);
    background: #fffdf7;
}

.contact-form .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 35px;
    padding: 14px 24px;
    border: 2px solid #c69c4a;
    border-radius: 999px;
    background: linear-gradient(145deg, #101827, #1b2940);
    color: #fff1bd;
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(16,24,39,.26), inset 0 1px 0 rgba(255,255,255,.05);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form .button:hover,
.contact-form .button:focus-visible {
    transform: translateY(-2px);
    border-color: #f4d47c;
    background: linear-gradient(145deg, #17243a, #22334e);
    box-shadow: 0 13px 28px rgba(16,24,39,.32), 0 0 0 3px rgba(244,212,124,.10);
}

.contact-form .button:focus-visible {
    outline: 2px solid #fff1bd;
    outline-offset: 4px;
}

.contact-form .button:active {
    transform: translateY(0);
}

.contact-form .button:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

/* The visual confirmation is the shared lower-right toast. Keep this live
   region available to assistive technology without duplicating the message. */
.contact-form-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form ::placeholder {
    color: #8f7758;
    font-style: italic;
}

.page-header {
    text-align: center;
    padding: 90px 20px 40px;
}

.page-header h1 {
    margin-bottom: 14px;
    font-size: clamp(3rem, 7vw, 4rem);
    color: var(--gold-light);
    text-shadow: 0 3px 15px rgba(0,0,0,.24);
}

.page-header p {
    max-width: 700px;
    margin: auto;
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    line-height: 1.6;
    color: #f8edce;
    text-shadow: 0 2px 10px rgba(0,0,0,.38);
}

@media (max-width: 700px) {
    /* The fixed navigation becomes two rows on phones, so leave enough room
       for the Contact heading to begin fully below it. */
    .page-header {
        padding: 128px 18px 28px;
    }

    .contact-form {
        margin: 35px 14px 55px;
        padding: 28px 20px;
        border-width: 2px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .contact-form textarea {
        min-height: 180px;
    }

    .contact-form .button {
        min-height: 54px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form input,
    .contact-form textarea,
    .contact-form .button {
        transition: none;
    }
}
