:root {
    --bg-dark: #0a0a0f;
    --bg-surface: #13141c;
    --bg-elevated: #1c1d29;
    
    --primary: #4e46e5;
    --primary-hover: #6366f1;
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(19, 20, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    margin-top: 10vh;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(78, 70, 229, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    color: #a5b4fc;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(78, 70, 229, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.6);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

/* Background glows */
main::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

main::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.program-details {
    position: relative;
    z-index: 1;
    margin-bottom: 6rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.info-card.highlight {
    background: linear-gradient(145deg, rgba(28, 29, 41, 0.8), rgba(19, 20, 28, 0.9));
    border-top: 2px solid var(--accent);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.info-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
}

.info-card li:last-child {
    border-bottom: none;
}

.icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    padding: 0 !important;
}

.cost {
    font-size: 1.5rem;
    color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Form Section */
.application-section {
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: rgba(28, 29, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.glass-panel h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 2rem;
}

label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

input, select, textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 70, 229, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.phone-input #countryCode {
    width: 25%;
}

.phone-input #phone {
    width: 75%;
}

select option {
    background-color: var(--bg-surface);
    color: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    box-shadow: 0 10px 30px rgba(78, 70, 229, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Alerts and Loaders */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert.hidden {
    display: none;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -12px;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-grid.three-col {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        margin-bottom: 1.5rem;
    }
    .glass-panel {
        padding: 2rem 1.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
