/* ==========================================================================
   IT SMART MEDIA — 4-STEP QUOTATION WIZARD MODAL
   Designed to match live site interactive quotation wizard with brand theme
   ========================================================================== */

.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.quote-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Window */
.wizard-modal {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: radial-gradient(120% 120% at 50% 0%, #151a26 0%, #0c0f17 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 90px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 74, 43, 0.12), 0 0 60px -25px rgba(255, 74, 43, 0.25);
  padding: 34px 34px 30px;
  color: #FFFFFF;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.quote-modal-overlay.is-active .wizard-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.wizard-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.wizard-modal__close:hover {
  background: rgba(255, 74, 43, 0.18);
  color: #FF4A2B;
  border-color: rgba(255, 74, 43, 0.4);
  transform: rotate(90deg);
}

/* 4-Step Stepper Header */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wizard-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 35px;
  right: 35px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.wizard-stepper__line {
  position: absolute;
  top: 18px;
  left: 35px;
  height: 2px;
  background: linear-gradient(90deg, #FF4A2B, #FF7B54);
  z-index: 1;
  transition: width 0.35s ease;
  width: 0%;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wizard-step-node__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141824;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.wizard-step-node__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
  transition: color 0.25s ease;
}

.wizard-step-node.is-active .wizard-step-node__circle {
  background: linear-gradient(135deg, #FF4A2B 0%, #FF6B4A 100%);
  border-color: #FF7B54;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 74, 43, 0.55);
}

.wizard-step-node.is-active .wizard-step-node__label {
  color: #FFFFFF;
}

.wizard-step-node.is-complete .wizard-step-node__circle {
  background: rgba(34, 197, 94, 0.16);
  border-color: #22C55E;
  color: #22C55E;
}

.wizard-step-node.is-complete .wizard-step-node__label {
  color: #22C55E;
}

/* Step Content Sections */
.wizard-step-panel {
  display: none;
  animation: wizFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.wizard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 74, 43, 0.12);
  border: 1px solid rgba(255, 74, 43, 0.25);
  color: #FF7B54;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wizard-title {
  font-size: clamp(21px, 2.3vw, 26px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 6px;
}

.wizard-subtitle {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Step 1: Form Fields */
.wizard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.wizard-form-group--full {
  grid-column: 1 / -1;
}

.wizard-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.wizard-input,
.wizard-select,
.wizard-textarea {
  width: 100%;
  background: #0f131d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
  color: #475569;
}

.wizard-input:focus,
.wizard-select:focus,
.wizard-textarea:focus {
  border-color: #FF4A2B;
  background: #141824;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 74, 43, 0.2);
}

.wizard-input.is-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  animation: wizShake 0.3s ease;
}

@keyframes wizShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Step 2: Service Selection Cards */
.wizard-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.wizard-service-card {
  background: #10141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.wizard-service-card:hover {
  background: #141926;
  border-color: rgba(255, 74, 43, 0.35);
  transform: translateY(-2px);
}

.wizard-service-card.is-active {
  background: rgba(255, 74, 43, 0.07);
  border-color: #FF4A2B;
  box-shadow: 0 0 20px -3px rgba(255, 74, 43, 0.3);
}

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

.wizard-service-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 74, 43, 0.12);
  color: #FF6B4A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-service-card__price {
  font-size: 11.5px;
  font-weight: 800;
  color: #FF7B54;
  background: rgba(255, 74, 43, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.wizard-service-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.3;
}

.wizard-service-card__desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.45;
}

/* Step 3: Scope Tiers */
.wizard-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.wizard-tier-card {
  background: #10141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.wizard-tier-card:hover {
  background: #141926;
  border-color: rgba(255, 74, 43, 0.3);
}

.wizard-tier-card.is-active {
  background: rgba(255, 74, 43, 0.08);
  border-color: #FF4A2B;
  box-shadow: 0 0 16px -2px rgba(255, 74, 43, 0.28);
}

.wizard-tier-card__badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF4A2B, #FF6B4A);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wizard-tier-card__title {
  font-size: 13.5px;
  font-weight: 750;
  color: #FFFFFF;
  margin-bottom: 4px;
  margin-top: 4px;
}

.wizard-tier-card__mult {
  font-size: 11px;
  font-weight: 700;
  color: #FF7B54;
  margin-bottom: 6px;
}

.wizard-tier-card__desc {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.35;
}

/* Step 3: Addon Toggles */
.wizard-addons-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 10px;
  display: block;
}

.wizard-addons-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.wizard-addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #10141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wizard-addon-item:hover {
  background: #141926;
  border-color: rgba(255, 255, 255, 0.15);
}

.wizard-addon-item.is-checked {
  background: rgba(255, 74, 43, 0.07);
  border-color: #FF4A2B;
}

.wizard-addon-item__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #E2E8F0;
}

.wizard-addon-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #FF4A2B;
  cursor: pointer;
}

.wizard-addon-item__price {
  font-size: 11px;
  font-weight: 750;
  color: #FF7B54;
  white-space: nowrap;
}

/* Step 4: Summary & Projection Card */
.wizard-summary-box {
  background: #10141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.wizard-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-curr-toggle {
  display: inline-flex;
  background: #0b0e16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px;
}

.wizard-curr-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-curr-btn.is-active {
  background: #FF4A2B;
  color: #FFFFFF;
}

.wizard-investment-box {
  text-align: right;
}

.wizard-investment-val {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 40%, #FF7B54 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wizard-investment-label {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-summary-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12.5px;
}

.wizard-summary-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wizard-summary-row span:first-child {
  color: #64748B;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.wizard-summary-row span:last-child {
  color: #FFFFFF;
  font-weight: 600;
}

.wizard-guarantees-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #22C55E;
}

/* Actions Row at Bottom of Steps */
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.wizard-btn-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wizard-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.wizard-btn-next {
  background: linear-gradient(135deg, #FF4A2B 0%, #FF6B4A 100%);
  border: none;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  box-shadow: 0 10px 25px -5px rgba(255, 74, 43, 0.45);
  transition: all 0.2s ease;
}

.wizard-btn-next:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -5px rgba(255, 74, 43, 0.6);
}

.wizard-btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

.wizard-btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wizard-btn-submit {
  background: linear-gradient(135deg, #FF4A2B 0%, #FF6B4A 100%);
  border: none;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.wizard-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Success Confirmation Panel */
.wizard-success-panel {
  text-align: center;
  padding: 20px 10px;
}

.wizard-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  border: 2px solid #22C55E;
  color: #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: wizPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .wizard-modal {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }
  .wizard-form-grid {
    grid-template-columns: 1fr;
  }
  .wizard-services-grid {
    grid-template-columns: 1fr;
  }
  .wizard-tiers-grid {
    grid-template-columns: 1fr;
  }
  .wizard-addons-list {
    grid-template-columns: 1fr;
  }
  .wizard-summary-details {
    grid-template-columns: 1fr;
  }
  .wizard-stepper__label {
    display: none;
  }
}
