/* ==========================================================================
   SetupInHungary - main stylesheet
   ========================================================================== */

:root {
    --primary: #0e3b2e;
    --primary-dark: #092a20;
    --accent: #d64545;
    --accent-dark: #b93a3a;
    --text: #26312d;
    --text-light: #5d6b66;
    --bg: #ffffff;
    --bg-alt: #f4f7f5;
    --border: #d8e0dc;
    --success-bg: #e7f5ec;
    --success-text: #1d6b3c;
    --error-bg: #fbeaea;
    --error-text: #a03030;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(14, 59, 46, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img {
    max-width: 100%;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 860px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-light:hover {
    background: #eef4f1;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.logo span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav > a {
    color: #dfe9e4;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.main-nav > a:hover,
.main-nav > a.active {
    color: #fff;
}

.main-nav .btn-nav {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    font-size: 15px;
}

.main-nav .btn-nav:hover {
    background: var(--accent-dark);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7d9a8e;
    font-size: 14px;
}

.lang-switch a {
    color: #b9cdc4;
    text-decoration: none;
    font-weight: 600;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 60%, #06201a 100%);
    color: #fff;
    text-align: center;
    padding: 90px 0 100px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 19px;
    color: #cfe0d8;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: #9fbcb0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 44px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 14px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    color: var(--text-light);
}

.steps .step {
    background: #fff;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

.steps h3 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 8px;
}

.steps p {
    font-size: 15px;
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    background: var(--primary);
    color: #fff;
    padding: 48px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-inner h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.cta-inner p {
    color: #cfe0d8;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 42px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    padding: 0 20px 18px;
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Page head (subpages)
   -------------------------------------------------------------------------- */
.page-head {
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0;
}

.page-head h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.page-intro {
    max-width: 760px;
    color: #cfe0d8;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 26px;
}

.form-section legend {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    padding: 0 10px;
}

.form-section legend small {
    font-weight: 400;
    color: var(--text-light);
    font-size: 13px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.field label small {
    font-weight: 400;
    color: var(--text-light);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 59, 46, 0.12);
}

.hint {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 10px;
}

.sub-label {
    font-weight: 600;
    font-size: 14px;
    margin: 14px 0 8px;
    color: var(--primary);
}

/* Address grid, two rows:
   zip | city | street name | street type
   number | floor | door */
.address-grid {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 140px;
    gap: 12px;
}

.address-grid .field {
    margin-bottom: 0;
}

.address-grid .field-number,
.address-grid .field-floor,
.address-grid .field-door {
    max-width: 140px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.member-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 12px;
}

.member-grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* Live classification badge of an additional address */
.addr-type {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Repeatable blocks */
.repeat-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.repeat-item {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg-alt);
}

.repeat-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.repeat-item-head h4 {
    font-size: 15px;
    color: var(--primary);
}

.repeat-item-slim {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.repeat-item-slim .field-grow {
    flex: 1;
    margin-bottom: 0;
}

.btn-remove {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.btn-remove:hover {
    background: var(--accent);
    color: #fff;
}

.btn-add {
    margin-top: 4px;
}

.agent-block {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e4c9c9;
    border-radius: var(--radius);
    background: #fdf7f7;
}

.share-sum {
    margin-top: 14px;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--error-bg);
    color: var(--error-text);
}

.share-sum.share-ok {
    background: var(--success-bg);
    color: var(--success-text);
}

.consent-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.consent-field input {
    margin-top: 3px;
}

.btn-submit {
    width: 100%;
    margin-top: 18px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Honeypot: moved off-screen, never display:none so bots still fill it */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px;
    width: 1px;
    opacity: 0;
}

/* Form feedback */
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 18px 0 0;
    font-size: 15px;
}

.form-message.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #b8dfc6;
}

.form-message.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #eec4c4;
}

/* --------------------------------------------------------------------------
   Thank-you page
   -------------------------------------------------------------------------- */
.ty-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 40px;
    text-align: center;
}

.ty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ty-box h1 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 10px;
}

.ty-lead {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.ty-next {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
}

.ty-steps {
    text-align: left;
    max-width: 620px;
    margin: 0 auto 32px;
    padding-left: 24px;
    color: var(--text);
}

.ty-steps li {
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--primary-dark);
    color: #9fbcb0;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-disclaimer {
    max-width: 640px;
    margin: 0 auto 10px;
    font-size: 13px;
}

.footer-copy {
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .address-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .member-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 680px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--primary);
        padding: 10px 20px 20px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a {
        padding: 12px 0;
        width: 100%;
    }

    .main-nav .btn-nav {
        margin-top: 8px;
        text-align: center;
    }

    .lang-switch {
        margin-top: 14px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .address-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 60px 0 70px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .repeat-item-slim {
        flex-direction: column;
        align-items: stretch;
    }
}
