/* ==========================================================
   CONTACT.CSS
   IRS-style intake form
   ========================================================== */

.contact-sub {
    margin: 0 0 var(--space-4);
    font-weight: 700;
    color: var(--ink-soft);
    max-width: 70ch;
}

/* Two-column layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--space-5);
    margin-top: var(--space-5);
}

/* Form inputs */
.contact-form {
    display: grid;
    gap: var(--space-3);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    background: var(--field);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.form-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-row--textarea .form-input {
    resize: vertical;
}

/* Form actions */
.form-actions {
    margin-top: var(--space-4);
}

/* Office info block */
.office-block {
    border: 1px solid var(--rule);
    background: var(--field);
}

.office-block .form-row {
    padding: var(--space-3) var(--space-4);
}

.office-block a {
    font-weight: 900;
    text-decoration: none;
}

.office-block a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Notice */
.contact-note {
    margin-top: var(--space-4);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* reCAPTCHA row */
.recaptcha-row {
    align-items: flex-start;
}

.recaptcha-slot {
    padding: 10px 0;
}

.recaptcha-fallback {
    border: 1px solid var(--rule);
    background: #edf2ec;
    padding: 10px 12px;
    font-weight: 800;
    color: var(--ink-soft);
}

/* Honeypot: keep in DOM for bots, hide from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-error {
    margin-top: 6px;
    font-weight: 800;
    color: #7a1f1f;
    letter-spacing: .02em;
}

.review-actions {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.review-actions .btn {
    justify-content: center;
}

/* Space between submit button row and the badges row */
.contact-form .form-actions {
    margin-bottom: 12px;
}

/* If your badges row is the element right after the form */
.contact-footnote {
    margin-top: 10px;
}

/* Optional: give the badges a little breathing room */
.contact-footnote .badge {
    margin-top: 6px;
}

.contact-form.is-submitting {
    opacity: 0.6;
    pointer-events: none;
}

.contact-form.is-submitting::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}