/* Registration Wizard - Matching Index Page Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(at 20% 30%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(255, 255, 255, 0.03) 0px, transparent 50%);
    min-height: 100vh;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
}

.main-container {
    padding: 2rem 0;
    max-width: 1200px;
}

.header-section {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.header-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-section p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 0;
    font-weight: 300;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.main-logo {
    max-height: 100px;
    max-width: 100%;
    height: auto;
    width: auto;
    filter: brightness(1.2);
}

.registration-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-bottom: 3rem;
}

.card-header {
    padding: 2.5rem 2rem 1.5rem 2rem;
    text-align: center;
    border: none;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}

.card-header.solo::after {
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}

.card-header.duet::after {
    background: linear-gradient(90deg, transparent 0%, #c9a961 50%, transparent 100%);
}

.card-header.group::after {
    background: linear-gradient(90deg, transparent 0%, #b89d3f 50%, transparent 100%);
}

.card-header.pas_de_deux::after {
    background: linear-gradient(90deg, transparent 0%, #e6c86e 50%, transparent 100%);
}

.card-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #d4af37;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.card-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-body {
    padding: 3rem 2.5rem;
    background: #1a1a1a;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.form-control,
.form-select {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #2a2a2a;
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #888888;
}

.form-select option {
    background-color: #2a2a2a;
    color: #ffffff;
}

/* Section Headers */
.section-header {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2a2a2a;
    font-family: 'Playfair Display', serif;
}

.dancer-section-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    border: 1px solid #3a3a3a;
}

.dancer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin: 0;
}

.dancer-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
    margin: 2rem 0;
}

/* Checkboxes and Radio Buttons */
.form-check {
    margin-bottom: 1rem;
    padding-left: 1.75rem;
}

.form-check-input {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
}

.form-check-input:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.form-check-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-check-label {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Category Selection */
.category-selection {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.category-option {
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-option:hover {
    border-color: #d4af37;
    background: #252525;
}

.category-option.selected {
    border-color: #d4af37;
    background: #252525;
}

/* Pricing */
.pricing-box {
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pricing-box h6 {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1rem;
}

.total-price-banner {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #000000;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.btn-primary {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #000000;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #b8941f;
    border-color: #b8941f;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #000000;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-payment {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: 2px solid #d4af37;
    color: #000000;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-payment:hover,
.btn-payment:focus {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    border-color: #b8941f;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn-payment:active {
    transform: translateY(-1px);
}

.btn-draft {
    background-color: transparent;
    border: 2px solid #888888;
    color: #888888;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-draft:hover,
.btn-draft:focus {
    background-color: #888888;
    border-color: #888888;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-back {
    background-color: transparent;
    border: 2px solid #666666;
    color: #666666;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover,
.btn-back:focus {
    background-color: #666666;
    border-color: #666666;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

/* Group Dancer Rows */
.group-dancer-row {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #3a3a3a;
    position: relative;
}

.group-dancer-row h6 {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.group-dancer-row .btn-danger {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.alert-info {
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid #d4af37;
}

/* File Upload */
input[type="file"] {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.75rem;
    color: #cccccc;
}

input[type="file"]::file-selector-button {
    background-color: #d4af37;
    border: none;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #b8941f;
}

/* Performance Details */
.performance-section {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.performance-section h6 {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Input Group */
.input-group-text {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #cccccc;
}

/* Help Text */
.form-text {
    color: #888888;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Draft Actions */
.draft-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #2a2a2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2.5rem;
    }
    
    .card-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .card-header i {
        font-size: 2.5rem;
    }
    
    .card-header h4 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .main-logo {
        max-height: 80px;
    }
    
    .draft-actions {
        flex-direction: column;
    }
    
    .draft-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 2rem;
    }
    
    .card-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .section-header {
        font-size: 1.2rem;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    border-color: #d4af37;
    border-right-color: transparent;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #b8941f;
    text-decoration: none;
    transform: translateX(-5px);
}

.back-button i {
    margin-right: 0.5rem;
}

/* Toast Notifications */
.toast {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #ffffff;
}

.toast-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #3a3a3a;
    color: #d4af37;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    background: #2a2a2a;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Age Group Filter Info */
.age-info-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.age-info-box i {
    color: #d4af37;
    margin-right: 0.5rem;
}

/* Age Group Filter Error */
.age-error-box {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.age-error-box i {
    color: #dc3545;
    margin-right: 0.5rem;
}

/* Payment Method Cards */
.payment-method-card {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.payment-method-card:hover {
    border-color: #d4af37;
    background: #252525;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.payment-method-card.selected {
    border-color: #d4af37;
    background: #252525;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.payment-method-card input[type="radio"] {
    display: none;
}

.payment-method-card label {
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.payment-method-card i {
    color: #d4af37;
    margin-bottom: 1rem;
}

.payment-method-card h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-method-card p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Payment Table */
.table-dark {
    background-color: #2a2a2a;
    color: #ffffff;
}

.table-dark thead {
    background-color: #1a1a1a;
}

.table-dark th {
    border-color: #3a3a3a;
    color: #d4af37;
    font-weight: 600;
}

.table-dark td {
    border-color: #3a3a3a;
    color: #ffffff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */

/* Valid field states */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #4caf50;
    background-color: #2a2a2a;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%234caf50' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-check-input.is-valid {
    border-color: #4caf50;
}

.form-check-input.is-valid:checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

.form-check-input.is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Invalid field states */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-color: #2a2a2a;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Validation feedback messages */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.invalid-feedback.d-block,
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4caf50;
    font-weight: 500;
}

.valid-feedback.d-block,
.was-validated .form-control:valid ~ .valid-feedback,
.was-validated .form-select:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback,
.form-select.is-valid ~ .valid-feedback,
.form-check-input.is-valid ~ .valid-feedback {
    display: block;
}

/* Validation styling for file inputs */
input[type="file"].is-invalid {
    border-color: #dc3545;
}

input[type="file"].is-valid {
    border-color: #4caf50;
}

/* Animation for validation messages */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invalid-feedback,
.valid-feedback {
    animation: fadeInDown 0.3s ease;
}

/* Smooth transition for validation states */
.form-control,
.form-select,
.form-check-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Ensure validation icons don't interfere with date/time inputs */
.form-control[type="date"].is-valid,
.form-control[type="time"].is-valid,
.form-control[type="datetime-local"].is-valid,
.form-control[type="date"].is-invalid,
.form-control[type="time"].is-invalid,
.form-control[type="datetime-local"].is-invalid {
    background-position: right calc(2.5em + 0.1875rem) center;
}

