/* ============================================
   DANGOTE REFINERY PUBLIC OFFER - JAIZ BANK
   Stylesheet
   ============================================ */

:root {
    --green: #012446;
    --green-mid: #053b72;
    --green-lite: #0157ad;
    --gold: #c9952a;
    --gold-lite: #e8b84b;
    --cream: #faf7f2;
    --cream-dark: #f0ebe0;
    --ink: #111208;
    --ink-mid: #2d2d25;
    --ink-soft: #555546;
    --border: #d6cfbe;
    --error: #b52b2b;
    --success: #0d7a47;
    --radius: 8px;
    --shadow: 0 4px 24px rgba(10, 92, 54, 0.1);
    --font-head: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    min-width: 280px;
    max-width: 440px;
    padding: 13px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease, slideOut 0.3s ease 4.5s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--gold); }
.toast-info { background: var(--green-mid); }
.toast-icon { font-size: 16px; }
.toast-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    background: none;
    border: none;
    color: #fff;
    padding: 0 6px;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}
.spinner-overlay.active { display: flex; }
.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--gold-lite);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo { height: 36px; width: auto; }
.header-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.header-subtitle { font-size: 9px; opacity: 0.7; letter-spacing: 1.5px; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 16px; }
.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 149, 42, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-lite);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--green), #012b55 60%, #012950);
    padding: 56px 32px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(201, 149, 42, 0.12), transparent 65%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-logo { height: 44px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.hero-tag {
    display: inline-block;
    border: 1px solid rgba(201, 149, 42, 0.5);
    color: var(--gold-lite);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-title {
    font-family: var(--font-head);
    color: #fff;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}
.hero-title span { color: var(--gold-lite); }
.hero-subtitle { color: rgba(255, 255, 255, 0.6); font-size: 15px; margin-bottom: 24px; }
.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 22px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}
.stat-pill strong { display: block; font-size: 20px; font-family: var(--font-head); color: var(--gold-lite); }
.hero-dates { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.date-badge {
    background: rgba(201, 149, 42, 0.12);
    border: 1px solid rgba(201, 149, 42, 0.25);
    color: var(--gold-lite);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(201, 149, 42, 0.3);
}
.btn-cta:hover { background: var(--gold-lite); transform: translateY(-2px); }
.btn-cta:disabled { background: var(--green-mid); cursor: default; transform: none; opacity: 0.7; }

/* ============================================
   FORM CONTAINER
   ============================================ */
.form-container { padding: 40px 20px 80px; }
.form-wrapper { max-width: 840px; margin: 0 auto; }

/* ============================================
   STEPPER
   ============================================ */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.step { display: flex; align-items: center; gap: 8px; }
.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft);
    transition: all 0.3s;
}
.step.active .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.done .step-dot { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.step-label { font-size: 11px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.step.active .step-label { color: var(--green); font-weight: 600; }
.step-line { width: 40px; height: 2px; background: var(--border); margin: 0 6px; }
.step-line.done { background: var(--green-mid); }

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    animation: fadeUp 0.3s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card-header { margin-bottom: 24px; }
.card-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
}
.card-desc { font-size: 13px; color: var(--ink-soft); }

.section { margin-bottom: 4px; }
.section-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cream-dark);
}
.section-title i { margin-right: 6px; color: var(--gold); }

.divider { height: 1px; background: var(--cream-dark); margin: 22px 0; }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 768px) {
    .form-row.cols-2, .form-row.cols-3, .form-row.cols-4 { grid-template-columns: 1fr; }
    .card { padding: 24px 20px; }
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.span-2 { grid-column: span 2; }
@media (max-width: 768px) { .form-group.span-2 { grid-column: span 1; } }
.form-group label { font-size: 11.5px; font-weight: 600; color: var(--ink-mid); }
.form-group label .req { color: var(--error); margin-left: 2px; }
.form-group label .opt { color: var(--ink-soft); font-weight: 400; font-size: 10.5px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: all 0.2s;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(13, 122, 71, 0.07);
}
.form-group input.error,
.form-group select.error { border-color: var(--error); }
.form-group input.auto-filled {
    background: var(--cream);
    font-weight: 600;
    color: var(--green);
    border-color: var(--green-mid);
}

/* Editable fields styling */
.editable-field {
    background-color: #fffdf0 !important;
    border: 2px dashed var(--gold) !important;
    cursor: text !important;
}

.editable-field:focus {
    border-color: var(--green-mid) !important;
    box-shadow: 0 0 0 3px rgba(13, 122, 71, 0.1) !important;
}

.auto-filled {
    background-color: #e8f5e9;
}

.notice-info i.fa-edit {
    color: var(--gold);
}

/* ============================================
   VERIFICATION
   ============================================ */
.verify-box {
    background: var(--cream-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.verify-title { font-weight: 600; margin-bottom: 8px; }
.verify-row { display: flex; gap: 10px; max-width: 400px; margin: 10px auto; align-items: flex-end; }
.verify-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; }
.verify-result { padding: 14px; border-radius: 8px; margin-top: 10px; display: none; font-size: 13px; }
.verify-result.success { display: block; background: rgba(13, 122, 71, 0.07); border: 2px solid var(--success); }
.verify-result.error { display: block; background: rgba(181, 43, 43, 0.07); border: 2px solid var(--error); }

/* ============================================
   CALCULATOR
   ============================================ */
.calc-box {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.calc-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.calc-result { margin-top: 14px; padding: 14px 18px; background: #fff; border: 1.5px solid var(--green); border-radius: 8px; display: none; }
.calc-result.show { display: block; }
.calc-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.8px; }
.calc-amount { font-family: var(--font-head); font-size: 28px; color: var(--green); font-weight: 700; margin-top: 2px; }
.calc-note { font-size: 10.5px; color: var(--ink-soft); margin-top: 4px; }

/* ============================================
   REVIEW TABLE
   ============================================ */
.review-table { width: 100%; border-collapse: collapse; }
.review-table tr { border-bottom: 1px solid var(--cream-dark); }
.review-table tr:last-child { border: none; }
.review-table td { padding: 9px 4px; font-size: 13px; }
.review-table td:first-child { color: var(--ink-soft); width: 42%; font-size: 12px; }
.review-table td:last-child { color: var(--ink); font-weight: 500; }
.total-amount { color: var(--green) !important; font-weight: 700 !important; font-size: 16px !important; }

/* ============================================
   PAYSTACK
   ============================================ */
.paystack-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    background: #00c48c;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 196, 140, 0.3);
}
.paystack-btn:hover { background: #00a878; transform: translateY(-2px); }
.paystack-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.amount-label { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.amount-display { font-family: var(--font-head); font-size: 42px; color: var(--green); font-weight: 700; }
.amount-unit { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.secure-note { margin-top: 8px; font-size: 11px; color: var(--ink-soft); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); }
.btn-secondary { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-secondary:hover { background: rgba(10, 92, 54, 0.04); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-lite); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { padding: 14px 34px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================
   NOTICES
   ============================================ */
.notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.notice-info { background: rgba(13, 122, 71, 0.06); border-left: 3px solid var(--green); }
.notice-warn { background: rgba(201, 149, 42, 0.08); border-left: 3px solid var(--gold); }
.notice-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ============================================
   DECLARATIONS & RADIO
   ============================================ */
.decl-list { display: flex; flex-direction: column; gap: 10px; }
.decl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.decl-item:hover { border-color: var(--green-mid); background: rgba(10, 92, 54, 0.02); }
.decl-item.checked { border-color: var(--green); background: rgba(10, 92, 54, 0.04); }
.decl-cb {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #fff;
    transition: all 0.2s;
    margin-top: 1px;
}
.decl-item.checked .decl-cb { background: var(--green); border-color: var(--green); }
.decl-item.checked .decl-cb i { color: #fff; }
.decl-text { font-size: 13px; color: var(--ink-mid); }

.radio-group { display: flex; gap: 12px; margin-bottom: 8px; }
.radio-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.radio-card:hover { border-color: var(--green-mid); background: rgba(10, 92, 54, 0.02); }
.radio-card.selected { border-color: var(--green); background: rgba(10, 92, 54, 0.04); }
.radio-card input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; }

.reject-msg {
    padding: 10px 14px;
    background: rgba(181, 43, 43, 0.08);
    border-left: 3px solid var(--error);
    border-radius: 6px;
    font-size: 13px;
    color: var(--error);
}
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.checkbox-label input[type=checkbox] { width: 18px; height: 18px; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.modal-large { max-width: 560px !important; }
.modal-icon { font-size: 52px; margin-bottom: 14px; color: var(--success); }
.modal-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.modal-body { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; }
.modal-ref {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--cream);
    padding: 10px 18px;
    border-radius: 6px;
    color: var(--green);
    margin-bottom: 20px;
    display: inline-block;
}

/* ============================================
   PRINT RECEIPT STYLES
   ============================================ */
#printReceipt {
    display: none;
}

.receipt {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: var(--font-body);
}
.receipt-header {
    background: linear-gradient(135deg, #0a5c36, #0d7a47);
    color: #fff;
    text-align: center;
    padding: 32px 24px;
}
.receipt-logo {
    max-height: 60px;
    margin-bottom: 16px;
}
.receipt-header h2 { font-size: 20px; margin-bottom: 8px; }
.receipt-header h3 { font-size: 16px; opacity: 0.9; margin-bottom: 12px; }
.receipt-date { font-size: 12px; opacity: 0.8; }
.receipt-body { padding: 32px; }
.receipt-section { margin-bottom: 28px; }
.receipt-section h4 {
    color: #0a5c36;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c9952a;
    display: inline-block;
}
.receipt-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.receipt-table tr { border-bottom: 1px solid #eee; }
.receipt-table td { padding: 8px 0; font-size: 13px; }
.receipt-table td:first-child { font-weight: 600; color: #555; width: 40%; }
.receipt-table td:last-child { color: #222; }
.receipt-footer {
    background: #f9f9f9;
    padding: 24px;
    text-align: center;
    border-top: 1px solid #eee;
}
.receipt-footer p { margin: 4px 0; font-size: 12px; color: #666; }
.receipt-note { font-size: 10px; color: #999; }

@media print {
    body { background: #fff; padding: 0; }
    .receipt { box-shadow: none; margin: 0; }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.fade-in { animation: fadeUp 0.3s ease; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--ink-soft); }
.text-green { color: var(--green); }
.icon-gold { color: var(--gold); }
.fw-bold { font-weight: 700; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .site-header { padding: 0 16px; }
    .form-container { padding: 24px 12px 60px; }
    .hero { padding: 36px 16px 44px; }
    .stepper { gap: 2px; }
    .step-label { display: none; }
    .step-line { width: 20px; }
    .header-logo { height: 28px; }
}

/* ============================================
   DIVIDEND ACCOUNT VERIFICATION STYLES
   ============================================ */
#verifiedDividendInfo {
    background: #e8f5e9;
    border: 2px solid var(--success);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    display: none;
}

#verifiedDividendInfo .verified-check {
    color: var(--success);
    font-size: 20px;
}

#verifiedDividendInfo .account-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
}

#verifiedDividendInfo .account-details {
    font-size: 12px;
    color: var(--ink-soft);
}

#dividendAccountResult {
    margin-top: 8px;
}

#dividendAccountResult.success {
    display: block;
    background: rgba(13, 122, 71, 0.07);
    border: 2px solid var(--success);
}

#dividendAccountResult.error {
    display: block;
    background: rgba(181, 43, 43, 0.07);
    border: 2px solid var(--error);
}

.verify-box.dividend-verify {
    background: #f0f7ff;
    border-color: #4a90d9;
}

.verify-box.dividend-verify .verify-title {
    color: #2c5f8a;
}

.verify-box.dividend-verify .verify-title i {
    color: #4a90d9;
}

#dividendBankCode {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

#dividendBankCode:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(13, 122, 71, 0.1);
}
/* Dividend Account Verification */
.verify-box {
    background: var(--cream-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.verify-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.verify-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

#verifiedDividendInfo {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Verified account info highlight */
#verifiedAccountName {
    color: var(--green);
    letter-spacing: 0.5px;
}

/* Dividend bank select styling */
#dividendBankCode {
    cursor: pointer;
}

#dividendBankCode:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(13, 122, 71, 0.07);
}

/* Verify button pulse effect */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 144, 217, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 144, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 144, 217, 0); }
}

.verify-box .btn-primary {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #dividendBankCode {
        min-width: 100%;
    }
    
    .verify-box .btn-primary {
        width: 100%;
        justify-content: center;
    }
}




/* FAQ */

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 60px 20px 80px;
    background: #f9fafb;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-heading {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #0a5c36;
    text-align: center;
    margin-bottom: 8px;
}

.faq-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #0a5c36;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
}

.faq-question i {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
    min-width: 16px;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-item.open .faq-question {
    color: #0a5c36;
    background: #f0fdf4;
    border-bottom: orange 1px solid;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 16px 60px;
    }
    
    .faq-heading {
        font-size: 22px;
    }
    
    .faq-question {
        font-size: 13px;
        padding: 14px 16px;
    }
    
    .faq-answer p {
        font-size: 12px;
    }
}


/* ============================================
   FLOW STATUS TRACKER
   ============================================ */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 42px;
    bottom: -6px;
    width: 2px;
    background: #d1d5db;
    z-index: 0;
}

.flow-step.completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.flow-step.completed::after {
    background: #86efac;
}

.flow-step.upcoming {
    background: #f9fafb;
    border-color: #e5e7eb;
    opacity: 0.75;
}

.flow-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 1;
    background: #d1d5db;
    color: #6b7280;
}

.flow-step.completed .flow-icon {
    background: #10b981;
    color: #fff;
}

.flow-step.upcoming .flow-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.flow-content {
    flex: 1;
}

.flow-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.flow-step.completed .flow-title {
    color: #065f46;
}

.flow-step.upcoming .flow-title {
    color: #6b7280;
}

.flow-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.flow-step.completed .flow-desc {
    color: #047857;
}

.flow-note i {
    margin-right: 6px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .flow-step {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .flow-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 11px;
    }
    
    .flow-title {
        font-size: 12px;
    }
    
    .flow-desc {
        font-size: 10px;
    }
}



/* Modal scroll fix */
.modal-large {
    max-height: 85vh;
    overflow-y: auto;
}

/* Flow status tracker */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 36px;
    bottom: -4px;
    width: 2px;
    background: #d1d5db;
    z-index: 0;
}

.flow-step.completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.flow-step.completed::after {
    background: #86efac;
}

.flow-step.upcoming {
    background: #f9fafb;
    border-color: #e5e7eb;
    opacity: 0.8;
}

.flow-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
    background: #d1d5db;
    color: #6b7280;
}

.flow-step.completed .flow-icon {
    background: #10b981;
    color: #fff;
}

.flow-step.upcoming .flow-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.flow-content {
    flex: 1;
}

.flow-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.flow-step.completed .flow-title {
    color: #065f46;
}

.flow-step.upcoming .flow-title {
    color: #6b7280;
}

.flow-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.flow-step.completed .flow-desc {
    color: #047857;
}

@media (max-width: 600px) {
    .modal-large {
        max-width: 95% !important;
        padding: 18px 16px !important;
        max-height: 90vh;
    }
    
    .flow-step {
        padding: 7px 10px;
        gap: 10px;
    }
    
    .flow-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 10px;
    }
    
    .flow-title {
        font-size: 11px;
    }
    
    .flow-desc {
        font-size: 10px;
    }
    
    .flow-step:not(:last-child)::after {
        left: 17px;
        top: 32px;
    }
}



/* ============================================
   EDITABLE FIELDS - More Obvious
   ============================================ */
.editable-field {
    background-color: #fffdf0 !important;
    border: 2px dashed var(--gold) !important;
    cursor: text !important;
}

.editable-field:focus {
    background-color: #fff !important;
    border: 2px solid var(--green-mid) !important;
    box-shadow: 0 0 0 4px rgba(10, 92, 54, 0.08) !important;
}

.editable-field:hover {
    border-color: var(--gold-lite) !important;
    background-color: #fffbeb !important;
}

/* Add a small edit indicator */
.editable-field-wrapper {
    position: relative;
}

.editable-field-wrapper::after {
    content: '✎';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 13px;
    pointer-events: none;
    opacity: 0.6;
}

/* Auto-filled fields (read-only) */
.auto-filled {
    background-color: #e8f5e9 !important;
    border: 1.5px solid #a5d6a7 !important;
    color: #2e7d32 !important;
}

/* Read-only indicator */
.auto-filled-wrapper {
    position: relative;
}

.auto-filled-wrapper::after {
    content: '🔒';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #4caf50;
    font-size: 12px;
    pointer-events: none;
}

/* Optional field indicator */
.opt {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 10px !important;
}

.opt::before {
    content: '(optional) ';
}

/* Empty auto-filled fields - white background */
.auto-filled {
    background-color: #e8f5e9 !important;
    border: 1.5px solid #a5d6a7 !important;
    color: #2e7d32 !important;
}


/* Required field indicator when empty */
.auto-filled-wrapper input.auto-filled[value=""] + .field-hint,
.auto-filled-wrapper input.auto-filled:placeholder-shown + .field-hint {
    display: block;
}

.field-hint {
    display: none;
    font-size: 10px;
    color: #ef4444;
    margin-top: 2px;
}

.field-hint i {
    margin-right: 3px;
}

/* Hide number input spinners */
#sharesQty::-webkit-inner-spin-button,
#sharesQty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#sharesQty {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Optional field label */
.opt {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 10px !important;
}
.opt::before {
    content: '(optional) ';
}