/* ============================================================
   CFG Configure Your Team wizard styles
   Loaded on /configure/ only.
   ============================================================ */

/* ---------- shell ---------- */
.cfg-wizard-shell {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  position: relative;
}
@media (min-width: 768px) {
  .cfg-wizard-shell { padding: 3.5rem 1.5rem 5rem; }
}

#cfg-wizard-root {
  background: #fff;
  border: 1px solid rgba(11, 26, 59, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow:
    0 1px 2px rgba(11, 26, 59, 0.04),
    0 12px 32px -16px rgba(11, 26, 59, 0.12);
}
@media (min-width: 768px) {
  #cfg-wizard-root { padding: 2.25rem 2.5rem 2.5rem; }
}

/* ---------- progress dots ---------- */
.wiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.wiz-dot {
  width: 1.875rem; height: 1.875rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11, 26, 59, 0.08);
  color: rgba(11, 26, 59, 0.45);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.wiz-dot.is-future { background: rgba(11, 26, 59, 0.06); color: rgba(11, 26, 59, 0.4); }
.wiz-dot.is-past {
  background: #6FE4D0; color: #0B1A3B;
}
.wiz-dot.is-current {
  background: #14C4D0; color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(20, 196, 208, 0.18);
}
.wiz-dot__bar {
  flex: 1 1 auto; max-width: 2.5rem;
  height: 2px; background: rgba(11, 26, 59, 0.08);
  border-radius: 999px;
  transition: background 0.3s ease;
}
.wiz-dot__bar.is-past { background: #6FE4D0; }

/* ---------- stage / step transitions ---------- */
.wiz-stage { position: relative; min-height: 22rem; }
.wiz-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.wiz-step.is-active { opacity: 1; transform: translateY(0); }
.wiz-step.is-entering { opacity: 0; transform: translateX(12px); }

@media (prefers-reduced-motion: reduce) {
  .wiz-step,
  .wiz-step.is-entering,
  .wiz-step.is-active,
  .wiz-dot,
  .wiz-svc-card,
  .wiz-pref,
  .wiz-out-card,
  .wiz-cta,
  .wiz-btn {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

.wiz-step__head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.wiz-step__eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0AACD4;
  margin-bottom: 0.5rem;
}
.wiz-step__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B1A3B;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  .wiz-step__title { font-size: 1.875rem; }
}
.wiz-step__sub {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: rgba(74, 74, 74, 0.85);
  line-height: 1.55;
  max-width: 32rem;
  margin: 0 auto;
}

/* ---------- service grid (Step 1) ---------- */
.wiz-svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
@media (min-width: 640px) {
  .wiz-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .wiz-svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wiz-svc-card {
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(11, 26, 59, 0.08);
  border-radius: 0.9rem;
  padding: 1.25rem 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  font-family: 'Poppins', sans-serif;
  appearance: none;
  -webkit-appearance: none;
}
.wiz-svc-card:hover {
  border-color: rgba(20, 196, 208, 0.55);
  box-shadow: 0 10px 22px -10px rgba(11, 26, 59, 0.18);
  transform: translateY(-2px);
}
.wiz-svc-card__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(20, 196, 208, 0.12), rgba(111, 228, 208, 0.16));
  color: #0D5692;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.wiz-svc-card__icon svg { width: 1.4rem; height: 1.4rem; }
.wiz-svc-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0B1A3B;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.wiz-svc-card__outcome {
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(74, 74, 74, 0.78);
  margin: 0;
}
.wiz-svc-card__check {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  width: 1.4rem; height: 1.4rem;
  border-radius: 999px;
  background: #14C4D0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wiz-svc-card__check svg { width: 0.85rem; height: 0.85rem; }

.wiz-svc-card.is-selected {
  border-color: #14C4D0;
  background: linear-gradient(180deg, rgba(20, 196, 208, 0.05), rgba(111, 228, 208, 0.03));
  box-shadow: 0 0 0 3px rgba(20, 196, 208, 0.18), 0 12px 28px -10px rgba(20, 196, 208, 0.35);
  animation: wizPulse 2.4s ease-in-out infinite;
}
.wiz-svc-card.is-selected .wiz-svc-card__icon {
  background: linear-gradient(135deg, #14C4D0, #6FE4D0);
  color: #0B1A3B;
}
.wiz-svc-card.is-selected .wiz-svc-card__check { opacity: 1; transform: scale(1); }

@keyframes wizPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(20, 196, 208, 0.18), 0 12px 28px -10px rgba(20, 196, 208, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(20, 196, 208, 0.10), 0 16px 32px -10px rgba(20, 196, 208, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-svc-card.is-selected { animation: none; }
}

/* ---------- shared cards / fields ---------- */
.wiz-card {
  background: #F8FAFC;
  border: 1px solid rgba(11, 26, 59, 0.06);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  max-width: 36rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .wiz-card { padding: 1.75rem; }
}
.wiz-card--vol { background: #fff; border-color: rgba(20, 196, 208, 0.18); }

.wiz-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .wiz-grid-2 { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}

.wiz-field { display: block; }
.wiz-field + .wiz-field { margin-top: 1rem; }

.wiz-field__label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: #0B1A3B;
  margin-bottom: 0.4rem;
}

.wiz-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  color: #0B1A3B;
  background: #fff;
  border: 1px solid rgba(11, 26, 59, 0.12);
  border-radius: 0.625rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
select.wiz-input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B1A3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.wiz-input:focus {
  outline: none;
  border-color: #0AACD4;
  box-shadow: 0 0 0 3px rgba(10, 172, 212, 0.18);
}

/* ---------- volume step ---------- */
.wiz-vol__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.wiz-vol__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #0B1A3B;
}
.wiz-vol__value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #0D5692, #14C4D0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.wiz-vol__row {
  display: flex; align-items: center; gap: 0.85rem;
}
.wiz-vol__row input[type="range"] {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #14C4D0 0%, #6FE4D0 50%, #E2E8F0 50%);
  outline: none;
}
.wiz-vol__row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14C4D0, #0AACD4);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 196, 208, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wiz-vol__row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(20, 196, 208, 0.55);
}
.wiz-vol__row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14C4D0, #0AACD4);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 196, 208, 0.4);
}
.wiz-vol__row input[type="number"] {
  width: 5.5rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #0B1A3B;
  background: #F8FAFC;
  border: 1px solid rgba(11, 26, 59, 0.12);
  border-radius: 0.5rem;
  -moz-appearance: textfield;
}
.wiz-vol__row input[type="number"]::-webkit-inner-spin-button,
.wiz-vol__row input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
.wiz-vol__hint {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(74, 74, 74, 0.6);
  margin-top: 0.85rem;
  text-align: center;
}
.wiz-empty {
  font-family: 'Lora', serif;
  text-align: center;
  color: rgba(74, 74, 74, 0.7);
  padding: 2rem 0;
}

/* ---------- contact pref toggle ---------- */
.wiz-pref-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wiz-pref {
  flex: 1 1 6rem;
  min-width: 6rem;
  padding: 0.65rem 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0B1A3B;
  background: #fff;
  border: 1px solid rgba(11, 26, 59, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.wiz-pref:hover { border-color: rgba(20, 196, 208, 0.4); }
.wiz-pref.is-selected {
  background: #0B1A3B;
  border-color: #0B1A3B;
  color: #fff;
}

.wiz-privacy {
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: rgba(74, 74, 74, 0.6);
  text-align: center;
}

/* ---------- nav buttons ---------- */
.wiz-nav {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  gap: 0.75rem;
}
.wiz-nav__spacer { flex: 1; }
.wiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  border: none;
  letter-spacing: -0.005em;
}
.wiz-btn--ghost {
  background: transparent;
  color: rgba(11, 26, 59, 0.7);
  border: 1px solid rgba(11, 26, 59, 0.14);
}
.wiz-btn--ghost:hover {
  background: rgba(11, 26, 59, 0.05);
  color: #0B1A3B;
}
.wiz-btn--primary {
  background: #0D5692;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(13, 86, 146, 0.45);
  padding: 0.75rem 1.75rem;
}
.wiz-btn--primary:hover:not(:disabled) {
  background: #0AACD4;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(10, 172, 212, 0.55);
}
.wiz-btn--primary:disabled {
  background: rgba(11, 26, 59, 0.18);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- end-state / summary ---------- */
.wiz-loading {
  text-align: center;
  padding: 2.5rem 1rem;
}
.wiz-spin {
  width: 2.5rem; height: 2.5rem;
  border: 3px solid rgba(20, 196, 208, 0.18);
  border-top-color: #14C4D0;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  animation: wizSpin 0.9s linear infinite;
}
@keyframes wizSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .wiz-spin { animation: none; border-top-color: rgba(20, 196, 208, 0.18); }
}

.wiz-summary { display: block; }
.wiz-summary[hidden] { display: none; }
.wiz-summary__head { text-align: center; margin-bottom: 1.75rem; }

.wiz-out-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .wiz-out-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
.wiz-out-card {
  background: #fff;
  border: 1px solid rgba(11, 26, 59, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wiz-out-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, #0D5692, #14C4D0, #6FE4D0);
}
.wiz-out-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(11, 26, 59, 0.15);
}
.wiz-out-card__label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(11, 26, 59, 0.55);
  margin-bottom: 0.65rem;
}
.wiz-out-card__big {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #0B1A3B;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.wiz-out-card__sub {
  font-family: 'Lora', serif;
  font-size: 0.8125rem;
  color: rgba(74, 74, 74, 0.7);
  line-height: 1.4;
  margin: 0;
}

.wiz-recap {
  background: #F8FAFC;
  border: 1px solid rgba(11, 26, 59, 0.06);
  border-radius: 0.875rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.wiz-recap__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(11, 26, 59, 0.55);
  margin-bottom: 0.65rem;
}
.wiz-recap__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
@media (min-width: 640px) {
  .wiz-recap__list { grid-template-columns: 1fr 1fr; gap: 0.5rem 1.25rem; }
}
.wiz-recap__item {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  border-bottom: 1px dashed rgba(11, 26, 59, 0.08);
  padding-bottom: 0.4rem;
}
.wiz-recap__k { color: rgba(11, 26, 59, 0.55); }
.wiz-recap__v { color: #0B1A3B; font-weight: 500; text-align: right; }

.wiz-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 640px) {
  .wiz-cta-row { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
}
.wiz-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.wiz-cta--primary {
  background: linear-gradient(135deg, #0D5692, #0AACD4);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(13, 86, 146, 0.45);
}
.wiz-cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(13, 86, 146, 0.55);
}
.wiz-cta--secondary {
  background: #0B1A3B;
  color: #fff;
}
.wiz-cta--secondary:hover {
  background: #14C4D0;
  color: #0B1A3B;
  transform: translateY(-1px);
}
.wiz-cta--secondary.is-done {
  background: rgba(20, 196, 208, 0.18);
  color: #0B8A8A;
  cursor: default;
  transform: none;
}

.wiz-status {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 0;
  min-height: 1.2rem;
  color: rgba(11, 26, 59, 0.7);
}
.wiz-status.is-ok { color: #0B8A8A; }
.wiz-status.is-err { color: #B91C1C; }

.wiz-reset-wrap { text-align: center; margin: 0.5rem 0 0; }
.wiz-reset {
  background: transparent;
  border: none;
  color: rgba(11, 26, 59, 0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.wiz-reset:hover { color: #0D5692; }

/* ---------- mobile tightening ---------- */
@media (max-width: 639px) {
  .wiz-progress { gap: 0.35rem; }
  .wiz-dot { width: 1.625rem; height: 1.625rem; font-size: 0.75rem; }
  .wiz-dot__bar { max-width: 1.5rem; }
  .wiz-step__title { font-size: 1.35rem; }
  .wiz-step__sub { font-size: 0.95rem; }
  .wiz-svc-card__title { font-size: 0.95rem; }
  .wiz-svc-card__outcome { font-size: 0.825rem; }
  .wiz-out-card__big { font-size: 1.2rem; }
  .wiz-btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; }
  .wiz-cta { padding: 0.85rem 1rem; font-size: 0.875rem; }
}
