/* Enrollment Form Styles */

.enrollment-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.enrollment-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.enrollment-form-wrapper h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

.enrollment-form-wrapper p {
    color: #ccc;
    font-size: 1.1rem;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    color: #00d4ff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    color: #fff;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control option {
    background: #1a1a1a;
    color: #fff;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Family Member Section */
.family-member-entry {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.family-member-entry h4 {
    color: #00d4ff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.remove-family-member {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-family-member:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: rgba(255, 59, 48, 0.5);
}

/* Buttons */
.btn-outline-primary {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-main {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    color: #000;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-main:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088b3 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
    color: #000;
}

.btn-lg {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Form Checkboxes */
.form-check {
    margin-bottom: 15px;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-check-label {
    color: #fff;
    margin-left: 8px;
    cursor: pointer;
}

.form-check-label a {
    color: #00d4ff;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enrollment-form-wrapper {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn-main {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .enrollment-section {
        padding: 60px 0;
    }
    
    .enrollment-form-wrapper {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 15px 10px;
    }
    
    .row {
        margin: 0;
    }
    
    .col-md-6, .col-md-12 {
        padding: 0 5px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error States */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* File upload styles */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.file-input {
    padding: 10px;
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.file-input:focus {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.file-preview {
    margin-top: 10px;
    min-height: 60px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.file-preview .file-info {
    display: inline-block;
    vertical-align: top;
    margin-bottom: 10px;
}

.file-preview .file-name {
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 5px;
}

.file-preview .file-size {
    color: #ccc;
    font-size: 0.875rem;
}

.file-preview .remove-file {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.file-preview .remove-file:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.file-preview .upload-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.file-preview .upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Loading State */
.btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Custom Scrollbar for Textareas */
textarea.form-control::-webkit-scrollbar {
    width: 8px;
}

textarea.form-control::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.notification-message {
    color: #fff;
    font-weight: 500;
    margin-right: 15px;
}

.notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8, #00d4ff);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
