/* ============================================================
   CONTACT PAGE – HERO VARIANT
   (Builds on .hero from main.css)
============================================================ */

.hero.hero--sub {
    min-height: 36vh;
    padding-top: calc(var(--nav-h) + 40px);
}
.hero.hero--sub h1 {
    font-size: clamp(52px, 7vw, 78px);
}

.hero.hero--sub p {
    font-size: clamp(18px, 3vw, 24px);
}

/* Give a touch more breathing room on small screens */
@media (max-width: 900px) {
    .hero.hero--sub {
        padding-top: calc(var(--nav-h) + 24px);
        padding-bottom: 30px;
    }

    .hero.hero--sub .hero-actions {
        margin-top: 22px;
    }
}


/* ============================================================
   CONTACT SECTION – DARK THEME (MATCH TOP PIER PICKS)
============================================================ */

/* Override the default .content-section.alt white background */
#contact.content-section,
#contact.content-section.alt {
    position: relative;
    /* anchor for the gold bar */
    padding: clamp(40px, 7vw, 60px) 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(circle at bottom right, rgba(246, 196, 83, 0.08), transparent 60%),
        var(--brand-deep);
    color: #fff;
}

/* Full-width gold divider between hero and contact band */
#contact::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    /* overlaps slightly up into the hero */
    height: 12px;
    background: linear-gradient(90deg, var(--gold), #ffe29b);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Keep inner wrapper positioned nicely if we ever add effects */
#contact .section-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Heading styled like Top Pier Picks */
#contact .section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 44px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
}

#contact .section-heading h2::after {
    content: "";
    display: block;
    width: 230px;
    height: 7px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), #ffe29b);
}

#contact .section-heading p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.7;
}

/* ============================================================
   GRID LAYOUT
============================================================ */

.contact-grid {
    align-items: flex-start;
    gap: clamp(24px, 3vw, 40px);
}

@media (max-width: 899px) {
    .contact-grid {
        gap: 24px;
    }
}

/* ============================================================
   GRID LAYOUT
============================================================ */

.contact-grid {
    align-items: flex-start;
    gap: clamp(24px, 3vw, 40px);
}

@media (max-width: 899px) {
    .contact-grid {
        gap: 24px;
    }
}

/* ============================================================
   CONTACT CARD – FORM
============================================================ */

.contact-card {
    border-radius: 22px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.14),
        0 3px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-row--split {
    gap: 12px;
}

@media (min-width: 720px) {
    .field-row--split {
        flex-direction: row;
    }

    .field-row--split .field {
        flex: 1;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(4, 30, 30, 0.9);
}

.field-required {
    color: #c53232;
    margin-left: 4px;
}

/* Inputs & textareas */

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="tel"],
.contact-card input[type="date"],
.contact-card select,
.contact-card textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    font: inherit;
    background: #ffffff;
    color: var(--text);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.contact-card textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Focus state */

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 0 0 3px rgba(246, 196, 83, 0.45);
    background: #fffdf7;
}

/* Small helper text */

.field-hint {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(0, 0, 0, 0.6);
}

.field-disclaimer {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Submit button alignment */

.contact-submit {
    margin-top: 4px;
}

/* ============================================================
   CONTACT INFO CARD
============================================================ */

.contact-info {
    border-radius: 22px;
    background: rgb(255, 255, 255);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.14),
        0 3px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-info__heading {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--brand-deep);
}

.contact-info__block {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.contact-info__block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.contact-info__label {
    margin: 0 0 4px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(4, 30, 30, 0.85);
}

.contact-info__value {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.contact-link {
    color: var(--brand-deep);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--gold-deep);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.contact-info__note {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
}

.contact-info__list {
    margin: 4px 0 0;
    padding-left: 1.2em;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.75);
}

.contact-info__list li {
    margin-bottom: 4px;
}

.contact-info__block--muted {
    background: #e0dfdf65;
    padding: 10px 12px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 16px;
}

/* Slight tightening on very small screens */
@media (max-width: 480px) {
    .contact-card,
    .contact-info {
        padding: 16px 14px;
    }
}

/* ============================================================
   CONTACT THANK-YOU POPUP
============================================================ */

.contact-toast {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 999;
    /* above content, below nav if nav is super high */
}

.contact-toast--open {
    pointer-events: auto;
    opacity: 1;
}

.contact-toast__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.5), rgba(0, 20, 20, 0.9));
}

.contact-toast__card {
    position: relative;
    max-width: 540px;
    width: min(540px, 90vw);
    margin: 0 16px;
    padding: 28px 24px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 60%),
        linear-gradient(180deg, #f0fbff, #fff8ec);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    color: var(--brand-deep);
    text-align: left;
    z-index: 1;
}

.contact-toast__card h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 26px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-toast__card p {
    margin: 4px 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.contact-toast__note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(3, 34, 34, 0.85);
}

.contact-toast__btn {
    margin-top: 18px;
    width: 100%;
}

/* Error text under the form button */
.field-error {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: #c53232;
}

/* ============================================================
   SOFTER BUTTON STYLE FOR POPUP
============================================================ */

.contact-toast__btn {
    /* base reset */
    box-shadow: none;
    transform: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;

    /* match your brand, but calmer */
    background: linear-gradient(180deg, #f7d37b, #eac066);
    border: none;
    color: #042b2b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Hover: subtle glow, no lift */
.contact-toast__btn:hover {
    background: linear-gradient(180deg, #f4c86d, #e2b75f);
    box-shadow: 0 0 12px rgba(246, 196, 83, 0.35);
    transform: none;
}

/* Active state: barely darker */
.contact-toast__btn:active {
    background: linear-gradient(180deg, #e4b45b, #d5a24d);
    box-shadow: none;
    transform: none;
}
