:root {
    --header: #1772A6;
    --header-dark: #125f8b;
    --text: #20262b;
    --muted: #6f7a82;
    --border: #d8dee3;
    --background: #f5f7f8;
    --surface: #ffffff;
    --focus: rgba(23, 114, 166, 0.14);
    --success: #24764f;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    height: 87px;
    flex: 0 0 87px;
    background: var(--header);
    color: #fff;
}

.site-header__inner {
    width: min(1080px, calc(100% - 40px));
    height: 87px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.brand__mark {
    display: block;
    width: 44px;
    height: auto;
    flex: 0 0 auto;
}

.brand__name {
    display: block;
    width: auto;
    height: 42px;
    max-width: min(100%, 420px);
}

.brand-subtitle {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.82;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 54px;
    flex: 1 0 auto;
}

.form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 36px 40px 40px;
}

.form-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.form-intro {
    margin: 0 0 30px;
    color: var(--muted);
}

.case-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin-bottom: 32px;
    padding: 20px 22px;
    background: #f8fafb;
    border-left: 4px solid var(--header);
}

.case-summary__item {
    min-width: 0;
}

.case-summary__label {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.case-summary__value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.section-title {
    margin: 0 0 22px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.field {
    margin-bottom: 22px;
}

.field--full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.required {
    color: var(--header);
}

input[type="text"],
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c8d0d6;
    border-radius: 3px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--header);
    box-shadow: 0 0 0 3px var(--focus);
}

input::placeholder,
textarea::placeholder {
    color: #a1a9ae;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    font-weight: 400;
}

.consent input {
    margin: 4px 0 0;
    accent-color: var(--header);
}

.primary-button {
    border: 0;
    border-radius: 3px;
    padding: 13px 24px;
    background: var(--header);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.primary-button:hover {
    background: var(--header-dark);
}

.footnote {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.status {
    padding: 6px 0;
}

.status h1,
.status h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
}

.status p {
    margin: 0;
    color: var(--muted);
}

.status-success h1,
.status-success h2 {
    color: var(--success);
}

.site-footer {
    flex: 0 0 auto;
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer a {
    color: var(--header);
    font-size: 13px;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .site-header,
    .site-header__inner {
        height: 87px;
    }

    .site-header__inner {
        width: calc(100% - 28px);
    }

    .brand__mark {
        width: 30px;
    }

    .brand__name {
        height: 34px;
        max-width: calc(100vw - 90px);
    }

    .brand-subtitle {
        display: none;
    }

    .page {
        width: min(100% - 20px, 820px);
        padding: 20px 0 34px;
    }

    .form-panel {
        padding: 25px 20px 28px;
    }

    .form-title {
        font-size: 25px;
    }

    .case-summary,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--full {
        grid-column: auto;
    }

    .primary-button {
        width: 100%;
    }
}

/* ------- Dinamikus mezok stilusa (v2) ------- */

.field-help {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

select:focus {
    outline: none;
    border-color: #1772A6;
    box-shadow: 0 0 0 2px rgba(23, 114, 166, 0.15);
}

input[type="date"],
input[type="number"],
input[type="tel"] {
    font-family: inherit;
}
