@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --bg-color: #f1f2f6;
    --card-bg: #ffffff;
    --green-flag: #2ed573;
    --yellow-flag: #ffa502;
    --red-flag: #ff4757;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.header { background-color: var(--primary-color); padding: 20px; color: white; }
.header h1 { font-size: 1.5rem; margin-bottom: 5px; }
.header p { font-size: 0.9rem; opacity: 0.9; }

.content { padding: 30px 20px; }

/* Utility Classes */
.screen { display: none; animation: fadeIn 0.5s ease-in-out; }
.screen.active { display: block; }
.green-text { color: var(--green-flag); font-weight: bold; }
.red-text { color: var(--red-flag); font-weight: bold; }

/* Buttons */
.btn {
    border: none; padding: 15px 30px; font-size: 1.1rem;
    border-radius: 50px; cursor: pointer; font-weight: 600;
    width: 100%; margin-top: 10px; transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-secondary { background-color: var(--secondary-color); color: white; }
.btn:disabled { background-color: #ccc; cursor: not-allowed; }

/* Quiz Styles */
.intro-text { margin-bottom: 25px; color: #555; line-height: 1.6; }

.progress-bar { width: 100%; height: 6px; background-color: #eee; margin-bottom: 20px; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background-color: var(--primary-color); width: 0%; transition: width 0.3s ease; }

.question-text { font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 25px; font-weight: 600; text-align: left; }

.options-grid { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
    background-color: white; border: 2px solid #e1e1e1; padding: 15px;
    border-radius: 12px; color: var(--secondary-color); font-size: 0.95rem;
    cursor: pointer; text-align: left; transition: all 0.2s; font-family: inherit;
}
.option-btn:hover { border-color: var(--primary-color); background-color: #fff0f1; }

/* Lock Screen & Result Styles */
.lock-icon { font-size: 4rem; margin-bottom: 15px; }
.lock-desc { margin-bottom: 20px; color: #555; }
.price-tag { font-size: 2rem; font-weight: bold; color: var(--secondary-color); margin: 15px 0; }
.small-note { font-size: 0.75rem; color: #999; margin-top: 15px; }

.score-circle {
    width: 120px; height: 120px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 20px; font-size: 2.5rem; font-weight: bold;
    color: white; border: 5px solid rgba(255,255,255,0.3);
}
.bg-green { background-color: var(--green-flag); }
.bg-yellow { background-color: var(--yellow-flag); }
.bg-red { background-color: var(--red-flag); }

.text-green { color: var(--green-flag); }
.text-yellow { color: var(--yellow-flag); }
.text-red { color: var(--red-flag); }

.footer-credit { margin-top: 30px; font-size: 0.7rem; color: #ccc; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }