/* =====================================================
   WIZARD DE RESERVA — Pousada do Cobrinha
   ===================================================== */

/* ── Container geral ── */
.wizard-container {
  max-width: 680px;
  margin: 40px auto 60px;
  padding: 0 16px;
}

/* ── Barra de progresso ── */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ddd;
  color: #888;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
}

.step-label {
  font-size: 0.72rem;
  color: #aaa;
  white-space: nowrap;
  transition: color 0.3s;
}

.wizard-step-indicator.active .step-number,
.wizard-step-indicator.completed .step-number {
  background-color: #2c5f2e;
  color: #fff;
}

.wizard-step-indicator.active .step-label,
.wizard-step-indicator.completed .step-label {
  color: #2c5f2e;
  font-weight: 600;
}

.wizard-step-divider {
  flex: 1;
  height: 2px;
  background-color: #ddd;
  margin: 0 4px;
  margin-bottom: 22px;
  transition: background-color 0.3s;
  max-width: 60px;
}

.wizard-step-divider.completed {
  background-color: #2c5f2e;
}

/* ── Painel de etapa ── */
.wizard-panel {
  display: none;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 28px 24px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
  animation: fadeInPanel 0.25s ease;
}

.wizard-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-panel-title {
  font-size: 1.35rem;
  color: #2c5f2e;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f0e8;
}

/* ── Grupos de campo ── */
.wizard-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard-group label {
  font-weight: 600;
  font-size: 0.91rem;
  color: #3e2723;
}

.wizard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  font-size: 0.78rem;
  color: #777;
  margin: 0;
  line-height: 1.4;
}

/* Inputs dentro de wizard-group */
.wizard-group input[type="text"],
.wizard-group input[type="email"],
.wizard-group input[type="number"],
.wizard-group input[type="date"],
.wizard-group input[type="time"],
.wizard-group select,
.wizard-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid #c8b89a;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1em;
  color: #222;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wizard-group input:focus,
.wizard-group select:focus,
.wizard-group textarea:focus {
  border-color: #4caf50;
  background: #f1faf0;
  outline: none;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.45);
}

/* ── Cards de seleção (tipo estadia e pescaria) ── */
.card-select-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.card-option {
  cursor: pointer;
  display: block;
}

.card-option input[type="radio"] {
  display: none;
}

.card-option-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
  background-color: #fafafa;
  height: 100%;
}

.card-option input[type="radio"]:checked + .card-option-body {
  border-color: #2c5f2e;
  background-color: #eef4ee;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  display: block;
}

.card-desc {
  font-size: 0.75rem;
  color: #777;
  margin-top: 4px;
  display: block;
}

/* ── Resumo na etapa 4 ── */
.wizard-summary {
  background-color: #f4f8f4;
  border-left: 4px solid #2c5f2e;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.wizard-summary h3 {
  font-size: 0.95rem;
  color: #2c5f2e;
  margin-bottom: 8px;
}

.wizard-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #444;
  line-height: 2;
}

/* ── Navegação entre etapas ── */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e8f0e8;
}

.btn-wizard-back {
  background: none;
  border: 2px solid #999;
  color: #666;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-wizard-back:hover {
  border-color: #555;
  color: #333;
}

.btn-wizard-next {
  background-color: #2c5f2e;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s;
}

.btn-wizard-next:hover {
  background-color: #1e4220;
}

/* ── Erro de validação ── */
.field-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .wizard-panel {
    padding: 20px 14px 16px;
  }

  .wizard-row {
    grid-template-columns: 1fr;
  }

  .card-select-group {
    grid-template-columns: 1fr;
  }

  .wizard-panel-title {
    font-size: 1.1rem;
  }

  .step-label {
    display: none;
  }

  .btn-wizard-next {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
