/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-accent: #eff6ff;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-full {
    width: 100%;
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(239, 246, 255, 0.3) 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.info-item .icon {
    color: var(--primary);
}

.hero-cta {
    padding-top: 1.5rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Courses Section */
.courses {
    background-color: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
}

.course-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    color: var(--primary);
}

.course-icon svg {
    width: 100%;
    height: 100%;
}

.course-title-group {
    flex: 1;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.course-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.course-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-accent);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.course-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.course-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight {
    padding: 0.25rem 0.75rem;
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Features Section */
.features {
    background-color: var(--bg-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    padding: 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(239, 246, 255, 0.3) 100%);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Enrollment Page */
.enroll-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--white) 0%, var(--bg-accent) 100%);
    padding: 2rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: var(--bg-light);
}

.enroll-card {
    max-width: 42rem;
    margin: 0 auto;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.enroll-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.enroll-description {
    color: var(--text-secondary);
}

/* Form Styles */
.enroll-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .enroll-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
    }
}

/* Success Page */
.success-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--white) 0%, var(--bg-accent) 100%);
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.success-card {
    max-width: 42rem;
    margin: 0 auto;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    display: inline-flex;
    width: 5rem;
    height: 5rem;
    padding: 1rem;
    background-color: #dcfce7;
    border-radius: 9999px;
    color: #16a34a;
    margin-bottom: 2rem;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.success-info {
    text-align: left;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.check-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #16a34a;
    margin-top: 0.125rem;
}

.success-contact {
    margin-bottom: 2rem;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.success-actions .btn {
    min-width: 200px;
}

@media (max-width: 480px) {
    .success-page {
        padding: 2rem 0;
    }

    .success-card {
        padding: 2rem 1.5rem;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-icon {
        width: 4rem;
        height: 4rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}
