/* ─────────────────────────────────────────────────────────────────────
   Contact page (extends base.css)

   Two-column layout: form card on the left, supporting info on the
   right. Single column on mobile. The form reuses the .field /
   .field__input / .alert classes from base.css — the only bits added
   here are layout, the reason-required pill, character counter, and
   the success state.
   ───────────────────────────────────────────────────────────────────── */

.contact-wrap {
    max-width: 1080px;
    margin: 60px auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.contact-intro {
    grid-column: 1 / -1;
    margin: 4px 0 4px;
}
.contact-intro h1 {
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.contact-intro p {
    margin: 0;
    color: var(--text-mute);
    max-width: 600px;
    font-size: 1.02rem;
    line-height: 1.6;
}

.contact-card {
    padding: 30px 32px 26px;
}

/* required-vs-optional pill in the label row */
.field__label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.field-required {
    color: var(--accent-2, #ee4d9f);
    font-weight: 700;
}
.field-optional {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0;
}

/* select uses the same field surface as text inputs */
select.field__input {
    appearance: none;
    background-image:
        linear-gradient(180deg, var(--surface-3) 0%, var(--surface-3) 100%),
        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='%23a8a8b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
}

textarea.field__textarea {
    min-height: 140px;
    line-height: 1.55;
}

/* honeypot — invisible to humans, irresistible to bots. Anti-pattern
   reminders: don't use display:none (some bots skip those), don't make
   the field outside the form, give it a plausible name. */
.hp-trap {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submit {
    width: 100%;
    margin-top: 4px;
}

.contact-foot-note {
    margin: 16px 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.55;
}
.contact-foot-note a {
    color: var(--text-mute);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.2);
}

/* side rail */
.contact-side {
    display: grid;
    gap: 16px;
    align-content: start;
    position: sticky;
    top: 24px;
}
.contact-side__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}
.contact-side__item strong {
    font-size: 0.84rem;
    color: var(--text);
    letter-spacing: 0.02em;
}
.contact-side__item span {
    font-size: 0.88rem;
    color: var(--text-mute);
    line-height: 1.55;
}
.contact-side__item a {
    color: var(--accent, #22c8e3);
    text-decoration: none;
    border-bottom: 1px dotted rgba(34, 200, 227, 0.4);
}
.contact-side__item a:hover { border-bottom-style: solid; }

/* success state */
.contact-success {
    text-align: center;
    padding: 22px 8px 6px;
    display: grid;
    gap: 12px;
    justify-items: center;
}
.contact-success__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.12);
    color: #6ee7b7;
    display: grid;
    place-items: center;
}
.contact-success__icon svg {
    width: 32px;
    height: 32px;
}
.contact-success h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}
.contact-success p {
    margin: 0;
    color: var(--text-mute);
    max-width: 380px;
}
.contact-success .contact-ticket {
    font-family: 'SFMono-Regular', 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    color: var(--text-dim);
    background: var(--surface);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.contact-success .btn--ghost {
    margin-top: 6px;
}

/* mobile */
@media (max-width: 820px) {
    .contact-wrap {
        grid-template-columns: 1fr;
        margin: 32px auto 64px;
    }
    .contact-side { position: static; }
    .contact-card { padding: 22px 20px 20px; }
}
