/* ============================================================
   VIAJAR — Preventivo wizard
   ============================================================ */

.preventivo-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--teal) 0%, var(--dark-section) 100%);
  padding-block: var(--sp-12);
}

.wizard-container {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Header ── */
.wizard-header {
  text-align: center;
  margin-bottom: var(--sp-8);
  color: var(--white);
}

.wizard-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.wizard-header__sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
}

/* ── Progress bar ── */
.wizard-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: var(--sp-10);
  padding: 0 var(--sp-4);
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(var(--sp-4) + 18px);
  right: calc(var(--sp-4) + 18px);
  height: 2px;
  background: rgba(255,255,255,.15);
  z-index: 0;
}

.wizard-progress__fill {
  position: absolute;
  top: 18px;
  left: calc(var(--sp-4) + 18px);
  height: 2px;
  background: var(--gold);
  z-index: 1;
  transition: width 0.4s ease;
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 2;
  position: relative;
}

.wizard-step-indicator__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.4);
  transition: all var(--transition-base);
}

.wizard-step-indicator.is-done .wizard-step-indicator__circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.wizard-step-indicator.is-active .wizard-step-indicator__circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.wizard-step-indicator__label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

.wizard-step-indicator.is-active .wizard-step-indicator__label,
.wizard-step-indicator.is-done .wizard-step-indicator__label {
  color: rgba(255,255,255,.7);
}

/* ── Wizard card ── */
.wizard-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 640px) {
  .wizard-card { padding: var(--sp-6) var(--sp-5); }
}

/* ── Steps ── */
.wizard-step-content { display: none; }
.wizard-step-content.is-active { display: block; }

.wizard-step-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--sp-2);
}

.wizard-step-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-8);
}

/* ── Trip type cards ── */
.trip-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.trip-type-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.trip-type-card:hover {
  border-color: var(--teal-muted);
}

.trip-type-card.is-selected {
  border-color: var(--teal);
  background: rgba(8,63,73,.04);
  box-shadow: 0 0 0 3px rgba(8,63,73,.1);
}

.trip-type-card__check {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition-base), transform var(--transition-spring);
}

.trip-type-card.is-selected .trip-type-card__check {
  opacity: 1;
  transform: scale(1);
}

.trip-type-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.trip-type-card__name {
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}

.trip-type-card__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ── Step 2 ── */
.step-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .step-form-grid { grid-template-columns: 1fr 1fr; }
}

/* Notti slider */
.notti-value {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin-bottom: var(--sp-2);
}

.notti-label {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.notti-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.notti-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

/* ── Step 3 ── */
.budget-value {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin-bottom: var(--sp-5);
}

.persons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.persons-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

/* ── Wizard navigation ── */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  gap: var(--sp-4);
}

.wizard-step-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ── Sidebar summary ── */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (min-width: 900px) {
  .wizard-layout { grid-template-columns: 1fr 300px; }
}

.wizard-summary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  color: var(--white);
}

.wizard-summary__title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-5);
  font-weight: 700;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: var(--fs-sm);
}

.summary-item:last-child { border-bottom: none; }

.summary-item__label { color: rgba(255,255,255,.4); }
.summary-item__value { font-weight: 600; }

/* ── Confirmation screen ── */
.wizard-success {
  text-align: center;
  padding: var(--sp-8) 0;
}

.wizard-success__title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.wizard-success__text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 440px;
  margin-inline: auto;
  line-height: 1.7;
}
