/* ============================================================
   GoParking — cadastro de vaga (wizard)
   ============================================================ */
.wizard-body { background: var(--cream); }
.wizard-hero {
  padding: 30px 0 54px;
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(217, 242, 107, .32), transparent 70%),
    var(--sand);
}
.wizard-hero-inner { max-width: 900px; margin-inline: auto; }
.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink-mute);
}
.wizard-back:hover { color: var(--pine); }
.wizard-back .icon { width: 14px; height: 14px; }
.wizard-hero h1 { margin-top: 14px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.wizard-hero p { margin-top: 8px; max-width: 580px; font-size: .94rem; color: var(--ink-soft); }
.wizard-hero-facts { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 18px; }
.wizard-hero-facts span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--ink-soft); }
.wizard-hero-facts .icon { width: 14px; height: 14px; color: var(--mint); }

.wizard-wrap {
  position: relative;
  max-width: 900px;
  margin: -26px auto 0;
  padding: 0 0 80px;
}
.wizard-progress,
.wizard-success { scroll-margin-top: calc(var(--header-h) + 18px); }

/* Validação dos campos */
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 83, 79, .1);
}
[data-generated-error] { display: block; font-size: .74rem; font-weight: 500; color: var(--red); }
.photo-grid + [data-generated-error] { margin-top: -14px; }
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 7px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-mute);
  transition: background .2s, color .2s;
}
.wizard-step-dot {
  width: 27px;
  height: 27px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink-mute);
  transition: background .2s, border-color .2s, color .2s;
}
.wizard-step-dot .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.wizard-step-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wizard-step-copy small { font-size: .58rem; text-transform: uppercase; letter-spacing: .07em; }
.wizard-step-copy strong { font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wizard-step.is-active { background: var(--pine); color: var(--white); }
.wizard-step.is-active .wizard-step-dot { background: var(--lime); border-color: var(--lime); color: var(--pine-deep); }
.wizard-step.is-complete { color: var(--pine); }
.wizard-step.is-complete .wizard-step-dot { background: var(--mint); border-color: var(--mint); color: var(--white); }

.wizard-card {
  margin-top: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px -42px rgba(7, 43, 39, .4);
}
.wizard-panel { display: flex; flex-direction: column; gap: 24px; animation: panel-in .25s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.wizard-panel-head h2 { font-size: 1.45rem; letter-spacing: -.03em; }
.wizard-panel-head p { margin-top: 6px; font-size: .86rem; color: var(--ink-soft); max-width: 620px; }
.wizard-panel-head .pill { margin-bottom: 10px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.choice-card:hover { border-color: #BCC7C0; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--sand);
  color: var(--pine-soft);
}
.choice-icon .icon { width: 18px; height: 18px; }
.choice-copy { display: flex; flex-direction: column; line-height: 1.35; padding-top: 1px; }
.choice-copy strong { font-size: .84rem; }
.choice-copy span { margin-top: 2px; font-size: .7rem; color: var(--ink-mute); }
.choice-card:has(input:checked) { border-color: var(--pine); background: rgba(231, 246, 240, .5); box-shadow: 0 0 0 1px var(--pine); }
.choice-card:has(input:checked) .choice-icon { background: var(--pine); color: var(--lime); }
.choice-card:has(input:focus-visible) { outline: 3px solid rgba(18, 168, 126, .3); outline-offset: 2px; }

.wizard-form-gap { display: flex; flex-direction: column; gap: 16px; }
.field-row--2-1 { grid-template-columns: 1.25fr .55fr .5fr; }
.char-count { align-self: flex-end; font-size: .66rem; color: var(--ink-mute); margin-top: -2px; }

.counter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: fit-content;
}
.counter button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--sand);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.counter button:hover { background: var(--line-soft); }
.counter button .icon { width: 15px; height: 15px; }
.counter strong { min-width: 54px; text-align: center; font-size: .9rem; }
.counter-note { font-size: .7rem; color: var(--ink-mute); margin-top: 6px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-option {
  position: relative;
  display: block;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--sand);
}
.photo-option input { position: absolute; opacity: 0; pointer-events: none; }
.photo-option img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-option:hover img { transform: scale(1.03); }
.photo-option::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(7, 43, 39, .1);
  pointer-events: none;
}
.photo-option .photo-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(7, 43, 39, .55);
  color: transparent;
  transition: background .18s, color .18s;
}
.photo-option .photo-check .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.photo-option:has(input:checked) { border-color: var(--pine); }
.photo-option:has(input:checked) .photo-check { background: var(--lime); color: var(--pine-deep); }
.photo-option:has(input:focus-visible) { outline: 3px solid rgba(18, 168, 126, .3); outline-offset: 2px; }
.photo-caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(7, 43, 39, .65);
  color: var(--white);
  font-size: .58rem;
  font-weight: 600;
}
.upload-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink-mute);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.upload-tile:hover { border-color: var(--mint); background: rgba(231, 246, 240, .35); }
.upload-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.upload-tile .icon { width: 24px; height: 24px; }
.upload-tile strong { font-size: .72rem; color: var(--ink-soft); }
.upload-tile span { font-size: .6rem; }
.photo-hint { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--ink-mute); }
.photo-hint .icon { width: 13px; height: 13px; color: var(--mint); }

.price-input { position: relative; }
.price-input span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.price-input input { padding-left: 38px; }
.price-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.price-suggestion {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .68rem;
  color: var(--ink-soft);
}
.price-suggestion:hover,
.price-suggestion.is-active { background: var(--pine); color: var(--white); border-color: var(--pine); }

.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.day-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.day-chip:has(input:checked) { background: var(--pine); border-color: var(--pine); color: var(--white); }
.day-chip:has(input:focus-visible) { outline: 3px solid rgba(18, 168, 126, .3); outline-offset: 2px; }

.option-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: .76rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.option-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-chip .icon { width: 15px; height: 15px; color: var(--ink-mute); }
.option-chip:has(input:checked) { background: var(--mint-tint); border-color: var(--mint); color: var(--pine); }
.option-chip:has(input:checked) .icon { color: var(--pine); }
.option-chip:has(input:focus-visible) { outline: 3px solid rgba(18, 168, 126, .3); outline-offset: 2px; }

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.wizard-actions .btn-ghost { padding-inline: 8px; }
.wizard-actions .btn-ghost .icon { width: 16px; height: 16px; }
.wizard-actions-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.wizard-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--red-tint);
  color: #A83A36;
  font-size: .78rem;
  line-height: 1.5;
}
.wizard-alert .icon { width: 17px; height: 17px; flex: none; margin-top: 1px; }

.review-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.review-block + .review-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.review-block h3 { display: flex; align-items: center; gap: 7px; font-size: .85rem; margin-bottom: 9px; }
.review-block h3 .icon { width: 15px; height: 15px; color: var(--mint); }
.review-block p { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }
.review-dl { display: flex; flex-direction: column; gap: 7px; }
.review-dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .76rem; }
.review-dl dt { color: var(--ink-mute); }
.review-dl dd { margin: 0; text-align: right; font-weight: 500; }
.review-preview {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.review-preview-media { height: 150px; overflow: hidden; position: relative; }
.review-preview-media img { width: 100%; height: 100%; object-fit: cover; }
.review-preview-media .pill { position: absolute; left: 10px; top: 10px; background: var(--lime); color: var(--pine-deep); }
.review-preview-body { padding: 14px; }
.review-preview-body h4 { font-family: var(--font-display); font-size: .95rem; letter-spacing: -.02em; line-height: 1.35; }
.review-preview-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .68rem; color: var(--ink-mute); }
.review-preview-meta .icon { width: 12px; height: 12px; color: var(--amber); }
.review-preview-price { display: flex; align-items: baseline; gap: 3px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.review-preview-price strong { font-family: var(--font-display); font-size: 1.1rem; }
.review-preview-price span { font-size: .64rem; color: var(--ink-mute); }

.wizard-success {
  max-width: 620px;
  margin: 20px auto 0;
  padding: 48px 36px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.wizard-success-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--mint);
}
.wizard-success-icon .icon { width: 38px; height: 38px; stroke-width: 2.3; }
.wizard-success h2 { font-size: 1.9rem; }
.wizard-success p { margin: 10px auto 24px; max-width: 420px; font-size: .9rem; color: var(--ink-soft); }
.wizard-success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.wizard-success-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 12px;
  background: var(--cream);
  text-align: left;
}
.wizard-success-steps li { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--ink-soft); }
.wizard-success-steps .icon { width: 16px; height: 16px; color: var(--mint); margin-top: 2px; flex: none; }

/* ---------- Responsivo do wizard ---------- */
@media (max-width: 900px) {
  .wizard-progress { grid-template-columns: repeat(4, 1fr); }
  .wizard-step { justify-content: center; padding: 8px 5px; }
  .wizard-step-copy { display: none; }
  .wizard-card { padding: 24px; }
  .review-layout { grid-template-columns: 1fr; }
  .review-preview { position: static; order: -1; display: grid; grid-template-columns: 140px 1fr; }
  .review-preview-media { height: 100%; min-height: 130px; }
}

@media (max-width: 640px) {
  .wizard-hero { padding: 22px 0 44px; }
  .wizard-wrap { margin-top: -20px; padding-bottom: 56px; }
  .wizard-card { padding: 20px 16px; border-radius: 16px; }
  .wizard-panel { gap: 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .upload-tile { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .field-row--2-1 { grid-template-columns: 1fr 1fr; }
  .field-row--2-1 .field:first-child { grid-column: 1 / -1; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions-right { width: 100%; }
  .wizard-actions-right .btn { flex: 1; }
  .review-preview { grid-template-columns: 110px 1fr; }
  .wizard-success { padding: 36px 20px; }
  .wizard-success-actions .btn { width: 100%; }
}
