:root {
    /* A csoszplatan.hu arculatához igazítva: palakék, zöld kiemelés, sárga hangsúly, Open Sans */
    --brand: #4c5b7b;
    --brand-dark: #34476f;
    --brand-soft: #edf0f5;
    --green: #4c9c3d;
    --yellow: #f7ea15;
    --accent: #c0392b;
    --ink: #333333;
    --muted: #777777;
    --line: #dddddd;
    --bs-primary: #4c5b7b;
    --bs-primary-rgb: 76, 91, 123;
    --bs-body-font-family: "Open Sans", Arial, sans-serif;
    --bs-border-radius: 2px;
}

body {
    background: #eeeeee;
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
}

h1, .h1, .h3, .h4 {
    font-weight: 300;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.survey-header {
    background: var(--brand-dark);
    color: #fff;
    padding: 14px 0;
    border-bottom: 4px solid var(--yellow);
}

.survey-header .brand {
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.survey-header .brand span {
    color: var(--yellow);
    font-weight: 700;
}

.survey-footer {
    padding-bottom: 32px;
    font-size: .9rem;
}

.survey-footer a {
    color: var(--muted);
}

.card-survey {
    background: #fff;
    border: 0;
    border-top: 3px solid var(--brand);
    border-radius: 0;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

@media (max-width: 576px) {
    .card-survey {
        padding: 20px 16px;
    }
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .92rem;
    padding: .55rem 1.2rem;
}

.btn-lg.btn-primary {
    font-size: 1rem;
    padding: .7rem 1.6rem;
}

.btn-outline-secondary {
    border-radius: 0;
}

.progress {
    height: 6px;
    background: var(--line);
}

.progress-bar {
    background: var(--green);
}

.section-kicker {
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Kérdések */
.question {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.question:first-of-type {
    border-top: 0;
}

.question.has-error {
    background: #fff6f6;
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
    border-left: 3px solid var(--accent);
}

@media (max-width: 576px) {
    .question.has-error {
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.question-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.question-title .num {
    color: var(--green);
    font-weight: 500;
    margin-right: 6px;
}

.question-help {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 10px;
}

.question-error {
    color: var(--accent);
    font-size: .92rem;
    font-weight: 500;
    margin-top: 8px;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    margin-bottom: 6px;
    cursor: pointer;
    background: #fff;
}

.choice:hover {
    border-color: #b5c3d4;
}

.choice input {
    margin-top: .3rem;
    flex-shrink: 0;
}

.choice:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.choice:has(input:disabled) {
    opacity: .5;
    cursor: not-allowed;
}

.other-input {
    margin: -2px 0 8px 34px;
    max-width: 420px;
}

/* Mátrix és skála */
.matrix-group {
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--brand);
    margin: 14px 0 4px;
}

.matrix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.matrix-row:last-child {
    border-bottom: 0;
}

.matrix-row .label {
    flex: 1 1 auto;
}

.matrix-row .btn-group {
    flex-shrink: 0;
}

.scale-legend {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.btn-scale {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: #c3ccd7;
    --bs-btn-hover-bg: var(--brand-soft);
    --bs-btn-hover-border-color: #9fb0c4;
    --bs-btn-active-bg: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-border-color: var(--brand);
    min-width: 42px;
}

.btn-check:checked + .btn-scale {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-na {
    min-width: auto;
    font-size: .85rem;
}

@media (max-width: 640px) {
    .matrix-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .matrix-row .btn-group {
        width: 100%;
    }

    .matrix-row .btn-group .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.scale-single .btn-group {
    width: 100%;
    max-width: 480px;
}

.scale-single .btn-group .btn {
    flex: 1 1 0;
}

.scale-single .scale-legend {
    max-width: 480px;
}

/* Százalékos megosztás */
.percent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.percent-row .input-group {
    width: 120px;
    flex-shrink: 0;
}

.percent-sum {
    margin-top: 10px;
    font-weight: 600;
}

.percent-sum.ok {
    color: var(--green);
}

.percent-sum.bad {
    color: var(--accent);
}

/* Navigáció */
.survey-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.save-status {
    font-size: .85rem;
    color: var(--muted);
    min-height: 1.2em;
}

.intro-text p {
    margin-bottom: .9rem;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-check-input:focus {
    border-color: #9aa6bf;
    box-shadow: 0 0 0 .2rem rgba(76, 91, 123, .2);
}
