/* ========== WIZARD LAYOUT ========== */
.wizard-page {
  min-height: 100vh;
  background: var(--color-gray-100);
}

.wizard-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 16px 0;
}

.wizard-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-500);
  transition: color var(--duration-fast) var(--ease-in-out);
}

.wizard-nav__back:hover {
  color: var(--color-primary);
}

/* ========== NAV LOGO ========== */
.wizard-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wizard-nav__logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: var(--color-primary-glow);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.wizard-nav__logo:hover .wizard-nav__logo-mark::after {
  opacity: 1;
}

.wizard-nav__logo-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.wizard-nav__logo-accent {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

/* ========== PROGRESS BAR ========== */
.wizard-progress {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 16px 0;
}

.wizard-progress__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wizard-progress__step-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-black);
}

.wizard-progress__count {
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
  font-weight: var(--fw-medium);
}

.wizard-progress__bar {
  width: 100%;
  height: 4px;
  background: var(--color-gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--duration-base) var(--ease-out);
  min-width: 2%;
}

/* ========== WIZARD CONTENT ========== */
.wizard-content {
  padding-top: 140px;
  padding-bottom: 120px;
  min-height: 100vh;
}

.wizard-step {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.4s var(--ease-out);
}

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

.wizard-step__header {
  margin-bottom: var(--gap-2xl);
}

.wizard-step__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-black);
  margin-bottom: var(--gap-xs);
}

.wizard-step__subtitle {
  font-size: var(--fs-base);
  color: var(--color-gray-500);
}

.wizard-step__notice {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: 14px 18px;
  background: #FFF8E1;
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-xl);
  font-size: var(--fs-sm);
  color: #7A6100;
  border: 1px solid #FFE082;
}

.wizard-step__notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.wizard-step__fields {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* ========== WIZARD INTRO ========== */
.wizard-intro {
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
}

/* -- Logo Showcase -- */
.wizard-intro__logo-showcase {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-intro__logo-badge {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  background: var(--color-white);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(230, 57, 70, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.wizard-intro__logo-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wizard-intro__logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  opacity: 0;
  animation: introRingPulse 3s ease-out infinite;
}

.wizard-intro__logo-ring--1 {
  inset: 18px;
  opacity: 0.18;
  animation-delay: 0s;
}

.wizard-intro__logo-ring--2 {
  inset: 6px;
  opacity: 0.10;
  animation-delay: 1s;
}

.wizard-intro__logo-ring--3 {
  inset: -6px;
  opacity: 0.06;
  animation-delay: 2s;
}

@keyframes introRingPulse {
  0% { transform: scale(0.85); opacity: 0.2; }
  50% { opacity: 0.08; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* -- Brand Name -- */
.wizard-intro__brand {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--gap-lg);
}

.wizard-intro__brand-accent {
  color: var(--color-primary);
}

/* -- Title & Description -- */
.wizard-intro__title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-black);
  margin-bottom: var(--gap-sm);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
}

.wizard-intro__desc {
  font-size: var(--fs-base);
  color: var(--color-gray-500);
  margin-bottom: var(--gap-xl);
  line-height: var(--lh-normal);
  max-width: none;
}

/* -- Chips -- */
.wizard-intro__chips {
  display: flex;
  justify-content: center;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-xl);
  flex-wrap: wrap;
}

.wizard-intro__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-gray-700);
  box-shadow: var(--shadow-sm);
}

.wizard-intro__chip svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* -- Intro Notice -- */
.wizard-intro__notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: #7A6100;
  text-align: left;
}

.wizard-intro__notice svg {
  flex-shrink: 0;
  color: #D4A017;
}

/* ========== OPTION CARDS (radio/checkbox styled) ========== */
.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

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

.wizard-options--triple {
  grid-template-columns: repeat(3, 1fr);
}

.wizard-option {
  position: relative;
  cursor: pointer;
}

.wizard-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wizard-option__card {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 16px 18px;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-in-out);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-black);
}

.wizard-option__card:hover {
  border-color: var(--color-gray-300);
  background: var(--color-gray-100);
}

.wizard-option input:checked + .wizard-option__card {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.wizard-option__check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.wizard-option input[type="radio"] + .wizard-option__card .wizard-option__check {
  border-radius: 50%;
}

.wizard-option input:checked + .wizard-option__card .wizard-option__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wizard-option input:checked + .wizard-option__card .wizard-option__check svg {
  display: block;
}

.wizard-option__check svg {
  display: none;
  width: 12px;
  height: 12px;
  color: white;
}

/* ========== REPEATABLE FIELDS ========== */
.wizard-repeater {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.wizard-repeater__item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  position: relative;
}

.wizard-repeater__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-md);
}

.wizard-repeater__item-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-black);
}

.wizard-repeater__remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-gray-400);
  transition: all var(--duration-fast) var(--ease-in-out);
}

.wizard-repeater__remove:hover {
  background: #FEE2E2;
  color: var(--color-error);
}

.wizard-repeater__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  padding: 14px;
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-500);
  transition: all var(--duration-fast) var(--ease-in-out);
  cursor: pointer;
}

.wizard-repeater__add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ========== FILE UPLOAD ========== */
.wizard-upload {
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--gap-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.wizard-upload:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.wizard-upload__icon {
  margin: 0 auto var(--gap-md);
  color: var(--color-gray-400);
}

.wizard-upload__text {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
}

.wizard-upload__text strong {
  color: var(--color-primary);
}

.wizard-upload input[type="file"] {
  display: none;
}

/* ========== WIZARD FOOTER / NAVIGATION ========== */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-gray-200);
  padding: 16px 0;
}

.wizard-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-footer__prev {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-500);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-in-out);
}

.wizard-footer__prev:hover {
  background: var(--color-gray-100);
  color: var(--color-black);
}

.wizard-footer__prev--hidden {
  visibility: hidden;
}

/* ========== SUMMARY ========== */
.wizard-summary {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.wizard-summary__section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  border: 1px solid var(--color-gray-200);
}

.wizard-summary__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 1px solid var(--color-gray-200);
}

.wizard-summary__section-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-summary__edit {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  cursor: pointer;
}

.wizard-summary__edit:hover {
  text-decoration: underline;
}

.wizard-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  gap: var(--gap-md);
}

.wizard-summary__label {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  flex-shrink: 0;
}

.wizard-summary__value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-black);
  text-align: right;
}

/* ========== PAYMENT ========== */
.wizard-payment {
  max-width: 500px;
  margin: 0 auto;
}

.wizard-payment__card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--gap-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

.wizard-payment__amount {
  text-align: center;
  padding-bottom: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  border-bottom: 1px solid var(--color-gray-200);
}

.wizard-payment__amount-label {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--gap-xs);
}

.wizard-payment__amount-value {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-black);
  letter-spacing: -0.03em;
}

.wizard-payment__amount-period {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
}

.wizard-payment__methods {
  display: flex;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-xl);
}

.wizard-payment__method {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.wizard-payment__method--active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.wizard-payment__fields {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.wizard-payment__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.wizard-payment__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
  margin-top: var(--gap-md);
}

/* ========== SUCCESS ========== */
.wizard-success {
  text-align: center;
  max-width: 500px;
  margin: 60px auto;
}

.wizard-success__icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gap-xl);
}

.wizard-success__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--gap-md);
}

.wizard-success__desc {
  font-size: var(--fs-base);
  color: var(--color-gray-500);
  margin-bottom: var(--gap-2xl);
  max-width: none;
}

.wizard-success__ref {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-black);
  margin-bottom: var(--gap-xl);
}

/* ========== PROCESSING OVERLAY ========== */
.wizard-processing {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--gap-lg);
}

.wizard-processing--active {
  display: flex;
}

.wizard-processing__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.wizard-processing__text {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-gray-700);
}

/* ========== RESPONSIVE WIZARD ========== */
@media (max-width: 767px) {
  .wizard-content {
    padding-top: 130px;
    padding-bottom: 100px;
  }

  .wizard-step__title {
    font-size: var(--fs-2xl);
  }

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

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

  .wizard-intro__chips {
    gap: 8px;
  }

  .wizard-intro__title {
    font-size: var(--fs-3xl);
  }

  .wizard-intro__logo-showcase {
    width: 110px;
    height: 110px;
  }

  .wizard-intro__logo-badge {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .wizard-intro__logo-badge svg {
    width: 44px;
    height: 44px;
  }

  .wizard-intro__notice {
    border-radius: var(--radius-md);
  }

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

  .wizard-summary__row {
    flex-direction: column;
    gap: 4px;
  }

  .wizard-summary__value {
    text-align: left;
  }
}
