/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES: QUIZZ - DR. GEIME ROZANSKI
   Premium, Minimalist, Clinical & Intellectual CSS (Mobile-First)
   ========================================================================== */

/* Variables */
:root {
    --bg-main: #FAF9F8;        /* Off-white limpo moderno */
    --bg-card: #FFFFFF;        /* Branco puro para destacar elementos */
    --text-primary: #171717;   /* Cinza neutro muito escuro (quase preto) */
    --text-muted: #6B7280;     /* Cinza médio suave */
    --accent-dark: #0A0A0A;    /* Preto puro */
    --accent-dark-hover: #262626;
    --accent-light: #F4F4F5;   /* Cinza claro neutro */
    --border-color: #E5E7EB;   /* Cinza suave para bordas limpas */
    --border-radius-lg: 0px;   /* Sem arredondamento para estética clínica institucional */
    --border-radius-md: 0px;
    --border-radius-sm: 0px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03); 
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --max-width: 480px;
    --transition-speed: 0.35s;
}

/* Reset & Base Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    font-weight: 400;
}

/* Base Container - Mobile-first limits */
.quiz-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: var(--accent-light);
    margin-bottom: 28px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-dark);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Transition Animations */
.quiz-screen {
    display: none;
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    transition: opacity var(--transition-speed) ease, 
                transform var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }

.title-primary {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400; /* Estilo leve e elegante */
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.title-secondary {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* Monogram/Header Branding inside Quiz */
.brand-monogram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 16px;
}

.brand-monogram .font-serif {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.brand-sub {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    font-weight: 800;
    margin-top: 4px;
}

/* Option Cards */
.question-step {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.question-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.question-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -16px;
    margin-bottom: 20px;
    font-weight: 300;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.25s ease;
}

.option-emoji {
    font-size: 18px;
    margin-right: 12px;
}

.option-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    flex-grow: 1;
    letter-spacing: 0.01em;
}

/* Hover/Active for Option Cards */
.option-card:hover {
    border-color: var(--accent-dark);
    background-color: var(--bg-main);
}

.option-card:active {
    transform: scale(0.995);
}

/* Radio Check Indicators */
.option-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    margin-left: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.option-card:hover .option-check {
    border-color: var(--accent-dark);
}

/* Multi-select check box indicator */
.option-check-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    margin-left: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.option-card:hover .option-check-box {
    border-color: var(--accent-dark);
}

/* Selected States */
.option-card.selected {
    border-color: var(--accent-dark);
    background-color: var(--accent-light);
}

.option-card.selected .option-check {
    border-color: var(--accent-dark);
    background-color: var(--accent-dark);
}

.option-card.selected .option-check-box {
    border-color: var(--accent-dark);
    background-color: var(--accent-dark);
}

.option-card.selected .option-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
}

.option-card.selected .option-check-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Buttons */
.action-wrapper {
    margin-top: 24px;
}

.btn {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-dark);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: white;
}

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

.btn-cta {
    background-color: #0A0A0A;
    border-color: #0A0A0A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 20px 24px;
}

.btn-cta:hover {
    background-color: #262626;
    border-color: #262626;
}

.icon-arrow {
    width: 14px;
    height: 14px;
}

/* Security Badge */
.security-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 300;
}

.icon-shield {
    width: 12px;
    height: 12px;
}

/* Informative Screen */
.discovery-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--accent-light);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.informative-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 300;
    text-align: left;
}

.informative-text.highlighted {
    border-left: 2px solid var(--accent-dark);
    padding-left: 16px;
    font-style: italic;
    color: var(--text-primary);
}

/* Loading Screen Spinner */
.loading-spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 40px auto;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-light);
    border-top: 2px solid var(--accent-dark);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Diagnostic Result Card */
.diagnostic-result-card {
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    margin-bottom: 24px;
    background-color: var(--bg-main);
}

.attention-meter-container {
    margin: 20px 0 24px 0;
}

.attention-labels {
    display: flex;
    justify-content: justify;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.lbl-left { color: var(--text-primary); }
.lbl-right { color: #A3E635; /* Neon Green alternative clinical flag or dark grey */ color: var(--text-primary); }

.attention-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    overflow: hidden;
}

.attention-fill {
    height: 100%;
    background-color: var(--accent-dark);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.profile-details p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 300;
}

.profile-details ul {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.profile-details li {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    font-weight: 400;
}

.profile-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
}

/* Offer Screen Phases Summary */
.phases-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.phase-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.phase-item:last-child {
    border-bottom: none;
}

.phase-num {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1;
}

.phase-item div {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.phase-item div strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }
