/* ==========================================================================
   Masterpiece Painting Contractors — Service Wizard (index.php)
   ========================================================================== */

.wizard-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
  background:
    linear-gradient(180deg, rgba(4, 20, 30, 0.35) 0%, rgba(4, 20, 30, 0.15) 45%, rgba(4, 20, 30, 0.4) 100%),
    linear-gradient(135deg, var(--secundary-color-mp) 0%, var(--main-color-mp) 100%);
  overflow: hidden;
  isolation: isolate;
}

.wizard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../masterpiece/assets/images/bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: .3;
  z-index: -2;
}

.wizard-hero::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 640px;
  max-height: 640px;
  left: -18%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.wizard-card {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 30px 60px rgba(3, 15, 23, 0.35);
  text-align: center;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.wizard-progress .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dbe7ec;
  transition: background-color .2s ease, transform .2s ease;
}

.wizard-progress .step-dot.active {
  background: var(--main-color-mp);
  transform: scale(1.25);
}

.wizard-title {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: .6rem;
  text-wrap: balance;
}

.wizard-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.wizard-step-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--secundary-color-mp);
  margin-bottom: 1.25rem;
}

.wizard-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.75rem 1rem;
  border: 2px solid #e3eef2;
  border-radius: 1rem;
  background: #fff;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: border-color .18s ease, transform .15s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.wizard-option i {
  font-size: 1.8rem;
  color: var(--main-color-mp);
  transition: color .18s ease;
}

.wizard-option:hover,
.wizard-option:focus-visible {
  border-color: var(--main-color-mp);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 174, 239, 0.18);
}

.wizard-option.is-selected {
  background: var(--main-color-mp);
  border-color: var(--main-color-mp);
  color: #fff;
}

.wizard-option.is-selected i {
  color: #fff;
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 0;
  color: var(--secundary-color-mp);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1rem;
  padding: .25rem 0;
  cursor: pointer;
}

.wizard-back:hover,
.wizard-back:focus-visible {
  color: var(--main-color-mp);
}

.wizard-zip-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wizard-zip-input {
  flex: 1 1 220px;
  padding: .85rem 1.1rem;
  border-radius: .75rem;
  border: 2px solid #e3eef2;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: .05em;
}

.wizard-zip-input:focus {
  outline: none;
  border-color: var(--main-color-mp);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.22);
}

.wizard-submit-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--main-color-mp);
  color: var(--btn-color-mp);
  border: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: .85rem 1.5rem;
  border-radius: .75rem;
  transition: background-color .18s ease, transform .15s ease;
}

.wizard-submit-btn:hover,
.wizard-submit-btn:focus-visible {
  background: var(--secundary-color-mp);
  transform: translateY(-1px);
}

.wizard-submit-btn:disabled {
  opacity: .75;
  cursor: default;
  transform: none;
}

.wizard-error {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8a2c27;
  border-radius: .75rem;
  font-size: .92rem;
  text-align: left;
}

.wizard-error a {
  color: #8a2c27;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .wizard-card {
    padding: 2.25rem 1.5rem;
  }

  .wizard-zip-form {
    flex-direction: column;
  }

  .wizard-submit-btn {
    width: 100%;
    justify-content: center;
  }
}
