/* ════════════════════════════════════════════════════════════════
   BFS User Dashboard — Complete Stylesheet
   ════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────── */
.bfs-dashboard-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #1e293b;
    box-sizing: border-box;
}
.bfs-dashboard-wrap *, .bfs-dashboard-wrap *::before, .bfs-dashboard-wrap *::after {
    box-sizing: border-box;
}

/* ── Login gate ──────────────────────────────────────────────────── */
.bfs-login-gate {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(10,45,94,.1);
    border: 1px solid #e2e8f0;
}
.bfs-login-gate-icon { font-size: 52px; display: block; margin-bottom: 16px; }
.bfs-login-gate h2   { color: #0a2d5e; font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.bfs-login-gate p    { color: #64748b; font-size: 15px; margin: 0 0 24px; }

/* ── Header ──────────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-header {
    background: linear-gradient(135deg, #0a2d5e 0%, #1a4a8a 100%);
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bfs-dashboard-wrap .bfs-dash-logo {
    max-height: 52px;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}
.bfs-dashboard-wrap .bfs-dash-welcome { flex: 1; min-width: 160px; }
.bfs-dashboard-wrap .bfs-dash-welcome h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}
.bfs-dashboard-wrap .bfs-dash-welcome p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}
.bfs-dashboard-wrap .bfs-dash-logout {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.5);
    color: rgba(255,255,255,.85);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}
.bfs-dashboard-wrap .bfs-dash-logout:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* ── Stats row ───────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.bfs-dashboard-wrap .bfs-dash-stat {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 1px 6px rgba(10,45,94,.05);
}
.bfs-dashboard-wrap .bfs-dash-stat span {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #0a2d5e;
    line-height: 1.1;
    margin-bottom: 4px;
}
.bfs-dashboard-wrap .bfs-dash-stat small { color: #64748b; font-size: 12px; font-weight: 500; }
.bfs-dashboard-wrap .bfs-stat-green      { border-color: #86efac; }
.bfs-dashboard-wrap .bfs-stat-green span { color: #16a34a; }
.bfs-dashboard-wrap .bfs-stat-blue       { border-color: #93c5fd; }
.bfs-dashboard-wrap .bfs-stat-blue span  { color: #1d4ed8; }

/* ── Empty state ─────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-empty {
    background: #fff;
    border-radius: 14px;
    padding: 60px 32px;
    text-align: center;
    border: 1.5px dashed #cbd5e1;
}
.bfs-dashboard-wrap .bfs-dash-empty-icon { font-size: 52px; display: block; margin-bottom: 16px; }
.bfs-dashboard-wrap .bfs-dash-empty h3   { color: #0a2d5e; font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.bfs-dashboard-wrap .bfs-dash-empty p    { color: #64748b; font-size: 14px; margin: 0 0 24px; }

/* ── CTA Buttons ─────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-cta-btn,
.bfs-login-gate .bfs-dash-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0a2d5e, #1a4a8a);
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(10,45,94,.25);
    transition: all .2s;
    line-height: 1.3;
}
.bfs-dashboard-wrap .bfs-dash-cta-btn:hover {
    box-shadow: 0 6px 20px rgba(10,45,94,.35);
    transform: translateY(-1px);
    color: #fff !important;
}
.bfs-dashboard-wrap .bfs-cta-gold {
    background: linear-gradient(135deg, #b8892a, #c9a84c) !important;
    box-shadow: 0 4px 14px rgba(201,168,76,.3) !important;
}
.bfs-login-gate .bfs-dash-cta-btn {
    padding: 14px 36px;
    font-size: 15px;
}

/* ── Booking cards ───────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-booking-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 2px 14px rgba(10,45,94,.06);
}
.bfs-dashboard-wrap .bfs-card-paid    { border-color: #86efac; }
.bfs-dashboard-wrap .bfs-card-pending { border-color: #fde68a; }

.bfs-dashboard-wrap .bfs-dash-booking-header {
    background: #f8fafc;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 10px;
}
.bfs-dashboard-wrap .bfs-dash-booking-id   { font-weight: 700; color: #0a2d5e; font-size: 15px; display: block; }
.bfs-dashboard-wrap .bfs-dash-booking-date { font-size: 12px; color: #94a3b8; display: block; margin-top: 2px; }
.bfs-dashboard-wrap .bfs-dash-badges       { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Badges ──────────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}
.bfs-dashboard-wrap .bfs-badge-paid    { background: #dcfce7; color: #15803d; }
.bfs-dashboard-wrap .bfs-badge-failed  { background: #fee2e2; color: #dc2626; }
.bfs-dashboard-wrap .bfs-badge-pending { background: #fef9c3; color: #92400e; }
.bfs-dashboard-wrap .bfs-badge-done    { background: #dbeafe; color: #1d4ed8; }
.bfs-dashboard-wrap .bfs-badge-notdone { background: #f1f5f9; color: #64748b; }

/* ── Card body ───────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-booking-body { padding: 20px; }

/* ── Detail grid ─────────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.bfs-dashboard-wrap .bfs-dash-detail {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #f1f5f9;
}
.bfs-dashboard-wrap .bfs-dash-detail span {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}
.bfs-dashboard-wrap .bfs-dash-detail strong { font-size: 13.5px; color: #1e293b; font-weight: 600; }
.bfs-dashboard-wrap .bfs-dash-detail strong a { color: #0a2d5e; text-decoration: underline; }
.bfs-dashboard-wrap .bfs-gold { color: #b8892a !important; }

/* ── Progress steps ──────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-steps {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.bfs-dashboard-wrap .bfs-dash-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    text-align: center;
    position: relative;
}
.bfs-dashboard-wrap .bfs-dash-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 55%;
    right: -55%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.bfs-dashboard-wrap .bfs-dash-step.done::after { background: #86efac; }
.bfs-dashboard-wrap .bfs-dash-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    z-index: 1;
    position: relative;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.bfs-dashboard-wrap .bfs-dash-step.done .bfs-dash-step-dot { background: #dcfce7; color: #16a34a; }
.bfs-dashboard-wrap .bfs-dash-step > span:last-child { font-size: 10.5px; color: #94a3b8; line-height: 1.3; }
.bfs-dashboard-wrap .bfs-dash-step.done > span:last-child { color: #16a34a; font-weight: 600; }

/* ── Action buttons ──────────────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}
.bfs-dashboard-wrap .bfs-dash-done-msg {
    font-size: 13.5px;
    color: #16a34a;
    font-weight: 600;
    padding: 10px 16px;
    background: #dcfce7;
    border-radius: 8px;
    line-height: 1.5;
}

/* ── Questionnaire summary ───────────────────────────────────────── */
.bfs-dashboard-wrap .bfs-dash-q-summary {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 4px;
}
.bfs-dashboard-wrap .bfs-dash-q-summary-title {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 14px;
    display: block;
}
.bfs-dashboard-wrap .bfs-dash-q-summary .bfs-dash-detail-grid { margin-bottom: 0; }
.bfs-dashboard-wrap .bfs-dash-q-summary .bfs-dash-detail {
    background: #fff;
    border: 1px solid #dbeafe;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .bfs-dashboard-wrap .bfs-dash-header     { flex-direction: column; text-align: center; }
    .bfs-dashboard-wrap .bfs-dash-stats      { flex-wrap: wrap; }
    .bfs-dashboard-wrap .bfs-dash-stat       { min-width: calc(50% - 7px); }
    .bfs-dashboard-wrap .bfs-dash-detail-grid { grid-template-columns: 1fr; }
    .bfs-dashboard-wrap .bfs-dash-booking-header { flex-direction: column; align-items: flex-start; }
}
