body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Lato', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.quiz-container {
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 30px 40px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid #444; padding-bottom: 20px; }
header h1 { font-family: 'Cinzel', serif; font-weight: 700; font-size: 2.5em; color: #d4af37; margin: 0; }
header p { font-size: 1.1em; color: #aaa; }
.question-block { margin-bottom: 30px; }
.question-block h2 { font-family: 'Cinzel', serif; font-size: 1.5em; color: #c0c0c0; margin-bottom: 15px; border-left: 3px solid #d4af37; padding-left: 10px; }
.date-label, p { font-size: 1.1em; line-height: 1.6; }
input[type="date"] { width: 100%; padding: 10px; background-color: #333; border: 1px solid #555; border-radius: 5px; color: #e0e0e0; font-family: 'Lato', sans-serif; font-size: 1em; }

/* --- THIS IS THE NEW, GUARANTEED HIGHLIGHTING CODE --- */
.options .option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2a2a;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #444; /* Start with a neutral border */
}

.options .option-label:hover {
    background-color: #333;
}

.options input[type="radio"] {
    display: none; /* Hide the default radio button */
}

.indicator {
    width: 16px;
    height: 16px;
    border: 2px solid #888;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevents the circle from shrinking */
    margin-left: 15px;
}

/* THIS IS THE MAGIC: WHEN THE HIDDEN RADIO IS CHECKED... */
.options input[type="radio"]:checked + .indicator {
    background-color: #d4af37; /* The circle fills with gold */
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.options input[type="radio"]:checked ~ .option-label {
    border-color: #d4af37; /* The whole box gets a golden border */
    color: #fff;
}
/* Re-applying to the label itself for specificity */
.options .option-label input[type="radio"]:checked + span + .indicator {
    background-color: #d4af37;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}
.options input[type="radio"]:checked + span {
    color: #fff;
}
.option-label:has(input:checked) {
    border-color: #d4af37;
}

/* --- BUTTONS AND RESULTS ARE THE SAME --- */
button#calculate-btn { width: 100%; padding: 15px; background: linear-gradient(45deg, #d4af37, #c0c0c0); color: #121212; border: none; border-radius: 8px; font-family: 'Cinzel', serif; font-size: 1.5em; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
button#calculate-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
button#recalculate-btn { width: 100%; padding: 12px; margin-top: 20px; background-color: #2a2a2a; color: #c0c0c0; border: 1px solid #444; border-radius: 8px; font-family: 'Cinzel', serif; font-size: 1.2em; font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
button#recalculate-btn:hover { background-color: #333; color: #d4af37; border-color: #d4af37; }
#result-container { margin-top: 30px; padding: 30px; background-color: #181818; border-radius: 10px; border-top: 3px solid #d4af37; }
#result-container { 
    margin-top: 30px; 
    padding: 30px; 
    background-color: #181818; 
    border-radius: 10px; 
    border-top: 3px solid #d4af37; 
    min-height: 100px; /* Ensures it has some height even when empty */
    height: auto; /* THIS IS THE FIX: an auto height allows it to grow */
}