/* Root Variables */
:root {
    --primary-color: #7B4BAF;
    --accent-color: #C6A758;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #F9F9F9;
    --white: #FFFFFF;
    --success-color: #4CAF50;
    --border-color: #E0E0E0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #7B4BAF 0%, #5a3a8a 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

/* Navigation Menu */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: var(--white);
}

body {
    padding-top: 60px;
}

.container {
    max-width: 900px;
    margin: 20px auto 0;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a3a8a 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

header .logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Main Content */
main {
    padding: 40px;
}

main h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Student Info */
.student-info {
    background: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.student-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Courses Section */
.courses-section {
    margin: 30px 0;
}

.courses-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Course Cards */
.course-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(123, 75, 175, 0.15);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.course-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.course-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

/* Level Selection */
.level-selection {
    padding-left: 32px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.level-selection.active {
    opacity: 1;
    pointer-events: all;
}

.level-selection > label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #b89748 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(198, 167, 88, 0.4);
}

/* Confirmation Message */
.confirmation {
    background: var(--success-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.confirmation h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.confirmation.hidden {
    display: none;
}

#selectionSummary {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-top: 15px;
}

#selectionSummary h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

#selectionSummary ul {
    list-style: none;
    padding: 0;
}

#selectionSummary li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#selectionSummary li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main h2 {
        font-size: 1.8rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    main {
        padding: 20px;
    }
}
