﻿:root {
  --join-ink: #152028;
  --join-muted: #66727b;
  --join-line: #dfe6e8;
  --join-soft: #f5f9f9;
  --join-brand: #0b9995;
  --join-brand-dark: #08736f;
  --join-lime: #a8d942;
  --join-shadow: 0 22px 60px rgba(22, 42, 49, 0.09);
}

/* =========================================================
   WNIOSEK FIRMY — TEN SAM JĘZYK WIZUALNY CO FORMULARZ KLIENTA
   Aktywowany wyłącznie na /dolacz-jako-firma.
   ========================================================= */

body.is-firm-application-page {
  --firm-form-hero-copy-space: 220px;
  color: #173a43;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.78), transparent 20%),
    linear-gradient(180deg, #f8ffff 0%, #eefbfe 28%, #e3f6fa 60%, #d9f0f5 100%);
}

body.is-firm-application-page .join-header,
body.is-firm-application-page .join-footer {
  display: none;
}

body.is-firm-application-page .join-application {
  min-height: 100vh;
  padding: 0 0 72px;
  overflow-x: hidden;
}

.firm-final-dragon-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.firm-form-hero {
  max-width: 980px;
  margin: 0 auto 22px;
  padding: 0 20px;
}

body.is-firm-application-page.is-firm-first-step .firm-form-hero,
body.is-firm-application-page.is-firm-followup-step .firm-form-hero {
  margin-bottom: var(--firm-form-hero-copy-space);
}

.firm-form-hero-top {
  position: relative;
  height: 250px;
}

.firm-form-hero-curve {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 1380px;
  height: 225px;
  transform: translateX(-50%);
  border-bottom-right-radius: 50% 100%;
  border-bottom-left-radius: 50% 100%;
  background:
    radial-gradient(circle at 50% 120%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 30%, transparent 60%),
    linear-gradient(180deg, #7fe7ee 0%, #9eeef3 35%, #c9f5f8 70%, #eefcfe 100%);
  box-shadow: inset 0 -22px 40px rgba(255,255,255,.35), 0 6px 18px rgba(41,167,191,.06);
}

.firm-form-hero-curve::after {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 65%;
  height: 60px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(22px);
  content: "";
}

.firm-form-logo-badge {
  position: absolute;
  z-index: 3;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}

.firm-form-logo-circle {
  display: flex;
  width: 320px;
  height: 110px;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(30,143,170,.14), 0 2px 8px rgba(0,0,0,.04);
}

.firm-form-logo-circle img {
  width: 180px;
  height: auto;
}

.firm-form-hero-text {
  position: absolute;
  z-index: 3;
  top: 340px;
  left: 50%;
  width: 100%;
  max-width: 760px;
  padding: 0 20px;
  transform: translateX(-50%);
  text-align: center;
}

.firm-form-hero-text h1 {
  margin: 0 0 6px;
  color: #0d4450;
  font-size: 28px;
  font-weight: 850;
}

.firm-form-hero-text p {
  margin: 0;
  color: #5c818b;
  font-size: 15px;
  line-height: 1.5;
}

.firm-form-hero-text > span {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(190,224,231,.72);
  border-radius: 999px;
  color: #0f6574;
  background: rgba(231,246,241,.94);
  font-size: 13px;
  font-weight: 850;
}

.firm-form-wrapper {
  max-width: 980px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

body.is-firm-application-page.is-firm-first-step .firm-form-wrapper {
  margin-top: 0;
}

body.is-firm-application-page.is-firm-followup-step .firm-form-wrapper {
  max-width: 1080px;
}

.firm-moving-form {
  padding: 34px;
  border: 1px solid rgba(196,228,234,.95);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,252,253,.98));
  box-shadow: 0 24px 54px rgba(20,79,91,.07), inset 0 1px 0 rgba(255,255,255,.98);
}

.firm-support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(129,220,232,.86);
  border-radius: 22px;
  color: #0d4d5b;
  background: linear-gradient(135deg, rgba(238,253,255,.96), rgba(230,249,247,.96));
  box-shadow: 0 18px 46px rgba(15,142,164,.1);
  font-size: 17px;
  font-weight: 900;
}

.firm-support-strip a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: #0f8ea4;
  box-shadow: 0 12px 24px rgba(15,142,164,.24);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.firm-admin-data-status {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid #f0b45a;
  border-radius: 22px;
  color: #6d3c05;
  background: linear-gradient(135deg, #fffaf0, #fff2d9);
  box-shadow: 0 16px 38px rgba(177, 102, 13, .1);
}

.firm-admin-data-status.is-complete {
  border-color: #73d7b5;
  color: #0f684e;
  background: linear-gradient(135deg, #f0fff9, #e3f9f1);
}


.firm-admin-data-status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.firm-admin-data-status-heading span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.firm-admin-data-status-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
}

.firm-admin-data-status-heading > strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: #c76a0c;
  font-size: 13px;
  font-weight: 950;
}

.firm-admin-data-status.is-complete .firm-admin-data-status-heading > strong {
  background: #16855f;
}


.firm-admin-data-status > p {
  margin: 12px 0 0;
  color: #765b3c;
  line-height: 1.5;
}

.firm-admin-data-status.is-complete > p {
  color: #397563;
}


.firm-admin-data-status ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.firm-admin-data-status li {
  padding: 7px 11px;
  border: 1px solid rgba(199, 106, 12, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 850;
}

.firm-step-jump.has-missing-data {
  border-color: #efa242;
  color: #8b4b00;
  background: #fff7e8;
}

.firm-step-jump.has-missing-data::after {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #d97706;
  content: attr(data-missing-count);
  font-size: 11px;
  font-weight: 950;
}

.firm-admin-missing-field {
  position: relative;
  border-color: #e99a2e !important;
  box-shadow: 0 0 0 3px rgba(233, 154, 46, .12) !important;
}

.firm-admin-missing-note {
  display: block;
  margin: 8px 0 0;
  color: #9a5100;
  font-size: 12px;
  font-weight: 900;
}

.firm-coverage-editor.is-admin-readonly {
  border-color: #87cfd8;
  background: linear-gradient(180deg, #f6fdfe, #eaf8fa);
}

.firm-coverage-editor.is-admin-readonly::before {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0d6370;
  background: #dff4f7;
  content: "Bieżący zasięg firmy — tylko do odczytu";
  font-size: 12px;
  font-weight: 900;
}

.firm-step-progress {
  margin-bottom: 34px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(196,228,234,.95);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(243,252,253,.98), rgba(235,248,250,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.firm-step-progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.firm-step-progress-top > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.firm-step-progress-top > div > span,
.firm-step-progress-top > span {
  color: #2d6672;
  font-size: 14px;
  font-weight: 800;
}

.firm-step-progress-top > div > strong {
  color: #0d4450;
  font-size: 18px;
}

.firm-step-jump-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.firm-step-jump {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #cce4e9;
  border-radius: 15px;
  color: #607985;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.firm-step-jump:hover {
  border-color: #20aaa9;
  color: #0d665f;
  transform: translateY(-1px);
}

.firm-step-jump:focus-visible {
  outline: 3px solid rgba(29,194,192,.28);
  outline-offset: 2px;
}

.firm-step-jump > span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #087c73;
  background: #e6f7f8;
  font-size: 12px;
  font-weight: 950;
}

.firm-step-jump > strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.firm-step-jump.is-complete {
  border-color: #b9e5de;
  color: #267168;
  background: #f4fcfa;
}

.firm-step-jump.is-active {
  border-color: #14b8a6;
  color: #0d665f;
  background: #e6fbf7;
  box-shadow: 0 8px 18px rgba(20,184,166,.12);
}

.firm-step-jump.is-active > span {
  color: #fff;
  background: #14b8a6;
}

.firm-step-progress-bar {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(189,226,233,.55);
  box-shadow: inset 0 2px 6px rgba(16,82,95,.08);
}

.firm-step-progress-bar > div {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1dc2c0 0%, #14b8a6 52%, #1492c7 100%);
  box-shadow: 0 8px 16px rgba(20,168,166,.18);
  transition: width .3s ease;
}

body.is-firm-application-page .join-form-step {
  display: none;
  animation: firmStepFade .28s ease;
}

body.is-firm-application-page .join-form-step.is-active {
  display: block;
}

@keyframes firmStepFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.firm-step-heading {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(214,236,240,.95);
}

.firm-step-heading > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(194,229,235,.92);
  border-radius: 999px;
  color: #148ba0;
  background: rgba(232,248,250,.95);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.firm-step-heading h3 {
  margin: 0 0 10px;
  color: #0d4450;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.firm-step-heading p {
  max-width: 760px;
  margin: 0;
  color: #5c818b;
  font-size: 17px;
  line-height: 1.55;
}

body.is-firm-application-page .firm-form-card {
  border-color: rgba(198,229,235,.95);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(249,254,255,.92), rgba(242,250,252,.92));
  box-shadow: none;
}

body.is-firm-application-page .join-form-card h4 {
  color: #123f49;
  font-size: 18px;
}

body.is-firm-application-page .join-field label,
body.is-firm-application-page .join-field-label,
body.is-firm-application-page .join-choice-group legend,
body.is-firm-application-page .join-radio-panel legend {
  margin-bottom: 10px;
  color: #123f49;
  font-size: 15px;
  font-weight: 750;
}

body.is-firm-application-page .join-field input,
body.is-firm-application-page .join-field select,
body.is-firm-application-page .join-field textarea {
  min-height: 54px;
  padding: 15px 17px;
  border: 1px solid rgba(190,224,231,.95);
  border-radius: 18px;
  color: #173a43;
  background: linear-gradient(180deg, rgba(252,255,255,.98), rgba(244,251,252,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  font-size: 15px;
}

body.is-firm-application-page .join-field input:focus,
body.is-firm-application-page .join-field select:focus,
body.is-firm-application-page .join-field textarea:focus {
  border-color: #73cddd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(82,193,216,.14), inset 0 1px 0 rgba(255,255,255,.9);
}

body.is-firm-application-page .join-radio-panel,
body.is-firm-application-page .join-chip-grid label,
body.is-firm-application-page .join-check-grid label,
body.is-firm-application-page .join-vehicle-grid label {
  border-color: #cfe8ed;
  background: linear-gradient(180deg, #fff, #f5fbfc);
}

body.is-firm-application-page .join-check-grid label,
body.is-firm-application-page .join-chip-grid label {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d7edf2;
  border-radius: 14px;
  cursor: pointer;
}

body.is-firm-application-page .join-check-grid label:has(input:checked),
body.is-firm-application-page .join-chip-grid label:has(input:checked),
body.is-firm-application-page .join-vehicle-grid label:has(input:checked) {
  border-color: #4fc7c8;
  background: #eafafa;
  box-shadow: 0 0 0 2px rgba(22,199,200,.11);
}

body.is-firm-application-page input[type="checkbox"],
body.is-firm-application-page input[type="radio"] {
  accent-color: #14b8a6;
}

body.is-firm-application-page .join-area-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firm-contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firm-inline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.firm-inline-choices label {
  min-width: 120px;
  padding: 10px 13px;
  border: 1px solid #d7edf2;
  border-radius: 14px;
  background: #fff;
}

.firm-step-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(194,229,235,.92);
  border-radius: 18px;
  color: #3f6c76;
  background: linear-gradient(180deg, #eef9fb, #e4f4f7);
  font-size: 14px;
  line-height: 1.55;
}

body.is-firm-application-page .join-summary-row {
  border-color: #d7edf2;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
}

body.is-firm-application-page .join-secondary-button {
  min-height: 46px;
  border-color: #bfe2e8;
  border-radius: 14px;
  color: #1a5a66;
  background: linear-gradient(180deg, #fff, #eff8fa);
}

body.is-firm-application-page .join-consents label {
  margin-top: 12px;
  color: #395b63;
  font-size: 13px;
  line-height: 1.5;
}

body.is-firm-application-page .join-consents .join-black-card-consent {
  border-color: #bfd7dc;
  border-radius: 16px;
  color: #294c54;
  background: #edf5f6;
}

body.is-firm-application-page .join-consents a {
  color: #087889;
}

body.is-firm-application-page .join-form-actions {
  position: sticky;
  z-index: 20;
  bottom: 0;
  margin: 34px -20px -20px;
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(190,224,231,.95);
  background: rgba(248,253,254,.96);
  box-shadow: 0 -14px 30px rgba(22,74,85,.08);
  backdrop-filter: blur(12px);
}

.firm-step-stack,
.firm-vehicle-cards {
  display: grid;
  gap: 20px;
}

body.is-firm-application-page .firm-plain-section {
  padding: 26px;
}

.firm-plain-section > h4,
.firm-vehicle-card h5 {
  margin: 0;
}

.firm-plain-section em,
.firm-checkbox-fieldset em {
  color: #b63c32;
  font-style: normal;
}

.firm-optional-label {
  color: #6b858c;
  font-size: .78em;
  font-weight: 600;
}

.firm-section-help {
  margin: 7px 0 18px;
  color: #5c818b;
  font-size: 14px;
  line-height: 1.5;
}

.firm-add-button,
.firm-remove-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #bfe2e8;
  border-radius: 14px;
  color: #176677;
  background: #f7fcfd;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.firm-add-button {
  justify-self: start;
  margin-top: 16px;
}

.firm-proximity-note {
  display: grid;
  gap: 4px;
  margin: 18px 0 20px;
  padding: 16px 18px;
  border: 1px solid #c8e7e8;
  border-left: 4px solid #14a7a0;
  border-radius: 15px;
  color: #335f68;
  background: #f0fafa;
  font-size: 13px;
  line-height: 1.5;
}

.firm-proximity-note strong {
  color: #164d57;
  font-size: 14px;
}

.firm-area-guidance-copy {
  display: grid;
  gap: 3px;
}

.firm-area-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.firm-area-targets li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #c8e7e8;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
}

.firm-area-targets li span {
  color: #52747b;
  font-size: 11px;
  font-weight: 700;
}

.firm-area-targets li strong {
  font-size: 13px;
}

.firm-area-example {
  margin: 0;
  padding-top: 2px;
  color: #45676e;
}

.firm-start-locations {
  display: grid;
  gap: 12px;
}

.firm-base-rows {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.firm-base-row {
  position: relative;
  z-index: 0;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #cfe4e8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fcfd);
  box-shadow: 0 8px 22px rgba(19, 65, 75, .045);
}

.firm-base-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 2px;
}

.firm-base-row-head > div {
  display: grid;
  gap: 2px;
}

.firm-base-kicker {
  color: #65858c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.firm-base-row-head strong {
  color: #123f49;
  font-size: 18px;
}

.firm-base-row .firm-remove-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e4b9b4;
  border-radius: 10px;
  color: #a7473e;
  background: #fff8f7;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.firm-address-step {
  position: relative;
}

.firm-address-step[hidden] {
  display: none;
}

.firm-address-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 230px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #b9dce3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 66, 78, .16);
}

.firm-address-suggestions[hidden] {
  display: none;
}

.firm-address-suggestions button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  color: #163e48;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.firm-address-suggestions button:hover,
.firm-address-suggestions button:focus-visible {
  outline: none;
  background: #edf9fb;
}

.firm-address-status {
  display: block;
  margin-top: 6px;
  color: #66858c;
  font-size: 12px;
  line-height: 1.4;
}

.firm-address-status[data-state="loading"] { color: #087e88; }
.firm-address-status[data-state="success"] { color: #24713e; }
.firm-address-status[data-state="warning"] { color: #9a6418; }
.firm-address-status[data-state="error"] { color: #a33b34; font-weight: 700; }

.firm-address-confirmed {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid #b8e2c4;
  border-radius: 12px;
  color: #23633b;
  background: #f2fbf4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.firm-address-confirmed > span:first-child {
  flex: 0 0 auto;
  color: #24914b;
  font-size: 16px;
  line-height: 1.1;
}

.firm-add-base-button {
  margin-top: 14px;
  min-height: 42px;
  border: 1px solid #2a7278;
  border-radius: 10px;
  padding: 9px 14px;
  background: #fff;
  color: #17595f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.firm-base-precheck-notice {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #b9e0e5;
  border-radius: 14px;
  color: #315f68;
  background: #f2fbfc;
  line-height: 1.45;
}

.firm-base-precheck-notice strong {
  color: #123f49;
  font-size: 16px;
}

.firm-base-precheck-notice a,
.firm-change-bases-button {
  justify-self: start;
  margin-top: 5px;
  padding: 10px 14px;
  border: 1px solid #2a7278;
  border-radius: 10px;
  color: #17595f;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.firm-change-bases-help {
  display: block;
  margin-top: 7px;
  color: #5e7b83;
  font-size: 12px;
  line-height: 1.45;
}

.firm-change-bases-help[hidden] { display: none; }

.firm-base-row.is-readonly {
  border-color: #b9dfe3;
  background: linear-gradient(180deg, #fbfefe, #f2fafb);
}

.firm-base-row.is-readonly input[type="text"] {
  cursor: default;
  color: #315f68;
  background: #edf6f7;
}

.firm-base-row.is-readonly input[type="text"]:focus {
  border-color: #b9dfe3;
  box-shadow: none;
}

/* Krok 1: adresy baz wykorzystują całą szerokość karty i układają się kolejno. */
body.is-firm-application-page [data-step="1"] .firm-base-location-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 24px;
}

body.is-firm-application-page [data-step="1"] .firm-base-location-card > h4,
body.is-firm-application-page [data-step="1"] .firm-base-location-card > .firm-section-help,
body.is-firm-application-page [data-step="1"] .firm-base-location-card > .firm-base-rows,
body.is-firm-application-page [data-step="1"] .firm-base-location-card > .firm-add-base-button,
body.is-firm-application-page [data-step="1"] .firm-base-location-card > .firm-base-precheck-notice,
body.is-firm-application-page [data-step="1"] .firm-base-location-card > .firm-change-bases-button {
  grid-column: 1 / -1;
}

body.is-firm-application-page [data-step="1"] .firm-base-location-card > .firm-section-help {
  max-width: 760px;
  margin: 6px 0 12px;
}

body.is-firm-application-page [data-step="1"] .firm-base-rows {
  gap: 10px;
  margin-top: 0;
}

body.is-firm-application-page [data-step="1"] .firm-base-row {
  gap: 10px;
  padding: 16px 18px;
  border-radius: 15px;
}

/* Lista adresów musi znaleźć się nad kolejną kartą bazy. */
body.is-firm-application-page [data-step="1"] .firm-base-row:focus-within {
  z-index: 20;
}

body.is-firm-application-page [data-step="1"] .firm-add-base-button {
  justify-self: start;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .firm-base-row { padding: 16px; }
  .firm-base-row-head { align-items: flex-start; }

  body.is-firm-application-page [data-step="1"] .firm-base-location-card {
    padding: 18px 14px;
  }
}

.firm-start-location {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d2eaee;
  border-radius: 18px;
  background: #fff;
}

.firm-start-location-search {
  position: relative;
}

.firm-start-location .firm-remove-button {
  min-height: 54px;
}

.firm-location-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% - 17px);
  right: 0;
  left: 0;
  max-height: 330px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #b9dfe5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(25, 78, 90, .16);
}

.firm-location-suggestions button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e4f0f2;
  color: #244e57;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.firm-location-suggestions button:last-child {
  border-bottom: 0;
}

.firm-location-suggestions button:hover,
.firm-location-suggestions button:focus-visible {
  outline: 0;
  background: #edf9fa;
}

.firm-remove-button {
  color: #963e36;
  border-color: #edc8c4;
  background: #fff8f7;
}

.firm-text-check-list {
  display: grid;
  gap: 6px 22px;
}

.firm-text-check-list.firm-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firm-text-check-list > label {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 2px;
  color: #274f58;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.firm-text-check-list input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.firm-conditional-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d7edf2;
  border-radius: 18px;
  background: #f8fcfd;
}

.firm-checkbox-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.firm-checkbox-fieldset > legend {
  margin-bottom: 12px;
  color: #123f49;
  font-size: 15px;
  font-weight: 800;
}

.firm-short-grid,
.firm-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.firm-dimensions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.firm-vehicle-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid #cfe8ed;
  border-radius: 20px;
  background: #fff;
}

.firm-vehicle-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dceef1;
}

.firm-vehicle-card h5 {
  color: #0d4450;
  font-size: 18px;
}

body.is-firm-application-page select[multiple] {
  min-height: 230px;
}

body.is-firm-application-page .join-back-button,
body.is-firm-application-page .join-next-button {
  min-width: 160px;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 850;
}

body.is-firm-application-page .join-back-button {
  border-color: rgba(190,224,231,.95);
  color: #1a5a66;
  background: linear-gradient(180deg, #f9fdfe, #eff8fa);
}

body.is-firm-application-page .join-next-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #19bfc0 0%, #14b8a6 52%, #1690c6 100%);
  box-shadow: 0 18px 38px rgba(22,163,178,.22);
}

.firm-final-submit {
  position: relative;
  margin-top: 96px;
}

.firm-final-submit::after {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 50%;
  width: 230px;
  height: 230px;
  transform: translateX(-50%);
  background: url("/images/dragon-submit-ui-v1.webp") no-repeat center / contain;
  content: "";
  pointer-events: none;
}

body.is-firm-application-page .firm-final-submit .join-submit-button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 28px 40px;
  border: 0;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 24px 50px rgba(15,118,110,.28);
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
}

body.is-firm-application-page .firm-final-submit .join-submit-button:hover {
  transform: none;
  box-shadow: 0 28px 56px rgba(15,118,110,.34);
}

.firm-submit-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: firmSubmitSpin .8s linear infinite;
}

.join-submit-button.is-loading .firm-submit-spinner {
  display: block;
}

.join-submit-button.is-loading {
  opacity: .92;
  cursor: wait !important;
}

@keyframes firmSubmitSpin {
  to { transform: rotate(360deg); }
}

body.is-firm-application-page .is-invalid,
body.is-firm-application-page .join-choice-invalid {
  border-color: #d85a50 !important;
  box-shadow: 0 0 0 4px rgba(216,90,80,.12) !important;
}

.firm-field-error {
  margin-top: 8px;
  color: #b63c32;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

body.is-firm-application-page .join-form-message.is-error {
  border-color: #e7b3ad;
  color: #943229;
  background: #fff2f0;
}

body.is-firm-application-page .join-success {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(127,231,238,.5), transparent 35%),
    linear-gradient(180deg, #f8ffff, #e3f6fa);
}

body.is-firm-application-page .join-success-card {
  position: relative;
  display: block;
  width: min(900px, 100%);
  min-height: 500px;
  padding: 48px 54px 48px 270px;
  overflow: hidden;
  border-color: rgba(196,228,234,.95);
  box-shadow: 0 24px 54px rgba(20,79,91,.1);
}

body.is-firm-application-page .join-success-icon {
  display: none;
}

body.is-firm-application-page .join-success-content {
  position: relative;
  z-index: 2;
}

body.is-firm-application-page .join-success-dragon {
  position: absolute;
  z-index: 1;
  left: -38px;
  bottom: -15px;
  width: 350px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .firm-step-jump-nav {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  .firm-text-check-list.firm-two-columns,
  .firm-short-grid,
  .firm-dimensions-grid,
  .firm-start-location {
    grid-template-columns: 1fr;
  }

  .firm-start-location .firm-remove-button {
    justify-self: start;
    min-height: 44px;
  }

  body.is-firm-application-page .join-area-grid,
  .firm-contact-layout {
    grid-template-columns: 1fr;
  }

  body.is-firm-application-page .join-services-layout,
  body.is-firm-application-page .join-summary-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.is-firm-application-page .join-success-card {
    min-height: 0;
    padding: 28px 22px 175px;
  }

  body.is-firm-application-page .join-success-dragon {
    left: 50%;
    bottom: -18px;
    width: 260px;
    transform: translateX(-50%);
  }

  body.is-firm-application-page {
    --firm-form-hero-copy-space: 235px;
  }

  .firm-form-hero {
    padding: 0 14px;
  }

  .firm-form-hero-top {
    height: 205px;
  }

  .firm-form-hero-curve {
    width: 860px;
    height: 175px;
  }

  .firm-form-logo-badge {
    bottom: -48px;
  }

  .firm-form-logo-circle {
    width: 250px;
    height: 88px;
    padding: 16px 24px;
  }

  .firm-form-logo-circle img {
    width: 156px;
  }

  .firm-form-hero-text {
    top: 278px;
  }

  .firm-form-hero-text h1 {
    font-size: 25px;
  }

  .firm-form-hero-text p {
    font-size: 14px;
  }

  .firm-form-wrapper {
    padding: 0 12px;
  }

  .firm-moving-form {
    padding: 20px 14px;
    border-radius: 24px;
  }

  .firm-support-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    border-radius: 18px;
    font-size: 15px;
  }

  .firm-step-progress {
    padding: 18px 16px 15px;
    border-radius: 19px;
  }

  .firm-step-heading h3 {
    font-size: 27px;
  }

  .firm-step-heading p {
    font-size: 15px;
  }

  body.is-firm-application-page .join-form-card {
    padding: 20px 14px;
  }

  body.is-firm-application-page .join-form-actions {
    position: sticky;
    z-index: 10;
    bottom: 0;
    margin: 24px -14px -20px;
    padding: 12px 14px;
    border-top: 1px solid rgba(190,224,231,.95);
    background: rgba(248,253,254,.96);
    backdrop-filter: blur(12px);
  }

  body.is-firm-application-page .join-back-button,
  body.is-firm-application-page .join-next-button {
    min-width: 0;
    flex: 1;
  }

  .firm-final-submit {
    margin-top: 90px;
  }

  .firm-final-submit::after {
    bottom: 42px;
    width: 185px;
    height: 185px;
  }

  body.is-firm-application-page .firm-final-submit .join-submit-button {
    min-height: 82px;
    padding: 24px 18px;
    font-size: 19px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--join-ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(11, 153, 149, 0.055), transparent 26%),
    radial-gradient(circle at 92% 5%, rgba(168, 217, 66, 0.05), transparent 22%),
    #fbfdfd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.join-container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.join-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(218, 225, 227, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

html.local-test-mode .join-header {
  top: 46px;
}

.join-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  gap: 28px;
}

.join-logo {
  justify-self: start;
}

.join-logo img {
  display: block;
  width: auto;
  height: 58px;
}

.join-header nav {
  display: flex;
  gap: 7px;
}

.join-header nav a,
.join-header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid #dce4e6;
  border-radius: 13px;
  color: var(--join-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.join-header-cta {
  justify-self: end;
  min-width: 190px;
  border-color: #19252d;
  color: #fff;
  background: linear-gradient(135deg, #26343d, #10171c);
}

.join-intro {
  padding: 88px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid rgba(210, 224, 224, 0.8);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 247, 0.9)),
    radial-gradient(circle at 85% 10%, rgba(11, 153, 149, 0.13), transparent 32%);
}

.join-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(54px, 7vw, 112px);
}

.join-eyebrow {
  margin: 0 0 18px;
  color: var(--join-brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-intro h1,
.join-form-header h2,
.join-success h2 {
  margin: 0;
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.join-lead {
  max-width: 710px;
  margin: 30px 0 0;
  color: #58666f;
  font-size: 21px;
  line-height: 1.68;
}

.join-rules-overview {
  max-width: 710px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid #d5e5e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.join-rules-overview > p {
  margin: 0 0 11px;
  color: var(--join-brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.join-rules-overview ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #526568;
  font-size: 15px;
  line-height: 1.55;
}

.join-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  color: var(--join-ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.join-scroll-link > span:last-child {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #d5e1e1;
  border-radius: 50%;
  color: var(--join-brand-dark);
  background: #fff;
}

.join-rules {
  padding: 78px 0 84px;
  background: #f1f6f6;
}

.join-rules-header {
  max-width: 850px;
  margin-bottom: 40px;
}

.join-rules-header h2,
.join-ready h2 {
  margin: 0;
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.join-rules-list {
  display: grid;
  gap: 18px;
}

.join-rule-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(26px, 3vw, 48px);
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid #dce6e6;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 50px rgba(23, 47, 56, 0.055);
  scroll-margin-top: 116px;
}

html.local-test-mode .join-rule-card {
  scroll-margin-top: 158px;
}

.join-rule-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.join-rule-number span {
  color: #0a918d;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.join-rule-number small {
  margin-top: 9px;
  color: #839096;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-rule-content {
  max-width: 900px;
}

.join-rule-content h3 {
  margin: 0 0 14px;
  font-size: clamp(27px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.join-rule-content > p {
  margin: 0 0 11px;
  color: #5f6d75;
  font-size: 16px;
  line-height: 1.65;
}

.join-rule-content > .join-rule-lead {
  color: #26343d;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.52;
}

.join-rule-referral .join-rule-lead {
  font-weight: 400;
}

.join-rule-referral .join-rule-lead strong {
  font-weight: 650;
}

.join-referral-eligibility {
  margin-top: 16px !important;
  padding: 13px 16px;
  border-left: 4px solid var(--join-brand);
  border-radius: 0 10px 10px 0;
  background: #eef9f7;
  color: #32434a !important;
}

.join-referral-eligibility strong {
  color: var(--join-brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #74cfc8;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.join-example {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid #d8e7e5;
  border-radius: 15px;
  background: #f4faf9;
}

.join-example > span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--join-brand-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-example > p:last-child {
  margin: 12px 0 0;
  color: #59676f;
  font-size: 14px;
  line-height: 1.55;
}

.join-example-calculation {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
}

.join-example-calculation p {
  margin: 0;
}

.join-example-calculation small,
.join-example-calculation strong {
  display: block;
}

.join-example-calculation small {
  margin-bottom: 5px;
  color: #718087;
  font-size: 13px;
}

.join-example-calculation strong {
  color: #17242b;
  font-size: 23px;
}

.join-example-calculation > span {
  color: #7a888e;
  font-size: 15px;
  font-weight: 800;
}

.join-refund-rules {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dce5e7;
  border-radius: 15px;
  background: #fbfcfc;
}

.join-refund-rules-heading {
  margin-bottom: 12px;
}

.join-refund-rules-heading > span {
  color: var(--join-brand-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-refund-rules-heading h4 {
  margin: 4px 0 5px;
  color: #17242b;
  font-size: 19px;
}

.join-refund-rules-heading p {
  margin: 0;
  color: #5f6d75;
  font-size: 14px;
  line-height: 1.55;
}

.join-refund-item {
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #dfe7e8;
  border-left: 4px solid #7b8b92;
  border-radius: 11px;
  background: #fff;
}

.join-refund-item.join-refund-full {
  border-left-color: #2f9e65;
}

.join-refund-item.join-refund-half {
  border-left-color: #d89b25;
}

.join-refund-item.join-refund-none {
  border-left-color: #c95656;
}

.join-refund-item summary {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px;
  color: #26343d;
  cursor: pointer;
  list-style: none;
}

.join-refund-item summary::-webkit-details-marker {
  display: none;
}

.join-refund-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  justify-self: center;
  border-right: 2px solid #607078;
  border-bottom: 2px solid #607078;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.join-refund-item[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.join-refund-item summary strong {
  color: #17242b;
  font-size: 15px;
}

.join-refund-item summary span {
  color: #68767d;
  font-size: 14px;
}

.join-refund-body {
  padding: 12px 16px 15px;
  border-top: 1px solid #e6ecec;
  color: #536168;
  font-size: 14px;
  line-height: 1.6;
}

.join-refund-body p {
  margin: 0 0 9px;
}

.join-refund-body ul {
  display: grid;
  gap: 5px;
  margin: 0 0 11px;
  padding-left: 18px;
}

.join-refund-example {
  margin-bottom: 0 !important;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f2f6f6;
}

.join-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

.join-feature-list li {
  position: relative;
  padding: 9px 12px 9px 35px;
  border: 1px solid #e0e8e9;
  border-radius: 11px;
  color: #435159;
  background: #f8fafa;
  font-size: 14px;
}

.join-feature-list li::before {
  content: "✓";
  position: absolute;
  top: 8px;
  left: 12px;
  color: var(--join-brand);
  font-weight: 950;
}

.join-rule-referral {
  border-color: #cfe4df;
  background:
    radial-gradient(circle at 100% 0, rgba(168, 217, 66, 0.08), transparent 36%),
    #fff;
}

.join-example-referral dl {
  margin: 0;
}

.join-example-referral dl > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #dce9e7;
}

.join-example-referral dl > div:last-child {
  border-bottom: 0;
}

.join-example-referral dt {
  color: #65737a;
  font-size: 15px;
}

.join-example-referral dd {
  margin: 0;
  color: #19272e;
  font-size: 16px;
  font-weight: 900;
}

.join-example-referral dl > div:last-child dd {
  color: var(--join-brand-dark);
  font-size: 19px;
}

.join-rule-selection {
  border-color: #9cd8cf;
  background:
    radial-gradient(circle at 100% 0, rgba(20, 184, 166, 0.12), transparent 38%),
    #f7fffd;
}

.join-selection-example {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.join-selection-example div {
  display: grid;
  gap: 6px;
  border: 1px solid #b9e5df;
  border-radius: 15px;
  padding: 16px;
  background: #ffffff;
}

.join-selection-example span {
  color: #637b80;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.join-selection-example strong {
  color: #0f766e;
  font-size: clamp(22px, 3vw, 34px);
}

.join-selection-note {
  margin-top: 14px;
  border-left: 4px solid #14b8a6;
  border-radius: 4px 12px 12px 4px;
  padding: 12px 14px;
  background: #eafaf7;
  color: #315f5a;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
}

.join-selection-summary-note {
  margin: 14px 0 0;
  border: 1px solid #d9e5e4;
  border-radius: 13px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.72);
  color: #526568;
  font-size: 16px;
  line-height: 1.6;
}

.join-selection-section {
  margin-top: 20px;
}

.join-selection-section h4 {
  margin: 0 0 8px;
  color: #164e49;
  font-size: 17px;
}

.join-area-activity-rules {
  border-top: 1px solid #b9e5df;
  padding-top: 20px;
}

.join-area-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.join-area-summary-grid article {
  border: 1px solid #cde7e3;
  border-radius: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.join-area-summary-grid h5 {
  margin: 0 0 7px;
  color: #155e57;
  font-size: 14px;
}

.join-area-summary-grid p {
  margin: 0;
  color: #526568;
  font-size: 15px;
  line-height: 1.6;
}

.join-selection-details {
  margin-top: 24px;
  border-top: 1px solid #b9e5df;
  padding-top: 20px;
}

.join-rules-faq {
  max-width: 900px;
  margin: 42px auto 0;
}

.join-selection-details > h4 {
  margin: 0 0 5px;
  color: #164e49;
  font-size: 17px;
}

.join-selection-details > p {
  margin: 0 0 13px;
  color: #63777a;
  font-size: 15px;
  line-height: 1.6;
}

.join-selection-detail {
  overflow: hidden;
  margin-top: 9px;
  border: 1px solid #cde3df;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
}

.join-selection-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: #284c4a;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.join-selection-detail summary::-webkit-details-marker {
  display: none;
}

.join-selection-detail summary::after {
  content: "+";
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e5f5f2;
  color: #0f766e;
  font-size: 19px;
  line-height: 1;
}

.join-selection-detail[open] summary::after {
  content: "−";
}

.join-selection-detail > div {
  border-top: 1px solid #e0eeeb;
  padding: 4px 16px 15px;
}

.join-selection-detail > div p {
  margin: 11px 0 0;
  color: #526568;
  font-size: 15px;
  line-height: 1.6;
}

.join-selection-penalty-example {
  border-left: 4px solid #111827;
  border-radius: 4px 12px 12px 4px;
  padding: 12px 14px;
  background: #eef1f2;
  color: #26363b;
  font-weight: 750;
}

@media (max-width: 700px) {
  .join-selection-example,
  .join-area-summary-grid {
    grid-template-columns: 1fr;
  }

  .join-selection-detail summary {
    padding: 13px 14px;
  }
}

.join-rating-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.join-rating-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid #dfe8e8;
  border-radius: 13px;
  color: #45525a;
  background: #f8fafa;
  font-size: 15px;
}

.join-rating-list span {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--join-brand);
  font-weight: 900;
}

.join-review-note {
  padding: 14px 17px;
  border-left: 4px solid #159466;
  border-radius: 4px 12px 12px 4px;
  background: #f0f8f4;
}

.join-review-note p {
  margin: 0;
  color: #52635d;
  font-size: 15px;
  line-height: 1.6;
}

.join-review-note p + p {
  margin-top: 7px;
}

.join-required-word {
  color: #0f875b;
  font-weight: 950;
}

.join-ready {
  padding: 92px 0;
  background: #17272f;
}

.join-ready-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.7fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  color: #fff;
}

.join-ready .join-eyebrow {
  color: #73d2ce;
}

.join-ready-card > div:first-child > p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: #c1cdd1;
  font-size: 17px;
  line-height: 1.65;
}

.join-ready-action {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.join-rules-confirmation {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 13px;
  margin-bottom: 18px;
  cursor: pointer;
}

.join-rules-confirmation input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--join-brand);
}

.join-rules-confirmation strong,
.join-rules-confirmation small {
  display: block;
}

.join-rules-confirmation strong {
  font-size: 13px;
  line-height: 1.5;
}

.join-rules-confirmation strong a {
  color: var(--join-brand);
  text-decoration-color: currentColor;
}

.join-rules-confirmation strong a:hover {
  color: var(--join-brand-dark);
}

.join-rules-confirmation small {
  margin-top: 5px;
  color: #9fb0b6;
  font-size: 11px;
}

.join-primary-button,
.join-submit-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #13aaa5, #087b77);
  box-shadow: 0 16px 36px rgba(8, 123, 119, 0.2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.join-primary-button:disabled {
  color: #9aa7ac;
  background: #34444b;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.76;
}

.join-ready-action .join-primary-button {
  width: 100%;
}

.join-free-note,
.join-secure-note {
  max-width: 620px;
  margin: 15px 0 0;
  color: #7b858c;
  font-size: 11px;
  line-height: 1.5;
}

.join-ready .join-free-note {
  color: #93a3a9;
}

.join-application {
  padding: 54px 0 80px;
  scroll-margin-top: 105px;
}

.join-form-header {
  text-align: center;
}

.join-form-header h2 {
  font-size: clamp(30px, 3vw, 43px);
}

.join-form-header > p:last-child {
  margin: 13px 0 0;
  color: var(--join-muted);
}

.join-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin: 38px auto 45px;
  padding: 0;
  list-style: none;
}

.join-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 15%;
  left: 15%;
  height: 2px;
  background: #e0e7e8;
}

.join-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #929a9e;
  font-size: 13px;
}

.join-stepper span {
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d9e1e2;
  border-radius: 50%;
  background: #fff;
  font-weight: 850;
}

.join-stepper li.is-active,
.join-stepper li.is-complete {
  color: var(--join-ink);
}

.join-stepper li.is-active span {
  border-color: var(--join-brand);
  color: #fff;
  background: var(--join-brand);
}

.join-stepper li.is-complete span {
  border-color: #d6decb;
  color: #586144;
  background: #eef2e6;
}

.join-form-step {
  animation: joinStepIn 0.28s ease;
}

@keyframes joinStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.join-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.join-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.join-section-heading span {
  color: var(--join-brand);
  font-size: 13px;
  font-weight: 900;
}

.join-section-heading h3 {
  margin: 0;
  font-size: 23px;
}

.join-section-heading p {
  max-width: 580px;
  margin: 0;
  color: var(--join-muted);
  font-size: 13px;
}

.join-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.join-form-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--join-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 13px 34px rgba(24, 45, 53, 0.045);
}

.join-form-card > h4,
.join-form-card > .join-subheading,
.join-form-card > .join-choice-group,
.join-form-card > .join-vehicle-grid,
.join-form-card > .join-technical-grid,
.join-form-card > .join-dimensions,
.join-form-card > .join-chip-grid,
.join-form-card > .join-field-label,
.join-form-card > .join-check-grid,
.join-form-card > .join-summary-list,
.join-form-card > .join-secondary-button,
.join-form-card > .join-submit-button,
.join-form-card > .join-secure-note {
  grid-column: 1 / -1;
}

.join-form-card h4 {
  margin: 0;
  font-size: 17px;
}

.join-form-card h4 em,
.join-radio-panel em {
  color: #bd483b;
  font-style: normal;
}

.join-side-card {
  display: flex;
  flex-direction: column;
}

.join-field {
  min-width: 0;
}

.join-field-full {
  grid-column: 1 / -1;
}

.join-field label,
.join-field-label,
.join-choice-group legend,
.join-radio-panel legend {
  display: block;
  margin: 0 0 7px;
  color: #39454c;
  font-size: 12px;
  font-weight: 750;
}

.join-field label em,
.join-choice-group em {
  color: #bd483b;
  font-style: normal;
}

.join-field input,
.join-field select,
.join-field textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #d9e2e4;
  border-radius: 9px;
  outline: none;
  color: var(--join-ink);
  background: #fff;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.join-field textarea {
  resize: vertical;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
  border-color: var(--join-brand);
  box-shadow: 0 0 0 3px rgba(11, 153, 149, 0.11);
}

.join-field input.is-invalid,
.join-field select.is-invalid,
.join-field textarea.is-invalid,
.join-choice-invalid {
  border-color: #c94f45 !important;
  box-shadow: 0 0 0 3px rgba(201, 79, 69, 0.08);
}

.join-choice-group,
.join-radio-panel {
  margin: 0;
  padding: 0;
  border: 0;
}

.join-choice-group label,
.join-radio-panel label,
.join-consents label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 9px;
  color: #4e5b63;
  font-size: 12px;
  line-height: 1.45;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--join-brand);
}

.join-time-fields,
.join-technical-grid,
.join-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.join-area-card {
  display: block;
  margin-bottom: 18px;
}

.join-area-card h4 {
  margin-bottom: 20px;
}

.join-area-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 0.8fr) minmax(260px, 1fr) minmax(250px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.join-radio-panel {
  padding: 18px;
  border: 1px solid #e0e7e8;
  border-radius: 14px;
  background: #fbfdfd;
}

.join-services-layout {
  grid-template-columns: 1fr 1fr;
}

.join-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.join-check-grid label,
.join-chip-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: #455159;
  font-size: 12px;
}

.join-subheading {
  margin-top: 16px !important;
  padding-top: 20px;
  border-top: 1px solid #e5eaeb;
}

.join-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.join-chip-grid label {
  padding: 9px 11px;
  border: 1px solid #dfe6e7;
  border-radius: 9px;
  background: #f8faf9;
}

.join-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.join-vehicle-grid label {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 10px 7px;
  border: 1px solid #dfe6e7;
  border-radius: 11px;
  color: #46525a;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  text-align: center;
}

.join-vehicle-grid input {
  position: absolute;
  top: 7px;
  left: 7px;
}

.join-vehicle-grid label:has(input:checked) {
  border-color: var(--join-brand);
  background: #eef9f8;
}

.join-vehicle-grid label > span {
  font-size: 25px;
  line-height: 1;
}

.join-technical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.join-dimensions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.join-summary-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
}

.join-summary-list {
  display: grid;
  gap: 9px;
}

.join-summary-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid #e1e7e8;
  border-radius: 10px;
  background: #fbfcfc;
  font-size: 12px;
}

.join-summary-row span {
  color: var(--join-muted);
}

.join-summary-row strong {
  overflow-wrap: anywhere;
}

.join-secondary-button {
  min-height: 42px;
  border: 1px solid #dbe3e5;
  border-radius: 10px;
  color: #3e4a51;
  background: #fff;
  cursor: pointer;
  font-weight: 750;
}

.join-consents {
  display: flex;
  flex-direction: column;
}

.join-consents a {
  color: var(--join-brand-dark);
}

.join-consents .join-black-card-consent {
  margin: 14px 0 5px;
  padding: 13px 14px;
  border: 1px solid #aeb6ba;
  border-radius: 11px;
  color: #26343b;
  background: #f2f4f5;
}

.join-black-card-consent strong {
  color: #17272f;
}

.join-submit-button {
  width: 100%;
  margin-top: 18px;
}

.join-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.join-back-button,
.join-next-button {
  min-width: 150px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid #dbe3e5;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.join-next-button {
  margin-left: auto;
  border-color: var(--join-brand);
  color: #fff;
  background: var(--join-brand);
}

.join-form-message {
  display: none;
  margin-top: 18px;
  padding: 14px 17px;
  border-radius: 11px;
  font-size: 13px;
}

.join-form-message.is-error {
  display: block;
  border: 1px solid #e5b7b2;
  color: #8e3028;
  background: #fff3f1;
}

.join-form-message.is-success {
  display: block;
  border: 1px solid #a8d7d3;
  color: #08635f;
  background: #effaf9;
}

.join-form-message.is-info {
  display: block;
  border: 1px solid #cfd4da;
  color: #3b3f44;
  background: #f6f7f8;
}

.join-inline-button {
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.join-inline-button:disabled {
  cursor: wait;
  opacity: .65;
}

.join-honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.join-success {
  min-height: calc(100svh - 86px);
  display: grid;
  place-items: center;
  padding: 70px 24px;
}

.join-success-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: min(760px, 100%);
  padding: 42px;
  border: 1px solid var(--join-line);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--join-shadow);
}

.join-success-icon {
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ddd4bd, #b7a988);
  font-size: 40px;
}

.join-success h2 {
  font-size: 34px;
}

.join-success p,
.join-success li {
  color: var(--join-muted);
  line-height: 1.65;
}

.join-success .join-primary-button {
  margin-top: 10px;
}

.join-success-exit-note {
  max-width: 560px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid rgba(111, 203, 208, .5);
  border-radius: 14px;
  color: #244b54 !important;
  background: rgba(237, 250, 250, .8);
}

.join-footer {
  border-top: 1px solid var(--join-line);
  background: #fff;
}

.join-footer .join-container {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 22px;
  color: var(--join-muted);
  font-size: 12px;
}

.join-footer a {
  color: inherit;
}

@media (max-width: 1100px) {
  .join-header-inner {
    grid-template-columns: 1fr auto;
  }

  .join-header nav {
    display: none;
  }

  .join-rule-card {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 38px;
  }

  .join-ready-card {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.75fr);
    gap: 46px;
  }

  .join-area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .join-vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .join-container {
    width: min(100% - 28px, 680px);
  }

  .join-header-inner {
    min-height: 72px;
  }

  .join-logo img {
    height: 46px;
  }

  .join-header-cta {
    min-width: 0;
    min-height: 40px;
    padding: 8px 13px;
    font-size: 12px;
  }

  .join-intro {
    padding: 52px 0 62px;
  }

  .join-intro-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .join-rules {
    padding: 76px 0 82px;
  }

  .join-rule-card {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 28px;
  }

  .join-ready-card {
    grid-template-columns: 1fr;
  }

  .join-ready {
    padding: 72px 0;
  }

  .join-form-layout,
  .join-services-layout,
  .join-summary-layout {
    grid-template-columns: 1fr;
  }

  .join-stepper strong {
    font-size: 11px;
    text-align: center;
  }

  .join-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .join-area-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .join-intro h1 {
    font-size: 41px;
  }

  .join-lead {
    font-size: 17px;
  }

  .join-scroll-link {
    margin-top: 28px;
  }

  .join-rules-header h2,
  .join-ready h2 {
    font-size: 36px;
  }

  .join-rule-card {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .join-rule-number {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }

  .join-rule-number span {
    font-size: 52px;
  }

  .join-rule-number small {
    margin-top: 0;
  }

  .join-rule-content h3 {
    font-size: 29px;
  }

  .join-example {
    padding: 18px 16px;
  }

  .join-example-calculation,
  .join-feature-list,
  .join-rating-list {
    grid-template-columns: 1fr;
  }

  .join-example-calculation > span {
    display: none;
  }

  .join-refund-rules {
    padding: 14px;
  }

  .join-refund-item summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 4px 10px;
    padding: 10px 12px;
  }

  .join-refund-item summary strong,
  .join-refund-item summary span {
    grid-column: 1;
  }

  .join-refund-item summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .join-example-referral dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .join-ready-action {
    padding: 23px 19px;
  }

  .join-primary-button {
    gap: 14px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 13px;
  }

  .join-application {
    padding-top: 40px;
  }

  .join-stepper {
    margin: 30px 0 36px;
  }

  .join-stepper li {
    flex-direction: column;
    gap: 6px;
  }

  .join-stepper::before {
    top: 17px;
  }

  .join-form-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .join-field-full {
    grid-column: auto;
  }

  .join-check-grid,
  .join-chip-grid {
    grid-template-columns: 1fr;
  }

  .join-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-technical-grid,
  .join-dimensions {
    grid-template-columns: 1fr;
  }

  .join-summary-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .join-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 22px -14px -1px;
    padding: 12px 14px;
    border-top: 1px solid var(--join-line);
    background: rgba(251, 253, 253, 0.96);
    backdrop-filter: blur(12px);
  }

  .join-back-button,
  .join-next-button {
    min-width: 0;
    flex: 1;
  }

  .join-success-card {
    grid-template-columns: 1fr;
    padding: 27px 21px;
  }

  .join-success-icon {
    width: 76px;
    height: 76px;
  }

  .join-footer .join-container {
    min-height: 86px;
    flex-wrap: wrap;
    align-content: center;
    gap: 8px 18px;
  }
}

/* Krok 2: zwarty, symetryczny układ rejonów i usług. */
body.is-firm-application-page [data-step="2"] .firm-step-stack {
  gap: 14px;
}

body.is-firm-application-page [data-step="2"] .firm-form-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 24px;
  border-radius: 18px;
}

body.is-firm-application-page [data-step="2"] .firm-section-help {
  max-width: none;
  margin: 6px 0 13px;
  font-size: 13px;
  line-height: 1.45;
}

.firm-coverage-help-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #0f9ba5;
  border-radius: 11px;
  background: #f2fcfd;
  color: #087c73;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.firm-coverage-help-link:hover,
.firm-coverage-help-link:focus-visible {
  background: #dff7f5;
  color: #056b64;
  outline: none;
}

.firm-coverage-help-link > span:first-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b8e95;
  color: #ffffff;
  font-weight: 900;
}

body.is-firm-application-page [data-step="2"] .firm-proximity-note {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 15px;
  border-left-width: 3px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
}

body.is-firm-application-page [data-step="2"] .firm-proximity-note strong {
  font-size: 13px;
  line-height: 1.4;
}

body.is-firm-application-page [data-step="2"] .firm-start-locations {
  gap: 9px;
}

body.is-firm-application-page [data-step="2"] .firm-start-location {
  grid-template-columns: minmax(0, 1.65fr) minmax(180px, .65fr) auto;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

body.is-firm-application-page [data-step="2"] .firm-start-location .join-field label {
  margin-bottom: 6px;
  font-size: 13px;
}

body.is-firm-application-page [data-step="2"] .firm-start-location .join-field input,
body.is-firm-application-page [data-step="2"] .firm-start-location .join-field select {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
}

body.is-firm-application-page [data-step="2"] .firm-start-location small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

body.is-firm-application-page [data-step="2"] .firm-start-location .firm-remove-button {
  min-height: 48px;
}

body.is-firm-application-page [data-step="2"] .firm-add-button {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  border-style: dashed;
  border-radius: 13px;
  background: rgba(247,252,253,.72);
}

body.is-firm-application-page [data-step="2"] .firm-scope-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.is-firm-application-page [data-step="2"] .firm-scope-options > label,
body.is-firm-application-page [data-step="2"] .firm-choice-grid > label {
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #d2e8ec;
  border-radius: 12px;
  color: #244b54;
  background: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.35;
}

body.is-firm-application-page [data-step="2"] .firm-scope-options > label:has(input:checked),
body.is-firm-application-page [data-step="2"] .firm-choice-grid > label:has(input:checked) {
  border-color: #6fcbd0;
  color: #123f49;
  background: #edfafa;
  box-shadow: inset 0 0 0 1px rgba(111,203,208,.18);
}

body.is-firm-application-page [data-step="2"] .firm-scope-options input,
body.is-firm-application-page [data-step="2"] .firm-choice-grid input {
  margin-top: 0;
}

body.is-firm-application-page [data-step="2"] .firm-choice-section > h4 {
  margin-bottom: 13px;
}

body.is-firm-application-page [data-step="2"] .firm-choice-section > h4 + .firm-section-help {
  margin-top: -6px;
}

body.is-firm-application-page [data-step="2"] .firm-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

body.is-firm-application-page [data-step="2"] .firm-service-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firm-service-type-option span {
  display: grid;
  gap: 3px;
}

.firm-service-type-option strong {
  color: #183f48;
  font-size: 14px;
}

.firm-service-type-option small {
  color: #648087;
  font-size: 11px;
  line-height: 1.35;
}

.firm-additional-service-groups {
  display: grid;
  gap: 14px;
}

.firm-additional-service-group {
  display: grid;
  gap: 8px;
}

.firm-additional-service-group h5 {
  margin: 0;
  color: #31535b;
  font-size: 13px;
}

body.is-firm-application-page [data-step="2"] .firm-conditional-panel {
  margin-top: 12px;
  padding: 15px;
  border-radius: 14px;
}

@media (max-width: 1050px) {
  body.is-firm-application-page [data-step="2"] .firm-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-firm-application-page [data-step="2"] .firm-start-location {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  body.is-firm-application-page [data-step="2"] .firm-start-location .firm-remove-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  body.is-firm-application-page [data-step="2"] .firm-form-card {
    padding: 18px 14px;
  }

  body.is-firm-application-page [data-step="2"] .firm-proximity-note,
  body.is-firm-application-page [data-step="2"] .firm-area-targets,
  body.is-firm-application-page [data-step="2"] .firm-start-location,
  body.is-firm-application-page [data-step="2"] .firm-scope-options,
  body.is-firm-application-page [data-step="2"] .firm-service-type-grid,
  body.is-firm-application-page [data-step="2"] .firm-choice-grid {
    grid-template-columns: 1fr;
  }

  body.is-firm-application-page [data-step="2"] .firm-start-location .firm-remove-button {
    grid-column: auto;
    justify-self: stretch;
  }
}

/* Krok 3: kompaktowa flota i możliwości firmy. */
body.is-firm-application-page [data-step="3"] .firm-step-stack {
  gap: 14px;
}

body.is-firm-application-page [data-step="3"] .firm-form-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 24px;
  border-radius: 18px;
}

body.is-firm-application-page [data-step="3"] .firm-fleet-section > h4,
body.is-firm-application-page [data-step="3"] .firm-team-section > h4,
body.is-firm-application-page [data-step="3"] .firm-capabilities-section > h4 {
  margin-bottom: 13px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-cards {
  gap: 10px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-card {
  gap: 13px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,.8);
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-card-head {
  gap: 12px;
  padding-bottom: 10px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-card h5 {
  font-size: 16px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-card-head .firm-remove-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 12px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-primary-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr) minmax(180px, .8fr);
  gap: 10px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-card .join-field label,
body.is-firm-application-page [data-step="3"] .firm-team-section .join-field label,
body.is-firm-application-page [data-step="3"] .firm-capabilities-section .join-field label {
  margin-bottom: 6px;
  font-size: 13px;
}

body.is-firm-application-page [data-step="3"] .firm-vehicle-card .join-field input,
body.is-firm-application-page [data-step="3"] .firm-vehicle-card .join-field select,
body.is-firm-application-page [data-step="3"] .firm-team-section .join-field input,
body.is-firm-application-page [data-step="3"] .firm-team-section .join-field select {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
}

body.is-firm-application-page [data-step="3"] .firm-dimensions-section,
body.is-firm-application-page [data-step="3"] .firm-equipment-section {
  padding-top: 12px;
  border-top: 1px solid #dceef1;
}

body.is-firm-application-page [data-step="3"] .firm-checkbox-fieldset > legend {
  margin-bottom: 9px;
  font-size: 13px;
}

body.is-firm-application-page [data-step="3"] .firm-dimensions-grid {
  gap: 10px;
}

body.is-firm-application-page [data-step="3"] .firm-equipment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.is-firm-application-page [data-step="3"] .firm-equipment-grid > label,
body.is-firm-application-page [data-step="3"] .firm-team-options > label {
  min-height: 50px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #d2e8ec;
  border-radius: 12px;
  color: #244b54;
  background: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.35;
}

body.is-firm-application-page [data-step="3"] .firm-equipment-grid > label:has(input:checked),
body.is-firm-application-page [data-step="3"] .firm-team-options > label:has(input:checked) {
  border-color: #6fcbd0;
  color: #123f49;
  background: #edfafa;
  box-shadow: inset 0 0 0 1px rgba(111,203,208,.18);
}

body.is-firm-application-page [data-step="3"] .firm-equipment-grid input,
body.is-firm-application-page [data-step="3"] .firm-team-options input {
  margin-top: 0;
}

body.is-firm-application-page [data-step="3"] .firm-add-button {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  border-style: dashed;
  border-radius: 13px;
  background: rgba(247,252,253,.72);
}

body.is-firm-application-page [data-step="3"] .firm-team-inputs,
body.is-firm-application-page [data-step="3"] .firm-team-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.is-firm-application-page [data-step="3"] .firm-team-options {
  margin-top: 10px;
}

body.is-firm-application-page [data-step="3"] .firm-capabilities-field textarea {
  min-height: 112px;
  padding: 13px 15px;
  border-radius: 14px;
}

@media (max-width: 1050px) {
  body.is-firm-application-page [data-step="3"] .firm-vehicle-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-firm-application-page [data-step="3"] .firm-vehicle-primary-grid > :last-child {
    grid-column: 1 / -1;
  }

  body.is-firm-application-page [data-step="3"] .firm-equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.is-firm-application-page [data-step="3"] .firm-form-card {
    padding: 18px 14px;
  }

  body.is-firm-application-page [data-step="3"] .firm-vehicle-primary-grid,
  body.is-firm-application-page [data-step="3"] .firm-dimensions-grid,
  body.is-firm-application-page [data-step="3"] .firm-equipment-grid,
  body.is-firm-application-page [data-step="3"] .firm-team-inputs,
  body.is-firm-application-page [data-step="3"] .firm-team-options {
    grid-template-columns: 1fr;
  }

  body.is-firm-application-page [data-step="3"] .firm-vehicle-primary-grid > :last-child {
    grid-column: auto;
  }
}

/* Krok 3: zwarty kontakt i godziny kontaktu. */
body.is-firm-application-page [data-step="3"] .firm-contact-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.is-firm-application-page .firm-application-coverage-editor {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 22px;
}

/* Wniosek korzysta z tej samej pełnej mapy co „Edytuj obszary”.
   Większa rama nie ucina południowej i północnej granicy Polski. */
body.is-firm-application-page .firm-application-coverage-editor .coverage-map {
  min-height: 540px;
}

body.is-firm-application-page .firm-application-coverage-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

body.is-firm-application-page .firm-application-coverage-heading h4,
body.is-firm-application-page .firm-application-coverage-heading p {
  margin: 0;
}

body.is-firm-application-page .firm-application-coverage-heading p,
body.is-firm-application-page .firm-application-coverage-status {
  color: #587480;
  line-height: 1.5;
}

body.is-firm-application-page .firm-application-coverage-status {
  margin: -4px 0 0;
}

body.is-firm-application-page .firm-application-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.is-firm-application-page .firm-application-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #b8e4e7;
  border-radius: 999px;
  color: #165360;
  background: #f0fcfc;
  font-size: 13px;
  font-weight: 700;
}

body.is-firm-application-page .firm-application-area-chip button {
  border: 0;
  padding: 0;
  color: #a73931;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  body.is-firm-application-page .firm-application-coverage-editor {
    padding: 16px;
  }

  body.is-firm-application-page .firm-application-coverage-editor .coverage-map {
    min-height: 330px;
  }

  body.is-firm-application-page .firm-application-coverage-heading {
    display: grid;
  }
}

body.is-firm-application-page [data-step="3"] .firm-form-card {
  gap: 10px;
  padding: 22px 24px;
  border-radius: 18px;
}

body.is-firm-application-page [data-step="3"] .firm-contact-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.is-firm-application-page [data-step="3"] .firm-form-card > h4 {
  grid-column: 1 / -1;
  margin-bottom: 3px;
}

body.is-firm-application-page [data-step="3"] .join-field label {
  margin-bottom: 6px;
  font-size: 13px;
}

body.is-firm-application-page [data-step="3"] .join-field input {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
}

body.is-firm-application-page .firm-verification-card {
  display: block;
  margin-bottom: 14px;
  border-color: #9edee0;
  background: linear-gradient(135deg, #f4ffff 0%, #fbffff 58%, #f5fbff 100%);
}

body.is-firm-application-page .firm-verification-card-heading > span,
body.is-firm-application-page .firm-document-kicker {
  display: block;
  margin-bottom: 5px;
  color: #007b7d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

body.is-firm-application-page .firm-verification-card-heading h4 {
  margin: 0;
  color: #123f49;
  font-size: 21px;
}

body.is-firm-application-page .firm-verification-card-heading p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #4d717c;
  line-height: 1.55;
}

body.is-firm-application-page .firm-verification-info {
  display: grid;
  gap: 3px;
  margin: 18px 0;
  padding: 13px 15px;
  border-left: 4px solid #13b5b8;
  border-radius: 12px;
  color: #315965;
  background: #e9f9f9;
  font-size: 14px;
  line-height: 1.45;
}

body.is-firm-application-page .firm-verification-info strong {
  color: #07595e;
}

body.is-firm-application-page .firm-verification-documents {
  display: grid;
  gap: 12px;
}

body.is-firm-application-page .firm-existing-verification-documents {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

body.is-firm-application-page .firm-existing-verification-document {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid #cbe8ea;
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
}

body.is-firm-application-page .firm-existing-verification-document strong,
body.is-firm-application-page .firm-existing-verification-document p {
  display: block;
}

body.is-firm-application-page .firm-existing-verification-document strong {
  color: #164651;
}

body.is-firm-application-page .firm-existing-verification-document p {
  margin: 4px 0 0;
  color: #5e7b83;
  font-size: 13px;
}

body.is-firm-application-page .firm-existing-verification-document a {
  flex: 0 0 auto;
  color: #075d65;
  font-size: 13px;
  font-weight: 800;
}

body.is-firm-application-admin-preview input:disabled,
body.is-firm-application-admin-preview select:disabled,
body.is-firm-application-admin-preview textarea:disabled {
  cursor: default;
  color: #173f49;
  -webkit-text-fill-color: #173f49;
  opacity: 1;
}

body.is-firm-application-page .firm-verification-document {
  padding: 16px;
  border: 1px solid #cbe8ea;
  border-radius: 15px;
  background: rgba(255, 255, 255, .9);
}

body.is-firm-application-page .firm-verification-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

body.is-firm-application-page .firm-verification-document-head strong {
  color: #164651;
  font-size: 16px;
}

body.is-firm-application-page .firm-verification-document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

body.is-firm-application-page .firm-verification-document-fields .join-field-full {
  grid-column: 1 / -1;
}

body.is-firm-application-page .firm-document-upload {
  display: grid;
  gap: 12px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed #b8dde0;
}

body.is-firm-application-page .firm-document-upload-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.is-firm-application-page .firm-document-upload-button,
body.is-firm-application-page .firm-add-verification-document {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #7bcfd1;
  border-radius: 11px;
  color: #075d65;
  background: #effbfb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.is-firm-application-page .firm-document-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.is-firm-application-page .firm-document-upload p {
  margin: 0;
  color: #5e7b83;
  font-size: 13px;
  line-height: 1.4;
}

body.is-firm-application-page .firm-document-upload p[data-tone="success"] { color: #087251; }
body.is-firm-application-page .firm-document-upload p[data-tone="error"] { color: #a73931; }
body.is-firm-application-page .firm-document-upload p[data-tone="info"] { color: #176f8a; }

body.is-firm-application-page .firm-document-file-preview {
  display: grid;
  gap: 12px;
  padding: 11px;
  border: 1px solid #c7e4e6;
  border-radius: 14px;
  background: #fff;
}

body.is-firm-application-page .firm-document-file-preview[hidden] { display: none; }

body.is-firm-application-page .firm-document-preview-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

body.is-firm-application-page .firm-document-preview-item {
  position: relative;
  min-width: 0;
}

body.is-firm-application-page .firm-document-preview-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 108px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #eaf3f5;
  cursor: zoom-in;
}

body.is-firm-application-page .firm-document-preview-button img {
  width: 100%;
  height: 108px;
  object-fit: cover;
}

body.is-firm-application-page .firm-document-preview-button span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(13, 35, 43, .84);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

body.is-firm-application-page .firm-document-preview-copy {
  min-width: 0;
}

body.is-firm-application-page .firm-document-preview-copy strong,
body.is-firm-application-page .firm-document-preview-copy span {
  display: block;
  overflow-wrap: anywhere;
}

body.is-firm-application-page .firm-document-preview-copy strong {
  color: #164651;
  font-size: 14px;
}

body.is-firm-application-page .firm-document-preview-copy span {
  margin-top: 5px;
  color: #5e7b83;
  font-size: 12px;
}

body.is-firm-application-page .firm-document-pdf-preview {
  display: flex;
  width: 100%;
  min-height: 108px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d9dc;
  border-radius: 12px;
  background: #eff8f8;
  color: #075d65;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
}

body.is-firm-application-page .firm-document-preview-remove {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 35, 43, .86);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

body.is-firm-application-page .firm-document-preview-remove:disabled {
  cursor: wait;
  opacity: .6;
}

body.is-firm-application-page .firm-document-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px;
  background: rgba(6, 24, 31, .92);
}

body.is-firm-application-page .firm-document-viewer[hidden] { display: none; }

body.is-firm-application-page .firm-document-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  color: #fff;
  font-weight: 850;
}

body.is-firm-application-page .firm-document-viewer-actions {
  display: flex;
  gap: 8px;
}

body.is-firm-application-page .firm-document-viewer-actions button {
  min-width: 44px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

body.is-firm-application-page .firm-document-viewer-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  cursor: default;
  touch-action: none;
}

body.is-firm-application-page .firm-document-viewer-stage.is-zoomed { cursor: grab; }
body.is-firm-application-page .firm-document-viewer-stage.is-dragging { cursor: grabbing; }

body.is-firm-application-page .firm-document-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transform-origin: center;
  will-change: transform;
}

body.firm-document-viewer-open { overflow: hidden; }

body.is-firm-application-page .firm-add-verification-document {
  margin-top: 13px;
  color: #fff;
  border-color: #0da6a7;
  background: linear-gradient(135deg, #10b5ae, #169dd1);
}

@media (max-width: 760px) {
  body.is-firm-application-page .firm-verification-document-fields {
    grid-template-columns: 1fr;
  }

  body.is-firm-application-page .firm-document-upload {
    align-items: flex-start;
  }

  body.is-firm-application-page .firm-document-upload-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  body.is-firm-application-page .firm-document-file-preview {
    gap: 10px;
  }

  body.is-firm-application-page .firm-document-preview-button,
  body.is-firm-application-page .firm-document-preview-button img,
  body.is-firm-application-page .firm-document-pdf-preview {
    min-height: 88px;
    height: 88px;
  }

  body.is-firm-application-page .firm-existing-verification-document {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  body.is-firm-application-page .firm-existing-verification-document > a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  body.is-firm-application-page [data-step="3"] .firm-contact-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-firm-application-page [data-step="3"] .firm-email-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.is-firm-application-page [data-step="3"] .firm-form-card {
    padding: 18px 14px;
  }

  body.is-firm-application-page [data-step="3"] .firm-contact-card {
    grid-template-columns: 1fr;
  }

  body.is-firm-application-page [data-step="3"] .firm-email-field {
    grid-column: auto;
  }
}

/* Krok 4: zwarte podsumowanie, czytelne zgody i jedna sekcja działań. */
body.is-firm-application-page [data-step="4"] .join-summary-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.is-firm-application-page [data-step="4"] .firm-form-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 22px 24px;
  border-radius: 18px;
}

body.is-firm-application-page [data-step="4"] .firm-form-card > h4,
body.is-firm-application-page [data-step="4"] .firm-consents-heading {
  grid-column: 1 / -1;
}

body.is-firm-application-page [data-step="4"] .firm-summary-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section {
  display: flex;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d5e8eb;
  border-radius: 15px;
  background: #f8fcfd;
  flex-direction: column;
  gap: 10px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section:nth-child(3) {
  grid-column: 1 / -1;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section:nth-child(3) .join-summary-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.is-firm-application-page [data-step="4"] .firm-summary-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section-heading > span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border: 1px solid #b9dde2;
  border-radius: 50%;
  color: #32636d;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  place-items: center;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section-heading h5 {
  margin: 0;
  color: #294b53;
  font-size: 14px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section .join-summary-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

body.is-firm-application-page [data-step="4"] .join-summary-row {
  grid-template-columns: minmax(105px, .62fr) minmax(0, 1.38fr);
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 9px 11px;
  border-color: #dcecef;
  border-radius: 11px;
  background: rgba(255,255,255,.82);
  font-size: 12px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-documents {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-document {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #cfe6e9;
  border-radius: 13px;
  background: #fff;
}

body.is-firm-application-page [data-step="4"] .firm-summary-document-preview {
  width: 132px;
  min-width: 132px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-document-details {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #58737a;
  font-size: 12px;
  line-height: 1.4;
}

body.is-firm-application-page [data-step="4"] .firm-summary-document-details > strong {
  margin-bottom: 2px;
  color: #153f49;
  font-size: 14px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-document-details span {
  overflow-wrap: anywhere;
}

body.is-firm-application-page [data-step="4"] .firm-summary-document-details b {
  color: #315c65;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section .join-secondary-button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 9px 12px;
  border-color: #d2e8ec;
  border-radius: 12px;
  color: #244b54;
  background: #f7fcfd;
  font-size: 12px;
}

body.is-firm-application-page [data-step="4"] .firm-summary-section .join-secondary-button:hover {
  border-color: #8fd4d8;
  background: #edfafa;
}

body.is-firm-application-page [data-step="4"] .firm-consents-card {
  display: grid;
}

body.is-firm-application-page [data-step="4"] .firm-consents-heading h4 {
  margin-bottom: 4px;
}

body.is-firm-application-page [data-step="4"] .firm-consents-heading p {
  margin: 0;
  color: #6a7c82;
  font-size: 13px;
  line-height: 1.45;
}

body.is-firm-application-page [data-step="4"] .firm-consents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.is-firm-application-page [data-step="4"] .firm-consents-grid > label {
  min-height: 62px;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #dcecef;
  border-radius: 12px;
  color: #344f56;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.45;
}

body.is-firm-application-page [data-step="4"] .firm-consents-grid > label:has(input:checked) {
  border-color: #6fcbd0;
  background: #edfafa;
  box-shadow: inset 0 0 0 1px rgba(111,203,208,.18);
}

body.is-firm-application-page [data-step="4"] .firm-consents-grid .firm-consent-primary,
body.is-firm-application-page [data-step="4"] .firm-consents-grid .firm-marketing-consent {
  grid-column: 1 / -1;
  min-height: 0;
}

body.is-firm-application-page [data-step="4"] .join-secure-note a {
  color: inherit;
  font-weight: 800;
}

body.is-firm-application-page [data-step="4"] .firm-consents-grid input {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

body.is-firm-application-page [data-step="4"] .join-secure-note {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #dcecef;
  border-radius: 12px;
  color: #60747a;
  background: #f7fcfd;
  font-size: 12px;
}

body.is-firm-application-page [data-step="4"] .firm-final-actions {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  margin-top: 14px;
  padding-top: 150px;
  border-top: 1px solid #e0ecee;
}

body.is-firm-application-page [data-step="4"] .firm-final-back {
  width: 100%;
  min-height: 70px;
  border-radius: 18px;
}

body.is-firm-application-page [data-step="4"] .firm-final-submit {
  width: min(100%, 520px);
  justify-self: end;
  margin-top: 0;
}

body.is-firm-application-page [data-step="4"] .firm-final-submit::after {
  bottom: 18px;
  width: 180px;
  height: 180px;
}

body.is-firm-application-page [data-step="4"] .firm-final-submit .join-submit-button {
  min-height: 70px;
  padding: 20px 28px;
  border-radius: 18px;
  font-size: 19px;
}

@media (max-width: 900px) {
  body.is-firm-application-page [data-step="4"] .firm-summary-sections,
  body.is-firm-application-page [data-step="4"] .firm-consents-grid {
    grid-template-columns: 1fr;
  }

  body.is-firm-application-page [data-step="4"] .firm-consents-grid .firm-consent-primary {
    grid-column: auto;
  }

  body.is-firm-application-page [data-step="4"] .firm-summary-section:nth-child(3) .join-summary-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  body.is-firm-application-page [data-step="4"] .firm-form-card {
    padding: 18px 14px;
  }

  body.is-firm-application-page [data-step="4"] .join-summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.is-firm-application-page [data-step="4"] .firm-summary-document {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  body.is-firm-application-page [data-step="4"] .firm-summary-document-preview {
    width: 92px;
    min-width: 92px;
    min-height: 82px;
    height: 82px;
  }

  body.is-firm-application-page [data-step="4"] .firm-summary-document-preview img {
    height: 82px;
  }

  body.is-firm-application-page [data-step="4"] .firm-final-actions {
    grid-template-columns: 1fr;
    padding-top: 128px;
  }

  body.is-firm-application-page [data-step="4"] .firm-final-submit::after {
    bottom: 18px;
    width: 155px;
    height: 155px;
  }

  body.is-firm-application-page [data-step="4"] .firm-final-submit {
    grid-row: 1;
    width: 100%;
  }

  body.is-firm-application-page [data-step="4"] .firm-final-back {
    grid-row: 2;
  }
}
