/* Skin IQ Quiz Styles */
.quiz-container {
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    min-height: 600px;
    /* Increased height for better split view */
    display: flex;
    /* Ensure flex behavior for children row */
    /* Allow wrap for mobile */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-header {
    background: #232323;
    /* Dark Gray */
    padding: 20px 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-progress {
    height: 6px;
    background: #f0f0f0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-bar {
    height: 100%;
    background: #c48f56;
    /* Gold/Base Color */
    transition: width 0.4s ease;
}

.quiz-body {
    padding: 40px 50px;
}

/* Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.5s;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    /* Or alt-font */
    color: #232323;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .quiz-body {
        padding: 30px 20px;
    }
}

.quiz-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.quiz-option:hover {
    border-color: #c48f56;
    background: #fdfbf9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quiz-option.selected {
    border-color: #c48f56;
    background: #c48f56;
    color: #fff;
}

.option-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.quiz-option.selected .option-icon {
    color: #fff;
}

/* Touch targets for mobile */
@media (max-width: 576px) {
    .quiz-option {
        padding: 15px;
    }

    .option-icon {
        font-size: 20px;
        width: 30px;
    }

    .question-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

/* Navigation Buttons */
.quiz-footer {
    padding: 20px 50px 40px;
    display: flex;
    justify-content: space-between;
}

.btn-quiz {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-prev {
    background: #f0f0f0;
    color: #666;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next {
    background: #232323;
    color: #fff;
}

.btn-next:hover {
    background: #000;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Screen */
.result-card {
    text-align: center;
}

.result-icon {
    font-size: 60px;
    color: #c48f56;
    margin-bottom: 20px;
}

.doctor-note {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #c48f56;
    text-align: left;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    border-radius: 4px;
}

.treatment-recommendation {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Interactive Sidebar (Live Feed) */
.live-advice-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #c48f56;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Clinical Report Styles */
.clinical-report {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .clinical-report {
        padding: 20px;
    }

    .report-watermark {
        font-size: 40px;
    }

    .report-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .report-header .text-end {
        text-align: center !important;
    }
}

.clinical-report::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #232323;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
}

.report-section {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.report-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c48f56;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.report-value {
    font-size: 16px;
    color: #232323;
    font-weight: 500;
}

.prescription-box {
    background: #fdfbf9;
    padding: 20px;
    border: 1px dashed #c48f56;
    border-radius: 4px;
}

.report-signature {
    margin-top: 40px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.signature-line {
    width: 180px;
    height: 1px;
    background: #ddd;
    margin-bottom: 10px;
}

.medical-stamp {
    width: 70px;
    height: 70px;
    border: 2px solid #b32d2e;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b32d2e;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(-12deg);
    margin-bottom: 10px;
    padding: 2px;
    text-align: center;
    line-height: 1.1;
    position: relative;
    opacity: 0.85;
}

.medical-stamp::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid #b32d2e;
    border-radius: 50%;
    pointer-events: none;
}

/* Custom Scroll for options if list is long */
.quiz-body {
    max-height: 700px;
    overflow-y: auto;
}

/* Mobile Responsive Tweaks for Split Layout */
@media (max-width: 991px) {
    .quiz-container {
        flex-direction: column;
    }

    .col-lg-8,
    .col-lg-4 {
        width: 100%;
        border-right: none !important;
    }

    .wiki-content {
        padding: 30px;
        background: #f9f9f9;
        border-top: 1px solid #eee;
    }

    .clinical-report {
        padding: 20px;
    }
}

/* Glassmorphism for Wiki */
.wiki-content {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
}

.wiki-content.active {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Ensure progress bar is prominent */
.progress-bar {
    background: linear-gradient(90deg, #c48f56, #e99931);
    box-shadow: 0 0 10px rgba(233, 153, 49, 0.3);
}