/* saas-module.css - Styles for the SaaS Wizard inside EngERP */

.saas-wrapper {
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    /* Using dark theme text color as base, but might need adjustment for light theme portal */
}

/* Override portal defaults for the wizard container */
.wizard-container {
    display: flex;
    min-height: 600px;
    background: #0f172a;
    /* Force dark background for the wizard */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Sidebar */
.wizard-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.logo-area {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-area .highlight {
    color: #ff6b00;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.steps-indicator {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b00;
}

.step.active .step-icon {
    background: #ff6b00;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.step-title {
    font-weight: 600;
    color: #f8fafc;
}

/* Content */
.wizard-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background: radial-gradient(circle at 90% 10%, rgba(255, 107, 0, 0.05) 0%, transparent 40%);
}

.step-header {
    margin-bottom: 2.5rem;
}

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

.step-header p {
    color: #94a3b8;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #ff6b00;
}

/* Alerts */
.alert-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-box.warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

/* Buttons */
.btn-primary {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 500;
}

.btn-text:hover {
    color: white;
}

.step-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-actions.right {
    justify-content: flex-end;
}

/* Quiz Styles */
.quiz-item {
    margin-bottom: 2rem;
}

.quiz-item label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #f8fafc;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s;
    color: #cbd5e1;
}

.radio-option:hover,
.checkbox-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-option input,
.checkbox-option input {
    accent-color: #ff6b00;
}

/* Uploads */
.upload-section {
    margin-bottom: 2rem;
}

.upload-section h3 {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.upload-box {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.05);
}

.upload-box i {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.upload-box p {
    font-size: 0.875rem;
    color: #cbd5e1;
}

/* Payment */
.payment-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1.25rem;
    color: #ff6b00;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 12px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.method-card.selected {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
    color: white;
}

.btn-success {
    background: #22c55e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background: #16a34a;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        flex-direction: column;
    }

    .wizard-sidebar {
        width: 100%;
        padding: 1.5rem;
        flex-direction: row;
        overflow-x: auto;
        align-items: center;
        gap: 2rem;
    }

    .sidebar-header {
        margin-bottom: 0;
        margin-right: 2rem;
    }

    .steps-indicator {
        flex-direction: row;
        gap: 1rem;
    }

    .step-info {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}