/* --- Global & Setup --- */
:root {
    --dark-blue: #1e293b;
    --green: #34aa6e;
    --light-gray: #f3f4f6;
    --border-gray: #e0e0e0;
    --text-gray: #6b7280;
    --highlight-red: #ef4444;
    --highlight-teal: #14b8a6;
    --highlight-blue: #00c2cb;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.main-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.progress-container {
    width: 95%;
    margin: 0 auto 1.5rem auto;
    background-color: var(--light-gray);
    border-radius: 8px;
    height: 8px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--dark-blue);
    border-radius: 8px;
    transition: width 0.4s ease-in-out;
}

/* --- Step Management --- */
.step {
    display: none;
    text-align: center;
    padding: 0 1rem;
    animation: fadeIn 0.5s;
}
.step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Typography & Common Elements --- */
.main-title { font-size: 1.2rem; color: var(--highlight-teal); margin-bottom: 0.2rem; }
.test-duration { text-decoration: underline; color: var(--text-gray); margin-bottom: 1.5rem;}
.quiz-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 2rem; color: var(--dark-blue); }
.quiz-title .highlight-red { color: var(--highlight-red); }
.quiz-title .highlight-teal { color: var(--highlight-teal); }
.subtitle { color: var(--text-gray); margin-top: 0; }
.central-text { font-size: 1.1rem; line-height: 1.6; margin: 1rem 0 2rem 0; }
.disclaimer { font-size: 0.8rem; color: var(--text-gray); margin: 1rem 0; }
.image-container { margin: 1.5rem 0; }

/* --- Buttons --- */
.next-btn { width: 100%; padding: 1rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity 0.3s; margin-top: 2rem; }
.dark-btn { background-color: var(--dark-blue); color: white; }
.green-btn { background-color: var(--green); color: white; }
.large-btn { padding: 1.2rem; font-size: 1.2rem; }

/* --- Grid Layouts (Age, Body Type) --- */
.grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-item { position: relative; width: 100%; padding-top: 125%; background-size: cover; background-position: center; border-radius: 12px; overflow: hidden; cursor: pointer; }
.grid-item span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; padding: 0.8rem; font-weight: 600; text-align: center; }
.grid-item span::after { content: '›'; position: absolute; right: 1rem; }

/* --- Forms & Inputs --- */
.quiz-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.radio-option, .checkbox-option { display: flex; align-items: center; padding: 1rem; border: 1px solid var(--border-gray); border-radius: 12px; cursor: pointer; text-align: left; transition: border-color 0.2s, background-color 0.2s; background-color: var(--light-gray); }
.radio-option:has(input:checked), .checkbox-option:has(input:checked) { border-color: var(--green); background-color: #f0fdf4; }
.radio-option .text, .checkbox-option .text { flex-grow: 1; }
.radio-option input, .checkbox-option input { display: none; }
.checkmark { width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 50%; transition: all 0.2s; flex-shrink: 0; }
.checkmark.square { border-radius: 6px; }
.radio-option input:checked + .checkmark { border: 7px solid var(--dark-blue); }
.checkbox-option input:checked + .checkmark { border-color: var(--green); background-color: var(--green); }
.icon-option .icon { font-size: 1.5rem; margin-right: 1rem; }
.checkbox-option img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; margin-right: 1rem; }

/* --- Country Grid --- */
.country-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.country-option { padding: 0.8rem 1rem; }
.country-option:has(input:checked) { border-color: var(--dark-blue); }

/* --- Specific Step Styles --- */
.binary-options { display: flex; gap: 1rem; margin-top: 2rem; }
.binary-option { flex: 1; padding: 1.2rem; border: 1px solid var(--border-gray); border-radius: 12px; font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.stats-container { display: flex; gap: 1rem; align-items: flex-end; }
.stat-card { flex: 1; padding: 1rem; border: 1px solid var(--border-gray); border-radius: 12px; }
.stat-bar-container { height: 120px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 1rem; background-color: var(--light-gray); border-radius: 8px; padding: 5px; }
.stat-bar { width: 60%; color: white; font-weight: 600; font-size: 0.8rem; padding-top: 5px; border-radius: 4px; }
.stat-card p { font-size: 0.9rem; color: var(--text-gray); }

/* --- Styles from Previous Project --- */
.unit-toggle { display: flex; justify-content: center; margin-bottom: 2rem; background-color: var(--light-gray); border-radius: 12px; padding: 5px; }
.unit-toggle .unit-btn { border: none; background-color: transparent; padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; }
.unit-toggle .unit-btn.active { background-color: var(--dark-blue); color: white; }
.number-input { font-size: 3rem; font-weight: 700; border: none; text-align: center; width: 100%; margin-bottom: 1rem; }
.number-input:focus { outline: none; }
.text-input-styled { width: 100%; padding: 1rem; border: 1px solid var(--border-gray); border-radius: 12px; font-size: 1rem; box-sizing: border-box; }
.info-box { background-color: #eff6ff; border: 1px solid #dbeafe; border-radius: 12px; padding: 1rem; text-align: left; margin: 1rem 0; }
.info-box p { margin: 0.5rem 0; color: #374151; }
.warning-box { background-color: #fee2e2; border-radius: 12px; padding: 0.8rem; margin: 1.5rem 0; font-weight: 600; color: #b91c1c; }
.analysis-title { font-size: 1.8rem; }
.imc-subtitle { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 2rem; }
.imc-scale-container { padding: 0 1rem; }
.imc-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-gray); }
.imc-bar { height: 10px; border-radius: 5px; background: linear-gradient(to right, #60a5fa, #34d399, #facc15, #f87171); position: relative; margin-top: 0.5rem; }
.imc-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; background-color: white; border: 4px solid var(--dark-blue); border-radius: 50%; }
.imc-dot span { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background-color: var(--dark-blue); color: white; padding: 2px 8px; border-radius: 5px; font-size: 0.8rem; }
.success-rate-title { font-weight: 600; margin-top: 2rem; }
.success-rate-bar-container { display: flex; align-items: center; gap: 1rem; }
.success-rate-bar { flex-grow: 1; height: 8px; background-color: var(--light-gray); border-radius: 4px; position: relative; }
.success-rate-bar::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 93%; background-color: var(--green); border-radius: 4px; }
.success-dot { position: absolute; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: white; border-radius: 50%; border: 1px solid var(--border-gray); box-shadow: 0 0 5px rgba(0,0,0,0.2); }
.final-text { margin-top: 2rem; line-height: 1.6; }
.projection-title { font-size: 1.8rem; }
.chart-container { margin: 1.5rem 0; }
.info-box-light-green { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; border-radius: 12px; padding: 0.5rem 1rem; text-align: left; }
.timer-banner { background-color: #fefce8; color: #a16207; padding: 0.8rem; border-radius: 10px; font-weight: 600; margin-bottom: 1.5rem; }
.offer-title { font-size: 1.7rem; text-align: left; margin-bottom: 1.5rem; }
.offer-title .highlight-blue { color: var(--highlight-blue); }
.offer-subtitle { text-align: left; font-weight: 600; color: var(--green); }
.checklist { list-style: none; padding: 0; text-align: left; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.8rem; }
.checklist li { background: url('https://api.iconify.design/material-symbols/check-small-rounded.svg?color=%2316a34a') no-repeat left center / 24px 24px; padding-left: 30px; line-height: 1.5; }