/* ─── VBS Registration - Public Styles ─────────────────────────────────────── */

:root {
    --vbs-primary:   #2563eb;
    --vbs-secondary: #f59e0b;
    --vbs-success:   #10b981;
    --vbs-bg:        #f1f5f9;
}

body {
    background-color: var(--vbs-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.vbs-header {
    background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.vbs-header::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -140px;
    right: -80px;
    pointer-events: none;
}

.vbs-header::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: 30px;
    left: -60px;
    pointer-events: none;
}

.vbs-header-body {
    position: relative;
    z-index: 1;
    padding: 2.75rem 1rem 2rem;
}

.vbs-header-wave {
    display: block;
    width: 100%;
    height: 52px;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

.vbs-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #d1fae5;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.22rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.vbs-open-badge .badge-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(0.75); opacity: 0.55; }
}

.church-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.75;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.vbs-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.vbs-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Form intro ──────────────────────────────────────────────────────────────── */

.form-intro {
    font-size: 0.93rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

/* ── Section step labels ─────────────────────────────────────────────────────── */

.section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 0.45rem;
    flex-shrink: 0;
}

.children-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.6rem;
}

.children-section-label .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */

.card {
    border: none !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}

.card-header {
    border-radius: 0.85rem 0.85rem 0 0 !important;
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    font-size: 0.97rem;
}

/* ── Form Controls ───────────────────────────────────────────────────────────── */

.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    border-color: #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.93rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--vbs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-primary {
    background-color: var(--vbs-primary);
    border-color: var(--vbs-primary);
    border-radius: 0.5rem;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    border-radius: 0.5rem;
}

/* ── Child Cards ─────────────────────────────────────────────────────────────── */

.child-card .card-header {
    background-color: #059669 !important;
}

.child-card:nth-child(2n) .card-header {
    background-color: #0891b2 !important;
}

/* ── Submit section ──────────────────────────────────────────────────────────── */

.form-check-label {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.55;
}

/* ── Confirmation page ───────────────────────────────────────────────────────── */

.confirm-icon {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

/* ── Responsive adjustments ─────────────────────────────────────────────────── */

@media (max-width: 576px) {
    .vbs-title {
        font-size: 1.9rem;
    }
    .vbs-header-body {
        padding: 2rem 1rem 1.5rem;
    }
    main.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Multi-step progress indicator ──────────────────────────────────────────── */

.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    background: #e2e8f0;
    color: #94a3b8;
    border: 2px solid #cbd5e1;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-item.active .step-circle {
    background: var(--vbs-primary);
    color: #fff;
    border-color: var(--vbs-primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.step-item.completed .step-circle {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #374151;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 2.5rem;
    max-width: 6rem;
    margin: 0 0.35rem;
    margin-bottom: 1.3rem;
    transition: background 0.3s ease;
}

.step-connector.completed {
    background: #10b981;
}

/* Step panel animation */
.step-panel {
    animation: stepIn 0.22s ease;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Step 3 summary styles */
.summary-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 1rem 1.25rem;
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.summary-row:last-child { margin-bottom: 0; }

.summary-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.summary-field-value {
    font-size: 0.93rem;
    color: #111827;
    font-weight: 500;
}

.summary-children-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-children-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: #111827;
}

.summary-children-list li:last-child { border-bottom: none; }

.summary-child-grade {
    font-size: 0.78rem;
    color: #6b7280;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
}
