* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f1f5f9;
    color: #333;
    line-height: 1.6;
}

/* --- Hero Header --- */

.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem 4rem;
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero .subtitle {
    font-size: 0.95rem;
    color: #93c5fd;
    margin-top: 0.25rem;
}

.hero-compact {
    padding: 1.25rem 2rem 1.5rem;
}

.hero-compact h1 {
    font-size: 1.25rem;
}

/* --- Progress Bar --- */

.progress-bar {
    max-width: 400px;
    margin: 0.75rem auto 0;
}

.progress-bar .track {
    background: rgba(255,255,255,0.2);
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    background: #fff;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar .label {
    font-size: 0.75rem;
    color: #93c5fd;
    margin-top: 0.35rem;
}

/* --- Content Card --- */

.content-card {
    max-width: 900px;
    margin: -1rem auto 2rem;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.content-card.centered {
    text-align: center;
    max-width: 640px;
}

.content-card p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-card .meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- Legacy container (admin) --- */

.container {
    max-width: 830px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- Questions --- */

.question {
    margin: 1.75rem 0;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.question:last-of-type {
    border-bottom: none;
}

.question > label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1e293b;
}

select, input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* --- Slider --- */

.slider-wrapper {
    position: relative;
    padding-bottom: 2rem;
}

input[type="range"] {
    width: 100%;
    height: 2rem;
}

.slider-bubble {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 1rem;
    font-weight: 700;
    background: #2563eb;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* --- Radio Buttons --- */

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.radio-group label:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.radio-group input[type="radio"] {
    accent-color: #2563eb;
}

.radio-group input[type="radio"]:checked + span {
    font-weight: 600;
}

/* --- Demographics --- */

.demo-group {
    margin: 0.75rem 0;
}

.sub-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* --- Buttons --- */

button, .btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

button:hover, .btn:hover {
    background: #1d4ed8;
}

button:active, .btn:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* --- Thanks page --- */

.checkmark {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #16a34a;
}

/* --- Tables (admin) --- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f0f0f0;
    font-weight: 600;
}
