body {
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

h1,
h2,
h3 {
    color: #111827;
}

.card {
    background: #ffffff;
    padding: 20px;
    margin-top: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

label {
    display: block;
    margin-bottom: 12px;
}

input[type="text"],
select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
}

button {
    background: #171f36;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
}

button:hover {
    background: #171f36;
}

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.timer {
    font-weight: bold;
    margin-top: 8px;
}

.domanda {
    margin-bottom: 24px;
}

.risposta {
    display: block;
    margin: 4px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: #e5e7eb;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

tr:nth-child(even) {
    background: #f9fafb;
}

.links {
    margin-top: 20px;
}

.links a {
    margin-right: 12px;
    color: #171f36;
    text-decoration: underline;
}

.question-container {
    display: none;
}

.question-container.active {
    display: block;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #171f36;
    border-radius: 999px;
    transition: width 0.3s;
}

.btn-next,
.btn-confirm {
    background: #171f36;
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    margin-top: 16px;
}

.btn-next:disabled,
.btn-confirm:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

#header {
    display: block;
    width: 100%;
    margin-bottom: 2.5rem;
}

.correct {
    color: green;
}

.wrong {
    color: red;
}

.ctas {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cta {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 2rem;
    color: white;
    background-color: #111827;
    text-align: center;
    text-decoration: none;
    font-size: 2rem;
}