/* Enrollment Page Specific Styles */

/* Pricing Section for Enrollment Page */
.pricing-section-enrollment {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border-top: 6px solid var(--sunset-orange);
}

.pricing-main-title {
    font-family: var(--font-heading);
    color: var(--forest-green);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.pricing-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--sunset-orange);
    border-radius: 2px;
}

.early-bird-section {
    margin-bottom: 2.5rem;
}

.early-bird-title {
    font-family: var(--font-heading);
    color: var(--sunset-orange);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1rem;
}

.early-bird-highlight-enrollment {
    background: linear-gradient(135deg, var(--sunset-orange), #ff8c42);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
    position: relative;
    overflow: hidden;
}

.early-bird-highlight-enrollment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.urgency-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.pricing-details-section {
    background: rgba(122, 158, 122, 0.08);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.pricing-subtitle {
    font-family: var(--font-heading);
    color: var(--forest-green);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cost-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--sage-green);
}

.cost-breakdown p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--deep-forest);
}

.rate {
    font-weight: 600;
    color: var(--forest-green);
    font-size: 1.3rem !important;
}

.session-total {
    font-weight: 700;
    color: var(--sunset-orange);
    font-size: 1.2rem !important;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem !important;
}

.discounts-section {
    display: grid;
    gap: 1rem;
}

.discount-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discount-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.discount-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.discount-content h4 {
    color: var(--forest-green);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.discount-content p {
    color: var(--deep-forest);
    margin: 0;
    line-height: 1.4;
}

.age-range-section {
    text-align: center;
    background: rgba(45, 93, 61, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.age-range-section h3 {
    color: var(--forest-green);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.age-range-section p {
    color: var(--deep-forest);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.enrollment-main {
    margin-top: 80px;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--warm-cream) 0%, rgba(122, 158, 122, 0.05) 100%);
    min-height: calc(100vh - 80px);
}

.enrollment-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.enrollment-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--forest-green);
    margin-bottom: 1rem;
    position: relative;
}

.enrollment-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-green), var(--moss-green));
    border-radius: 2px;
}

.enrollment-header p {
    font-size: 1.2rem;
    color: var(--deep-forest);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border-top: 5px solid var(--sage-green);
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(122, 158, 122, 0.2);
}

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

.form-section h2 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h2::before {
    content: '🌱';
    font-size: 1.2rem;
}

.form-section h3 {
    font-family: var(--font-heading);
    color: var(--moss-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--sage-green);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-forest);
    font-size: 1rem;
}

/* Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(122, 158, 122, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(122, 158, 122, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(45, 93, 61, 0.5);
    font-style: italic;
}

/* Special input states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.field-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Child Information Groups */
.child-info-group {
    background: rgba(122, 158, 122, 0.05);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--sage-green);
    position: relative;
}

.child-info-group h3 {
    color: var(--forest-green);
    margin-bottom: 1.5rem;
}

.remove-child-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-child-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.add-child-btn {
    background: linear-gradient(135deg, var(--sage-green), var(--moss-green));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
}

.add-child-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 158, 122, 0.3);
}

/* Checkbox and Radio Groups */
.checkbox-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--sage-green);
}

.checkbox-group label,
.radio-group label {
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}

.radio-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Payment Notice */
.payment-notice {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.1), rgba(210, 105, 30, 0.05));
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--sunset-orange);
}

.notice-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(210, 105, 30, 0.2);
}

.notice-box p {
    margin-bottom: 1rem;
    color: var(--deep-forest);
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--forest-green), var(--deep-forest));
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 93, 61, 0.3);
    background: linear-gradient(135deg, var(--deep-forest), var(--forest-green));
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(45, 93, 61, 0.7);
    font-style: italic;
}

/* Success Message */
.success-message {
    text-align: center;
    background: linear-gradient(135deg, rgba(122, 158, 122, 0.1), rgba(79, 121, 66, 0.1));
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--sage-green);
    margin-top: 2rem;
}

.success-message h2 {
    color: var(--forest-green);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.success-message p {
    margin-bottom: 1rem;
    color: var(--deep-forest);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Loading State */
.form-container.loading {
    position: relative;
    pointer-events: none;
}

.form-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.form-container.loading::before {
    content: '🌱 Submitting...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: var(--forest-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .enrollment-header {
        padding: 1rem 0;
    }
    
    .enrollment-header h1 {
        font-size: 2rem;
    }
    
    .form-section h2 {
        font-size: 1.5rem;
    }
    
    .child-info-group {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .enrollment-main {
        padding: 1rem 0;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .submit-btn {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .submit-btn,
    .add-child-btn,
    .remove-child-btn {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .enrollment-main {
        margin-top: 0;
    }
}

/* Focus and Accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.submit-btn:focus,
.add-child-btn:focus {
    outline: 2px solid var(--sunset-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
    
    .form-section {
        border-bottom-width: 2px;
    }
}

/* Mobile Responsiveness for Pricing Section */
@media (max-width: 768px) {
    .pricing-section-enrollment {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .pricing-main-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .early-bird-title {
        font-size: 1.3rem;
    }
    
    .early-bird-highlight-enrollment {
        padding: 1.2rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .pricing-details-section {
        padding: 1.5rem;
    }
    
    .cost-breakdown {
        padding: 1.2rem;
    }
    
    .rate {
        font-size: 1.2rem !important;
    }
    
    .discounts-section {
        gap: 0.8rem;
    }
    
    .discount-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .discount-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .age-range-section {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1rem;
    }
    
    .pricing-main-title {
        font-size: 1.5rem;
    }
    
    .early-bird-title {
        font-size: 1.2rem;
    }
    
    .pricing-details-section {
        padding: 1rem;
    }
    
    .cost-breakdown {
        padding: 1rem;
    }
}
