/**
 * Application form (Register / Renew / Transfer).
 *
 * Layout follows the mockup; colours and type use the site's own tokens
 * (Nunito headings, Roboto body, #0B63E5 primary) like the renewal checker.
 * Everything is scoped to .lei24-app so nothing leaks into the theme.
 */

.lei24-app {
  --app-primary: #0B63E5;
  --app-primary-dark: #0951bd;
  --app-navy: #111827;
  --app-text: #374151;
  --app-muted: #6B7280;
  --app-faint: #9CA3AF;
  --app-line: #E5E7EB;
  --app-hair: #F1F3F7;
  --app-border: #D1D5DB;
  --app-soft: #F5F9FF;
  --app-green: #12a06a;
  --app-red: #c8102e;
  --app-radius: 12px;
  --app-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 100%;
  margin: 0 auto;
  color: var(--app-navy);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}
.lei24-app *, .lei24-app *::before, .lei24-app *::after { box-sizing: border-box; }
.lei24-app [hidden] { display: none !important; }
.lei24-app h2 { margin: 0; }
.lei24-app a { color: var(--app-primary); text-decoration: underline; text-underline-offset: 2px; }
.lei24-app input, .lei24-app select, .lei24-app button { font-family: inherit; }
.lei24-app input:focus-visible, .lei24-app select:focus-visible, .lei24-app button:focus-visible {
  outline: 2px solid var(--app-primary); outline-offset: 1px;
}

/* ---------- top strip ---------- */
.lei24-app-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: 18px; font-size: 13px; color: var(--app-muted);
}
.lei24-app-status { display: flex; align-items: center; gap: 7px; }
.lei24-app-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--app-green); }

/* ---------- tabs ---------- */
.lei24-app-tabs {
  display: flex; gap: 6px; width: fit-content; margin-bottom: 22px; padding: 5px;
  background: #0B63E521; border-radius: 12px; flex-wrap: wrap;
}
.lei24-app-tab {
  padding: 9px 20px; border: 0; border-radius: 8px; background: transparent;
  font-family: Nunito, sans-serif; font-size: 16px; font-weight: 600; color: var(--app-muted); cursor: pointer;
}
.lei24-app-tab[aria-selected="true"] { background: #fff; color: var(--app-navy); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }

/* ---------- shell ---------- */
.lei24-app-form { display: flex; flex-direction: column; gap: 16px; }
.lei24-app-card { padding: 26px 28px 28px; background: #fff; border: 1px solid var(--app-line); border-radius: 16px; }
.lei24-app-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.lei24-app-step {
  display: flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px;
  border-radius: 50%; background: var(--app-navy); color: #fff; font-size: 13px; font-weight: 600;
}
.lei24-app-card-title { font-family: Nunito, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--app-navy); }
.lei24-app-card-lead { margin: 0 0 18px 38px; max-width: 600px; font-size: 14px; color: var(--app-muted); }
.lei24-app-card-body { margin-left: 38px; }

/* ---------- fields ---------- */
.lei24-app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 18px; }
.lei24-app-full { grid-column: 1 / -1; }
.lei24-app-field { display: flex; flex-direction: column; gap: 6px; }
.lei24-app-label { font-size: 13px; font-weight: 600; color: var(--app-text); }
.lei24-app-req { color: var(--app-red); }
.lei24-app-input, .lei24-app-select {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--app-navy);
  background: #fff; border: 1.5px solid var(--app-border); border-radius: 9px;
}
.lei24-app-input::placeholder { color: var(--app-faint); }
.lei24-app-mono { font-family: var(--app-mono); }
.lei24-app-select {
  appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--app-faint) 50%), linear-gradient(135deg, var(--app-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.lei24-app-gap-top { margin-top: 14px; }
.lei24-app-gap-top-lg { margin-top: 18px; }

/* ---------- search ---------- */
.lei24-app-search { position: relative; max-width: 560px; }
.lei24-app-search::before {
  content: ""; position: absolute; right: 16px; top: 16px; width: 16px; height: 16px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
}
.lei24-app-search-input { padding: 14px 16px 14px 44px; font-size: 16px; border-radius: 10px; }
.lei24-app-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lei24-app-search-note { margin: 8px 0 0; font-size: 13px; color: var(--app-muted); }
.lei24-app-search-note.is-error { color: #991B1B; }

.lei24-app-suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--app-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .14);
}
.lei24-app-option {
  display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 12px;
  background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer;
}
.lei24-app-option:hover, .lei24-app-option.is-active { background: var(--app-soft); }
.lei24-app-option-name { font-size: 15px; font-weight: 600; color: var(--app-navy); overflow-wrap: anywhere; }
.lei24-app-option-meta { font-size: 12.5px; color: var(--app-muted); font-family: var(--app-mono); letter-spacing: .01em; }
.lei24-app-option-meta .is-issued { color: var(--app-green); }
.lei24-app-option-meta .is-lapsed { color: var(--app-red); }
.lei24-app-flag { display: inline-block; width: 16px; height: auto; margin-right: 4px; vertical-align: -2px; border-radius: 2px; }

.lei24-app-filled {
  margin: 0 0 6px; padding: 10px 14px; font-size: 13.5px; color: #065F46;
  background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 9px;
}

/* ---------- picked LEI (renew / transfer) ---------- */
.lei24-app-picked {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 560px; padding: 16px 18px; background: var(--app-soft); border: 1px solid #CFE0FA; border-radius: 12px;
}
.lei24-app-picked-name { display: block; font-family: Nunito, sans-serif; font-size: 16px; font-weight: 700; color: var(--app-navy); }
.lei24-app-picked-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--app-text); }
.lei24-app-picked-meta b { font-weight: 600; color: var(--app-muted); }
.lei24-app-picked-meta code { font-family: var(--app-mono); background: transparent; padding: 0; font-size: 13px; }
.lei24-app-picked-change {
  flex: none; padding: 8px 14px; background: #fff; border: 1.5px solid var(--app-border); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--app-text); cursor: pointer;
}
.lei24-app-picked-change:hover { border-color: var(--app-primary); color: var(--app-primary); }
.lei24-app-pill { display: inline-block; padding: 1px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.lei24-app-pill.is-issued { color: #166534; background: #DCFCE7; }
.lei24-app-pill.is-lapsed { color: #991B1B; background: #FEE2E2; }

/* ---------- rows inside "The entity" ---------- */
.lei24-app-row {
  display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 12px 30px;
  padding: 22px 0; border-top: 1px solid var(--app-hair);
}
.lei24-app-row-title { font-family: Nunito, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.lei24-app-row-hint { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--app-faint); }
.lei24-app-stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- checkbox ---------- */
.lei24-app-opt { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.lei24-app-check { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.lei24-app-check-box {
  display: flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--app-border); border-radius: 5px; background: #fff; color: #fff; font-size: 13px;
}
.lei24-app-opt:checked + .lei24-app-check .lei24-app-check-box { background: var(--app-primary); border-color: var(--app-primary); }
.lei24-app-opt:checked + .lei24-app-check .lei24-app-check-box::after { content: "\2713"; }
.lei24-app-check-title { display: block; font-size: 14.5px; font-weight: 500; }
.lei24-app-check-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--app-muted); }

/* ---------- switch ---------- */
.lei24-app-switch-row { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; cursor: pointer; }
.lei24-app-switch-text { max-width: 520px; }
.lei24-app-switch-title { display: block; font-size: 15px; font-weight: 600; }
.lei24-app-switch-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--app-muted); }
.lei24-app-switch { flex: none; width: 52px; height: 30px; padding: 3px; border-radius: 15px; background: #cbd5e4; transition: background .15s; }
.lei24-app-switch::after {
  content: ""; display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .3); transition: transform .15s;
}
.lei24-app-opt:checked + .lei24-app-switch-row .lei24-app-switch { background: var(--app-primary); }
.lei24-app-opt:checked + .lei24-app-switch-row .lei24-app-switch::after { transform: translateX(22px); }

/* conditional blocks, revealed by the checkbox that precedes them */
.lei24-app-reveal, .lei24-app-reveal-off { display: none; }
.lei24-app-opt:checked ~ .lei24-app-reveal { display: block; }
.lei24-app-opt:not(:checked) ~ .lei24-app-reveal-off { display: block; }
.lei24-app-subcard { margin-top: 16px; padding: 16px 18px; background: #f7f9fd; border: 1px solid var(--app-line); border-radius: 12px; }
.lei24-app-subcard-title { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--app-text); }
.lei24-app-divide { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--app-line); }
.lei24-app-divide-top { padding-top: 18px; border-top: 1px solid var(--app-hair); }

/* ---------- plans ---------- */
.lei24-app-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 14px; }
.lei24-app-plan {
  position: relative; display: block; padding: 18px; cursor: pointer;
  background: #fff; border: 2px solid var(--app-line); border-radius: 13px; transition: border-color .12s;
}
.lei24-app-plan:has(.lei24-app-plan-input:checked) { border-color: var(--app-primary); }
.lei24-app-plan-input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.lei24-app-plan-head { display: flex; justify-content: space-between; align-items: center; }
.lei24-app-plan-name { font-size: 14px; font-weight: 600; }
.lei24-app-plan-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--app-border); background: #fff; }
.lei24-app-plan-input:checked ~ .lei24-app-plan-head .lei24-app-plan-dot { border-color: var(--app-primary); background: var(--app-primary); box-shadow: inset 0 0 0 3px #fff; }
.lei24-app-plan-price { display: block; margin-top: 14px; font-family: Nunito, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.lei24-app-plan-per { font-family: Roboto, sans-serif; font-size: 14px; font-weight: 500; color: var(--app-muted); }
.lei24-app-plan-foot { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--app-hair); font-size: 13px; color: var(--app-muted); }
.lei24-app-save { color: var(--app-green); font-weight: 600; }
.lei24-app-badge {
  position: absolute; top: -11px; left: 18px; padding: 4px 10px; white-space: nowrap;
  background: var(--app-navy); color: #fff; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- order bar ---------- */
.lei24-app-order {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  padding: 24px 28px 26px; background: #fff; border: 1px solid var(--app-line); border-radius: 16px;
}
.lei24-app-order-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 240px; }
.lei24-app-order-label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--app-faint); }
.lei24-app-order-total { font-family: Nunito, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.lei24-app-order-vat { font-size: 13px; color: var(--app-muted); }
.lei24-app-order-right { flex: 1; min-width: 200px; max-width: 420px; }
.lei24-app-cta {
  width: 100%; padding: 16px; border: 2px solid var(--app-primary); border-radius: 11px;
  background: var(--app-primary); color: #fff; font-family: Nunito, sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.lei24-app-cta:hover { background: #fff; color: var(--app-primary); }
.lei24-app-order-error { margin: 10px 0 0; font-size: 13px; color: #991B1B; }

@media (max-width: 720px) {
  .lei24-app-card { padding: 22px 18px 24px; }
  .lei24-app-card-lead, .lei24-app-card-body { margin-left: 0; }
  .lei24-app-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lei24-app-order { padding: 22px 18px 24px; }
  .lei24-app-order-right { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lei24-app * { transition: none !important; }
}


/* ---------- automatic renewal, above the hand-over button ---------- */
.lei24-app-check.lei24-app-autorenew { margin: 0 0 14px; }

/* ---------- landing from a #lei24-register link, below a sticky header ---------- */
.lei24-app { scroll-margin-top: 110px; }

/* ---------- LEI certificate page ([lei24-certificate]) ---------- */
.lei24-cert .lei24-app-card-lead, .lei24-cert .lei24-app-card-body { margin-left: 0; }
.lei24-cert-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.lei24-cert-bar .lei24-app-search { flex: 1 1 320px; }
.lei24-app a.lei24-cert-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px;
  border: 2px solid var(--app-primary); border-radius: 10px; background: #fff; color: var(--app-primary);
  font-family: Nunito, sans-serif; font-size: 15.5px; font-weight: 700; line-height: 1.3; text-decoration: none;
  white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.lei24-app a.lei24-cert-btn:hover { background: var(--app-primary); color: #fff; }
.lei24-app a.lei24-cert-btn.is-primary { background: var(--app-primary); color: #fff; }
.lei24-app a.lei24-cert-btn.is-primary:hover { background: #fff; color: var(--app-primary); }
.lei24-cert-result { max-width: 560px; margin-top: 16px; }
.lei24-cert-msg { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--app-text); }
.lei24-cert-msg.is-wait { color: var(--app-muted); }
.lei24-cert-msg.is-warn { padding: 10px 14px; color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 9px; }
.lei24-cert-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (max-width: 720px) {
  .lei24-cert-bar .lei24-app-search { flex-basis: 100%; }
  .lei24-app a.lei24-cert-btn { width: 100%; white-space: normal; }
}


/* =================================================================
 * Modern layout - [lei24-form-register-renew-transfer layout="modern"]
 *
 * One white card: a tinted top strip, underlined tabs, and the Register
 * tab in three steps. Everything below is scoped to .lei24-app--modern,
 * so the classic layout above is untouched. The theme's own button
 * styles (Hello Elementor colours every button pink) are reset on each
 * button here, hover included.
 *
 * The typeface is Plus Jakarta Sans when the page loads it, otherwise
 * Roboto. The plugin loads no fonts itself; add Plus Jakarta Sans (and
 * IBM Plex Mono for numbers) to the site, e.g. through Elementor.
 * ================================================================= */

.lei24-app--modern {
  --m-navy: #12284a;
  --m-blue: #2c64ae;
  --m-blue-dark: #224f8c;
  --m-text: #52637a;
  --m-muted: #6b7c92;
  --m-border: #dce4ee;
  --m-line: #e4ebf3;
  --m-field: #cbd6e4;
  --m-wash: #f5f8fc;
  --m-tint: #f2f7ff;
  --m-green: #1c7a4e;
  --m-font: "Plus Jakarta Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --m-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --app-primary: var(--m-blue);
  --app-mono: var(--m-mono);
  background: #fff; border: 1px solid var(--m-border); border-radius: 14px;
  box-shadow: 0 14px 45px rgba(24, 59, 102, .06);
  color: var(--m-navy); font-family: var(--m-font); font-size: 15px; line-height: 1.65;
}
.lei24-app--modern h2 { font-family: var(--m-font); }
.lei24-app--modern input:focus-visible, .lei24-app--modern select:focus-visible { outline: 3px solid #b7d0f1; outline-offset: 1px; }
.lei24-app--modern button:focus-visible { outline: 3px solid #6b9ee4; outline-offset: 3px; }

/* ---------- top strip ---------- */
.lei24-app--modern .lei24-app-topbar {
  margin: 0; padding: 12px 32px; gap: 20px; border-radius: 13px 13px 0 0;
  background: #e9f0f8; color: #47617f; font-size: 12px;
}
.lei24-app--modern .lei24-app-status::before { display: none; }
.lei24-app--modern .lei24-app-help a { color: inherit; font-weight: 700; text-underline-offset: 3px; }

/* ---------- tabs ---------- */
.lei24-app--modern .lei24-app-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  width: auto; margin: 0; padding: 0 32px; background: none; border-radius: 0;
  border-bottom: 1px solid var(--m-border);
}
.lei24-app--modern .lei24-app-tab,
.lei24-app--modern .lei24-app-tab:hover,
.lei24-app--modern .lei24-app-tab:focus {
  min-height: 54px; margin: 0 0 -1px; padding: 16px 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--m-navy);
  font-family: var(--m-font); font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0;
}
.lei24-app--modern .lei24-app-tab:hover { background: var(--m-wash); }
.lei24-app--modern .lei24-app-tab[aria-selected="true"] { color: var(--m-blue); border-bottom-color: var(--m-blue); background: transparent; }

/* ---------- panel and sections ---------- */
.lei24-app--modern .lei24-app-panel { padding: 0 32px; }
.lei24-app--modern .lei24-app-form { display: block; }
.lei24-app--modern .lei24-app-card {
  padding: 23px 0; background: none; border: 0; border-bottom: 1px solid var(--m-border); border-radius: 0;
}
.lei24-app--modern .lei24-app-card-head { margin: 0; }
.lei24-app--modern .lei24-app-step {
  width: 30px; height: 30px; background: #eaf1fa; color: var(--m-blue);
  font-family: var(--m-mono); font-size: 13px; font-weight: 400;
}
.lei24-app--modern .lei24-app-card-title { font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; color: var(--m-navy); }
.lei24-app--modern .lei24-app-card-title:focus { outline: none; }
.lei24-app--modern .lei24-app-card-lead { max-width: 800px; margin: 8px 0 18px; font-size: 14px; line-height: 1.8; color: var(--m-text); }
.lei24-app--modern .lei24-app-card-body { margin: 0; }

/* ---------- plans ---------- */
.lei24-app--modern .lei24-app-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.lei24-app--modern .lei24-app-plan {
  display: flex; flex-direction: column; min-width: 0; padding: 17px 20px;
  border: 1px solid #cdd8e6; border-radius: 8px; background: #fff;
}
.lei24-app--modern .lei24-app-plan:has(.lei24-app-plan-input:checked) { padding: 16px 19px; border: 2px solid var(--m-blue); background: var(--m-tint); }
.lei24-app--modern .lei24-app-plan:has(.lei24-app-plan-input:focus-visible) { outline: 3px solid #9bbbe6; outline-offset: 3px; }
.lei24-app--modern .lei24-app-plan-head { font-size: 16px; }
.lei24-app--modern .lei24-app-plan-name { font-size: inherit; font-weight: 700; }
.lei24-app--modern .lei24-app-plan-dot { border: 1px solid #aabbd1; }
.lei24-app--modern .lei24-app-plan-input:checked ~ .lei24-app-plan-head .lei24-app-plan-dot { border: 5px solid var(--m-blue); background: #fff; box-shadow: none; }
.lei24-app--modern .lei24-app-plan-price {
  margin-top: 10px; font-family: var(--m-font); font-size: 32px; font-weight: 800; letter-spacing: -.045em; line-height: 1.2; color: var(--m-navy);
}
.lei24-app--modern .lei24-app-plan-per { margin-left: 4px; font-family: var(--m-font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--m-text); }
.lei24-app--modern .lei24-app-plan-foot { margin-top: 7px; padding: 0; border: 0; font-size: 12px; font-weight: 500; color: var(--m-text); }
.lei24-app--modern .lei24-app-save { color: var(--m-green); font-weight: 500; }
.lei24-app--modern .lei24-app-badge {
  top: -12px; left: 18px; padding: 3px 10px; border-radius: 4px; background: var(--m-blue);
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
}

/* ---------- fields ---------- */
.lei24-app--modern .lei24-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lei24-app--modern .lei24-app-field { gap: 0; margin: 0; min-width: 0; }
.lei24-app--modern .lei24-app-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--m-navy); }
.lei24-app--modern .lei24-app-req { color: var(--m-blue); }
.lei24-app--modern .lei24-app-input,
.lei24-app--modern .lei24-app-select {
  min-width: 0; min-height: 50px; padding: 13px 14px; border: 1px solid var(--m-field); border-radius: 5px;
  background-color: #fbfcfe; color: var(--m-navy); font-family: var(--m-font); font-size: 15px; line-height: 1.4;
}
.lei24-app--modern .lei24-app-select { padding-right: 38px; background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; }
.lei24-app--modern .lei24-app-input::placeholder { color: #728096; }
.lei24-app--modern .lei24-app-mono { font-family: var(--m-mono); }

/* ---------- search ---------- */
.lei24-app--modern .lei24-app-search { max-width: none; }
.lei24-app--modern .lei24-app-search::before { display: none; }
.lei24-app--modern .lei24-app-search-input { min-height: 57px; padding: 16px 18px; font-size: 16px; border-radius: 5px; }
.lei24-app--modern .lei24-app-search-note { margin-top: 12px; font-size: 12px; color: #697b91; }
.lei24-app--modern .lei24-app-suggest { border-color: var(--m-border); border-radius: 8px; }
.lei24-app--modern .lei24-app-option,
.lei24-app--modern .lei24-app-option:hover,
.lei24-app--modern .lei24-app-option:focus {
  padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--m-navy);
  font-family: var(--m-font); font-weight: 400; white-space: normal; text-transform: none;
}
.lei24-app--modern .lei24-app-option:hover,
.lei24-app--modern .lei24-app-option.is-active { background: var(--m-tint); }
.lei24-app--modern .lei24-app-option-name { color: var(--m-navy); }
.lei24-app--modern .lei24-app-option-meta { color: var(--m-text); }
.lei24-app--modern .lei24-app-filled { margin-bottom: 18px; border-radius: 8px; font-size: 13px; }
.lei24-app--modern .lei24-app-picked { max-width: none; margin-top: 10px; padding: 18px; background: var(--m-tint); border-color: #cfdeef; border-radius: 8px; }
.lei24-app--modern .lei24-app-picked-name { font-family: var(--m-font); }
.lei24-app--modern .lei24-app-picked-change,
.lei24-app--modern .lei24-app-picked-change:hover,
.lei24-app--modern .lei24-app-picked-change:focus {
  padding: 8px 14px; border: 1px solid #b8c8de; border-radius: 6px; background: #fff; color: var(--m-navy);
  font-family: var(--m-font); font-size: 13px; font-weight: 700;
}
.lei24-app--modern .lei24-app-picked-change:hover { background: #edf3fb; }

/* ---------- rows: title on the left, fields on the right ---------- */
.lei24-app--modern .lei24-app-row {
  grid-template-columns: minmax(0, .65fr) minmax(0, 2fr); gap: 35px; padding: 20px 0; border-top: 1px solid var(--m-line);
}
.lei24-app--modern .lei24-app-filled + .lei24-app-row,
.lei24-app--modern .lei24-app-card-body > .lei24-app-row:first-child { padding-top: 0; border-top: 0; }
.lei24-app--modern .lei24-app-card-body > .lei24-app-row:last-child { padding-bottom: 0; }
.lei24-app--modern .lei24-app-row--single { grid-template-columns: minmax(0, 1fr); gap: 0; }
.lei24-app--modern .lei24-app-row-title { font-family: var(--m-font); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.lei24-app--modern .lei24-app-row-hint { max-width: 180px; margin-top: 5px; font-size: 12px; line-height: 1.8; color: var(--m-text); }
.lei24-app--modern .lei24-app-stack { gap: 24px; }

/* ---------- checkbox and switch ---------- */
.lei24-app--modern .lei24-app-check { gap: 12px; margin-top: 20px; }
.lei24-app--modern .lei24-app-check-box { border: 1px solid #b8c8db; border-radius: 4px; margin-top: 2px; }
.lei24-app--modern .lei24-app-opt:checked + .lei24-app-check .lei24-app-check-box { background: var(--m-blue); border-color: var(--m-blue); }
.lei24-app--modern .lei24-app-check-title,
.lei24-app--modern .lei24-app-switch-title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.lei24-app--modern .lei24-app-check-sub,
.lei24-app--modern .lei24-app-switch-sub { margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--m-text); }
.lei24-app--modern .lei24-app-switch-text { max-width: none; }
.lei24-app--modern .lei24-app-switch { width: 39px; height: 23px; margin-top: 2px; padding: 3px; border-radius: 20px; background: #c3cedd; transition: background .2s; }
.lei24-app--modern .lei24-app-switch::after { width: 17px; height: 17px; box-shadow: none; transition: transform .2s; }
.lei24-app--modern .lei24-app-opt:checked + .lei24-app-switch-row .lei24-app-switch { background: var(--m-blue); }
.lei24-app--modern .lei24-app-opt:checked + .lei24-app-switch-row .lei24-app-switch::after { transform: translateX(16px); }
.lei24-app--modern .lei24-app-opt:focus-visible + label { outline: 3px solid #9bbbe6; outline-offset: 5px; border-radius: 4px; }
.lei24-app--modern .lei24-app-gap-top,
.lei24-app--modern .lei24-app-gap-top-lg { margin-top: 22px; }
.lei24-app--modern .lei24-app-subcard { margin-top: 22px; padding: 22px; background: #f3f7fc; border: 1px solid #dce6f2; border-radius: 8px; }
.lei24-app--modern .lei24-app-subcard-title { margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--m-navy); }
.lei24-app--modern .lei24-app-divide { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--m-border); }
.lei24-app--modern .lei24-app-divide-top { padding-top: 24px; border-top: 1px solid var(--m-border); }

/* ---------- total and hand-over ---------- */
.lei24-app--modern .lei24-app-order {
  display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 2fr); gap: 35px; align-items: start;
  padding: 30px 0 34px; background: none; border: 0; border-radius: 0;
}
.lei24-app--modern .lei24-app-order-left { min-width: 0; column-gap: 8px; row-gap: 0; }
.lei24-app--modern .lei24-app-order-label { width: 100%; font-family: var(--m-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--m-text); }
.lei24-app--modern .lei24-app-order-total { font-family: var(--m-font); font-size: 38px; font-weight: 800; letter-spacing: -.04em; color: var(--m-navy); }
.lei24-app--modern .lei24-app-order-vat { color: var(--m-text); }
.lei24-app--modern .lei24-app-order-right { min-width: 0; max-width: none; }
.lei24-app--modern .lei24-app-check.lei24-app-autorenew { margin: 0 0 24px; }

.lei24-app--modern .lei24-app-cta,
.lei24-app--modern .lei24-app-next {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 49px; padding: 13px 22px; border: 1px solid transparent; border-radius: 6px;
  background: var(--m-blue); color: #fff; font-family: var(--m-font); font-size: 14px; font-weight: 700; line-height: 1.3;
  text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: background .18s, transform .18s;
}
.lei24-app--modern .lei24-app-cta { width: 100%; }
.lei24-app--modern .lei24-app-cta:hover, .lei24-app--modern .lei24-app-cta:focus,
.lei24-app--modern .lei24-app-next:hover, .lei24-app--modern .lei24-app-next:focus { background: var(--m-blue); color: #fff; border-color: transparent; }
.lei24-app--modern .lei24-app-cta:hover, .lei24-app--modern .lei24-app-next:hover { background: var(--m-blue-dark); transform: translateY(-1px); }
.lei24-app--modern .lei24-app-cta span, .lei24-app--modern .lei24-app-next span { font-size: 19px; line-height: 1; }

/* ---------- steps of the Register tab ---------- */
.lei24-app--modern .lei24-app-progress {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px;
  margin: 0; padding: 22px 0 0; list-style: none; scroll-margin-top: 110px;
}
.lei24-app--modern .lei24-app-progress li { margin: 0; padding: 0; list-style: none; }
.lei24-app--modern .lei24-app-progress-step,
.lei24-app--modern .lei24-app-progress-step:hover,
.lei24-app--modern .lei24-app-progress-step:focus {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 49px; padding: 9px 0;
  border: 0; border-bottom: 2px solid var(--m-line); border-radius: 0; background: transparent; color: var(--m-muted);
  font-family: var(--m-font); font-size: 13px; font-weight: 400; line-height: 1.4; text-align: left; text-transform: none;
  white-space: normal; cursor: pointer;
}
.lei24-app--modern .lei24-app-progress-step > span {
  display: flex; align-items: center; justify-content: center; flex: none; width: 25px; height: 25px;
  border-radius: 50%; background: #edf2f8; font-family: var(--m-mono); font-size: 12px;
}
.lei24-app--modern .lei24-app-progress-step > b { font-weight: 600; }
.lei24-app--modern .lei24-app-progress-step[aria-current="step"] { color: var(--m-blue); border-bottom-color: var(--m-blue); }
.lei24-app--modern .lei24-app-progress-step[aria-current="step"] > span { background: var(--m-blue); color: #fff; }
.lei24-app--modern .lei24-app-progress-step.is-done { color: var(--m-green); border-bottom-color: #98c6b0; }
.lei24-app--modern .lei24-app-progress-step.is-done > span { background: #e6f4ec; color: var(--m-green); }

.lei24-app--modern .lei24-app-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.lei24-app--modern .lei24-app-nav-buttons { display: flex; align-items: center; gap: 24px; }
.lei24-app--modern .lei24-app-counter { font-size: 12px; color: var(--m-text); white-space: nowrap; }
.lei24-app--modern .lei24-app-back,
.lei24-app--modern .lei24-app-back:hover,
.lei24-app--modern .lei24-app-back:focus {
  padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--m-blue);
  font-family: var(--m-font); font-size: 14px; font-weight: 700; text-transform: none; cursor: pointer;
}
.lei24-app--modern .lei24-app-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.lei24-app--modern .lei24-app-stage .lei24-app-order { padding-top: 20px; border-top: 1px solid var(--m-border); }

/* Step 1 side by side on wide screens: the plans become a column. */
@media (min-width: 1000px) {
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px;
  }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) > .lei24-app-card { padding-bottom: 18px; border-bottom: 0; }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) > .lei24-app-card + .lei24-app-card { padding-left: 36px; border-left: 1px solid var(--m-border); }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) > .lei24-app-nav { grid-column: 1 / -1; padding-block: 18px; border-top: 1px solid var(--m-border); }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-plans { grid-template-columns: 1fr; }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-plan {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 14px; align-items: center; padding: 12px 16px;
  }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-plan:has(.lei24-app-plan-input:checked) { padding: 11px 15px; }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-plan-head { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; font-size: 14px; }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-plan-price { margin: 0; font-size: 26px; text-align: right; }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-plan-foot { grid-column: 1 / -1; margin: 0; font-size: 11px; }
  .lei24-app--modern .lei24-app-stage[data-stage="0"]:not(.is-single) .lei24-app-badge { top: -9px; left: auto; right: 14px; padding: 2px 8px; font-size: 8px; }
}

@media (max-width: 850px) {
  .lei24-app--modern .lei24-app-row,
  .lei24-app--modern .lei24-app-order { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lei24-app--modern .lei24-app-row-hint { max-width: none; }
  .lei24-app--modern .lei24-app-order-label { width: auto; margin-right: 10px; }
}

@media (max-width: 600px) {
  .lei24-app--modern .lei24-app-topbar { padding: 12px 18px; gap: 6px; font-size: 11px; }
  .lei24-app--modern .lei24-app-tabs { padding: 0 14px; gap: 8px; }
  .lei24-app--modern .lei24-app-tab,
  .lei24-app--modern .lei24-app-tab:hover,
  .lei24-app--modern .lei24-app-tab:focus { min-height: 54px; padding: 15px 7px; font-size: 14px; }
  .lei24-app--modern .lei24-app-panel { padding: 0 18px; }
  .lei24-app--modern .lei24-app-card-title { font-size: 19px; }
  .lei24-app--modern .lei24-app-card-lead { font-size: 13px; }
  .lei24-app--modern .lei24-app-plans { grid-template-columns: minmax(0, 1fr); }
  .lei24-app--modern .lei24-app-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; align-items: center; padding: 13px 14px; }
  .lei24-app--modern .lei24-app-plan:has(.lei24-app-plan-input:checked) { padding: 12px 13px; }
  .lei24-app--modern .lei24-app-plan-head { font-size: 14px; }
  .lei24-app--modern .lei24-app-plan-dot { display: none; }
  .lei24-app--modern .lei24-app-plan-price { margin: 0; font-size: 25px; text-align: right; }
  .lei24-app--modern .lei24-app-plan-foot { grid-column: 1 / -1; margin: 0; font-size: 11px; }
  .lei24-app--modern .lei24-app-badge { top: -10px; font-size: 9px; }
  .lei24-app--modern .lei24-app-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .lei24-app--modern .lei24-app-input,
  .lei24-app--modern .lei24-app-select { font-size: 16px; }
  .lei24-app--modern .lei24-app-subcard { padding: 16px; }
  .lei24-app--modern .lei24-app-order-total { font-size: 34px; }
  .lei24-app--modern .lei24-app-progress { gap: 8px; padding-top: 15px; }
  .lei24-app--modern .lei24-app-progress-step,
  .lei24-app--modern .lei24-app-progress-step:hover,
  .lei24-app--modern .lei24-app-progress-step:focus { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 0 10px; font-size: 11px; }
  .lei24-app--modern .lei24-app-progress-step > span { width: 22px; height: 22px; font-size: 11px; }
  .lei24-app--modern .lei24-app-progress-step > b { min-height: 31px; }
  .lei24-app--modern .lei24-app-nav { flex-direction: column; align-items: stretch; gap: 12px; padding: 17px 0; }
  .lei24-app--modern .lei24-app-nav-buttons { justify-content: space-between; gap: 16px; }
  .lei24-app--modern .lei24-app-next { flex: 1; padding-inline: 13px; font-size: 13px; white-space: normal; }
}
