
:root {
    --primary: #304ffe;
    --primary-dark: #1a237e;
    --bg-light: #f5f7fb;
    --bg-soft: #eef2ff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}
body {
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.navbar-custom {
    /*background: linear-gradient(135deg, var(--primary), var(--primary-dark));*/
    background: linear-gradient(135deg, #304ffe, #1a237e);
}

.navbar-custom .nav-link {
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    opacity: 0.85;
}

.navbar-custom .btn-outline-light:hover {
    background: #ffffff;
    color: #1a237e;
}


.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.auth-card input[type="text"] {
    height: 60px;
    font-weight: 600;
}

.footer-custom {
    background: linear-gradient(135deg, #111827, #1e293b);
    color: #d1d5db;
    font-size: 14px;
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

/* Page specific sections */
.hero-section {
    background: linear-gradient(135deg, #e8edff, #f4f6ff);
    padding: 100px 20px 80px;
}

.login-section {
    min-height: 75vh;
    background: linear-gradient(135deg, var(--bg-soft), #f8fafc);
    display: flex;
    align-items: center;
    padding: 60px 15px;
}

.login-card {
    border-radius: 18px;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(48, 79, 254, .25);
}


.auth-card {
    border-radius: 16px;
}

.otp-input {
    max-width: 60px;
    height: 60px;
    font-weight: 600;
}

/* ================= OTP STYLES (Scoped to Login Section) ================= */

.login-section .otp-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-section .otp-input:focus {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

/* Error State */
.login-section .otp-input.otp-error {
    border-color: #dc3545;
}

/* Shake Animation */
.login-section .otp-shake {
    animation: otpShake 0.3s ease;
}

@keyframes otpShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(48, 79, 254, .25);
    border-color: #304ffe;
}

.application-card {
    border-radius: 16px;
    transition: 0.3s ease;
}

.application-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.sibling-card {
    border-radius: 10px;
    background: #fafbff;
}

.modern-upload-wrapper .btn {
    border-radius: 8px;
    font-weight: 500;
}

.modern-upload-wrapper {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.summary-box {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.summary-label {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.summary-value {
    font-weight: 600;
}

.fee-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.payment-summary {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    padding: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

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

.payment-total-box {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 12px 15px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #dbeafe;
}

.admission-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.admission-title {
    font-weight: 600;
    color: #111827;
}

.admission-subtitle {
    font-size: 14px;
}

.admission-stepper {
    position: relative;
}

.admission-step-item {
    position: relative;
}

.admission-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admission-step-active {
    background: #304ffe;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(48, 79, 254, 0.15);
}

.admission-step-completed {
    background: #10b981;
    color: #ffffff;
}

.admission-step-label {
    font-size: 13px;
    color: #6b7280;
}

/* Premium Status Badges */
.status-badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    color: #ffffff;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Draft */
.status-draft {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* New */
.status-new {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Payment Done */
.status-payment-done {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Submitted */
.status-submitted {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.terms-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.terms-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding: 20px;
}

/* Scrollbar styling (modern subtle look) */
.terms-scroll::-webkit-scrollbar {
    width: 6px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: #cfd4da;
    border-radius: 4px;
}

.terms-list {
    padding-left: 18px;
    margin-bottom: 0;
}

.terms-list li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #495057;
}

.step-link {
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
}



.step-link.active {
    color: #0d6efd;
    font-weight: 600;
}

.form-label.required::after {
    content: " *";
    color: var(--bs-danger); /* Uses Bootstrap danger color */
    font-weight: 600;
}