/* =====================================================
   AutarkWizard CSS
   Companion zu multi-step-wizard.js
   ===================================================== */

.aw-root {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  font-family: inherit;
  color: inherit;
}

/* ---------- Progress Bar ---------- */
.aw-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.aw-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22D3EE 0%, #60A5FA 100%);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}
[data-scope="light"] .aw-progress {
  background: rgba(0, 0, 0, 0.08);
}

/* ---------- Step Label ---------- */
.aw-step-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,0.7));
  margin-bottom: 1rem;
  font-weight: 600;
}
[data-scope="light"] .aw-step-label {
  color: rgba(0, 0, 0, 0.55);
}

/* ---------- Card ---------- */
.aw-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  min-height: 280px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
[data-scope="light"] .aw-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.aw-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #22D3EE;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.aw-q {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  line-height: 1.25;
}
.aw-helper {
  font-size: 0.95rem;
  color: var(--text-muted, rgba(255,255,255,0.72));
  margin: 0 0 1.4rem 0;
}
[data-scope="light"] .aw-helper { color: rgba(0,0,0,0.65); }

/* ---------- Buttons (Options) ---------- */
.aw-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.aw-opt-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 56px;
  font-family: inherit;
}
.aw-opt-btn:hover {
  border-color: #22D3EE;
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}
.aw-opt-btn.is-active,
.aw-opt-btn:focus-visible {
  border-color: #22D3EE;
  background: rgba(34, 211, 238, 0.15);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}
[data-scope="light"] .aw-opt-btn {
  background: var(--bg-light, #F4F1EB);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}
[data-scope="light"] .aw-opt-btn:hover {
  background: #ecfeff;
  border-color: #06B6D4;
}
[data-scope="light"] .aw-opt-btn.is-active {
  background: #cffafe;
  border-color: #06B6D4;
}

/* ---------- Slider ---------- */
.aw-slider-wrap { margin-top: 1.2rem; }
.aw-slider-value {
  font-size: 2rem;
  font-weight: 800;
  color: #22D3EE;
  text-align: center;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.aw-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22D3EE, #60A5FA);
  outline: none;
}
.aw-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #22D3EE;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.5);
}
.aw-slider::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #22D3EE;
  cursor: pointer;
}
.aw-slider-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted, rgba(255,255,255,0.6));
  margin-top: 0.5rem;
}

/* ---------- Inputs ---------- */
.aw-input-wrap { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.6rem; }
.aw-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255,255,255,0.75));
  margin-bottom: -0.4rem;
}
.aw-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 52px;
}
.aw-input::placeholder { color: rgba(255,255,255,0.35); }
.aw-input:focus {
  outline: none;
  border-color: #22D3EE;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
[data-scope="light"] .aw-input {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  color: #0f172a;
}
[data-scope="light"] .aw-input::placeholder { color: rgba(0,0,0,0.35); }

/* ---------- Nav ---------- */
.aw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.4rem;
  gap: 1rem;
}
.aw-back {
  background: transparent;
  border: 0;
  color: var(--text-muted, rgba(255,255,255,0.7));
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
}
.aw-back:hover { color: #22D3EE; }
.aw-next {
  margin-left: auto;
  min-height: 52px;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  background: linear-gradient(90deg, #22D3EE 0%, #60A5FA 100%);
  color: #06121f;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.35);
}
.aw-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.5);
}
.aw-next:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---------- Success ---------- */
.aw-success { text-align: center; padding: 1rem 0; }
.aw-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22D3EE, #60A5FA);
  color: #06121f;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 900;
  margin: 0 auto 1.2rem;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.45);
}
.aw-success h3 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.aw-success p { color: var(--text-muted, rgba(255,255,255,0.75)); margin: 0; }

/* ---------- Mobile Full-Screen Modal Variant ---------- */
@media (max-width: 640px) {
  .aw-root.aw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep, #060b18);
    padding: 4rem 1.2rem 1.5rem;
    overflow-y: auto;
    max-width: none;
    margin: 0;
  }
  .aw-card { padding: 1.4rem; min-height: 220px; border-radius: 16px; }
  .aw-q { font-size: 1.2rem; }
  .aw-options { grid-template-columns: 1fr; }
  .aw-opt-btn { min-height: 60px; }
  .aw-next { width: 100%; }
  .aw-nav { flex-direction: row; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aw-card, .aw-progress-bar, .aw-opt-btn, .aw-next { transition: none !important; }
}
