:root {
    --primary: #00A3A1; /* Teal - Sky-Line secondary */
    --primary-dark: #008785;
    --navy: #0B305B; /* Navy - Sky-Line Primary */
    --accent: #F37021; /* Orange - Sky-Line Accent */
    --light-blue: #E8F5F5;
    --bg-page: #F0F4F8;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --white: #FFFFFF;
    --border: #E5E9ED;
    --success: #27AE60;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Glassmorphism Background Shapes */
.background-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 600px; height: 600px;
    background: #00A3A1;
    top: -200px; right: -100px;
}

.shape-2 {
    width: 500px; height: 500px;
    background: #0B305B;
    bottom: -150px; left: -100px;
}

.shape-3 {
    width: 300px; height: 300px;
    background: #48c6ef;
    top: 40%; left: 30%;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* App Container */
.app-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(11, 48, 91, 0.1);
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 700px;
    overflow: hidden;
}

/* Sidebar Progress */
.progress-sidebar {
    width: 320px;
    background: var(--white);
    color: var(--navy);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 40px; height: 40px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.welcome-text {
    margin-bottom: 3rem;
}

.welcome-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.progress-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.5;
    transition: all 0.3s;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 45px;
    height: 15px;
    width: 2px;
    background: var(--border);
}
.step:last-child::after { display: none; }

.step.active {
    opacity: 1;
}

.step.completed .step-icon {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.step-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s;
    color: var(--text-muted);
    background: var(--white);
}

.step.active .step-icon {
    border-color: var(--navy);
    box-shadow: 0 0 15px rgba(11, 48, 91, 0.2);
    background: var(--navy);
    color: var(--white);
}

.step-text {
    font-weight: 500;
    font-size: 15px;
}

/* Form Area */
.form-area {
    flex: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

#enrollment-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.step-header.subtitle {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

.step-header.subtitle h3 {
    font-size: 18px;
    color: var(--navy);
}

/* Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: #FFEAA7;
    color: #D35400;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

input, select {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255,255,255,0.7);
    transition: all 0.3s;
    color: var(--text-main);
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 163, 161, 0.1);
    background: var(--white);
}

.hint {
    font-size: 12px;
    color: var(--primary);
    margin-top: 2px;
}

/* Services Selection */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 163, 161, 0.08);
}

.service-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-info i {
    font-size: 24px;
    color: var(--primary);
    background: var(--light-blue);
    width: 50px; height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.service-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--navy);
}

.service-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    cursor: pointer;
}

.service-extension {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 0 0 16px 16px;
    margin-top: -10px;
    border: 1px solid var(--border);
    border-top: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Completion View */
.completion-view {
    text-align: center;
    padding: 2rem 0;
}

.success-mark {
    width: 80px; height: 80px;
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.completion-view h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.terms-box {
    background: rgba(0, 163, 161, 0.05);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.terms-box i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
}

/* Navigation Buttons */
.form-navigation {
    margin-top: auto;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 163, 161, 0.3);
}

.btn-secondary {
    background: var(--bg-page);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: var(--border);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    margin-left: auto;
}
.btn-success:hover {
    background: #219A52;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .app-container {
        flex-direction: column;
        min-height: auto;
    }
    .progress-sidebar {
        width: 100%;
        padding: 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .progress-steps {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 1rem;
    }
    .step::after {
        display: none; /* Hide vertical lines */
    }
    .step-text {
        display: none; /* Hide text on small screens, keep icons */
    }
    .form-area {
        padding: 2rem 1.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr; /* Stack form fields */
    }
    .service-extension {
        grid-template-columns: 1fr;
    }
    .step-header h2 {
        font-size: 22px;
    }
}
