/*
 * MFA Traders challenge checkout, MFA 2.0 design (KZC-1188, Figma "Do wdrożenia – dla Wojtka (HTML)").
 * These defaults are the base theme (BaseThemeCatalog 'mfa-challenge'); a link's theme overrides the
 * --m2-bg-*, --m2-accent, --m2-cta and --m2-cta-shadow variables (parts/theme-style.html.twig).
 * Form card: dark by default, light with body.mfa2-card-light (theme field "Karta formularza").
 */
:root {
    --m2-black: #0d0d0d;
    --m2-white: #ffffff;
    --m2-accent: #afc0da;          /* title accent, CTA end */
    --m2-accent-soft: #dbe4f1;     /* CTA start */
    --m2-muted: #b7bcc4;
    --m2-muted-2: #8c929b;
    --m2-link: #028be9;
    --m2-trust: #219653;
    --m2-error: #ff7a7a;
    --m2-cta: linear-gradient(90deg, var(--m2-accent-soft) 0%, var(--m2-accent) 100%);
    --m2-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* dark card (default) */
    --m2-card-bg: rgba(255, 255, 255, 0.045);
    --m2-card-border: rgba(255, 255, 255, 0.12);
    --m2-card-text: var(--m2-white);
    --m2-card-sub: var(--m2-muted);
    --m2-field-bg: rgba(255, 255, 255, 0.04);
    --m2-field-border: rgba(255, 255, 255, 0.16);
    --m2-field-focus: var(--m2-accent);
    --m2-field-text: var(--m2-white);
    --m2-placeholder: var(--m2-muted-2);
    --m2-box-bg: rgba(255, 255, 255, 0.03);
    --m2-line: rgba(255, 255, 255, 0.1);
    --m2-card-link: var(--m2-link);
    --m2-total: var(--m2-accent);
    --m2-back-border: rgba(255, 255, 255, 0.85);
    --m2-back-text: var(--m2-white);
    --m2-radio-on-bg: rgba(175, 192, 218, 0.08);

    --m2-pad-x: clamp(16px, 5.8vw, 112px);
}

body.mfa2-card-light {
    --m2-card-bg: #ffffff;
    --m2-card-border: #ffffff;
    --m2-card-text: var(--m2-black);
    --m2-card-sub: #5b616b;
    --m2-field-bg: #ffffff;
    --m2-field-border: #d7dbe0;
    --m2-field-focus: #354c70;
    --m2-field-text: var(--m2-black);
    --m2-placeholder: #8c929b;
    --m2-box-bg: #f5f7fa;
    --m2-line: #e3e7ec;
    --m2-card-link: #354c70;
    --m2-total: #354c70;
    --m2-back-border: var(--m2-black);
    --m2-back-text: var(--m2-black);
    --m2-radio-on-bg: #eef2f8;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.mfa2 {
    margin: 0;
    min-height: calc(100vh / var(--m2-zoom, 1));
    font-family: var(--m2-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--m2-white);
    background-color: var(--m2-black);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.1) 75%),
        var(--m2-bg-desktop, url("../img/mfa2/tlo-16x9-2560.webp"));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 2200px) {
    body.mfa2 {
        background-image:
            linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.1) 75%),
            var(--m2-bg-desktop-4k, url("../img/mfa2/tlo-16x9-3840.webp"));
    }
}

.mfa2 img { max-width: 100%; height: auto; }
.mfa2 a { color: inherit; }
.mfa2 h1,
.mfa2 h2,
.mfa2 p { margin: 0; }

/* ---------- header ---------- */
.m2-header {
    display: flex;
    align-items: center;
    gap: 24px 40px;
    padding: 52px var(--m2-pad-x) 0;
}
.m2-logo { flex: none; }
.m2-logo img { display: block; width: 154px; height: auto; }

.m2-stepper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}
.m2-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--m2-muted-2);
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}
.m2-step + .m2-step::before {
    content: "";
    width: 48px;
    height: 1px;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.28);
}
.m2-step-dot {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.m2-step--current { color: var(--m2-white); font-weight: 600; }
.m2-step--current .m2-step-dot { border-color: var(--m2-white); }
.m2-step--done { color: var(--m2-white); }
.m2-step--done .m2-step-dot { border: 0; background: var(--m2-cta); color: var(--m2-black); }

/* light / dark form card switch (sun = switch to light card, moon = back to dark) */
.m2-mode {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
    color: var(--m2-white);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.m2-mode:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--m2-white); }
.m2-mode .m2-mode-moon { display: none; }
body.mfa2-card-light .m2-mode .m2-mode-sun { display: none; }
body.mfa2-card-light .m2-mode .m2-mode-moon { display: block; }
@media (prefers-reduced-motion: no-preference) {
    .mfa2 .tile { transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
}
.m2-lang { position: relative; flex: none; margin-left: 8px; }
.m2-lang summary,
.m2-lang--static {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.m2-lang summary::-webkit-details-marker { display: none; }
.m2-lang ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 5;
    min-width: 100%;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #15181d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
}
.m2-lang li a { display: block; padding: 6px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.m2-lang li a:hover,
.m2-lang li.active a { background: rgba(255, 255, 255, 0.08); }

/* ---------- columns ---------- */
.m2-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
    align-items: center;
    gap: 48px clamp(32px, 6vw, 140px);
    padding: 44px var(--m2-pad-x) 44px;
    min-height: calc(100vh / var(--m2-zoom, 1) - 100px);
}
.m2-columns .center-wrapper,
.m2-columns .center-wrapper > div { width: 100%; }
.m2-columns .body-right-col { width: 100%; }

/* legacy pieces replaced by the header */
.mfa2 ul.steps,
.mfa2 p.back { display: none !important; }

/* ---------- hero (left) ---------- */
.m2-hero { max-width: 900px; }
.m2-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #c3d0e4;
    color: var(--m2-black);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.m2-hero-title {
    margin-top: 26px !important;
    font-size: clamp(40px, 3.35vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.m2-hero-light { display: block; font-weight: 300; color: var(--m2-white); }
.m2-hero-bold { display: block; font-weight: 700; color: var(--m2-accent); }
.m2-hero-text {
    max-width: 540px;
    margin-top: 28px !important;
    color: var(--m2-muted);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
}
.m2-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.m2-trust-word { font-size: 17px; font-weight: 500; }
.m2-trust-stars { display: inline-flex; gap: 4px; }
.m2-trust-stars span { display: grid; place-items: center; width: 28px; height: 28px; background: var(--m2-trust); }
.m2-trust-stars svg { width: 20px; height: 20px; }
.m2-trust-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.m2-trust-brand svg { width: 24px; height: 24px; }
.m2-mockup { margin-top: 48px; max-width: 880px; }
.m2-mockup img { display: block; width: 100%; height: auto; }

/* ---------- form card (right) ---------- */
.mfa2 .tile {
    position: relative;
    padding: clamp(28px, 3vw, 56px);
    border-radius: 32px;
    background: var(--m2-card-bg);
    border: 1px solid var(--m2-card-border);
    color: var(--m2-card-text);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
    .mfa2 .tile { animation: m2-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
    .m2-hero { animation: m2-fade 1.6s ease both; }
    /* later steps: the page is already familiar, so only a short card entrance */
    body.step-after-first .tile { animation-duration: .6s; }
    body.step-after-first .m2-hero { animation: none; }
}
@keyframes m2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes m2-fade { from { opacity: 0; } to { opacity: 1; } }

.mfa2 .tile .title {
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}
.mfa2 .tile .title span,
.mfa2 .tile .theme-subtitle {
    display: block;
    margin-top: 10px;
    font-size: clamp(18px, 1.2vw, 22px);
    font-weight: 300;
    letter-spacing: 0;
    color: var(--m2-card-sub);
}
.mfa2 .tile .title br { display: none; }
.mfa2 .tile .theme-subtitle { margin: -20px 0 28px; }

/* price under the step 1 title (KZC-1027) */

/* fields */
.mfa2 form { margin: 0; }
.mfa2 .input-text,
.mfa2 .input-radio { margin-bottom: 22px; }
.mfa2 .input-text label,
.mfa2 .input-radio > label,
.mfa2 .tile .label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--m2-card-text);
}
.mfa2 .star-red { color: inherit; }
.mfa2 .tile input[type="text"],
.mfa2 .tile input[type="email"],
.mfa2 .tile input[type="password"],
.mfa2 .tile input[type="tel"],
.mfa2 .tile input[type="number"],
.mfa2 .tile select,
.mfa2 .select2-container--default .select2-selection--single {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--m2-field-border);
    background: var(--m2-field-bg);
    color: var(--m2-field-text);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
.mfa2 .tile select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238C929B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.mfa2 .tile select option { color: #0d0d0d; }
.mfa2 .tile input::placeholder { color: var(--m2-placeholder); opacity: 1; }
.mfa2 .tile input:focus,
.mfa2 .tile select:focus,
.mfa2 .select2-container--default.select2-container--focus .select2-selection--single,
.mfa2 .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--m2-field-focus);
    box-shadow: 0 0 0 3px rgba(175, 192, 218, 0.18);
}
/* locked e-mail with a padlock (steps 2 and 3) */
.mfa2 .input-text.disabled input,
.mfa2 .tile input.input-locker[readonly],
.mfa2 .tile input.input-locker:disabled {
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5' fill='%238C929B'/%3E%3Cpath d='M5.2 7V5.3a2.8 2.8 0 015.6 0V7' fill='none' stroke='%238C929B' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    color: var(--m2-card-text);
    opacity: 1;
}
.mfa2 .discount-input-wrapper input.input-locker { padding-left: 18px; background-image: none; }

/* select2 (prefix, citizenship, birth date): the field inside the card */
.mfa2 .tile .select2-container { width: 100% !important; }
.mfa2 .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 50px;
    color: var(--m2-field-text);
}
.mfa2 .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--m2-placeholder); }
.mfa2 .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 14px; width: 14px; }
.mfa2 .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238C929B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s;
}
.mfa2 .select2-container--open .select2-selection--single .select2-selection__arrow b { transform: rotate(180deg); }

/* select2: the open list (appended to <body>, so it takes the card colours from body.mfa2 / body.mfa2-card-light) */
body.mfa2 { --m2-menu-bg: #15181d; --m2-menu-text: #e9ecf1; --m2-menu-hover: rgba(175, 192, 218, 0.16); --m2-menu-selected: rgba(175, 192, 218, 0.28); }
body.mfa2-card-light { --m2-menu-bg: #ffffff; --m2-menu-text: #0d0d0d; --m2-menu-hover: #eef2f8; --m2-menu-selected: #dbe4f1; --m2-menu-shadow: 0 12px 32px rgba(13, 13, 13, 0.16); }
.mfa2 .select2-dropdown {
    margin-top: 6px;
    border: 1px solid var(--m2-field-border);
    border-radius: 12px !important;
    background: var(--m2-menu-bg);
    color: var(--m2-menu-text);
    font-family: var(--m2-font);
    font-size: 15px;
    overflow: hidden;
    box-shadow: var(--m2-menu-shadow, 0 18px 48px rgba(0, 0, 0, 0.45));
}
.mfa2 .select2-dropdown--above { margin-top: -6px; }
/* the list lives inside the field's wrapper (dropdownParent) and always opens right under the field, whatever the page zoom */
.mfa2 .tile .input-text { position: relative; }
.mfa2 .tile .input-text > .select2-container:not(.select2) {
    display: block;
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 20;
}
.mfa2 .tile .input-text > .select2-container:not(.select2) .select2-dropdown { position: static; width: 100% !important; }
.mfa2 .tile .input-text > .select2-container:not(.select2) .select2-dropdown--above { margin-top: 6px; }
.mfa2 .select2-search--dropdown { padding: 10px; }
.mfa2 .select2-search--dropdown .select2-search__field {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--m2-field-border);
    border-radius: 8px;
    background: var(--m2-field-bg);
    color: var(--m2-menu-text);
    font: inherit;
    outline: none;
}
.mfa2 .select2-search--dropdown .select2-search__field:focus { border-color: var(--m2-field-focus); }
.mfa2 .select2-results > .select2-results__options { max-height: min(260px, 38vh); padding: 0 6px 6px; scrollbar-width: thin; scrollbar-color: var(--m2-field-border) transparent; }
.mfa2 .select2-container--default .select2-results__option {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--m2-menu-text);
}
.mfa2 .select2-container--default .select2-results__option[aria-disabled="true"] { color: var(--m2-placeholder); }
.mfa2 .select2-container--default .select2-results__option--highlighted[aria-selected],
.mfa2 .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--m2-menu-hover); color: var(--m2-menu-text); }
.mfa2 .select2-container--default .select2-results__option[aria-selected="true"],
.mfa2 .select2-container--default .select2-results__option--selected { background: var(--m2-menu-selected); color: var(--m2-menu-text); font-weight: 500; }
.mfa2 .select2-results__message { color: var(--m2-placeholder); }

/* grid used by the existing markup */
.mfa2 .tile .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.mfa2 .tile .row > .column { grid-column: span 12; margin: 0; padding: 0; min-width: 0; }
.mfa2 .tile .row > .small-5 { grid-column: span 5; }
.mfa2 .tile .row > .small-7 { grid-column: span 7; }
@media (min-width: 640px) {
    .mfa2 .tile .row > .medium-6 { grid-column: span 6; }
    .mfa2 .tile .row > .medium-4 { grid-column: span 4; }
    .mfa2 .tile .row > .medium-8 { grid-column: span 8; }
    .mfa2 .m2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
.mfa2 .m2-pair .constraints { grid-column: 1 / -1; }

/* password rules */
.mfa2 .constraints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mfa2 .constraints span {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--m2-line);
    color: var(--m2-card-sub);
    font-size: 12px;
}
.mfa2 .password-mismatch { border-color: var(--m2-error) !important; }

/* checkboxes (consents) */
.mfa2 .consents,
.mfa2 .checkout-consents { display: grid; gap: 14px; margin: 6px 0 26px; }
.mfa2 .input-checkbox { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.mfa2 .input-checkbox input[type="checkbox"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border-radius: 5px;
    border: 1.5px solid var(--m2-field-border);
    background: var(--m2-field-bg);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.mfa2 .input-checkbox input[type="checkbox"]:checked {
    border-color: transparent;
    background: var(--m2-cta) center / 100% no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--m2-cta);
}
.mfa2 .input-checkbox label { font-size: 14px; line-height: 1.5; color: var(--m2-card-sub); cursor: pointer; }
.mfa2 .input-checkbox label a,
.mfa2 .tile a:not(.button) { color: var(--m2-card-link); text-decoration: none; }
.mfa2 .input-checkbox label a:hover,
.mfa2 .tile a:not(.button):hover { text-decoration: underline; }
.mfa2 :focus-visible { outline: 2px solid var(--m2-accent); outline-offset: 2px; }

/* discount code with the "Aktywuj" pill inside the field */
.mfa2 .discount-input-wrapper { position: relative; }
.mfa2 .discount-input-wrapper input { padding-right: 130px; }
.mfa2 .discount-input-wrapper .activate,
.mfa2 .discount-input-wrapper button {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--m2-cta);
    color: var(--m2-black);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* summary box */
.mfa2 .summary-list {
    margin: 4px 0 30px;
    padding: 6px 20px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid var(--m2-line);
    background: var(--m2-box-bg);
}
.mfa2 .summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--m2-line);
    color: var(--m2-card-sub);
    font-size: 16px;
}
.mfa2 .summary-list li span:last-child { color: var(--m2-card-text); font-variant-numeric: tabular-nums; }
.mfa2 .summary-list li:last-child { border-bottom: 0; }
/* product attributes stay in the left column; the box shows price, discount and total as in the design */
.mfa2 .summary-list li:not(:first-child):not(.discount):not(.summary):not(.bundle-contents-title):not(.bundle-contents-item) { display: none; }
.mfa2 .summary-list li.discount { display: flex; }
.mfa2 .summary-list li.summary { padding: 20px 0 14px; color: var(--m2-card-text); font-weight: 600; }
.mfa2 .summary-list li.summary span:last-child { color: var(--m2-total); font-size: 30px; font-weight: 700; }

/* payment methods */
.mfa2 .input-radio .input-line { display: grid; gap: 12px; }
.mfa2 .input-radio .input-line > div { position: relative; }
.mfa2 .input-radio input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.mfa2 .input-radio .input-line label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 10px 16px 10px 52px;
    border-radius: 12px;
    border: 1px solid var(--m2-field-border);
    background: var(--m2-field-bg);
    color: var(--m2-card-text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.mfa2 .input-radio .input-line label::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    border: 1.5px solid var(--m2-placeholder);
}
.mfa2 .input-radio input[type="radio"]:checked + label { border-color: var(--m2-field-focus); background: var(--m2-radio-on-bg); }
.mfa2 .input-radio input[type="radio"]:checked + label::before { border-color: var(--m2-field-text); box-shadow: inset 0 0 0 4px var(--m2-card-bg), inset 0 0 0 9px var(--m2-field-text); }
.mfa2 .input-radio input[type="radio"]:focus-visible + label { outline: 2px solid var(--m2-accent); outline-offset: 2px; }
.mfa2 .input-radio .input-line label img {
    max-height: 34px;
    width: auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
}

/* buttons */
.mfa2 .button-line { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.mfa2 .button-line > :only-child { grid-column: 1 / -1; }
.mfa2 .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid var(--m2-back-border);
    background: transparent;
    color: var(--m2-back-text);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}
.mfa2 .button.colored {
    flex-direction: row-reverse;
    border: 0;
    box-shadow: var(--m2-cta-shadow, none);
    background: var(--m2-cta);
    color: var(--m2-black);
}
.mfa2 .button.colored img { display: none; }
.mfa2 .button.colored::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 9h11.5M10 4.5L14.5 9 10 13.5' fill='none' stroke='%230D0D0D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mfa2 .button:hover { filter: brightness(1.04); }
.mfa2 .button:active { transform: translateY(1px); }
.mfa2 .tile > form > .button.full-width,
.mfa2 .tile form > button.full-width { margin-top: 6px; }

/* messages */
.mfa2 .error-message,
.mfa2 .error-message ul { margin: 8px 0 0; padding: 0; list-style: none; color: var(--m2-error); font-size: 13px; }
body.mfa2-card-light .error-message,
body.mfa2-card-light .error-message ul { color: #c62828; }
.mfa2 .alert {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--m2-line);
    background: var(--m2-box-bg);
    font-size: 14px;
}
.mfa2 .alert-error,
.mfa2 .alert-danger { border-color: rgba(255, 122, 122, 0.5); color: var(--m2-error); }
.m2-notice {
    display: flex;
    gap: 12px;
    margin: -4px 0 26px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--m2-line);
    background: var(--m2-box-bg);
    color: var(--m2-card-text);
    font-size: 15px;
}
.m2-notice svg { flex: none; margin-top: 2px; color: var(--m2-card-sub); }

/* step 4: thank you */
.mfa2 .thank-you { text-align: center; }
.mfa2 .thank-you::before {
    content: "";
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M10 21l7 7 14-16' fill='none' stroke='%230D0D0D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 40px no-repeat, var(--m2-cta);
}
.mfa2 #payment-failed.thank-you::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M13 13l14 14M27 13L13 27' fill='none' stroke='%230D0D0D' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 36px no-repeat, var(--m2-cta);
}
.mfa2 #payment-pending.thank-you::before { animation: m2-pulse 1.8s ease-in-out infinite; }
@keyframes m2-pulse { 50% { opacity: .55; } }
.mfa2 .thank-you .title { font-weight: 300; font-size: clamp(30px, 2.2vw, 42px); margin-bottom: 26px; }
.mfa2 .thank-you .title span,
.mfa2 .thank-you .title strong,
.mfa2 .thank-you .title b { display: block; margin-top: 4px; font-size: inherit; font-weight: 700; color: var(--m2-total); }
.mfa2 .thank-you .note { color: var(--m2-card-sub); font-size: 17px; line-height: 1.65; }
.mfa2 .thank-you .alert {
    display: flex;
    gap: 12px;
    margin: 28px 0 0;
    text-align: left;
    font-size: 15px;
    color: var(--m2-card-text);
}
.mfa2 .thank-you .alert::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect x='2' y='4' width='16' height='12' rx='2' fill='none' stroke='%23B7BCC4' stroke-width='1.5'/%3E%3Cpath d='M2.5 5l7.5 6 7.5-6' fill='none' stroke='%23B7BCC4' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* product unavailable / 404 copy inside the card */
.mfa2 .tile .note { color: var(--m2-card-sub); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1180px) {
    .m2-columns { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; padding-top: 28px; }
    .m2-columns .body-right-col { order: -1; max-width: 640px; width: 100%; margin: 0 auto; }
    .m2-columns .body-left-col { max-width: 640px; width: 100%; margin: 0 auto; }
    .m2-hero-title { font-size: clamp(34px, 7vw, 52px); }
    .m2-mockup { margin-top: 32px; }
}
@media (max-width: 900px) {
    body.mfa2 {
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 60%, #000 100%),
            var(--m2-bg-mobile, url("../img/mfa2/tlo-9x16-1080.webp"));
        background-attachment: scroll;
        background-position: top center;
    }
    .m2-header { flex-wrap: wrap; padding-top: 24px; }
    .m2-logo img { width: 120px; }
    .m2-mode { margin-left: auto; }
    .m2-lang { margin-left: 8px; }
    .m2-stepper { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
    .m2-step { gap: 8px; font-size: 13px; }
    .m2-step + .m2-step::before { width: auto; flex: 1; min-width: 12px; }
    .m2-step { flex: 1; }
    .m2-step:first-child { flex: 0 0 auto; }
    .m2-step:not(.m2-step--current) .m2-step-label { display: none; }
    .mfa2 .tile { border-radius: 24px; }
    .m2-hero { text-align: left; }
}
@media (max-width: 480px) {
    .mfa2 .button-line { grid-template-columns: 1fr; }
    .mfa2 .button-line .button:not(.colored) { order: 2; }
    .mfa2 .discount-input-wrapper input { padding-right: 112px; }
    .mfa2 .discount-input-wrapper .activate,
    .mfa2 .discount-input-wrapper button { padding: 0 16px; }
    .m2-trust-stars span { width: 24px; height: 24px; }
}

/* ---------- lower desktop windows: the whole page scaled down, like browser zoom (KZC-1188) ----------
   Proportions stay as designed. Steps by window height so the tallest step (summary, ~1200 px at 100 %)
   fits without scrolling; 100vh is divided by the zoom so the background and centring still fill the window.
   A longer page (a bundle with several items) is scaled a bit more by the script in base.html.twig. */
@media (min-width: 1181px) and (max-height: 1199px) { html { --m2-zoom: .92; } }
@media (min-width: 1181px) and (max-height: 1103px) { html { --m2-zoom: .83; } }
@media (min-width: 1181px) and (max-height: 999px)  { html { --m2-zoom: .75; } }
@media (min-width: 1181px) and (max-height: 899px)  { html { --m2-zoom: .66; } }
@media (min-width: 1181px) and (max-height: 799px)  { html { --m2-zoom: .58; } }
@media (min-width: 1181px) and (max-height: 699px)  { html { --m2-zoom: .5; } }
@media (min-width: 1181px) and (max-height: 1199px) {
    html { zoom: var(--m2-zoom); }
}
