/* ====================================== */
/* TRAINER ONBOARDING WIZARD STYLES */
/* ====================================== */
/*
 * This file contains all wizard-specific styles
 * Loaded AFTER modal.css to ensure wizard elements use these styles
 * and not the generic modal.css styles
 * 
 * Loading order (defined in index.html):
 * 1. main.css (imports modal.css and other base styles)
 * 2. wizard.css (this file - overrides modal.css for wizard)
 */

/* Wizard Container */
.wizard-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wizard-surface {
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wizard-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
}

/* Wizard Progress Section */
.wizard-progress {
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, rgba(247, 8, 128, 0.03) 0%, rgba(254, 173, 139, 0.03) 100%);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 8px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #f70880 0%, #fead8b 100%);
}

.progress-step.active.current .step-circle {
    box-shadow: 0 2px 8px rgba(247, 8, 128, 0.3);
    transform: scale(1.1);
}

.step-circle i {
    font-size: 18px;
}

.step-label {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: #222;
}

.progress-step.active.current .step-label {
    font-weight: 600;
}

.progress-bar-container {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #f70880 0%, #fead8b 100%);
    width: 20%;
    transition: width 0.3s ease;
}

/* Wizard Header with Theme */
.wizard-header {
    padding: 20px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #f70880 0%, #fead8b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.wizard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.wizard-header-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.wizard-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.wizard-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.wizard-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.wizard-close-btn i {
    color: white;
}

/* Wizard Error Message */
.wizard-error {
    display: none;
    margin: 12px 24px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid #f44336;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.wizard-error.show {
    display: flex;
    align-items: start;
    gap: 12px;
}

.wizard-error-icon {
    color: #f44336;
    font-size: 20px;
    flex-shrink: 0;
}

.wizard-error-content {
    flex: 1;
}

.wizard-error-title {
    font-weight: 600;
    color: #d32f2f;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.wizard-error-message {
    color: #666;
    margin: 0;
    font-size: 13px;
}

.wizard-error-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.wizard-error-close:hover {
    color: #666;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wizard Content */
.wizard-content {
    padding: 24px;
    max-height: calc(90vh - 280px);
    overflow-y: auto;
    flex: 1;
}

/* Wizard Actions */
.wizard-actions {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(247, 8, 128, 0.02) 0%, rgba(254, 173, 139, 0.02) 100%);
}

.wizard-actions-spacer {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-surface {
        width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }

    .wizard-progress {
        padding: 12px 16px;
    }

    .step-circle {
        width: 28px;
        height: 28px;
    }

    .step-circle i {
        font-size: 16px;
    }

    .step-label {
        font-size: 10px;
    }

    .wizard-header {
        padding: 16px 20px 12px;
    }

    .wizard-title {
        font-size: 18px;
    }

    .wizard-subtitle {
        font-size: 12px;
    }

    .wizard-content {
        padding: 16px;
        max-height: calc(95vh - 280px);
    }

    .wizard-actions {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .wizard-error {
        margin: 8px 16px 0;
        padding: 10px 12px;
    }
}

/* Wizard action buttons — base styles */
.wizard-actions .btn-secondary,
.wizard-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    border-radius: var(--border-radius-lg, 10px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal, all 0.2s ease);
    border: none;
    text-decoration: none;
}

.wizard-actions .btn-secondary {
    background: var(--surface-color, #f5f5f5);
    color: var(--text-secondary, #555);
    border: 2px solid var(--border-color, #ddd);
}

.wizard-actions .btn-secondary:hover {
    background: var(--background-light, #eee);
    border-color: var(--primary-color, #f70880);
    color: var(--primary-color, #f70880);
}

.wizard-actions .btn-primary {
    background: var(--primary-gradient, linear-gradient(135deg, #f70880, #feaf8b));
    color: #fff;
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.12));
}

.wizard-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg, 0 4px 12px rgba(0,0,0,0.2));
}

.wizard-actions .btn-secondary i,
.wizard-actions .btn-primary i {
    font-size: 18px;
}

/* ====================================== */
/* WIZARD-SPECIFIC FORM STYLES */
/* Specific to wizard dialogs only (NOT modal) */
/* Standard: height=42px, padding=10px 12px, margin-bottom=18px */
/* ====================================== */

/* Wizard Form Labels */
.wizard-dialog .form-label,
.wizard-dialog .field-label,
.wizard-content .form-label,
.wizard-content .field-label,
.wizard-surface .form-label,
.wizard-surface .field-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

/* Wizard Form Inputs & Selects */
.wizard-dialog .form-input,
.wizard-dialog .form-select,
.wizard-content .form-input,
.wizard-content .form-select,
.wizard-surface .form-input,
.wizard-surface .form-select {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: white !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* Wizard Form Select Specific */
.wizard-dialog .form-select,
.wizard-content .form-select,
.wizard-surface .form-select {
    appearance: none !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    cursor: pointer !important;
    padding-right: 38px !important;
}

/* Wizard Form Input Focus */
.wizard-dialog .form-input:focus,
.wizard-dialog .form-select:focus,
.wizard-content .form-input:focus,
.wizard-content .form-select:focus,
.wizard-surface .form-input:focus,
.wizard-surface .form-select:focus {
    border-color: var(--primary-color, #ff0080) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Wizard Textarea */
.wizard-dialog textarea.form-input,
.wizard-content textarea.form-input,
.wizard-surface textarea.form-input {
    min-height: 90px !important;
    resize: vertical !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    padding: 10px 12px !important;
}

/* Wizard Form Groups */
.wizard-dialog .form-group,
.wizard-content .form-group,
.wizard-surface .form-group {
    margin-bottom: 18px !important;
}

/* Wizard Form Row */
.wizard-dialog .form-row,
.wizard-content .form-row,
.wizard-surface .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

/* Wizard Form Field */
.wizard-dialog .form-field,
.wizard-content .form-field,
.wizard-surface .form-field {
    margin-bottom: 18px !important;
}

/* Wizard Select Options */
.wizard-dialog select.form-select option,
.wizard-content select.form-select option,
.wizard-surface select.form-select option {
    color: #333 !important;
    background: white !important;
    padding: 10px 12px !important;
}

/* Wizard Placeholder */
.wizard-dialog .form-input::placeholder,
.wizard-content .form-input::placeholder,
.wizard-surface .form-input::placeholder {
    color: #999 !important;
    font-style: italic !important;
}

/* Wizard Number Input */
.wizard-dialog input[type="number"].form-input,
.wizard-content input[type="number"].form-input,
.wizard-surface input[type="number"].form-input {
    -moz-appearance: textfield !important;
}

.wizard-dialog input[type="number"].form-input::-webkit-inner-spin-button,
.wizard-dialog input[type="number"].form-input::-webkit-outer-spin-button,
.wizard-content input[type="number"].form-input::-webkit-inner-spin-button,
.wizard-content input[type="number"].form-input::-webkit-outer-spin-button,
.wizard-surface input[type="number"].form-input::-webkit-inner-spin-button,
.wizard-surface input[type="number"].form-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.wizard-actions .btn-success {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    border-radius: var(--border-radius-lg, 10px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-gradient, linear-gradient(135deg, #f70880, #feaf8b));
    color: #fff;
    border: none;
}
.wizard-actions .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg, 0 4px 12px rgba(0,0,0,0.2));
}
.wizard-actions .btn-primary i,
.wizard-actions .btn-success i {
    color: #fff;
    font-size: 18px;
}

.wizard-complete-step {
    text-align: center;
    padding: 12px 8px 8px;
}
.wizard-complete-icon {
    width: 64px;
    height: 64px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, #f70880, #feaf8b));
    display: flex;
    align-items: center;
    justify-content: center;
}
.wizard-complete-icon i {
    font-size: 40px;
    color: #fff;
}
.wizard-complete-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color, #f70880);
}
.wizard-complete-lead {
    margin: 0 auto 20px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}
.wizard-complete-card {
    text-align: left;
    max-width: 440px;
    margin: 0 auto 16px;
    background: #fff;
    border: 1px solid rgba(247, 8, 128, 0.18);
    border-radius: 10px;
    padding: 8px 16px;
}
.wizard-complete-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f3f3;
    font-size: 13px;
}
.wizard-complete-row:last-child {
    border-bottom: none;
}
.wizard-complete-row span {
    color: #888;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wizard-complete-row span i {
    font-size: 16px;
    color: var(--primary-color, #f70880);
}
.wizard-complete-row strong {
    color: #212121;
    text-align: right;
}
.wizard-complete-warn {
    max-width: 440px;
    margin: 0 auto 12px;
    padding: 10px 12px;
    background: #fff8e1;
    color: #ef6c00;
    border-radius: 8px;
    font-size: 13px;
}
.wizard-complete-note {
    max-width: 440px;
    margin: 0 auto;
    font-size: 12px;
    color: #888;
}

/* Instruments & Proficiency — two cards per row, compact */
.wizard-dialog .instruments-list,
.wizard-surface .instruments-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wizard-dialog .instrument-item,
.wizard-surface .instrument-item {
    margin-bottom: 0 !important;
    min-width: 0;
    box-sizing: border-box;
}
.wizard-dialog .instrument-item .form-field,
.wizard-surface .instrument-item .form-field {
    margin-bottom: 0 !important;
}
.wizard-dialog .instrument-item .field-label,
.wizard-surface .instrument-item .field-label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
}
.wizard-dialog .instrument-item .proficiency-controls .form-input,
.wizard-surface .instrument-item .proficiency-controls .form-input {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}
.wizard-dialog .wizard-custom-fee-input.form-input,
.wizard-surface .wizard-custom-fee-input.form-input {
    background: #fffafc !important;
    border: 1.5px solid #f48fb1 !important;
    box-shadow: none !important;
    min-height: 36px !important;
    height: 36px !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: text;
}
.wizard-dialog .wizard-custom-fee-input.form-input:focus,
.wizard-surface .wizard-custom-fee-input.form-input:focus {
    outline: none !important;
    border-color: #ec407a !important;
    box-shadow: none !important;
    background: #fff !important;
}
.wizard-dialog .wizard-custom-fee-input.form-input::placeholder,
.wizard-surface .wizard-custom-fee-input.form-input::placeholder {
    color: #999 !important;
    font-style: normal !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}
@media (max-width: 700px) {
    .wizard-dialog .instruments-list,
    .wizard-surface .instruments-list {
        grid-template-columns: 1fr;
    }
}
