/* ============================================================
   AQUA VITOR — Configurador "Monte seu Aquário" · v1.0
   ============================================================ */

/* ---------- Stepper ---------- */
.config-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: -2.6rem 0 2.6rem;
  position: relative;
  z-index: 3;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid rgba(8, 44, 79, 0.1);
  color: var(--ink-500);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.cs-item .num {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 107, 125, 0.12);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.25s ease;
}
.cs-item.active {
  border-color: var(--aqua-400);
  color: var(--azure-600);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.16);
}
.cs-item.active .num {
  background: linear-gradient(135deg, var(--azure-600), var(--aqua-500));
  color: var(--white);
}
.cs-item.done { color: var(--azure-600); }
.cs-item.done .num {
  background: var(--aqua-400);
  color: var(--white);
}
.cs-item.pulo { opacity: 0.45; }

/* ---------- Card do passo ---------- */
.config-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(8, 44, 79, 0.06);
}

.config-step { display: none; animation: fadeIn 0.4s ease; }
.config-step.active { display: block; }

.step-title { font-size: 1.45rem; margin-bottom: 0.4rem; }
.step-sub { color: var(--ink-500); margin-bottom: 1.8rem; font-size: 0.98rem; }

/* ---------- Cards de escolha ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(8, 44, 79, 0.1);
  background: var(--white);
  cursor: pointer;
  transition: all 0.22s ease;
}
.choice-card:hover { border-color: var(--aqua-400); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.choice-card.selected {
  border-color: var(--azure-500);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.07), rgba(34, 211, 238, 0.06));
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.18);
}
.choice-card .check {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(91, 107, 125, 0.12);
  color: transparent;
  transition: all 0.2s ease;
}
.choice-card.selected .check {
  background: var(--azure-500);
  color: var(--white);
}
.choice-card .check svg { width: 14px; height: 14px; }
.choice-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.choice-card p { color: var(--ink-500); font-size: 0.9rem; }
.choice-card .cc-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-600);
  background: rgba(14, 165, 233, 0.12);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

/* ---------- Sliders de dimensões ---------- */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.dim-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.dim-field label span {
  color: var(--azure-600);
  font-family: var(--font-title);
  font-size: 1.15rem;
}

.dim-field input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua-400), rgba(34, 211, 238, 0.2));
  outline: none;
  cursor: pointer;
}
.dim-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--azure-500);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
  cursor: grab;
}
.dim-field input[type="number"] {
  width: 100%;
  margin-top: 0.7rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink-900);
  border: 1.5px solid rgba(8, 44, 79, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}
.dim-field input[type="number"]:focus {
  outline: none;
  border-color: var(--aqua-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* Volume ao vivo */
.volume-box {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
}
.volume-box strong {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--azure-600);
}
.volume-box small { color: var(--ink-500); display: block; }

/* ---------- Ilustrações de sump ---------- */
.sump-fig { width: 100%; height: auto; border-radius: 10px; margin-bottom: 0.2rem; }

/* ---------- Grupos de opção ---------- */
.opt-group { margin-bottom: 1.7rem; }
.opt-group > h4 {
  font-size: 0.98rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.opt-group > h4 .req { color: var(--orange-500); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-opt {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(8, 44, 79, 0.12);
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip-opt:hover { border-color: var(--aqua-400); }
.chip-opt.selected {
  background: linear-gradient(135deg, var(--azure-600), var(--aqua-500));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}
.chip-opt .rec {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

/* Medida do sump (range + valor) */
.sump-medida {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--foam);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.sump-medida input[type="range"] { flex: 1; min-width: 160px; }
.sump-medida strong {
  font-family: var(--font-title);
  color: var(--azure-600);
  font-size: 1.2rem;
  min-width: 84px;
  text-align: right;
}

/* ---------- Switch/checkbox ---------- */
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(8, 44, 79, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.7rem;
}
.switch-row:hover { border-color: var(--aqua-400); }
.switch-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--azure-600); }
.switch-row strong { font-size: 0.95rem; }
.switch-row small { color: var(--ink-500); display: block; }
.switch-row .badge-rec {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azure-600);
  background: rgba(14, 165, 233, 0.12);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- Navegação do stepper ---------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(8, 44, 79, 0.08);
}
.step-nav .btn { padding: 0.8rem 1.6rem; font-size: 0.95rem; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink-500);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn-back:hover { color: var(--azure-600); background: rgba(14, 165, 233, 0.07); }
.btn-back:disabled { opacity: 0; pointer-events: none; }

.step-error {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: #c2410c;
  font-size: 0.9rem;
  font-weight: 600;
}
.step-error.show { display: block; }

/* ---------- Resumo ---------- */
.resumo-glass {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  color: var(--white);
  margin-bottom: 1.6rem;
}

.espessura-destaque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px dashed rgba(103, 232, 249, 0.3);
}
.espessura-destaque .gl-mm {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(100deg, var(--aqua-300), var(--azure-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.espessura-destaque .gl-mm small { font-size: 1.3rem; }
.espessura-destaque p { color: rgba(219, 238, 252, 0.8); font-size: 0.94rem; max-width: 26rem; }

.resumo-lista { display: grid; gap: 0.55rem; }
.resumo-lista .rl-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.96rem;
}
.resumo-lista .rl-row:last-child { border-bottom: none; }
.resumo-lista .rl-row span:first-child { color: rgba(219, 238, 252, 0.65); }
.resumo-lista .rl-row span:last-child { font-weight: 700; text-align: right; }

.resumo-notas { margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.resumo-notas li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(219, 238, 252, 0.75);
}
.resumo-notas svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--aqua-300); }

.resumo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  .config-steps { gap: 0.35rem 0.6rem; }
  .cs-item { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
  .cs-item .lbl { display: none; }
  .cs-item.pulo { display: none; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
}
