/* =====================================================
   HEAR-LAND1 · quiz.css
   ===================================================== */

/* === Block 4 wrapper === */
.block4 {
    background: linear-gradient(170deg, #0d4b6e 0%, #0a3d5c 100%);
    padding: 88px 0;
    color: white;
}

.quiz-header {
    text-align: center;
    margin-bottom: 52px;
}
.quiz-tag {
    display: inline-block;
    background: rgba(61,184,210,0.18);
    border: 1.5px solid rgba(61,184,210,0.5);
    color: #7de8f8;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.quiz-header h2 { color: white; margin-bottom: 10px; }
.quiz-header p  { color: rgba(255,255,255,0.65); max-width: 440px; margin: 0 auto; font-size: 0.97rem; }

/* === Card === */
.quiz-card {
    background: white;
    border-radius: 20px;
    padding: 44px 44px 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 24px 72px rgba(0,0,0,0.22);
    color: #1a2530;
    position: relative;
}

/* === Progress === */
.quiz-progress-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}
.quiz-progress-bar {
    flex: 1;
    height: 5px;
    background: #deeef4;
    border-radius: 3px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3db8d2, #1a7a8a);
    border-radius: 3px;
    transition: width 0.45s cubic-bezier(.4,0,.2,1);
    width: 8.33%;
}
.quiz-progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a7284;
    white-space: nowrap;
    flex-shrink: 0;
}

/* === Steps === */
.quiz-step { display: none; }
.quiz-step.active {
    display: block;
    animation: q-fade-in 0.32s ease;
}
@keyframes q-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quiz-question {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0d4b6e;
    line-height: 1.38;
    margin-bottom: 26px;
}

/* === Options === */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border: 2px solid #d0e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.96rem;
    color: #1a2530;
    line-height: 1.45;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    user-select: none;
    -webkit-user-select: none;
}
.quiz-option:hover {
    border-color: #3db8d2;
    background: #f0fafc;
}
.quiz-option.selected {
    border-color: #1a7a8a;
    background: #e4f7fa;
    font-weight: 600;
}
.quiz-option.selected input[type="radio"] { accent-color: #1a7a8a; }

.quiz-option input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1a7a8a;
}

/* === Next button === */
.quiz-next {
    width: 100%;
    background: #0d4b6e;
    color: white;
    border: none;
    padding: 15px 24px;
    border-radius: 10px;
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.18s, opacity 0.18s, transform 0.1s;
}
.quiz-next:disabled {
    background: #b8d4de;
    cursor: not-allowed;
    opacity: 1;
}
.quiz-next:not(:disabled):hover {
    background: #1a5a6e;
    transform: translateY(-1px);
}
.quiz-next:not(:disabled):active { transform: translateY(0); }

/* === Result === */
.quiz-result {
    display: none;
    text-align: center;
    padding: 8px 0;
    animation: q-fade-in 0.4s ease;
}

.result-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}
.result-ring::after {
    content: '◉';
    font-size: 2.6rem;
}

.result-level-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.result-text {
    font-size: 0.97rem;
    color: #3a5264;
    margin-bottom: 22px;
    line-height: 1.65;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.result-tips {
    text-align: left;
    background: #f3f9fb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 28px;
}
.result-tips ul { list-style: none; padding: 0; }
.result-tips li {
    padding: 6px 0 6px 22px;
    font-size: 0.91rem;
    color: #3a5264;
    line-height: 1.55;
    position: relative;
}
.result-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3db8d2;
    font-weight: 700;
}

/* Level colours */
.result-low  .result-ring { background: rgba(46,125,50,0.1);  color: #2e7d32; }
.result-low  .result-level-label { color: #2e7d32; }
.result-medium .result-ring { background: rgba(249,168,37,0.1); color: #f9a825; }
.result-medium .result-level-label { color: #e8a000; }
.result-high .result-ring { background: rgba(230,81,0,0.1);   color: #e65100; }
.result-high .result-level-label { color: #e65100; }

.btn-result {
    display: inline-block;
    background: #0d4b6e;
    color: white;
    padding: 14px 36px;
    border-radius: 100px;
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.97rem;
    transition: background 0.18s, transform 0.18s;
    text-decoration: none;
}
.btn-result:hover {
    background: #1a7a8a;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}
