/* Full Page Setup Screen */
.qmsbf-setup-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.qmsbf-setup-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    margin: 40px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* Left Side */
.qmsbf-setup-left {
    flex: 1;
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 50%, #252525 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.qmsbf-setup-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.qmsbf-setup-brand {
    position: relative;
}

.qmsbf-setup-logo {
    width: 64px;
    height: auto;
    margin-bottom: 16px;
}

.qmsbf-setup-brand h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.qmsbf-setup-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    margin: 40px 0;
}

.qmsbf-setup-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.qmsbf-setup-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
}

.qmsbf-setup-feature h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.qmsbf-setup-feature p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Progress Indicator */
.qmsbf-setup-progress {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.qmsbf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qmsbf-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.qmsbf-progress-step span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.qmsbf-progress-step.active .qmsbf-progress-dot {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
}

.qmsbf-progress-step.active span {
    color: #ffffff;
}

.qmsbf-progress-step.completed .qmsbf-progress-dot {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.qmsbf-progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px 20px;
}

/* Right Side */
.qmsbf-setup-right {
    flex: 1.1;
    background: #fafafa;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.qmsbf-setup-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.qmsbf-setup-step {
    display: none;
}

.qmsbf-setup-step.active {
    display: block;
    animation: fadeSlideIn 0.3s ease;
}

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

.qmsbf-setup-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.qmsbf-setup-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.qmsbf-setup-card-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.qmsbf-setup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qmsbf-setup-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.qmsbf-setup-field input,
.qmsbf-setup-field select,
.qmsbf-setup-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.qmsbf-setup-field textarea {
    resize: vertical;
    min-height: 80px;
}

.qmsbf-setup-field input:focus,
.qmsbf-setup-field select:focus,
.qmsbf-setup-field textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.qmsbf-setup-field input::placeholder,
.qmsbf-setup-field textarea::placeholder {
    color: #9ca3af;
}

.qmsbf-setup-row {
    display: flex;
    gap: 12px;
}

.qmsbf-setup-row .qmsbf-setup-field {
    flex: 1;
}

.qmsbf-setup-field-small {
    flex: 0 0 80px !important;
}

.qmsbf-setup-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.qmsbf-setup-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.qmsbf-setup-back:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.qmsbf-setup-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.qmsbf-setup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.qmsbf-setup-submit:active {
    transform: translateY(0);
}

.qmsbf-setup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.qmsbf-setup-finish {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.qmsbf-setup-finish:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.qmsbf-setup-submit .qmsbf-arrow,
.qmsbf-setup-submit .qmsbf-check {
    transition: transform 0.2s;
}

.qmsbf-setup-submit:hover .qmsbf-arrow {
    transform: translateX(4px);
}

.qmsbf-spinner {
    animation: qmsbf-spin 1s linear infinite;
}

@keyframes qmsbf-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.qmsbf-setup-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.qmsbf-setup-divider::before,
.qmsbf-setup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.qmsbf-setup-divider span {
    padding: 0 14px;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qmsbf-setup-skip {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.qmsbf-setup-skip:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.qmsbf-setup-footer-text {
    margin-top: 20px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
}

.qmsbf-setup-footer-text a {
    color: #6b7280;
    text-decoration: none;
}

.qmsbf-setup-footer-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .qmsbf-setup-container {
        flex-direction: column;
        margin: 20px;
        max-width: 500px;
        min-height: auto;
    }
    
    .qmsbf-setup-left {
        padding: 30px 24px;
    }
    
    .qmsbf-setup-right {
        padding: 30px 24px;
    }
    
    .qmsbf-setup-card {
        padding: 28px;
    }
    
    .qmsbf-setup-features {
        margin: 24px 0;
    }
    
    .qmsbf-setup-brand h1 {
        font-size: 24px;
    }
    
    .qmsbf-setup-progress {
        margin-top: 20px;
    }
}

@media (max-width: 500px) {
    .qmsbf-setup-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .qmsbf-setup-left {
        padding: 24px 20px;
    }
    
    .qmsbf-setup-right {
        padding: 24px 20px;
    }
    
    .qmsbf-setup-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .qmsbf-setup-row {
        flex-direction: column;
    }
    
    .qmsbf-setup-field-small {
        flex: 1 !important;
    }
}
