/* NORD × Hrady.cz — kvíz. Branding odvozen z nord-solution.com */
:root {
    --brand: #002868;        /* navy */
    --brand-dark: #030E88;
    --accent: #E6273E;       /* červená */
    --accent-dark: #CF152B;
    --ink: #1a1f36;
    --muted: #6b7280;
    --line: #e3e6ef;
    --bg: #f4f6fb;
    --card: #ffffff;
    --green: #1f9d55;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(10, 23, 167, .08);
    --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: var(--font);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0;
}

.quiz {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 28px;
}

/* ── Hlavička / progress ── */
.quiz__head { margin-bottom: 22px; }

.quiz__brand {
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--brand);
    font-size: 15px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.quiz__brand span { color: var(--accent); margin: 0 4px; }

.quiz__progress {
    height: 7px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
}
.quiz__progress-bar {
    height: 100%;
    width: 16%;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: 99px;
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.quiz__counter {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

/* ── Karta / kroky ── */
#quizForm {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 22px 22px;
}

.step { display: none; animation: fade .35s ease; }
.step.is-active { display: block; }

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

.step__q {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--ink);
}

/* ── Možnosti ── */
.opts { display: flex; flex-direction: column; gap: 10px; }

.opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 15px 16px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .08s;
}
.opt:hover { border-color: var(--brand); background: #f7f9ff; }
.opt:active { transform: scale(.99); }

.opt__l {
    flex: 0 0 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--line);
    color: var(--brand);
    font-weight: 800;
    border-radius: 8px;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.opt.is-selected {
    border-color: var(--brand);
    background: #eef1ff;
}
.opt.is-selected .opt__l {
    background: var(--brand);
    color: #fff;
}

/* ── Pole kontaktu ── */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--ink);
}
.field input[type="text"],
.field input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--brand);
}
.field input.is-invalid { border-color: var(--accent); }

.field--check { margin-top: 4px; }
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
    cursor: pointer;
    font-weight: 400;
}
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.check a { color: var(--brand); }

/* ── Chyby ── */
.err { color: var(--accent); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.err:empty { margin: 0; }
.err--global { text-align: center; margin-top: 14px; font-weight: 600; }

/* ── Navigace ── */
.nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .08s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary {
    background: #0F62FE;
    color: #fff;
    border: 2px solid #0F62FE;
}
.btn--primary:not(:disabled):hover {
    background-color: #FFFFFF;
    color: #0396C2;
    border-color: #0396C2;
}
.btn--primary:disabled {
    background: #c3c9e8;
    color: #7a84b3;
    border-color: #c3c9e8;
    cursor: not-allowed;
}
.btn--ghost {
    flex: 0 0 auto;
    background: #fff;
    color: var(--brand);
    border: 2px solid var(--line);
}
.btn--ghost:hover { border-color: var(--brand); }

.btn.is-loading { opacity: .7; pointer-events: none; }

/* ── Mobil ── */
@media (max-width: 480px) {
    .quiz { padding: 14px 12px 22px; }
    #quizForm { padding: 20px 16px 18px; }
    .step__q { font-size: 18px; }
    .opt { font-size: 15px; padding: 14px; }
}
