/**
 * MRI Wizard Styles
 * Styling for the questionnaire wizard UI
 */

/* Wizard Step Content */
.wizard-title {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.wizard-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .wizard-title {
        font-size: 22px;
    }
    .wizard-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Select Dropdown */
.wizard-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.wizard-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Radio Buttons */
.wizard-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-radio-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.wizard-radio-label:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.wizard-radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wizard-radio-label input[type="radio"]:checked+span {
    font-weight: 600;
    color: #667eea;
}

.wizard-radio-label.inline {
    display: inline-flex;
    padding: 12px 18px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Checkboxes */
.wizard-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-checkbox-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.wizard-checkbox-label:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.wizard-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wizard-checkbox-label input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: #667eea;
}

/* Multi-radio (Multiple questions on one screen) */
.wizard-multi-radio {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Wizard Modal Integrated Styles */
.mri-modal {
    background-color: rgba(30, 41, 59, 0.9);
    /* Darker, more premium backdrop */
    backdrop-filter: blur(5px);
}

.mri-modal-content {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    max-width: 700px;
    width: 95%;
}

@media (max-width: 768px) {
    .mri-modal-content {
        padding: 25px 20px;
        border-radius: 15px;
    }
}

.mri-close-btn {
    top: 25px;
    right: 30px;
    color: #94a3b8;
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.2s;
}

.mri-close-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Progress Bar */
.mri-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 100px;
}

.mri-progress-fill {
    background: #0d6efd;
    /* Theme Link Color or Primary */
    border-radius: 100px;
}

/* Inputs & Form Elements */
.wizard-title {
    font-family: 'Outfit', sans-serif;
    /* Theme font */
    font-weight: 700;
    color: #0f172a;
    font-size: 32px;
}

.wizard-select,
.wizard-input {
    border: 1px solid #e2e8f0;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 17px;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .wizard-select,
    .wizard-input {
        padding: 14px 18px;
        font-size: 16px;
    }
    .wizard-radio-label,
    .wizard-checkbox-label {
        padding: 14px 18px;
        font-size: 15px;
    }
}

.wizard-select:focus,
.wizard-input:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.wizard-radio-label,
.wizard-checkbox-label {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 25px;
    font-weight: 500;
    color: #475569;
}

.wizard-radio-label:hover,
.wizard-checkbox-label:hover {
    border-color: #0d6efd;
    background: #eff6ff;
    color: #0d6efd;
}

.wizard-radio-label input[type="radio"]:checked+span,
.wizard-checkbox-label input[type="checkbox"]:checked+span {
    color: #0d6efd;
}

/* Navigation Buttons */
.mri-wizard-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.mri-wizard-nav .btn {
    padding: 15px 35px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .mri-wizard-nav {
        margin-top: 30px;
        padding-top: 15px;
    }
    .mri-wizard-nav .btn {
        padding: 12px 20px;
        font-size: 15px;
        flex: 1;
    }
}

/* Hide theme footer output if accidentally included in modal scope */
#mri-wizard-modal footer {
    display: none;
}