:root {
    --ink: #172033;
    --muted: #667085;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #e4e7ec;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-soft: #ccfbf1;
    --success: #0f766e;
    --danger: #c24157;
    --shadow: 0 18px 50px rgba(31, 41, 55, .09);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    padding: 42px 32px;
    color: var(--ink);
    background: #f4f7f9;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.page {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 760px;
    min-height: calc(100vh - 84px);
    margin: 0 auto;
    padding: 34px 44px 26px;
    border: 1px solid rgba(208, 213, 221, .7);
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}

.page::before {
    content: "SPEECH PERCEPTION STUDY";
    align-self: flex-start;
    margin-bottom: 28px;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
}

section {
    width: 100%;
    align-self: stretch;
    flex: 0 0 auto;
}

/* Keep the preparation/information screen's progress position aligned with the video screen. */
.information-page > section:first-child { width: 100%; margin-top: 28px; }

h1, h2, h3, h4 { color: var(--ink); }
h1 { margin: 0 0 20px; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin: 22px 0 12px; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
h4 { margin: 0 0 16px; font-size: 1rem; line-height: 1.4; }
p { width: 100%; margin: 0 0 16px; color: #344054; }

.browser-warning {
    padding: 14px 16px;
    border: 1px solid #f1c46a;
    border-radius: 12px;
    background: #fff8e6;
    color: #7a4d00;
    font-weight: 650;
}

ul { color: #475467; }

a { color: var(--brand-dark); }
a.disabled { color: #98a2b3; cursor: not-allowed; pointer-events: none; }

.continue,
input[type="submit"] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.continue:hover,
.continue:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 118, 110, .28); }

.continue:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible { outline: 3px solid rgba(45, 212, 191, .55); outline-offset: 3px; }

form { display: flex; width: 100%; align-items: stretch; justify-content: center; flex-direction: column; gap: 14px; }

select,
input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

select, option, input[type="radio"], input[type="checkbox"] { cursor: pointer; }

.impressum { margin-top: auto; padding-top: 28px; color: #98a2b3; font-size: .78rem; }
