/**
 * Business Onboarding - Frontend Styles
 * Matching SuccessPlus Onboarding design
 */

:root {
    --bo-primary: #0292B7;
    --bo-secondary: #1AC8DB;
    --bo-accent: #C5EEF9;
    --bo-success: #10b981;
    --bo-error: #ef4444;
    --bo-warning: #f59e0b;
    --bo-text: #1f2937;
    --bo-text-light: #6b7280;
    --bo-border: #e5e7eb;
    --bo-bg: #f9fafb;
    --bo-white: #ffffff;
    --bo-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --bo-radius: 12px;
    --bo-transition: all 0.3s ease;
}

/* Container */
.bo-onboarding-container {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

/* Progress Bar - Matching SuccessPlus style */
.bo-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.bo-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.bo-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bo-white);
    color: var(--bo-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: var(--bo-transition);
    border: 3px solid var(--bo-border);
}

.bo-progress-step.active .bo-step-number {
    background: var(--bo-primary);
    color: var(--bo-white);
    border-color: var(--bo-primary);
    box-shadow: 0 4px 15px rgba(2, 146, 183, 0.3);
}

.bo-progress-step.completed .bo-step-number {
    background: var(--bo-white);
    color: var(--bo-primary);
    border-color: var(--bo-primary);
}

.bo-progress-step.completed .bo-step-number::after {
    content: '✓';
    position: absolute;
    font-size: 20px;
    color: var(--bo-primary);
}

.bo-step-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bo-text-light);
    text-align: center;
    max-width: 100px;
    transition: var(--bo-transition);
}

.bo-progress-step.active .bo-step-label {
    color: var(--bo-primary);
}

.bo-progress-step.completed .bo-step-label {
    color: var(--bo-primary);
}

.bo-progress-line {
    width: 80px;
    height: 3px;
    background: var(--bo-border);
    margin: 0 10px;
    margin-bottom: 30px;
    border-radius: 2px;
    transition: var(--bo-transition);
}

.bo-progress-step.completed + .bo-progress-line,
.bo-progress-step.active + .bo-progress-line {
    background: var(--bo-primary);
}

/* Form Wrapper */
.bo-form-wrapper {
    background: var(--bo-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(2, 146, 183, 0.1);
}

.bo-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bo-text);
    margin: 0 0 10px 0;
    text-align: center;
}

.bo-form-intro {
    font-size: 16px;
    color: var(--bo-text-light);
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.bo-step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--bo-primary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bo-accent);
}

/* Step Content */
.bo-step-content {
    display: none;
}

.bo-step-content.active {
    display: block;
    animation: boFadeIn 0.4s ease;
}

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

/* Form Groups */
.bo-form-group {
    margin-bottom: 20px;
}

.bo-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bo-text);
    margin-bottom: 8px;
}

.bo-required {
    color: var(--bo-error);
    margin-left: 3px;
}

.bo-form-group input[type="text"],
.bo-form-group input[type="email"],
.bo-form-group input[type="tel"],
.bo-form-group input[type="url"],
.bo-form-group input[type="number"],
.bo-form-group input[type="password"],
.bo-form-group textarea,
.bo-form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--bo-border);
    border-radius: 10px;
    background: var(--bo-white);
    color: var(--bo-text);
    transition: var(--bo-transition);
    box-sizing: border-box;
}

.bo-form-group input:focus,
.bo-form-group textarea:focus,
.bo-form-group select:focus {
    outline: none;
    border-color: var(--bo-primary);
    box-shadow: 0 0 0 4px var(--bo-accent);
}

.bo-form-group input.error,
.bo-form-group textarea.error,
.bo-form-group select.error {
    border-color: var(--bo-error);
}

.bo-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.bo-field-description {
    font-size: 13px;
    color: var(--bo-text-light);
    margin-top: 6px;
    display: block;
}

.bo-field-error {
    font-size: 13px;
    color: var(--bo-error);
    margin-top: 6px;
    display: none;
}

.bo-form-group.has-error .bo-field-error {
    display: block;
}

/* Password Wrapper */
.bo-password-wrapper {
    position: relative;
}

.bo-password-wrapper input {
    padding-right: 50px;
}

.bo-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--bo-text-light);
    transition: var(--bo-transition);
}

.bo-toggle-password:hover {
    color: var(--bo-primary);
}

/* Password Strength */
.bo-password-strength {
    height: 5px;
    border-radius: 3px;
    margin-top: 8px;
    background: var(--bo-border);
    overflow: hidden;
    opacity: 0;
    transition: var(--bo-transition);
}

.bo-password-strength.active {
    opacity: 1;
}

.bo-password-strength::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: var(--bo-transition);
}

.bo-password-strength.weak::before {
    width: 33%;
    background: var(--bo-error);
}

.bo-password-strength.medium::before {
    width: 66%;
    background: var(--bo-warning);
}

.bo-password-strength.strong::before {
    width: 100%;
    background: var(--bo-success);
}

/* Checkbox */
.bo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--bo-text);
    line-height: 1.5;
}

.bo-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--bo-primary);
    flex-shrink: 0;
}

.bo-checkbox-text {
    flex: 1;
}

/* Navigation Buttons */
.bo-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--bo-border);
}

.bo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--bo-transition);
    text-decoration: none;
}

.bo-btn-primary {
    background: linear-gradient(135deg, var(--bo-primary) 0%, var(--bo-secondary) 100%);
    color: var(--bo-white);
    box-shadow: 0 4px 15px rgba(2, 146, 183, 0.3);
    margin-left: auto;
}

.bo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 146, 183, 0.4);
    color: var(--bo-white);
}

.bo-btn-secondary {
    background: var(--bo-white);
    color: var(--bo-text);
    border: 2px solid var(--bo-border);
}

.bo-btn-secondary:hover {
    background: var(--bo-accent);
    border-color: var(--bo-primary);
    color: var(--bo-primary);
}

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

/* Success Message */
.bo-success-message {
    text-align: center;
    padding: 40px 20px;
}

.bo-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bo-primary) 0%, var(--bo-secondary) 100%);
    border-radius: 50%;
    margin-bottom: 25px;
    color: var(--bo-white);
    box-shadow: 0 8px 30px rgba(2, 146, 183, 0.3);
}

.bo-success-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bo-text);
    margin: 0 0 15px 0;
}

.bo-success-message p {
    font-size: 16px;
    color: var(--bo-text-light);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* Loading Overlay */
.bo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--bo-radius);
}

.bo-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bo-accent);
    border-top-color: var(--bo-primary);
    border-radius: 50%;
    animation: boSpin 0.8s linear infinite;
}

@keyframes boSpin {
    to {
        transform: rotate(360deg);
    }
}

.bo-loading-overlay p {
    margin-top: 15px;
    font-size: 15px;
    color: var(--bo-text-light);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .bo-onboarding-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .bo-form-wrapper {
        padding: 25px 20px;
    }
    
    .bo-form-title {
        font-size: 22px;
    }
    
    .bo-progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bo-progress-line {
        display: none;
    }
    
    .bo-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .bo-step-label {
        font-size: 11px;
        max-width: 70px;
    }
    
    .bo-nav-buttons {
        flex-direction: column;
    }
    
    .bo-btn {
        width: 100%;
    }
    
    .bo-btn-primary {
        margin-left: 0;
        order: -1;
    }
}