/* ===== CSS RESET AND BASE STYLES ===== */
/* Reset default browser styles for consistent appearance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BRAND COLOR PALETTE ===== */
/* Sky blue, sunny yellow, fresh green theme from the flyer */
:root {
    --sky-blue: #2196F3;
    --sunny-yellow: #FFD700;
    --fresh-green: #4CAF50;
    --light-blue: #E3F2FD;
    --dark-blue: #1976D2;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== BASE TYPOGRAPHY ===== */
/* Professional, readable fonts */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--sky-blue), var(--fresh-green));
    min-height: 100vh;
    padding: 20px 0;
}

/* ===== MAIN CONTAINER ===== */
/* Central form container with responsive design */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

/* Slide-in animation for form appearance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER SECTION ===== */
/* Top banner with branding and title */
.header {
    background: linear-gradient(135deg, var(--sky-blue), var(--fresh-green));
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative elements in header */
.header::before {
    content: '🚀';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    opacity: 0.8;
}

/* Main title styling */
.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtitle styling */
.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Program title */
.header .program-title {
    font-size: 1.8rem;
    color: var(--sunny-yellow);
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Program details */
.header .program-details {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== FORM SECTIONS ===== */
/* Individual form sections with consistent spacing */
.form-section {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

/* Section headers with icons */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--sky-blue);
}

.section-header i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--fresh-green);
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
}

/* ===== PROGRAM SELECTION ===== */
/* Program cards with hover effects */
.program-card {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--white);
}

.program-card:hover {
    border-color: var(--sky-blue);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

/* Program card when selected */
.program-card.selected {
    border-color: var(--fresh-green);
    background: linear-gradient(135deg, #E8F5E8, #F1F8E9);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

/* Program icon styling */
.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky-blue), var(--fresh-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
}

/* Program title */
.program-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

/* Age badge */
.age-badge {
    background: var(--sunny-yellow);
    color: var(--dark-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* Program description */
.program-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Program details (time, cost) */
.program-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.program-time {
    color: var(--dark-gray);
}

.program-cost {
    color: var(--fresh-green);
    font-size: 1.2rem;
}

/* Program includes text */
.program-includes {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Group selection checkboxes */
.group-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-option:hover {
    background: var(--light-blue);
    border-color: var(--sky-blue);
}

.group-option input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.group-option.selected {
    background: var(--light-blue);
    border-color: var(--sky-blue);
    color: var(--dark-blue);
}

/* ===== TOTAL COST DISPLAY ===== */
/* Prominent cost display section */
.cost-section {
    background: linear-gradient(135deg, var(--sky-blue), var(--fresh-green));
    color: var(--white);
    padding: 25px;
    text-align: center;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.cost-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* FIXED: Total cost display - white color, no extra $ */
.cost-section .total-cost {
    font-size: 3rem;
    font-weight: bold;
    color: white !important; /* Force white color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 10px 0;
}

/* Remove any extra $ symbols */
.cost-section .total-cost::before {
    content: none !important;
}

.cost-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* ===== FORM INPUTS ===== */
/* Consistent styling for all form inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-gray);
}

.form-group label .required {
    color: #ff4444;
    margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== PAYMENT OPTIONS ===== */
/* Payment method selection cards */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    text-align: center;
}

.payment-option:hover {
    border-color: var(--sky-blue);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

.payment-option.selected {
    border-color: var(--fresh-green);
    background: linear-gradient(135deg, #E8F5E8, #F1F8E9);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky-blue), var(--fresh-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin: 0 auto 15px;
}

.payment-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.payment-description {
    color: #666;
    font-size: 0.9rem;
}

/* Payment instructions */
.payment-instructions {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    display: none;
}

.payment-instructions.active {
    display: block;
}

.payment-instructions h4 {
    color: var(--sky-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.payment-instructions h4 i {
    margin-right: 10px;
}

.payment-instructions p {
    margin-bottom: 8px;
}

.payment-instructions strong {
    color: var(--dark-gray);
}

/* ===== SLIDE-TO-SUBMIT ===== */
/* Custom slide-to-submit component */
.slide-section {
    background: linear-gradient(135deg, var(--sky-blue), var(--fresh-green));
    color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    margin: 20px 0;
}

.slide-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-section h3 i {
    margin-right: 15px;
    font-size: 2rem;
}

.slide-container {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
    margin: 20px auto;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.slide-track {
    position: relative;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 45px;
    overflow: hidden;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.1rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.slide-button {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.slide-button:active {
    cursor: grabbing;
}

.slide-button i {
    font-size: 20px;
    color: var(--sky-blue);
    transition: all 0.3s ease;
}

.slide-button.completed {
    background: var(--fresh-green);
    color: var(--white);
}

.slide-button.completed i {
    color: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile-first responsive breakpoints */

/* Tablet styles */
@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header .program-title {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .program-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .cost-section .total-cost {
        font-size: 2.5rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }
    
    .form-container {
        margin: 5px;
        border-radius: 10px;
    }
    
    .header {
        padding: 20px 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .program-title {
        font-size: 1.3rem;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .program-card {
        padding: 15px;
    }
    
    .group-options {
        gap: 8px;
    }
    
    .group-option {
        padding: 10px;
    }
    
    .cost-section {
        padding: 20px 15px;
    }
    
    .cost-section .total-cost {
        font-size: 2rem;
    }
    
    .slide-container {
        max-width: 300px;
    }
    
    .slide-text {
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
/* Enhanced accessibility features */

/* Focus indicators */
*:focus {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
/* Optimized for printing */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid black;
    }
    
    .header {
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }
    
    .slide-section {
        display: none;
    }
}

/* ===== UTILITY CLASSES ===== */
/* Helper classes for common styling needs */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

/* ===== ANIMATIONS ===== */
/* Smooth animations for better user experience */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

.bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

