/* ============================================================
   public.css  —  Shared styles for all public-facing pages
   BBB Membership Renewal Portal
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   RESET & BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f1f4f9;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Confirmation page — centred card layout */
body.confirm-page {
    background: linear-gradient(135deg, #f8f4ee 0%, #f3f5fb 60%, #eef4fb 100%);
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ────────────────────────────────────────────────────────────
   TOP NAVBAR
   ──────────────────────────────────────────────────────────── */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(17,24,39,.06);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid #e5e7eb; padding: 3px; }
.nav-brand-name { font-size: 13.5px; font-weight: 700; color: #111827; letter-spacing: -.01em; white-space: nowrap; }
.nav-brand-name span { color: #d87724; }
.nav-meta { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.nav-meta i { color: #9ca3af; }
.nav-badge { background: #fff0c8; color: #92400e; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* Back button (legal pages) */
.nav-back {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: #6b7280;
    text-decoration: none; padding: 7px 14px;
    border: 1px solid #e5e7eb; border-radius: 8px; background: #fff;
    transition: all .15s;
}
.nav-back:hover { color: #d87724; border-color: #d87724; }

/* ────────────────────────────────────────────────────────────
   PAGE BODY
   ──────────────────────────────────────────────────────────── */
/* Renewal form — centred narrow column */
.page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 20px 48px;
}

/* Legal / doc pages — wider readable column */
.doc-page-body {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 24px 56px;
}

/* ────────────────────────────────────────────────────────────
   PAGE TITLE
   ──────────────────────────────────────────────────────────── */
.page-title { text-align: center; max-width: 520px; margin-bottom: 28px; }
.page-title h1 { font-size: 26px; font-weight: 800; color: #111827; letter-spacing: -.03em; margin-bottom: 6px; }
.page-title p  { font-size: 14px; color: #6b7280; }

/* ────────────────────────────────────────────────────────────
   STEP PROGRESS BAR
   ──────────────────────────────────────────────────────────── */
.progress-bar {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 520px;
    width: 100%;
    margin-bottom: 24px;
}
.prog-step {
    display: flex; align-items: center; gap: 8px;
    flex: 1; cursor: pointer;
    padding: 10px 14px; border-radius: 10px;
    transition: background .15s;
    justify-content: center;
    pointer-events: none;  /* disables click */
    cursor: default;
}
.prog-step:hover { background: rgba(216,119,36,.06); }
.prog-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e5e7eb; color: #6b7280;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .2s;
}
.prog-label { font-size: 13px; font-weight: 600; color: #9ca3af; transition: color .2s; }
.prog-divider { flex: none; width: 36px; height: 2px; background: #e5e7eb; border-radius: 1px; transition: background .3s; }
.prog-step.active .prog-num  { background: #d87724; color: #fff; box-shadow: 0 0 0 4px rgba(216,119,36,.18); }
.prog-step.active .prog-label { color: #111827; }
.prog-step.done   .prog-num  { background: #16a34a; color: #fff; }
.prog-step.done   .prog-label { color: #6b7280; }
.prog-divider.done { background: #16a34a; }

/* ────────────────────────────────────────────────────────────
   FORM CARD
   ──────────────────────────────────────────────────────────── */
.form-card {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(17,24,39,.07);
    width: 100%;
    max-width: 520px;
}
.card-body { padding: 30px 30px 28px; }

/* ────────────────────────────────────────────────────────────
   SECTION HEADING
   ──────────────────────────────────────────────────────────── */
.sec-head { margin-bottom: 22px; }
.sec-head h2 { font-size: 18px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; letter-spacing: -.02em; }
.sec-head h2 i { color: #d87724; font-size: 16px; }
.sec-head p { font-size: 13.5px; color: #6b7280; }

/* ────────────────────────────────────────────────────────────
   INPUT FIELDS
   ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6b7280; margin-bottom: 7px; }
.field label i { font-size: 11px; }
.input-wrap { position: relative; }
.input-wrap .inp-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 15px; pointer-events: none; }
input[type=text] {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 11px;
    padding: 13px 16px; font-size: 14.5px; font-family: inherit;
    color: #111827; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
input[type=text]:focus { outline: none; border-color: #d87724; box-shadow: 0 0 0 3px rgba(216,119,36,.12); }
input::placeholder { color: #94a3b8; }
/* Must come after input[type=text] to override its padding shorthand */
.input-wrap input { padding-left: 42px; }

/* ────────────────────────────────────────────────────────────
   MEMBER CARD (Step 2)
   ──────────────────────────────────────────────────────────── */
.member-card {
    border: 1px solid #f1e6c4;
    background: linear-gradient(140deg, #fffef9 0%, #fff8ee 100%);
    border-radius: 14px; padding: 18px 20px; margin-bottom: 20px;
}
.mc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.mc-name-block .eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #9ca3af; margin-bottom: 4px; }
.mc-name-block h3 { font-size: 20px; font-weight: 700; color: #111827; letter-spacing: -.02em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: #fff0c8; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; color: #92400e; display: inline-flex; align-items: center; gap: 5px; }
.chip i { font-size: 10px; }
.mc-divider { height: 1px; background: #f1e6c4; margin-bottom: 14px; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mc-field .mf-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #9ca3af; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.mc-field .mf-val { font-size: 14px; font-weight: 600; color: #111827; }
.mc-amount-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1e6c4; padding-top: 14px; margin-top: 2px; }
.mc-amount-row .amt-lbl { font-size: 14px; color: #6b7280; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mc-amount-row .amt-lbl i { color: #d97706; }
.mc-amount-row .amt-val { font-size: 24px; font-weight: 800; color: #b7791f; letter-spacing: -.03em; }

/* ────────────────────────────────────────────────────────────
   INVOICE CARD (Step 3)
   ──────────────────────────────────────────────────────────── */
.invoice-card { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.inv-header { background: #faf7f0; border-bottom: 1px solid #e9e4d8; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; }
.inv-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6b7280; display: flex; align-items: center; gap: 7px; }
.inv-badge { background: #fff0c8; color: #92400e; border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.inv-rows { padding: 4px 0; }
.inv-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; border-bottom: 1px solid #f5f5f5; }
.inv-row:last-child { border-bottom: none; }
.inv-row .ir-lbl { font-size: 13.5px; color: #6b7280; display: flex; align-items: center; gap: 9px; }
.inv-row .ir-lbl i { font-size: 12px; color: #9ca3af; width: 14px; text-align: center; }
.inv-row .ir-val { font-size: 13.5px; font-weight: 600; color: #111827; }
.inv-total { background: #faf7f0; border-top: 1.5px solid #e9e4d8; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.inv-total .it-lbl { font-size: 14px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 8px; }
.inv-total .it-lbl i { color: #9ca3af; }
.inv-total .it-val { font-size: 22px; font-weight: 800; color: #b7791f; letter-spacing: -.02em; }

/* ────────────────────────────────────────────────────────────
   TRUST BADGES
   ──────────────────────────────────────────────────────────── */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tbadge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 600; color: #374151; background: #fff; }
.tbadge i { color: #16a34a; font-size: 11px; }

/* ────────────────────────────────────────────────────────────
   BUTTONS & ACTIONS
   ──────────────────────────────────────────────────────────── */
.actions { display: flex; gap: 10px; }
.actions .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 14.5px; font-weight: 600;
    padding: 13px 20px; border-radius: 11px; border: none; cursor: pointer;
    transition: all .18s;
}
.btn-primary { background: #d87724; color: #fff; flex: 1; justify-content: center; box-shadow: 0 2px 8px rgba(216,119,36,.3); }
.btn-primary:hover { background: #c4681a; box-shadow: 0 4px 14px rgba(216,119,36,.4); }
.btn-secondary { background: #f3f4f6; color: #374151; border: 1.5px solid #e5e7eb; }
.btn-secondary:hover { background: #e9eaed; }

/* ────────────────────────────────────────────────────────────
   ERROR BOX
   ──────────────────────────────────────────────────────────── */
.error-box {
    display: none; align-items: center; gap: 9px;
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; padding: 11px 14px; margin-top: 12px;
    font-size: 13px; font-weight: 600; color: #dc2626;
}
.error-box.show { display: flex; }
.error-box i { font-size: 14px; flex-shrink: 0; }
.hidden { display: none !important; }

/* ────────────────────────────────────────────────────────────
   CONFIRMATION PAGE CARD
   ──────────────────────────────────────────────────────────── */
.card {
    width: min(480px, 100%);
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(17,24,39,.08);
    overflow: hidden;
}
.success-banner {
    background: linear-gradient(135deg, #16a34a, #15803d);
    padding: 28px 24px; text-align: center; color: #fff;
}
.success-icon {
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 30px;
}
.success-banner h1 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.success-banner p  { margin: 0; font-size: 13px; opacity: .88; }

.receipt { padding: 20px 22px; }
.receipt-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.receipt-title i { font-size: 11px; }
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; }
.receipt-row:last-of-type { border-bottom: none; }
.receipt-row .r-label { color: #6b7280; display: flex; align-items: center; gap: 8px; }
.receipt-row .r-label i { font-size: 12px; color: #9ca3af; width: 14px; text-align: center; }
.receipt-row .r-value { font-weight: 600; color: #111827; }
.receipt-row.total-row { background: #f9f7f2; border-radius: 8px; padding: 10px 12px; margin-top: 4px; border: 1px solid #e9e4d8; }
.receipt-row.total-row .r-label { font-weight: 700; color: #374151; }
.receipt-row.total-row .r-value { font-size: 17px; font-weight: 800; color: #b7791f; letter-spacing: -.01em; }

.payment-id-block { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 9px; padding: 10px 14px; margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.payment-id-block i { color: #9ca3af; font-size: 14px; }
.payment-id-block .pid-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; margin-bottom: 2px; }
.payment-id-block .pid-value { font-size: 13px; font-weight: 700; color: #374151; font-family: monospace; }

.confirm-actions { display: flex; gap: 10px; padding: 0 22px 22px; flex-wrap: wrap; }
.confirm-actions .btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 14px; font-weight: 600; flex: 1; justify-content: center; padding: 12px; border-radius: 11px; border: none; cursor: pointer; transition: all .18s; }

/* ────────────────────────────────────────────────────────────
   LEGAL / DOC PAGES
   ──────────────────────────────────────────────────────────── */
.doc-hero { margin-bottom: 32px; }
.doc-badge { display: inline-flex; align-items: center; gap: 7px; background: #fff0c8; color: #92400e; border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.doc-hero h1 { font-size: 30px; font-weight: 800; color: #111827; letter-spacing: -.03em; margin-bottom: 8px; }
.doc-hero .meta { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc-hero .meta span { display: flex; align-items: center; gap: 5px; }

.doc-card { background: #fff; border: 1px solid #e7e9ee; border-radius: 16px; box-shadow: 0 2px 16px rgba(17,24,39,.06); padding: 36px 40px; }

.doc-section { margin-bottom: 28px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section h2 { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.doc-section h2 i { color: #d87724; font-size: 14px; width: 16px; text-align: center; }
.doc-section h2 .sec-num { width: 24px; height: 24px; border-radius: 50%; background: #fff0c8; color: #92400e; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-section h3 { font-size: 13.5px; font-weight: 700; color: #374151; margin: 14px 0 6px; }
.doc-section h3.uppercase { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.doc-section p { font-size: 13.5px; color: #4b5563; line-height: 1.75; margin-bottom: 10px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.doc-section ul li { font-size: 13.5px; color: #4b5563; line-height: 1.7; display: flex; align-items: flex-start; gap: 8px; }
.doc-section ul li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #d87724; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.doc-section a { color: #d87724; font-weight: 600; text-decoration: none; }
.doc-section a:hover { color: #b96319; text-decoration: underline; }

.doc-intro { background: #fef9f0; border: 1px solid #f1e6c4; border-radius: 10px; padding: 14px 18px; font-size: 13px; color: #7c5a14; line-height: 1.7; margin-bottom: 24px; }

.note-box { background: #fef9f0; border: 1px solid #f6d6a2; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #7c5a14; display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.note-box i { font-size: 14px; color: #d97706; margin-top: 1px; flex-shrink: 0; }

.warning-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #991b1b; display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.warning-box i { font-size: 14px; color: #dc2626; margin-top: 1px; flex-shrink: 0; }

.info-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #166534; display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
.info-box i { font-size: 14px; color: #16a34a; margin-top: 1px; flex-shrink: 0; }

.policy-highlights { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.policy-item { display: flex; align-items: flex-start; gap: 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 14px 16px; }
.policy-item .pi-icon { width: 36px; height: 36px; border-radius: 9px; background: #fee2e2; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #dc2626; flex-shrink: 0; }
.policy-item .pi-text strong { font-size: 13.5px; font-weight: 700; color: #111827; display: block; margin-bottom: 3px; }
.policy-item .pi-text span { font-size: 13px; color: #6b7280; line-height: 1.6; }

.contact-box { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.contact-item .ci-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #9ca3af; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.contact-item .ci-value { font-size: 13.5px; font-weight: 600; color: #111827; line-height: 1.6; }
.contact-item .ci-value a { color: #d87724; }

/* ────────────────────────────────────────────────────────────
   FOOTER — Full (renewal.html)
   ──────────────────────────────────────────────────────────── */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 28px 32px 20px;
}
.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: start;
}
.footer-col h4 {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: #9ca3af; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.footer-col h4 i { font-size: 10px; }
.footer-col address { font-size: 13px; color: #4b5563; line-height: 1.8; font-style: normal; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-col ul li a {
    font-size: 13px; color: #4b5563; text-decoration: none;
    font-weight: 500; display: flex; align-items: center; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid #f5f5f5; transition: color .15s;
}
.footer-col ul li:last-child a { border-bottom: none; }
.footer-col ul li a i { font-size: 11px; color: #d87724; width: 14px; text-align: center; }
.footer-col ul li a:hover { color: #d87724; }
.footer-bottom {
    max-width: 760px; margin: 18px auto 0;
    padding-top: 14px; border-top: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    flex-wrap: wrap; font-size: 12px; color: #9ca3af;
}
.footer-bottom a { color: #d87724; text-decoration: none; font-weight: 600; }

/* FOOTER — Simple (legal pages) */
.site-footer-simple {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 20px 32px;
    font-size: 12px; color: #9ca3af;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
.site-footer-simple a { color: #d87724; text-decoration: none; font-weight: 600; }

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .navbar { padding: 0 16px; }
    .nav-meta { display: none; }
    .page-body { padding: 22px 14px 36px; }
    .page-title h1 { font-size: 21px; }
    .form-card { border-radius: 14px; }
    .card-body { padding: 20px 18px; }
    .mc-grid { grid-template-columns: 1fr; }
    .actions { flex-direction: column; }
    .actions .btn { width: 100%; }
    .site-footer { padding: 20px 16px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
    .progress-bar { gap: 0; }
    .prog-step { padding: 8px 10px; }
    .prog-label { display: none; }
    .prog-divider { width: 20px; }
    .site-footer-simple { padding: 16px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .doc-page-body { padding: 20px 14px 40px; }
    .doc-card { padding: 22px 18px; }
    .doc-hero h1 { font-size: 24px; }
    .contact-box { grid-template-columns: 1fr; }
}
