/* Enhanced Registration Form Styles */

/* Registration Sidebar - FIXED: Remove sticky positioning */
.registration-sidebar {
    position: relative !important;
    height: fit-content;
}

.registration-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #B83C3C);
}

.registration-status {
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.registration-status.open {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
    box-shadow: 0 4px 15px rgba(21, 87, 36, 0.2);
}

.registration-status.closed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
    box-shadow: 0 4px 15px rgba(114, 28, 36, 0.2);
}

.registration-info h3 {
    color: #722F37;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Enhanced Register Button */
.register-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B83C3C 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    color: white;
}

/* Registration Form - FIXED: No sticky behavior */
.registration-form {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-top: 2rem;
    grid-column: 1 / -1;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative !important;
    overflow: visible;
}

.registration-form.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-form h2 {
    color: #722F37;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.registration-form h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #B83C3C);
    border-radius: 2px;
}

/* Enhanced Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 60, 60, 0.1));
    border-radius: 0 15px 0 15px;
}

.form-section h3 {
    color: #722F37;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-section h3 i {
    color: #D4AF37;
    font-size: 1.4rem;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #722F37;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Enhanced Input Styles */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B83C3C;
    box-shadow: 0 0 0 3px rgba(184, 60, 60, 0.1);
    transform: translateY(-1px);
    background: white;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Required field indicator */
.form-group label::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

.form-group label.optional::after {
    content: '';
}

/* Enhanced Special Sections */
.waiver-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid #ffeaa7;
    position: relative;
    box-shadow: 0 6px 20px rgba(255, 234, 167, 0.3);
}

.waiver-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

.waiver-section h4 {
    color: #856404;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.discount-section {
    background: linear-gradient(135deg, #e7f3ff 0%, #b3d9ff 100%);
    border: 2px solid #b3d9ff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(179, 217, 255, 0.3);
}

.discount-section h4 {
    color: #004085;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.discount-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.discount-input input {
    flex: 1;
}

.apply-discount-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.apply-discount-btn:hover {
    background: linear-gradient(135deg, #B8941F 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.payment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(222, 226, 230, 0.3);
}

.payment-section h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.amount-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: #B83C3C;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B83C3C 100%);
    color: white;
    padding: 1.3rem 3rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.submit-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Enhanced Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(184, 60, 60, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(184, 60, 60, 0.2);
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: rgba(184, 60, 60, 0.08);
    border-color: rgba(184, 60, 60, 0.3);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.3);
    accent-color: #B83C3C;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    color: #722F37;
    font-weight: 600;
}

/* Field validation styles */
.field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-form {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .registration-card {
        padding: 1.5rem;
    }
    
    .register-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .amount-display {
        font-size: 2rem;
    }
    
    .discount-input {
        flex-direction: column;
    }
    
    .apply-discount-btn {
        width: 100%;
        text-align: center;
    }
}