/**
 * School Registration V3 Styles
 * Aligned with Skovia / EduPortal V8 design language
 */

:root {
    --navy: #0f172a;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #3b82f6;
    --blue-glow: rgba(37,99,235,0.15);
    --green: #10b981;
    --red: #ef4444;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --form-accent: #2563eb;
}

* { font-family: 'Inter', sans-serif; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); line-height: 1.6; padding-top: 56px; }

/* === NAVBAR === */
.navbar { background: var(--navy) !important; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.navbar-brand img { height: 48px; }
.nav-link { color: rgba(255,255,255,0.8) !important; font-weight: 500; font-size: 0.9rem; }
.nav-link:hover { color: white !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* === HERO === */
.hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #6d28d9 100%); color: white; padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero-section::before { content:''; position:absolute; top:-50%; right:-20%; width:600px; height:600px; background:radial-gradient(circle,rgba(139,92,246,0.15) 0%,transparent 70%); border-radius:50%; }
.hero-section::after { content:''; position:absolute; bottom:-30%; left:-10%; width:500px; height:500px; background:radial-gradient(circle,rgba(59,130,246,0.1) 0%,transparent 70%); border-radius:50%; }
.text-white-75 { color: rgba(255,255,255,0.75); }
.hero-stats { margin-top: 2rem; }
.stat-item h3 { font-size: 1.8rem; margin-bottom: 0; }

/* === REGISTRATION CARD === */
.registration-card .card { border: none; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); overflow: hidden; }
.registration-card .card-header { background: var(--white); border-bottom: 2px solid var(--border); padding: 1.5rem 2rem; }
.registration-card .card-header h4 { color: var(--navy); }
.registration-card .card-body { padding: 2rem; }

/* Form section headers — colored accent */
.form-section-title { color: var(--form-accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--blue-glow); }
.form-section-title i { color: var(--form-accent); }

/* Form controls */
.form-control { border-radius: 8px; border: 2px solid var(--border); padding: 0.7rem 1rem; transition: all 0.3s; font-size: 0.9rem; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.form-control.is-invalid { border-color: var(--red); }
.form-label { font-weight: 600; color: #475569; font-size: 0.85rem; margin-bottom: 0.4rem; }

/* Subdomain preview */
.subdomain-preview { animation: slideDown 0.3s ease-out; }
.subdomain-preview .alert { border-radius: 8px; border: 1px solid #bfdbfe; background: #eff6ff; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* === PLAN SELECTION === */
.plan-card { cursor: pointer; transition: all 0.3s; }
.plan-card .card { border-radius: 10px; border: 2px solid var(--border); transition: all 0.3s; }
.plan-card:hover .card { border-color: var(--blue); box-shadow: 0 4px 15px var(--blue-glow); transform: translateY(-2px); }
.plan-card.active .card { border-color: var(--blue) !important; box-shadow: 0 0 0 3px var(--blue-glow); }
.plan-card .price { font-size: 1.4rem; color: var(--blue); font-weight: 700; }
.plan-card .badge { font-size: 0.65rem; }

/* === BUTTONS === */
.btn-primary { background: var(--blue); border-color: var(--blue); border-radius: 8px; font-weight: 600; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 15px var(--blue-glow); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.text-primary { color: var(--blue) !important; }

/* === FEATURES === */
.feature-card { background: var(--white); border-radius: 14px; padding: 2rem; border: 1px solid var(--border); transition: all 0.3s; height: 100%; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); border-color: var(--blue); }

/* AI Feature Cards (V8 style) */
.ai-feature-card { background: var(--white); border-radius: 14px; padding: 1.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.3s; height: 100%; position: relative; overflow: hidden; border: 1px solid var(--border); }
.ai-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); border-color: var(--blue); }
.ai-feature-card .feature-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ai-feature-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin-bottom: 0.75rem; }
.ai-feature-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 0.5rem; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); text-align: center; margin-bottom: 3rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.section-padding { padding: 80px 0; }

/* === MODALS === */
.modal-content { border-radius: 16px; border: none; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { border-bottom: none; }

/* === LOADING === */
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(4px); }
.loading-content { text-align: center; color: white; }

/* === FOOTER === */
footer { background: var(--navy); color: white; padding: 2.5rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
footer h6 { color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.6rem; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; }
footer a:hover { color: white; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.3rem; }

/* === SKOVIA HIGHLIGHT === */
.skovia-highlight { background: linear-gradient(90deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section { padding: 40px 0 30px; }
    .registration-card .card-body { padding: 1.5rem; }
    .stat-item h3 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .hero-section { min-height: auto; }
    .plan-card .price { font-size: 1.1rem; }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
