/* =====================================================================
   Extem — "Let's go" wizard (mini contact card modal)
   Theme-aware via [data-theme="dark"]. Standalone input styling.
   ===================================================================== */

.wiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 12, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wiz-overlay.open { display: flex; }

.wiz-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  border-radius: 20px;
  padding: 28px 26px 24px;
  background: linear-gradient(170deg, #ffffff, #eef6fb);
  color: #0a2c47;
  border: 1px solid rgba(20, 120, 170, 0.18);
  box-shadow: 0 30px 80px rgba(0, 20, 45, 0.45);
  animation: wizIn 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
}
[data-theme="dark"] .wiz-card {
  background: linear-gradient(170deg, #1c1c30, #12121f);
  color: #e8e8f2;
  border-color: rgba(106, 106, 236, 0.25);
}
@keyframes wizIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.wiz-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  background: rgba(127, 127, 160, 0.15);
  color: inherit;
  transition: background 0.25s ease;
}
.wiz-close:hover { background: rgba(127, 127, 160, 0.3); }

.wiz-progress {
  height: 6px;
  border-radius: 6px;
  background: rgba(127, 127, 160, 0.2);
  overflow: hidden;
  margin-bottom: 18px;
}
.wiz-progress span {
  display: block;
  height: 100%;
  width: 33.3%;
  border-radius: 6px;
  background: linear-gradient(90deg, #38d6f5, #1aa3d6);
  box-shadow: 0 0 10px rgba(56, 214, 245, 0.7);
  transition: width 0.35s ease;
}

.wiz-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
}
.wiz-sub {
  font-size: 13.5px;
  opacity: 0.7;
  margin: 0 0 18px;
  line-height: 1.6;
}

.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizIn 0.3s ease; }
.wiz-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1aa3d6;
}
[data-theme="dark"] .wiz-step h3 { color: #8ab4f8; }

.wiz-field { margin-bottom: 12px; }
.wiz-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
  opacity: 0.85;
}
.wiz-field label .req { color: #e05252; }
.wiz-field input,
.wiz-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(20, 120, 170, 0.25);
  background: #ffffff;
  color: #0a2c47;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
[data-theme="dark"] .wiz-field input,
[data-theme="dark"] .wiz-field textarea {
  background: #20202f;
  border-color: #3a3a52;
  color: #e8e8f2;
}
.wiz-field input:focus,
.wiz-field textarea:focus {
  border-color: #38d6f5;
  box-shadow: 0 0 0 3px rgba(56, 214, 245, 0.2);
}
.wiz-field textarea { resize: vertical; min-height: 92px; }

.wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.wiz-chip {
  border: 1px solid rgba(20, 120, 170, 0.3);
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wiz-chip:hover { border-color: #38d6f5; }
.wiz-chip.selected {
  background: linear-gradient(135deg, #38d6f5, #1aa3d6);
  border-color: transparent;
  color: #04263e;
  box-shadow: 0 4px 16px rgba(56, 214, 245, 0.4);
}

.wiz-review {
  border-radius: 12px;
  background: rgba(26, 163, 214, 0.08);
  border: 1px solid rgba(26, 163, 214, 0.2);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.9;
  margin-bottom: 12px;
  word-break: break-word;
}
.wiz-review b { opacity: 0.65; font-weight: 600; }

.wiz-error {
  display: none;
  font-size: 13px;
  line-height: 1.6;
  color: #c92a2a;
  background: rgba(220, 38, 38, 0.09);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
}
[data-theme="dark"] .wiz-error { color: #ff8a8a; }

.wiz-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wiz-nav button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.wiz-back {
  background: rgba(127, 127, 160, 0.16);
  color: inherit;
}
.wiz-next {
  background: linear-gradient(135deg, #a5f3fc, #38d6f5 55%, #1aa3d6);
  color: #04263e;
  box-shadow: 0 6px 22px rgba(56, 214, 245, 0.4);
}
.wiz-nav button:hover:not(:disabled) { transform: translateY(-2px); }
.wiz-nav button:disabled { opacity: 0.6; cursor: wait; }
.wiz-back.hidden { visibility: hidden; }

.wiz-success { text-align: center; padding: 14px 0 4px; }
.wiz-check {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #1aa3d6);
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.45);
}
.wiz-success h3 { font-size: 21px; margin: 0 0 8px; }
.wiz-success p { font-size: 14px; opacity: 0.75; line-height: 1.7; margin: 0 0 16px; }

[dir="rtl"] .wiz-card { font-family: "Tajawal", "Montserrat", sans-serif; }
