/* ══════════════════════════════════════════════════════════
   form.css — BmNexus Contact Page
   Loaded only when bmnexus/contact-form block renders.
   Depends on bmnexus-landing (base vars, nav, footer, btn).
   ══════════════════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────────────────────── */
.bn-contact-page {
    min-height: calc(100vh - var(--bn-nh, 60px));
    padding: 80px 0 100px;
}

/* ── Grid: form + sidebar ─────────────────────────────────── */
.bn-contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: start;
}

@media (max-width: 900px) {
    .bn-contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ── Form wrap headings ───────────────────────────────────── */
.bn-contact-form-wrap .bn-h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-top: 0.5rem;
}

/* ── Status message ───────────────────────────────────────── */
.bn-form-status {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 20px 0 0;
}

.bn-form-status:not(:empty) {
    display: block;
}

.bn-form-status--ok {
    background: rgba(34, 212, 122, 0.12);
    border: 1px solid rgba(34, 212, 122, 0.3);
    color: #22d47a;
}

.bn-form-status--err {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* ── Form layout ──────────────────────────────────────────── */
.bn-contact-form {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Row grid ─────────────────────────────────────────────── */
.bn-form-row { display: flex; flex-direction: column; gap: 20px; }

.bn-form-row--2 {
    flex-direction: row;
    gap: 16px;
}

.bn-form-row--2 > .bn-fg { flex: 1; min-width: 0; }

@media (max-width: 600px) {
    .bn-form-row--2 { flex-direction: column; }
}

/* ── Field group ──────────────────────────────────────────── */
.bn-fg { display: flex; flex-direction: column; gap: 6px; }

/* ── Label ────────────────────────────────────────────────── */
.bn-flabel {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bn-t2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.bn-freq { color: var(--bn-a1); font-size: 0.85rem; }
.bn-fopt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: var(--bn-t3); }

/* ── Inputs, textarea, select ─────────────────────────────── */
.bn-form-inp {
    width: 100%;
    background: var(--bn-s1);
    border: 1px solid var(--bn-bdr2);
    border-radius: 8px;
    color: var(--bn-t1);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 14px;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.bn-form-inp::placeholder { color: var(--bn-t3); }

.bn-form-inp:focus {
    border-color: var(--bn-a1);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, .15);
}

.bn-form-inp.is-err {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

textarea.bn-form-inp {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

/* Select arrow */
.bn-form-sel {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238888a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    padding-right: 36px;
    cursor: pointer;
}

.bn-form-sel option { background: var(--bn-s1); color: var(--bn-t1); }

/* ── Field error text ─────────────────────────────────────── */
.bn-ferr {
    font-size: 0.78rem;
    color: #f87171;
    min-height: 1em;
}

/* ── Submit ───────────────────────────────────────────────── */
.bn-form-btn {
    align-self: flex-start;
    margin-top: 4px;
}

.bn-form-btn:disabled { opacity: .65; cursor: wait; }

/* ── Fine print ───────────────────────────────────────────── */
.bn-form-note {
    font-size: 0.78rem;
    color: var(--bn-t3);
    margin-top: -4px;
}

/* ── Honeypot (invisible) ─────────────────────────────────── */
.bn-hp { display: none !important; }

/* ══ RIGHT SIDEBAR ════════════════════════════════════════════ */
.bn-contact-info {
    position: sticky;
    top: calc(var(--bn-nh, 60px) + 32px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bn-ci-block { display: flex; flex-direction: column; gap: 8px; }

.bn-ci-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bn-t3);
}

.bn-ci-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bn-t1);
    text-decoration: none;
    transition: color .15s;
}

.bn-ci-value:hover { color: var(--bn-a1); }

.bn-ci-cta {
    padding: 24px;
    background: var(--bn-s1);
    border: 1px solid var(--bn-bdr);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bn-ci-cta-note {
    font-size: 0.85rem;
    color: var(--bn-t2);
    line-height: 1.4;
}

/* ── Responsive sidebar ───────────────────────────────────── */
@media (max-width: 900px) {
    .bn-contact-info {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .bn-ci-block { flex: 1; min-width: 160px; }

    .bn-ci-cta { flex: 100%; }
}
