/* Become a Business Wizard Styles */

.become-business-wizard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Progress Bar Styles */
.wizard-progress {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.progress-container {
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-number {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.step.completed .step-label {
    color: #10b981;
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Wizard Content Styles */
.wizard-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wizard-step {
    display: none;
    padding: 3rem;
    min-height: 500px;
}

.wizard-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.step-content {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-option:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.service-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-option input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.service-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.service-name {
    font-weight: 500;
    color: #374151;
}

/* Review Section */
.review-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.review-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-item .label {
    font-weight: 600;
    color: #374151;
    min-width: 140px;
}

.review-item .value {
    color: #1a202c;
    text-align: right;
    flex: 1;
}

#review-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.service-tag {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.terms-agreement {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 2px solid #f59e0b;
}

.terms-agreement .service-option {
    padding: 0;
    background: none;
    border: none;
}

.terms-agreement a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Theme Integration */
.theme-her .step.active .step-number,
.theme-her .progress-fill,
.theme-her .btn-primary {
    background: var(--her-primary, #ec4899);
}

.theme-her .step.active .step-number {
    border-color: var(--her-primary, #ec4899);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2);
}

.theme-her .step.active .step-label {
    color: var(--her-primary, #ec4899);
}

.theme-her .form-group input:focus,
.theme-her .form-group select:focus,
.theme-her .form-group textarea:focus {
    border-color: var(--her-primary, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.theme-her .service-option input[type="checkbox"]:checked + .checkmark {
    background: var(--her-primary, #ec4899);
    border-color: var(--her-primary, #ec4899);
}

.theme-her .btn-primary:hover {
    background: var(--her-dark, #be185d);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.theme-him .step.active .step-number,
.theme-him .progress-fill,
.theme-him .btn-primary {
    background: var(--him-primary, #3b82f6);
}

.theme-him .step.active .step-number {
    border-color: var(--him-primary, #3b82f6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.theme-him .step.active .step-label {
    color: var(--him-primary, #3b82f6);
}

/* ── iPad / Tablet (769px – 1024px) ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .become-business-wizard {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    /* Progress bar: shrink circles and labels so all 5 steps fit */
    .progress-steps {
        gap: 0.5rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-line {
        flex: 1;
        min-width: 20px;
    }

    /* Wizard content area */
    .wizard-step {
        padding: 2rem 1.5rem;
        min-height: 380px;
    }

    /* Cards grid: 2 columns on tablet (3 is too cramped) */
    .services-grid,
    .staff-grid,
    .salon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Navigation row stays horizontal but buttons don't stretch */
    .wizard-navigation {
        padding: 1.5rem;
        flex-direction: row;
    }

    .wizard-navigation .btn {
        width: auto;
        min-width: 140px;
    }

    /* Two-column form rows on tablet */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .become-business-wizard {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .wizard-progress {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        flex: none;
        min-width: 80px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .wizard-step {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .step-header p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wizard-navigation {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .review-item .value {
        text-align: left;
    }
    
    #review-services {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }
    
    .progress-steps {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .wizard-step {
        padding: 1.5rem 1rem;
    }
    
    .step-header {
        margin-bottom: 2rem;
    }
}

/* RTL Support */
html[dir="rtl"] .wizard-navigation {
    flex-direction: row-reverse;
}

html[dir="rtl"] .review-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .review-item .value {
    text-align: left;
}

html[dir="rtl"] .service-option {
    flex-direction: row-reverse;
}

html[dir="rtl"] .checkmark {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

