/**
 * Hindustan Finserve Limited — Design Theme
 */

:root {
    --bf-navy-dark: #0a192f;
    --bf-navy: #0b2545;
    --bf-navy-light: #134074;
    --bf-emerald: #00a86b;
    --bf-emerald-dark: #008f5a;
    --bf-emerald-glow: rgba(0, 168, 107, 0.15);
    --bf-gold: #ffb703;
    --bf-gold-dark: #fb8500;
    --bf-slate-bg: #f5f8fc;
    --bf-card-border: #e2e8f0;
    --bf-text-primary: #1e293b;
    --bf-text-muted: #64748b;
    --bf-radius: 12px;
}

body {
    background-color: var(--bf-slate-bg);
    color: var(--bf-text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Demo Top Notice Banner */
.demo-top-bar {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    font-size: 13px;
    padding: 6px 16px;
    border-bottom: 2px solid var(--bf-gold);
}
.demo-top-bar a {
    color: #ffd166;
    text-decoration: underline;
    font-weight: 600;
}

/* Main Navigation */
.navbar-bf {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(11, 37, 69, 0.08);
    padding: 12px 0;
}
.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--bf-navy) 0%, var(--bf-emerald) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}
.brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--bf-navy);
    letter-spacing: -0.5px;
}
.brand-text span {
    color: var(--bf-emerald);
}

/* Primary Button Styling */
.btn-emerald {
    background-color: var(--bf-emerald);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    transition: all 0.2s ease;
}
.btn-emerald:hover {
    background-color: var(--bf-emerald-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--bf-emerald-glow);
}

.btn-navy {
    background-color: var(--bf-navy);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
}
.btn-navy:hover {
    background-color: var(--bf-navy-light);
    color: #ffffff;
}

/* Card Styling */
.bf-card {
    background: #ffffff;
    border: 1px solid var(--bf-card-border);
    border-radius: var(--bf-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bf-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.bf-card-header {
    background: #fafcff;
    border-bottom: 1px solid var(--bf-card-border);
    padding: 16px 20px;
    border-top-left-radius: var(--bf-radius);
    border-top-right-radius: var(--bf-radius);
}

/* Step Stepper Indicator */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
}
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    background: transparent;
    flex: 1;
}
.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    transition: all 0.3s;
}
.step-item.active .step-circle {
    background: var(--bf-navy);
    border-color: var(--bf-navy);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(11, 37, 69, 0.15);
}
.step-item.completed .step-circle {
    background: var(--bf-emerald);
    border-color: var(--bf-emerald);
    color: #ffffff;
}
.step-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--bf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.step-item.active .step-title {
    color: var(--bf-navy);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    color: #ffffff;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    color: #ffd166;
}

/* Metric / Funnel Badges */
.metric-box {
    padding: 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.metric-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--bf-navy);
}
.metric-lbl {
    font-size: 12px;
    color: var(--bf-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Indian Rupee formatting */
.currency-inr::before {
    content: "₹";
    margin-right: 2px;
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
}
.form-control:focus, .form-select:focus {
    border-color: var(--bf-navy);
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.12);
}

/* Footer */
footer {
    margin-top: auto;
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0 20px;
    font-size: 13px;
}
footer a {
    color: #cbd5e1;
    text-decoration: none;
}
footer a:hover {
    color: #ffffff;
}

/* Logo image */
.brand-logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer-logo-chip {
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    display: inline-flex;
}
.footer-logo-chip .brand-logo-img {
    height: 40px;
}
@media (max-width: 576px) {
    .brand-logo-img { height: 38px; }
    .footer-logo-chip .brand-logo-img { height: 34px; }
}

/* Legal / information pages */
.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bf-navy);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}
.legal-page p, .legal-page li {
    color: #334155;
    line-height: 1.7;
}
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin-bottom: 0.35rem; }
