.wizard-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
}

.wizard-cancel .icon {
  width: 17px;
  height: 17px;
}

.wizard-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 96px;
}

/* Stepper */

.stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}

.stepper-step {
  position: relative;
  flex: 1;
  text-align: center;
}

.stepper-step::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.stepper-step:first-child::before {
  display: none;
}

.stepper-step.is-done::before {
  background: var(--color-primary);
}

.stepper-step__circle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--color-border);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.stepper-step.is-active .stepper-step__circle,
.stepper-step.is-done .stepper-step__circle {
  background: var(--color-primary);
}

.stepper-step p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
}

.stepper-step.is-active p,
.stepper-step.is-done p {
  color: var(--color-primary);
}

/* Sections */

.wizard-step[hidden] {
  display: none;
}

.wizard-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
}

.field {
  margin-bottom: 20px;
}

/* Vehicle selector */

.vehicle-picker {
  position: relative;
  margin-bottom: 10px;
}

.vehicle-picker__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.vehicle-picker__trigger:hover {
  border-color: var(--color-primary);
}

.vehicle-picker__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.vehicle-picker__icon .icon {
  width: 20px;
  height: 20px;
}

.vehicle-picker__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vehicle-picker__info strong {
  font-size: 15px;
  font-weight: 700;
}

.vehicle-picker__info span {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 2px;
}

.vehicle-picker__chevron {
  display: flex;
  color: var(--color-muted);
  flex-shrink: 0;
}

.vehicle-picker__chevron .icon {
  width: 18px;
  height: 18px;
}

.vehicle-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 61, 46, 0.12);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.vehicle-picker__menu[hidden] {
  display: none;
}

.vehicle-picker__row {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.vehicle-picker__row:last-child {
  border-bottom: none;
}

.vehicle-picker__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: none;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.vehicle-picker__option:hover {
  background: var(--color-secondary-soft);
}

.vehicle-picker__edit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-muted);
}

.vehicle-picker__edit:hover {
  background: var(--color-secondary-soft);
  color: var(--color-primary);
}

.vehicle-picker__edit .icon {
  width: 16px;
  height: 16px;
}

.vehicle-empty {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.link-add-vehicle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.link-add-vehicle:hover {
  border-color: var(--color-primary);
  background: var(--color-secondary-soft);
}

.link-add-vehicle .icon {
  width: 15px;
  height: 15px;
}

/* Location */

.location-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-location {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.btn-location .icon {
  width: 16px;
  height: 16px;
}

.btn-location--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-location--primary:hover {
  background: var(--color-primary-hover);
}

.btn-location--active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.address-search {
  position: relative;
  margin-bottom: 14px;
}

.address-search[hidden] {
  display: none;
}

.address-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
}

.address-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.12);
}

.address-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(11, 61, 46, 0.12);
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
}

.address-results[hidden] {
  display: none;
}

.address-results button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}

.address-results button:last-child {
  border-bottom: none;
}

.address-results button:hover {
  background: var(--color-secondary-soft);
}

.map-container {
  position: relative;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.map-canvas {
  position: absolute;
  inset: 0;
}

.map-fixed-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 5;
  color: var(--color-primary);
  pointer-events: none;
}

.map-fixed-pin .icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.map-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 0 0 20px;
}

.wizard-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--color-text);
  resize: vertical;
}

.wizard-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.12);
}

.wizard-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Step 2 - Nettoyage & créneau */

.service-included {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.service-included__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-included__icon .icon {
  width: 20px;
  height: 20px;
}

.service-included__info {
  flex: 1;
  min-width: 0;
}

.service-included__info h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 2px;
}

.service-included__info p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

.service-included__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.service-included__badge .icon {
  width: 16px;
  height: 16px;
}

.dirt-toggle {
  display: flex;
  gap: 8px;
}

.dirt-toggle button {
  flex: 1;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.dirt-toggle button.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-secondary-soft);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.option-row .icon {
  width: 19px;
  height: 19px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.option-row span {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
}

.option-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.slot-row {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.slot-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.slot-row__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--color-muted);
  border-radius: 8px;
  cursor: pointer;
}

.slot-row__delete:hover {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.slot-row__delete .icon {
  width: 16px;
  height: 16px;
}

.slot-row__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.slot-row__fields label {
  display: block;
  font-size: 11.5px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.slot-row__fields input {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
}

.slot-row__fields input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-add-slot {
  width: 100%;
  height: 44px;
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-add-slot:hover {
  background: var(--color-secondary-soft);
}

.price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--color-border);
  margin: 24px 0 20px;
}

.price-summary__label {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

.price-summary__hint {
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 2px 0 0;
}

.price-summary__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .slot-row__fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Step 3 - Confirmation & paiement */

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-header .wizard-section-title {
  margin: 0;
}

.link-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.link-edit .icon {
  width: 15px;
  height: 15px;
}

.summary-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 16px;
}

.summary-row + .summary-row {
  border-top: 1px solid var(--color-border);
}

.summary-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.summary-row__icon .icon {
  width: 20px;
  height: 20px;
}

.summary-row__info {
  flex: 1 1 180px;
  min-width: 0;
}

.summary-row__info h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 2px;
}

.summary-row__info p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 2px 0 0;
}

.summary-row__badge {
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-secondary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.payment-row:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-secondary-soft);
}

.payment-row input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.payment-row .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.payment-row__info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.payment-row__info strong {
  font-weight: 700;
}

.payment-row__brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
}

.payment-row__info small {
  font-size: 12px;
  color: var(--color-muted);
}

.card-element-wrapper {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.card-element-wrapper[hidden] {
  display: none;
}
