/* SANI two-step signup, styled as a compact onboarding card. */
#vehicle-form.wizard-card {
  display: grid;
  gap: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(28, 34, 39, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(28, 34, 39, .075);
}

/* Glass treatment for the signup form and its completion summary. */
#vehicle-form.wizard-card {
  background: rgba(255, 255, 255, .38);
  border-color: rgba(255, 255, 255, .58);
  box-shadow: 0 16px 38px rgba(30, 35, 34, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.summary-card.blob-card {
  background: rgba(255, 255, 255, .38) !important;
  border-color: rgba(255, 255, 255, .58) !important;
  box-shadow: 0 16px 38px rgba(30, 35, 34, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wizard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 26px 16px;
}

.wizard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #191b1e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
}

.wizard-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #191b1e;
  color: #ffea00;
  font-size: 16px;
  letter-spacing: 0;
}

.wizard-step-count {
  padding: 7px 10px;
  border: 1px solid #eceeed;
  border-radius: 999px;
  background: #f8f9f7;
  color: #767b80;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  white-space: nowrap;
}

.wizard-progress {
  height: 5px;
  margin: 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceeed;
}

.wizard-progress > span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: #ffea00;
  transition: width .35s ease;
}

#vehicle-form .wizard-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 26px 0;
  color: #858a8e;
  font-size: 12px;
}

#vehicle-form .wizard-steps .step {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

#vehicle-form .wizard-steps .step:hover {
  color: #1b1d20;
}

.wizard-step-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #dfe2e1;
  border-radius: 50%;
  background: #fff;
  color: #777d81;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.wizard-step-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#vehicle-form .wizard-steps .step.active {
  color: #191b1e;
  font-weight: 750;
}

#vehicle-form .wizard-steps .step.active .wizard-step-icon {
  border-color: #ffea00;
  background: #ffea00;
  color: #151515;
  box-shadow: 0 0 0 4px rgba(255, 234, 0, .18);
}

#vehicle-form .wizard-steps .step.done .wizard-step-icon {
  border-color: #191b1e;
  background: #191b1e;
  color: #ffea00;
}

#vehicle-form .wizard-steps .step:focus-visible {
  outline: 3px solid rgba(255, 234, 0, .55);
  outline-offset: 4px;
  border-radius: 999px;
}

#vehicle-form .wizard-steps .step-rule {
  width: auto;
  min-width: 30px;
  height: 1px;
  flex: 1;
  background: #e4e6e5;
}

#vehicle-form > .section-card {
  margin: 0;
  padding: 23px 26px 22px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}

/* The section also carries the site-wide animated .blob-card class. Override its
   opaque surface so both wizard stages reveal the same soft glass background. */
#vehicle-form > .section-card.blob-card {
  border-color: rgba(255, 255, 255, .52) !important;
  background: rgba(255, 255, 255, .24) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#vehicle-form > .section-card[hidden] {
  display: none !important;
}

#vehicle-form > .section-card:not([hidden]) {
  animation: sani-step-enter .28s ease both;
}

#vehicle-form .section-heading {
  margin-bottom: 22px;
}

#vehicle-form .inline-note {
  border-color: rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#vehicle-form .wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 17px 26px 20px;
  border-top: 1px solid #eff0ed;
  background: rgba(255, 255, 255, .24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wizard-actions-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.wizard-actions-right {
  margin-left: auto;
}

#vehicle-form .wizard-actions .primary-button {
  min-height: 46px;
  justify-content: center;
  gap: 12px;
  border-radius: 11px;
  box-shadow: 0 5px 15px rgba(255, 234, 0, .2);
}

#vehicle-form .wizard-actions .reset-button {
  white-space: nowrap;
}

@keyframes sani-step-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .wizard-card-header {
    padding: 16px 18px 14px;
  }

  .wizard-progress {
    margin-inline: 18px;
  }

  #vehicle-form .wizard-steps {
    margin: 16px 18px 0;
    gap: 9px;
  }

  #vehicle-form > .section-card {
    padding: 21px 18px 20px;
  }

  #vehicle-form .wizard-actions {
    padding: 15px 18px 17px;
  }
}

@media (max-width: 520px) {
  #vehicle-form .wizard-steps {
    gap: 6px;
    font-size: 11px;
  }

  .wizard-step-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  #vehicle-form .wizard-steps .step-rule {
    min-width: 16px;
  }

  #vehicle-form .wizard-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .wizard-actions-group {
    gap: 7px;
  }

  .wizard-actions-right {
    justify-content: flex-end;
  }

  #vehicle-form:has(#car-section:not([hidden])) .wizard-actions-group {
    width: 100%;
    justify-content: space-between;
  }

  #vehicle-form:has(#car-section:not([hidden])) .wizard-actions-right {
    padding-top: 2px;
  }

  #vehicle-form .wizard-actions .primary-button {
    min-height: 44px;
    padding: 11px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #vehicle-form > .section-card:not([hidden]) {
    animation: none;
  }

  .wizard-progress > span,
  .wizard-step-icon,
  #vehicle-form .wizard-steps .step {
    transition: none;
  }
}
