/* ---------- start-your-application block ---------- */
.asub-head { margin-top: 26px; }
.asub-head .asub-title { margin: 0 0 6px; }
.asub-head .asub-hint { margin: 0 0 16px; }

.afield .opt {
  font-weight: 500;
  color: var(--n-400);
}

/* date of birth: three selects */
.dob { display: grid; grid-template-columns: 1.2fr 0.9fr 1fr; gap: 8px; }
.dob select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--n-200);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.dob select:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(21, 73, 154, 0.14); }

/* sex segmented control */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  height: 46px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--n-200);
}
.segmented__item {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--n-600);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.segmented__item input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__item:hover { background: var(--n-50); }
.segmented__item:has(input:checked) { background: var(--blue-700); color: #fff; }
.afield.is-invalid .segmented { border-color: #d6665a; }

/* residence select with flag */
.flag-select { position: relative; }
.flag-select select { padding-left: 46px !important; }
.flag-select img {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(7, 26, 61, 0.12);
  pointer-events: none;
}

/* birth country checkbox sits tight under the residence field */
.checkline--tight {
  margin-top: -4px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  font-size: 13.5px;
  color: var(--n-600);
}
.checkline--tight input { width: 16px; height: 16px; }

/* ---------- vehicle class cards (official license-class marks) ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 22px 10px 20px;
  border-radius: 16px;
  background: var(--n-50);
  border: 1px solid var(--n-150);
}
.class-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 4px 12px 8px;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.16s ease;
}
.class-card:hover { background: rgba(255, 255, 255, 0.75); }
.class-card input { position: absolute; opacity: 0; pointer-events: none; }

/* icon: equal box, evenly spaced across the five columns */
.class-card__art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 52px;
}
.class-card__art svg {
  width: 100%;
  height: 52px;
  color: #c9ccd2;
  transition: color 0.16s ease;
}
.class-card input:checked ~ .class-card__art svg { color: var(--blue-600); }

/* letter sits on its own line, centred under the icon */
.class-card__tag {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--blue-800);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* checkbox + description share one line, checkbox flush left */
.class-card__foot {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  margin-top: 2px;
}
.class-card__tick {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1.5px solid var(--n-300);
  background: #fff;
  flex: none;
}
.class-card input:checked ~ .class-card__foot .class-card__tick {
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.class-card input:checked ~ .class-card__foot .class-card__tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.class-card__label {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--n-700);
  text-align: left;
}
.class-grid.is-invalid { border-color: #d6665a; background: #fdf1ef; }

@media (max-width: 900px) {
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 640px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 8px; }
  .class-card__art, .class-card__art svg { height: 46px; }
}

/* ---------- step 2: document rows ---------- */
.docs-row {
  padding: 20px 0;
  border-top: 1px solid var(--n-150);
}
.docs-row:first-of-type { border-top: 0; padding-top: 4px; }
.docs-row__head { margin-bottom: 14px; }
.docs-row__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--n-500);
}
.docs-row__title .req { color: #c0392b; }
.docs-row__hint { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.uploads { display: grid; gap: 12px; }
.uploads--license { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uploads--portrait { grid-template-columns: minmax(0, 300px); }

.upload {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 148px;
  padding: 18px 14px;
  border-radius: 16px;
  border: 1.5px dashed var(--n-300);
  background: var(--n-50);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.upload:hover { border-color: var(--blue-400); background: var(--blue-50); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon { width: 22px; height: 22px; color: var(--blue-600); }
.upload__title { font-size: 13.8px; font-weight: 600; color: var(--ink); }
.upload__meta { font-size: 11.8px; color: var(--n-400); }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload.is-filled { border-style: solid; border-color: var(--blue-300); background: #fff; }
.upload.is-filled .upload__icon,
.upload.is-filled .upload__title,
.upload.is-filled .upload__meta,
.upload.is-filled .upload__badge { display: none; }

.upload__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--blue-800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.upload__clear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(7, 26, 61, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: none;
  cursor: pointer;
}
.upload.is-filled .upload__clear { display: block; }

/* ---------- signature ---------- */
.sig {
  border: 1px solid var(--n-200);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.sig.is-invalid { border-color: #d6665a; }
.sig__tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--n-50);
  border-bottom: 1px solid var(--n-150);
}
.sig__tab {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-600);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.sig__tab:hover { background: #fff; color: var(--ink); }
.sig__tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(7, 26, 61, 0.08); }

.sig__panel { display: none; padding: 14px; }
.sig__panel.is-active { display: block; }
.sig__canvas-wrap {
  position: relative;
  border-radius: 12px;
  border: 1px dashed var(--n-300);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 34px, rgba(21, 73, 154, 0.08) 34px, rgba(21, 73, 154, 0.08) 35px),
    #fbfcfe;
  overflow: hidden;
}
#sig-canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sig__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  color: var(--n-400);
  pointer-events: none;
}
.sig__placeholder.is-hidden { display: none; }

.sig__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.sig__note { font-size: 12.5px; color: var(--n-400); }

.sig__drop {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 132px;
  padding: 18px;
  border-radius: 12px;
  border: 1.5px dashed var(--n-300);
  background: var(--n-50);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.sig__drop:hover { border-color: var(--blue-400); background: var(--blue-50); }
.sig__drop input { position: absolute; opacity: 0; pointer-events: none; }
.sig__drop svg { width: 22px; height: 22px; color: var(--blue-600); }
.sig__drop span { font-size: 13.8px; font-weight: 600; color: var(--ink); }
.sig__drop small { font-size: 11.8px; color: var(--n-400); }

.sig__result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--n-150);
  background: var(--blue-50);
}
.sig__result-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  white-space: nowrap;
}
.sig__result img { height: 46px; width: auto; max-width: 260px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 6px; }
.sig__change {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sig__error { margin: 10px 14px 14px; font-size: 12.5px; font-weight: 500; color: #b52a1c; }

.review__sig {
  height: 34px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--n-150);
  border-radius: 6px;
  padding: 2px 6px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .uploads--license { grid-template-columns: 1fr; }
  .uploads--portrait { grid-template-columns: 1fr; }
  #sig-canvas { height: 150px; }
}

/* ============================================================
   Checkout options (delivery method + expedited e-processing)
   and the one-step-larger type scale for the whole flow.
   ============================================================ */

.checkout-opts { display: grid; gap: 18px; margin-top: 22px; }
.checkout-opts .asub-title { margin: 0 0 10px; }

.ship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ship-card {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--n-200);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.ship-card:hover { border-color: var(--blue-300); }
.ship-card input { position: absolute; opacity: 0; pointer-events: none; }
.ship-card.is-selected {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 1px var(--blue-600);
}
.ship-card input:disabled ~ * { opacity: 0.55; }
.ship-card__title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ship-card__meta { font-size: 13.5px; color: var(--muted); }
.ship-card__price { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.ship-card__badge {
  position: absolute;
  top: -9px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #20170a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.addon {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--n-200);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.addon:hover { border-color: var(--blue-300); }
.addon.is-on { border-color: var(--blue-600); background: var(--blue-50); }
.addon input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue-600); }
.addon__text { display: grid; gap: 2px; }
.addon__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.addon__meta { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.addon__price { font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- one step larger type across the flow ---------- */
.apply-hero__lead { font-size: 17px; }
.apply-hero__title { font-size: clamp(32px, 3.6vw, 48px); }
.stepper li { font-size: 15px; }
.stepper li span { font-size: 12.5px; }

.astep__index { font-size: 12.5px; }
.astep__title { font-size: clamp(21px, 2vw, 25px); }
.astep__sub { font-size: 15.5px; }

.afield label { font-size: 14.5px; }
.afield input[type="text"],
.afield input[type="email"],
.afield input[type="tel"],
.afield input[type="date"],
.afield select,
.dob select { font-size: 16px; }
.afield .hint { font-size: 13.5px; }
.afield .err { font-size: 13.5px; }
.afield .opt { font-size: 13.5px; }
.asub-title { font-size: 14.5px; }
.asub-hint { font-size: 14.5px; }

.option__title { font-size: 16.5px; }
.option__meta { font-size: 14px; }
.option__price { font-size: 17px; }
.term { font-size: 15.5px; }
.checkline { font-size: 14.8px; }
.checkline--tight { font-size: 14.5px; }
.segmented__item { font-size: 15.5px; }

.class-card__label { font-size: 14.5px; }
.docs-row__title { font-size: 15px; }
.docs-row__hint { font-size: 14.5px; }
.upload__title { font-size: 14.8px; }
.upload__meta { font-size: 12.8px; }
.sig__tab { font-size: 15px; }
.sig__note { font-size: 13.5px; }
.sig__error { font-size: 13.5px; }
.sig__placeholder { font-size: 14.5px; }
.sig__drop span { font-size: 14.8px; }
.sig__drop small { font-size: 12.8px; }

.summary-card__title { font-size: 13.5px; }
.summary-row { font-size: 15px; }
.summary-total__value { font-size: 33px; }
.summary-note { font-size: 13px; }
.summary-list li { font-size: 14px; }

.review__row { font-size: 15.5px; }
.paybox__row { font-size: 15.5px; }
.paybox__row strong { font-size: 27px; }
.paybox__note { font-size: 13.5px; }

.apply-actions__note { font-size: 13.5px; }
.save-note { font-size: 13.5px; }
.apply-panel .btn { font-size: 16.5px; }
.summary-card .link-arrow { font-size: 14.5px; }
.apply-success__text { font-size: 16px; }
.apply-success__ref { font-size: 16px; }

/* ---------- numeric field with a unit switch (height) ---------- */
.unit-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.unit-input input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--n-200);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.unit-input input:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(21, 73, 154, 0.14); }
.afield.is-invalid .unit-input input { border-color: #d6665a; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1); }
.unit-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--n-200);
  background: #fff;
  height: 46px;
}
.unit-toggle label {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 46px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--n-600);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.unit-toggle label:hover { background: var(--n-50); }
.unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.unit-toggle label:has(input:checked) { background: var(--blue-700); color: #fff; }

/* real-world document proportions: ID-1 card is 85.5 x 54 mm,
   a standard passport photo is 35 x 45 mm */
.uploads--license .upload {
  aspect-ratio: 85.5 / 54;
  min-height: 0;
  padding: 14px 10px;
}
.uploads--portrait { grid-template-columns: minmax(0, 210px); }
.uploads--portrait .upload {
  aspect-ratio: 35 / 45;
  min-height: 0;
  padding: 12px 8px;
}
@media (max-width: 760px) {
  .uploads--license .upload { aspect-ratio: 85.5 / 54; }
  .uploads--portrait { grid-template-columns: minmax(0, 170px); }
}
