:root {
    --primary: #1b35b8;
    --primary-dark: #000;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --danger: #e74c3c;
    --success: #2ecc71;
    --border-radius: 12px;
}

@font-face {
    font-family: 'CS Quiver Demo';
    /* Ensure these paths are correct relative to your CSS file */
    src: url('/fonts/CsQuiverRegularDemo-ov0o0.otf') format('opentype');
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    font-weight: normal;
}

.container {
    background: var(--card);
    width: 100%;
    max-width: 700px;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 25%;
    transition: width 0.3s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 600;
}

/* Headings */
h1 {
    text-align: center;
    color: var(--text);
    margin-bottom: 10px;
}

h2 {
    font-family: 'Arial', sans-serif;
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Form Steps */
.step {
    display: none;
    animation: fadeIn 0.5s;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Questions */
.question-block {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.question-text {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-label {
    flex: 1;
    position: relative;
    cursor: pointer;
    text-align: center;
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.2s;
    min-width: 70px;
}

.option-label:hover {
    border-color: var(--primary-dark);
}

/* Hide actual radio button */
.options input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Style when checked */
.options input[type="radio"]:checked + span {
    font-weight: bold;
}

.option-label:has(input:checked) {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Buttons */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-next {
    background-color: var(--primary);
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background-color: var(--primary-dark);
}

.btn-prev {
    background-color: #95a5a6;
    color: white;
}

.btn-prev:hover {
    background-color: #7f8c8d;
}

/* Validation Error */
.error-msg {
    color: var(--danger);
    text-align: right;
    margin-top: 10px;
    font-size: 0.9em;
    display: none;
}

/* Results Page */
.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.score-value {
    font-weight: bold;
}

.total-score {
    font-size: 1.5em;
    color: var(--primary);
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
}

.interpretation {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #e8f6f3;
    color: #0e6251;
    border-left: 5px solid #2ecc71;
}