/* Lead request forms (rental, courier, service). Figma "Форма заявки: одобренный
   вариант" 10.10.2026: one short screen without steps. Phones get a bottom sheet
   that hugs its content; tablets and desktops a centred 600px modal. The consent,
   button and rating stay pinned at the bottom while the fields scroll. */
.request-form-v2 {
  --lf-pad: 40px;
  --lf-gap: 20px;
  --lf-line: #dde1dd;
  --lf-soft: #f4f6f2;
  --lf-muted: #565d63;
  --lf-faint: #8b918c;
  --lf-lime-soft: #f2f9e6;
  --lf-red: #c2410c;
  --lf-red-soft: #fff3ee;
  box-sizing: border-box;
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  /* A modal dialog is pinned to all four edges; fit-content keeps it as tall
     as the form instead of stretching to the viewport. */
  height: fit-content;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  overflow: hidden;
  transition:
    opacity 200ms var(--ease-out),
    transform 240ms var(--ease-out),
    overlay 240ms allow-discrete,
    display 240ms allow-discrete;
}

.request-form-v2[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
}

@starting-style {
  .request-form-v2[open] { opacity: 0; transform: scale(0.96); }
}

.request-form-v2::backdrop {
  background: rgb(0 0 0 / 0.5);
  transition: background-color 240ms var(--ease-out), overlay 240ms allow-discrete, display 240ms allow-discrete;
}

@starting-style {
  .request-form-v2[open]::backdrop { background: rgb(0 0 0 / 0); }
}

.request-form-v2 *,
.request-form-v2 *::before,
.request-form-v2 *::after { box-sizing: border-box; }

/* Scroll area: everything except the dialog chrome scrolls inside it. */
.request-form-v2 [data-lead-scroll] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-padding-block: 88px 180px;
}

.request-form-v2 .lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--lf-gap);
  margin: 0;
  padding: 36px var(--lf-pad) 0;
}

.request-form-v2 .lead-form[hidden],
.request-form-v2 .lead-success-state[hidden],
.request-form-v2 [data-lead-reveal][hidden] { display: none; }

/* Header. */
.request-form-v2 .lead-form-head { display: grid; gap: 16px; }
.request-form-v2 .lead-form-grabber { display: none; }

.request-form-v2 .lead-form-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.request-form-v2 .lead-form-header h2 {
  flex: 1;
  min-width: 0;
  margin: 2px 0 0;
  color: var(--ink);
  font: 800 30px/36px Manrope, sans-serif;
  letter-spacing: -0.01em;
  transform-origin: left center;
  transition: transform 200ms var(--ease-out);
}

.request-form-v2 .lead-form-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  margin: -2px -2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lf-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.request-form-v2 .lead-form-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.request-form-v2 .lead-form-close:active { transform: scale(0.94); }

.request-form-v2 .lead-form-intro {
  margin: -6px 0 0;
  color: var(--lf-muted);
  font: 500 16px/23px Manrope, sans-serif;
  text-wrap: pretty;
}

/* Fields. */
.request-form-v2 .lead-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.request-form-v2 fieldset.lead-field { display: block; }

.request-form-v2 .lead-label {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font: 600 15px/20px Manrope, sans-serif;
}

.request-form-v2 legend.lead-label { margin-bottom: 8px; }

.request-form-v2 .lead-label-optional {
  margin-left: 4px;
  color: var(--lf-muted);
  font-weight: 500;
}

.request-form-v2 .lead-input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: 400 16px/22px Manrope, sans-serif;
  outline: 0;
  appearance: none;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.request-form-v2 .lead-input::placeholder { color: var(--lf-faint); opacity: 1; }

.request-form-v2 .lead-input:focus {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.request-form-v2 .lead-input.is-invalid {
  border-color: var(--lf-red);
  background: var(--lf-red-soft);
  box-shadow: inset 0 0 0 1px var(--lf-red);
}

.request-form-v2 .lead-textarea {
  height: 104px;
  padding: 14px 16px;
  line-height: 22px;
  resize: none;
}

.request-form-v2 .lead-hint {
  margin: 0;
  color: var(--lf-muted);
  font: 500 13px/18px Manrope, sans-serif;
}

.request-form-v2 .lead-hint[hidden] { display: none; }

.request-form-v2 .lead-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--lf-red);
  font: 600 13px/18px Manrope, sans-serif;
}

.request-form-v2 .lead-error::before {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: var(--lf-red);
  color: #ffffff;
  content: "!";
  font: 800 11px/1 Manrope, sans-serif;
}

.request-form-v2 .lead-error:empty { display: none; }
.request-form-v2 fieldset.lead-field > .lead-error { margin-top: 8px; }

.request-form-v2 .lead-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f3b4ad;
  border-radius: 12px;
  background: var(--lf-red-soft);
  color: #9a2119;
  font: 600 13px/18px Manrope, sans-serif;
}

.request-form-v2 .lead-status[hidden],
.request-form-v2 .lead-status:empty { display: none; }

/* Phone field: the wrapper owns the outline, the dial-code picker sits inside. */
.request-form-v2 .phone-country-field {
  --phone-field-height: 50px;
  --phone-field-radius: 12px;
  --phone-field-border: var(--lf-line);
  --phone-field-background: #ffffff;
  height: 52px;
  min-height: 52px;
}

.request-form-v2 .phone-country-field:focus-within,
.request-form-v2 .phone-country-field.is-picker-open {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.request-form-v2 .phone-country-field.is-invalid {
  border-color: var(--lf-red);
  background: var(--lf-red-soft);
  box-shadow: inset 0 0 0 1px var(--lf-red);
}

.request-form-v2 .phone-country-field[data-phone-country-field] > .phone-country-field__input {
  height: var(--phone-field-height);
  padding: 0 16px;
  color: var(--ink);
  font: 400 16px/22px Manrope, sans-serif;
}

.request-form-v2 .phone-country-field__input::placeholder { color: var(--lf-faint); opacity: 1; }

.request-form-v2 .phone-country-field__country.is-enhanced {
  min-width: 96px;
  border-right: 0;
}

.request-form-v2 .phone-country-field__country.is-enhanced::before {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 1px;
  background: var(--lf-line);
  content: "";
}

.request-form-v2 .phone-country-picker__trigger {
  gap: 6px;
  padding-inline: 12px 12px;
  font-size: 16px;
  font-weight: 600;
}

.request-form-v2 .phone-country-picker__code { font-weight: 600; letter-spacing: 0; }

.request-form-v2 .phone-country-picker__chevron {
  width: 12px;
  height: 12px;
  border: 0;
  background: url("/assets/forms/approved/chevron.svg") center / contain no-repeat;
  opacity: 1;
  transform: none;
}

.request-form-v2 .phone-country-field.is-picker-open .phone-country-picker__chevron { transform: rotate(180deg); }

.request-form-v2 .phone-country-field__flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--lf-line);
}

/* Selectable cards: rental periods, contact channels and repair types. The
   native radio stays on top of the card so taps, keyboard and labels work. */
.request-form-v2 .lead-choice { position: relative; display: block; min-width: 0; }

.request-form-v2 .lead-choice > input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.request-form-v2 .lead-choice-card {
  display: flex;
  height: 100%;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.request-form-v2 .lead-choice > input:checked + .lead-choice-card {
  border-color: var(--lime);
  background: var(--lf-lime-soft);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.request-form-v2 .lead-choice > input:focus-visible + .lead-choice-card {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.request-form-v2 .lead-choice > input:active + .lead-choice-card { transform: scale(0.98); }

.request-form-v2 .lead-choice-card img { display: block; flex: none; }
.request-form-v2 .lead-choice > input:not(:checked) + .lead-choice-card img { filter: brightness(0); }

.request-form-v2 .lead-plan-grid,
.request-form-v2 .lead-channel-grid,
.request-form-v2 .service-form-options {
  display: grid;
  gap: 8px;
  margin: 0;
}

.request-form-v2 .lead-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 2px; }

.request-form-v2 .lead-plan .lead-choice-card {
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 4px;
  text-align: center;
}

.request-form-v2 .lead-plan-name { font: 700 18px/24px Manrope, sans-serif; }

.request-form-v2 .lead-plan-price {
  color: var(--lf-muted);
  font: 500 14px/20px Manrope, sans-serif;
}

.request-form-v2 .lead-plan > input:checked + .lead-choice-card .lead-plan-price { color: var(--ink); }

.request-form-v2 .lead-plan-badge {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 50%;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 700 12px/18px Manrope, sans-serif;
  pointer-events: none;
  translate: -50% 0;
  white-space: nowrap;
}

.request-form-v2 .lead-plans .lead-hint { margin-top: 8px; }

.request-form-v2 .lead-channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.request-form-v2 .lead-channel .lead-choice-card {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font: 600 14px/20px Manrope, sans-serif;
}

.request-form-v2 .lead-channel .lead-choice-card img { width: 20px; height: 20px; }
.request-form-v2 .lead-channel > input:checked + .lead-choice-card { font-weight: 700; }

.request-form-v2 .service-form-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.request-form-v2 .service-form-option .lead-choice-card {
  min-height: 69px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  text-align: center;
}

.request-form-v2 .service-form-option .lead-choice-card img { width: 24px; height: 24px; }
.request-form-v2 .service-form-option-copy { font: 600 13px/18px Manrope, sans-serif; }
.request-form-v2 .service-form-option > input:checked + .lead-choice-card .service-form-option-copy { font-weight: 700; }

/* Optional repair description: one quiet row until the visitor asks for it. */
.request-form-v2 .lead-describe {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px dashed #c9cfc8;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: 700 15px/20px Manrope, sans-serif;
  text-align: left;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.request-form-v2 .lead-describe[hidden] { display: none; }
.request-form-v2 .lead-describe:active { transform: scale(0.99); }

.request-form-v2 .lead-describe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.request-form-v2 .lead-describe-plus {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--lf-soft);
}

.request-form-v2 .lead-describe-plus::before,
.request-form-v2 .lead-describe-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  translate: -50% -50%;
}

.request-form-v2 .lead-describe-plus::after { rotate: 90deg; }

.request-form-v2 .lead-describe-optional {
  color: var(--lf-muted);
  font-weight: 500;
  font-size: 14px;
}

.request-form-v2 [data-lead-reveal]:not([hidden]) { animation: lf-reveal 220ms var(--ease-out); }

.request-form-v2 .lead-textarea-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.request-form-v2 .lead-counter {
  flex: none;
  color: var(--lf-muted);
  font: 600 13px/18px Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}

.request-form-v2 .lead-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

/* Pinned footer: consent, captcha, button and rating. */
.request-form-v2 .lead-form-footer {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: grid;
  gap: 8px;
  margin: 0 calc(var(--lf-pad) * -1);
  padding: 4px var(--lf-pad) 34px;
  background: #ffffff;
  transition: box-shadow 200ms var(--ease-out);
}

.request-form-v2[data-scrollable]:not([data-at-end]) .lead-form-footer {
  box-shadow: 0 -6px 18px rgb(0 0 0 / 0.08);
}

.request-form-v2 .lead-submit-bar { background: #ffffff; }

.request-form-v2 .lead-check {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #1d2124;
  cursor: pointer;
  font: 500 14px/20px Manrope, sans-serif;
}

.request-form-v2 .lead-check-input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  translate: 0 -50%;
}

.request-form-v2 .lead-check-box {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1.5px solid #9aa19b;
  border-radius: 6px;
  background: #ffffff;
  transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.request-form-v2 .lead-check-box::after {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0.6);
  transition: opacity 140ms var(--ease-out), transform 160ms var(--ease-out);
}

.request-form-v2 .lead-check-input:checked + .lead-check-box {
  border-color: var(--lime);
  background: var(--lime);
}

.request-form-v2 .lead-check-input:checked + .lead-check-box::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.request-form-v2 .lead-check-input:focus-visible + .lead-check-box {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.request-form-v2 .lead-check.is-invalid .lead-check-box {
  border: 2px solid var(--lf-red);
  background: var(--lf-red-soft);
}

.request-form-v2 .lead-check a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.request-form-v2 .lead-consent { display: grid; gap: 2px; }
.request-form-v2 .turnstile-slot:empty { display: none; }

.request-form-v2 .lead-submit {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 56px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font: 700 17px/24px Manrope, sans-serif;
  text-align: center;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.request-form-v2 .lead-submit:active { transform: scale(0.98); }

.request-form-v2 .lead-submit:focus-visible,
.request-form-v2 .lead-form-close:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.request-form-v2 .lead-submit:disabled { cursor: progress; opacity: 0.85; }

.request-form-v2 .request-submit-arrow {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  translate: 0 -50%;
}

.request-form-v2 .request-submit-arrow img { display: block; width: 19px; height: 19px; }

.request-form-v2 .lead-submit.is-submitting .request-submit-arrow img { opacity: 0; }

.request-form-v2 .lead-submit.is-submitting .request-submit-arrow::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  content: "";
  animation: lf-spin 650ms linear infinite;
}

.request-form-v2 .lead-trust {
  margin: 0;
  color: var(--lf-muted);
  font: 500 13px/18px Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.request-form-v2 .lead-trust strong { color: var(--ink); font-weight: 700; }
/* Narrow phones wrap between phrases ("… Google Maps ·" / "Bez płatności teraz"), never inside one. */
.request-form-v2 .lead-trust span { white-space: nowrap; }
.request-form-v2 .lead-trust-star { color: #ffbd24; }

/* Confirmation after the server accepted the request. */
.request-form-v2 .lead-success-state {
  display: flex;
  flex-direction: column;
  outline: 0;
}

.request-form-v2 .lead-success-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 44px var(--lf-pad) 0;
  text-align: center;
}

.request-form-v2 .lead-success-visual {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--icon-tile-bg);
}

.request-form-v2 .request-success-check { display: block; width: 36px; height: 36px; }

.request-form-v2 .lead-success-state h3 {
  margin: 0;
  color: var(--ink);
  font: 800 28px/34px Manrope, sans-serif;
  letter-spacing: -0.01em;
}

.request-form-v2 .lead-success-state p {
  max-width: 400px;
  margin: 0;
  color: var(--lf-muted);
  font: 500 16px/23px Manrope, sans-serif;
  text-wrap: pretty;
}

.request-form-v2 .lead-summary {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 6px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--lf-soft);
  text-align: left;
}

.request-form-v2 .lead-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.request-form-v2 .lead-summary dt {
  flex: 0 1 auto;
  color: var(--lf-muted);
  font: 500 14px/19px Manrope, sans-serif;
}

.request-form-v2 .lead-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 700 15px/20px Manrope, sans-serif;
  text-align: right;
}

/* Amounts and phone numbers never break in the middle. */
.request-form-v2 .lead-nowrap { white-space: nowrap; }

.request-form-v2 .lead-summary dd small {
  display: block;
  color: var(--lf-muted);
  font: 500 12px/17px Manrope, sans-serif;
}

.request-form-v2 .lead-success-footer {
  position: sticky;
  z-index: 3;
  bottom: 0;
  padding: 24px var(--lf-pad) 34px;
  background: #ffffff;
}
/* The confirmation stays perfectly still for keyboard and reduced-motion users,
   so its button changes colour on hover without a transition. */
.request-form-v2 .lead-success-done { padding-inline: 20px; transition: none; }

@media (hover: hover) and (pointer: fine) {
  .request-form-v2 .lead-form-close:hover { background: #e9ece6; }
  .request-form-v2 .lead-submit:not(:disabled):hover { background: var(--lime-hover); }
  .request-form-v2 .lead-choice > input:not(:checked):hover + .lead-choice-card { border-color: #b9c0b8; }
  .request-form-v2 .lead-describe:hover { border-color: #9aa19b; background: #fbfcfa; }
}

/* Phones: bottom sheet above the keyboard (request-dialog-viewport.js keeps the
   visual viewport variables in sync). */
@media (max-width: 600px) {
  .request-form-v2 {
    --lf-pad: 20px;
    --lf-gap: 16px;
    --sheet-gap: 24px;
    inset: auto 0 max(0px, calc(100dvh - var(--request-visual-top, 0px) - var(--request-visual-height, 100dvh))) 0;
    width: 100vw;
    max-height: calc(var(--request-visual-height, 100dvh) - var(--sheet-gap));
    margin: 0;
    border-radius: 28px 28px 0 0;
    transition:
      opacity 200ms var(--ease-out),
      transform 320ms var(--ease-drawer),
      overlay 320ms allow-discrete,
      display 320ms allow-discrete;
  }

  @starting-style {
    .request-form-v2[open] { opacity: 1; transform: translateY(100%); }
  }

  .request-form-v2 .lead-form { padding-top: 0; }

  .request-form-v2 .lead-form-head {
    position: sticky;
    z-index: 3;
    top: 0;
    gap: 16px;
    margin: 0 calc(var(--lf-pad) * -1);
    padding: 10px var(--lf-pad) 0;
    background: #ffffff;
    transition: box-shadow 200ms var(--ease-out);
  }

  .request-form-v2 .lead-form-grabber {
    display: block;
    width: 40px;
    height: 5px;
    margin: 2px auto 0;
    border-radius: 3px;
    background: var(--lf-line);
  }

  /* Scrolled: the large title shrinks into a compact pinned bar. */
  .request-form-v2[data-scrolled] .lead-form-head {
    padding-bottom: 10px;
    box-shadow: 0 1px 0 var(--lf-line);
  }

  .request-form-v2[data-scrolled] .lead-form-header h2 { transform: scale(0.77); }

  .request-form-v2 .lead-form-header h2 { margin-top: 4px; font-size: 26px; line-height: 31px; }
  .request-form-v2 .lead-form-close { margin: 0; }
  .request-form-v2 .lead-form-intro { margin-top: -4px; font-size: 15px; line-height: 22px; }
  .request-form-v2 .lead-plan .lead-choice-card { min-height: 74px; }
  .request-form-v2 .lead-plan-name { font-size: 16px; line-height: 22px; }
  .request-form-v2 .lead-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-form-v2 .lead-channel .lead-choice-card { gap: 8px; font-size: 15px; }
  .request-form-v2 .lead-field-row { grid-template-columns: minmax(0, 1fr); }

  .request-form-v2 .lead-form-footer {
    padding: 8px var(--lf-pad) max(20px, env(safe-area-inset-bottom));
  }

  .request-form-v2 .lead-success-card { padding-top: 32px; }
  .request-form-v2 .lead-success-state h3 { font-size: 26px; line-height: 32px; }
  .request-form-v2 .lead-success-footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }

  /* Keyboard open: only the button stays pinned so the focused field keeps
     the space above the keyboard; consent and rating scroll with the form. */
  .request-form-v2[data-keyboard-open] .lead-form-footer { display: contents; }

  .request-form-v2[data-keyboard-open] .lead-submit-bar {
    position: sticky;
    z-index: 3;
    bottom: 0;
    margin: 0 calc(var(--lf-pad) * -1);
    padding: 8px var(--lf-pad) 10px;
    box-shadow: 0 -6px 18px rgb(0 0 0 / 0.08);
  }

  .request-form-v2[data-keyboard-open] .lead-trust { padding-bottom: 16px; }
}

@media (max-width: 360px) {
  .request-form-v2 { --lf-pad: 16px; }
  .request-form-v2 .lead-plan-badge { padding-inline: 6px; font-size: 11px; }
  .request-form-v2 .lead-channel .lead-choice-card { font-size: 14px; }
  .request-form-v2 .lead-check { font-size: 13px; }
}

/* Plan badges: −40 zł on the 7-day plan (new clients), star with the per-day price on 30 days. */
.request-form-v2 .lead-plan-badge--star { display: inline-flex; align-items: center; gap: 3px; }
.request-form-v2 .lead-plan-star { flex: 0 0 12px; }

@keyframes lf-reveal {
  from { opacity: 0; transform: translateY(-4px); }
}

@keyframes lf-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .request-form-v2,
  .request-form-v2::backdrop { transition: none; }
  .request-form-v2 *,
  .request-form-v2 *::before,
  .request-form-v2 *::after { transition-duration: 0.01ms !important; }
  .request-form-v2 [data-lead-reveal]:not([hidden]) { animation: none; }
  .request-form-v2 .lead-submit.is-submitting .request-submit-arrow::after { animation-duration: 1.6s; }
}
