:root {
    --primary: #ff6a00;
    --primary-dark: #e05d00;
    --black: #0f0f0f;
    --dark-gray: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f7;
    --white: #ffffff;
    --font-sans: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Variables */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-orange { color: var(--primary); }
.hidden { display: none !important; }

/* View System */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.view.active {
    display: block;
    opacity: 1;
}

/* ================= Navbar ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-icon {
    color: var(--primary);
    font-size: 2rem;
}
.nav-actions { display: flex; gap: 10px; }

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4);
}
.btn-primary:active { transform: scale(0.98); background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--black);
}
.btn-outline:active { background: var(--light-gray); }
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}
.btn-text {
    background: transparent;
    color: var(--gray);
    text-decoration: underline;
}
.w-100 { width: 100%; }

/* CTA Animation */
.cta-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 106, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

/* ================= Floating Buttons ================= */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}
.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--primary); }

/* ================= Homepage ================= */
#app-container {
    padding-top: 80px; /* Offset for navbar */
    min-height: 100vh;
}

.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 6rem 5% 8rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 0; right: 0;
    height: 100px;
    background: var(--white);
    transform: skewY(-3deg);
}
.badge {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.headline {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
}
.subheadline {
    font-size: 1.25rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Steps Section */
.steps-section {
    padding: 5rem 5%;
    background: var(--light-gray);
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.step-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s ease;
}
.step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 106, 0, 0.1);
    position: absolute;
    top: 10px; right: 20px;
}
.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    position: relative;
    z-index: 1;
}

/* Features */
.features-section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.feature-item { text-align: center; }
.feature-icon {
    width: 80px; height: 80px;
    background: rgba(255, 106, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 5%;
    background: var(--black);
    color: var(--white);
}
.testimonials-section .section-title { color: var(--white); }
.testimonial-carousel {
    display: flex; gap: 2rem; overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
    max-width: 1200px; margin: 0 auto;
}
.testimonial-card {
    min-width: 300px;
    background: var(--dark-gray);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}
.quote { font-style: italic; margin-bottom: 1rem; font-size: 1.1rem; color: #ddd; }
.author { font-weight: 800; color: var(--primary); }

.footer {
    text-align: center;
    padding: 2rem;
    background: var(--black);
    color: var(--gray);
    border-top: 1px solid #333;
}

/* ================= Registration & Auth forms ================= */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    background: var(--light-gray);
    position: relative;
}
.back-btn {
    position: absolute;
    top: 2rem; left: 5%;
    background: none; border: none;
    font-size: 1rem; color: var(--gray);
    font-weight: 600; cursor: pointer;
}
.auth-card {
    background: var(--white);
    width: 100%; max-width: 500px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--gray); }

.form-step {
    transition: opacity 0.3s;
}

/* Inputs */
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label {
    display: block; font-weight: 600;
    margin-bottom: 0.5rem; color: var(--dark-gray);
    font-size: 0.9rem;
}
input[type="text"], input[type="tel"], select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
}
input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}
select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }

.phone-input-wrap {
    display: flex; align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.phone-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1); }
.country-code { padding: 1rem; background: var(--light-gray); font-weight: 600; color: var(--gray); border-right: 2px solid #e0e0e0; }
.phone-input-wrap input { border: none; border-radius: 0; }
.phone-input-wrap input:focus { box-shadow: none; }

.grouped-inputs {
    padding: 1.5rem;
    background: #fafafa;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px dashed #ccc;
}
.grouped-inputs h4 { margin-bottom: 1rem; color: var(--gray); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.checkbox-group {
    display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1.5rem;
}
.checkbox-group input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.checkbox-group label { font-size: 0.9rem; color: var(--gray); line-height: 1.4; }


/* ================= Dashboard ================= */
.dashboard-container {
    min-height: calc(100vh - 80px);
    display: flex; align-items: center; justify-content: center;
    background: var(--light-gray);
    padding: 2rem 5%;
}
.success-card {
    background: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}
.success-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-card h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.success-msg { color: var(--gray); margin: 1.5rem 0 2rem 0; }
.onboarding-actions { padding-top: 2rem; border-top: 1px solid #eee; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-actions .btn-outline { display: none; } /* Hide login on mobile header, keep Primary Get Admission */
    .hero { padding: 4rem 5% 6rem 5%; }
    .auth-card { padding: 1.5rem; }
    .grouped-inputs { padding: 1rem; }
}
