/* ============================================================
   IrishTaxTools — Wizard UI — Sprint 9
   ============================================================ */

/* ── Landing hero ─────────────────────────────────────────── */
.wizard-hero {
  background: linear-gradient(135deg, #0a2540 0%, #163563 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.wizard-hero__inner { max-width: 680px; margin: 0 auto; }
.wizard-hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7eb3f8;
  margin-bottom: 16px;
}
.wizard-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
}
.wizard-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin: 0 0 36px;
  line-height: 1.6;
}
.wizard-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.wizard-search {
  width: 100%;
  padding: 14px 48px 14px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: background .2s, box-shadow .2s;
}
.wizard-search::placeholder { color: rgba(255,255,255,.5); }
.wizard-search:focus { background: rgba(255,255,255,.18); box-shadow: 0 0 0 2px #7eb3f8; }
.wizard-search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; pointer-events: none; }

/* ── Landing sections ─────────────────────────────────────── */
.wizard-landing { background: #f5f7fb; min-height: 60vh; }
.wizard-section { padding: 56px 0 8px; }
.wizard-section__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.wizard-section__icon { font-size: 2rem; margin-top: 2px; }
.wizard-section__title { font-size: 1.35rem; font-weight: 700; color: #0a2540; margin: 0 0 4px; }
.wizard-section__desc  { font-size: .9rem; color: #6b7280; margin: 0; }

/* ── Wizard grid cards ────────────────────────────────────── */
.wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.wizard-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e5e8ef;
  padding: 24px 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  gap: 12px;
}
.wizard-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.wizard-card--popular { border-color: #dbeafe; background: linear-gradient(135deg, #fff 80%, #eff6ff); }
.wizard-card__icon { font-size: 2rem; line-height: 1; }
.wizard-card__title { font-size: 1rem; font-weight: 700; color: #0a2540; margin: 0 0 6px; }
.wizard-card__desc  { font-size: .875rem; color: #6b7280; margin: 0; line-height: 1.5; flex: 1; }
.wizard-card__body  { flex: 1; }
.wizard-card__meta  { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.wizard-card__time  { font-size: .8rem; color: #9ca3af; }
.wizard-card__arrow { font-size: 1rem; color: #2563eb; transition: transform .2s; }
.wizard-card:hover .wizard-card__arrow { transform: translateX(4px); }

/* ── Landing CTA strip ────────────────────────────────────── */
.wizard-cta-strip { padding: 56px 0 80px; }
.wizard-cta-strip__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: #0a2540; color: #fff;
  border-radius: 16px; padding: 40px 48px;
}
.wizard-cta-strip__inner h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.wizard-cta-strip__inner p  { color: rgba(255,255,255,.75); margin: 0; max-width: 480px; }

/* ── Wizard page hero ─────────────────────────────────────── */
.wizard-page { background: #f5f7fb; min-height: 60vh; }
.wizard-page__hero {
  background: linear-gradient(135deg, #0a2540 0%, #163563 100%);
  color: #fff;
  padding: 40px 0 44px;
}
.wizard-page__hero-inner {
  display: flex; align-items: flex-start; gap: 20px;
  margin-top: 20px;
}
.wizard-page__icon { font-size: 2.8rem; line-height: 1; flex-shrink: 0; }
.wizard-page__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin: 0 0 10px; }
.wizard-page__desc  { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0 0 10px; }
.wizard-page__time  { font-size: .8rem; color: rgba(255,255,255,.55); }

.wizard-app-wrap { max-width: 700px; margin: 0 auto; padding: 40px 0 24px; }

/* ── Wizard app container ─────────────────────────────────── */
#wizard-app { min-height: 200px; }
.wizard-noscript {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 10px; padding: 20px; font-size: .9rem;
}

/* ── Progress bar ─────────────────────────────────────────── */
.wizard-progress {
  margin-bottom: 28px;
}
.wizard-progress__info {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: #6b7280; margin-bottom: 8px;
}
.wizard-progress__bar {
  height: 6px; background: #e5e7eb; border-radius: 10px; overflow: hidden;
}
.wizard-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 10px;
  transition: width .4s ease;
  width: 0%;
}

/* ── Step card ─────────────────────────────────────────────── */
.wizard-step {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e5e8ef;
  padding: 36px 36px 28px;
  animation: wizard-step-in .25s ease;
}
@keyframes wizard-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wizard-step__q-number {
  font-size: .75rem; font-weight: 600; color: #2563eb;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 12px;
}
.wizard-step__title {
  font-size: 1.3rem; font-weight: 700; color: #0a2540;
  margin: 0 0 8px; line-height: 1.3;
}
.wizard-step__sub {
  font-size: .9rem; color: #6b7280;
  margin: 0 0 28px; line-height: 1.5;
}

/* ── Option cards (radio / checkbox) ──────────────────────── */
.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.wizard-options--two { grid-template-columns: 1fr 1fr; }
.wizard-options--list { grid-template-columns: 1fr; }

.wizard-option-label { display: block; cursor: pointer; }
.wizard-option-label input[type="radio"],
.wizard-option-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.wizard-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid #e5e8ef;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, background .15s, transform .1s;
  user-select: none;
}
.wizard-option-card:hover { border-color: #93c5fd; background: #f0f7ff; }
.wizard-option-label input:checked + .wizard-option-card {
  border-color: #2563eb;
  background: #eff6ff;
}
.wizard-option-card__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.wizard-option-card__text { flex: 1; }
.wizard-option-card__label { font-size: .95rem; font-weight: 600; color: #0a2540; display: block; }
.wizard-option-card__sub   { font-size: .8rem; color: #6b7280; display: block; margin-top: 2px; }

/* Checkbox tick */
.wizard-option-label input[type="checkbox"]:checked + .wizard-option-card { border-color: #059669; background: #ecfdf5; }
.wizard-option-label input[type="checkbox"]:checked + .wizard-option-card .wizard-option-card__label { color: #065f46; }

/* ── Yes / No ──────────────────────────────────────────────── */
.wizard-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.wizard-yesno-label { display: block; cursor: pointer; }
.wizard-yesno-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.wizard-yesno-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border: 2px solid #e5e8ef;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  transition: border-color .15s, background .15s;
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
  gap: 10px;
}
.wizard-yesno-card__icon { font-size: 2rem; }
.wizard-yesno-label:hover .wizard-yesno-card { border-color: #93c5fd; background: #f0f7ff; }
.wizard-yesno-label input:checked + .wizard-yesno-card { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.wizard-yesno-label--no input:checked + .wizard-yesno-card { border-color: #dc2626; background: #fff5f5; color: #991b1b; }

/* ── Currency / Number input ──────────────────────────────── */
.wizard-input-wrap { margin-bottom: 28px; }
.wizard-input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e5e8ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  max-width: 320px;
  transition: border-color .15s;
}
.wizard-input-prefix-wrap:focus-within { border-color: #2563eb; }
.wizard-input-prefix {
  padding: 0 16px;
  background: #f9fafb;
  border-right: 1px solid #e5e8ef;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  line-height: 54px;
  flex-shrink: 0;
}
.wizard-text-input {
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  background: transparent;
  color: #0a2540;
}
.wizard-text-input::placeholder { color: #9ca3af; font-weight: 400; }
.wizard-input-alone {
  border: 2px solid #e5e8ef;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1.05rem;
  width: 100%;
  max-width: 320px;
  outline: none;
  transition: border-color .15s;
  color: #0a2540;
}
.wizard-input-alone:focus { border-color: #2563eb; }

/* ── Step actions ─────────────────────────────────────────── */
.wizard-step__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
  margin-top: 20px;
}
.wizard-btn-next {
  padding: 14px 32px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.wizard-btn-next:hover { background: #1d4ed8; }
.wizard-btn-next:active { transform: scale(.98); }
.wizard-btn-next:disabled { background: #9ca3af; cursor: not-allowed; }
.wizard-btn-back {
  padding: 12px 20px;
  background: transparent;
  color: #6b7280;
  border: none;
  font-size: .9rem;
  cursor: pointer;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.wizard-btn-back:hover { color: #374151; background: #f3f4f6; }
.wizard-checkbox-hint {
  font-size: .8rem; color: #9ca3af;
  margin-left: auto;
}

/* ── Results panel ────────────────────────────────────────── */
.wizard-results {
  animation: wizard-step-in .3s ease;
}
.wizard-results__header {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e5e8ef;
  padding: 36px;
  margin-bottom: 24px;
  text-align: center;
}
.wizard-results__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.wizard-results__badge--success { background: #dcfce7; color: #166534; }
.wizard-results__badge--info    { background: #dbeafe; color: #1e40af; }
.wizard-results__badge--warning { background: #fef9c3; color: #854d0e; }
.wizard-results__badge--danger  { background: #fee2e2; color: #991b1b; }
.wizard-results__headline {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 16px;
  line-height: 1.25;
}
.wizard-results__summary {
  font-size: .95rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Score ring (business health) ────────────────────────── */
.wizard-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.wizard-score__ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 10px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wizard-score__ring--good   { border-color: #22c55e; }
.wizard-score__ring--medium { border-color: #f59e0b; }
.wizard-score__ring--poor   { border-color: #ef4444; }
.wizard-score__value { font-size: 2rem; font-weight: 700; color: #0a2540; }
.wizard-score__label { font-size: .95rem; font-weight: 600; color: #4b5563; text-align: center; }

/* ── Compliance checklist ─────────────────────────────────── */
.wizard-checks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.wizard-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
}
.wizard-check-item--ok      { background: #f0fdf4; color: #166534; }
.wizard-check-item--warning { background: #fffbeb; color: #92400e; }
.wizard-check-item--fail    { background: #fef2f2; color: #991b1b; }
.wizard-check-item__icon { font-size: 1rem; flex-shrink: 0; }

/* ── Result sections ─────────────────────────────────────── */
.wizard-results__section {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e5e8ef;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.wizard-results__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tools grid */
.wizard-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.wizard-tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1.5px solid #dbeafe;
  border-radius: 12px;
  text-decoration: none;
  background: #f0f7ff;
  transition: border-color .2s, box-shadow .2s;
  color: inherit;
}
.wizard-tool-card:hover { border-color: #2563eb; box-shadow: 0 2px 12px rgba(37,99,235,.1); }
.wizard-tool-card__icon  { font-size: 1.5rem; }
.wizard-tool-card__title { font-size: .9rem; font-weight: 700; color: #1e40af; }
.wizard-tool-card__why   { font-size: .8rem; color: #6b7280; line-height: 1.4; }

/* Actions list */
.wizard-actions-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.wizard-action-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-radius: 10px;
  border: 1.5px solid #e5e8ef;
}
.wizard-action-item--high   { border-color: #fca5a5; background: #fff5f5; }
.wizard-action-item--medium { border-color: #fcd34d; background: #fffbeb; }
.wizard-action-item--low    { border-color: #a7f3d0; background: #f0fdf4; }
.wizard-action-item__priority {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0; margin-top: 2px;
}
.wizard-action-item--high   .wizard-action-item__priority { background: #fee2e2; color: #b91c1c; }
.wizard-action-item--medium .wizard-action-item__priority { background: #fef3c7; color: #92400e; }
.wizard-action-item--low    .wizard-action-item__priority { background: #d1fae5; color: #065f46; }
.wizard-action-item__title { font-size: .92rem; font-weight: 600; color: #0a2540; margin-bottom: 4px; }
.wizard-action-item__body  { font-size: .85rem; color: #6b7280; line-height: 1.5; }

/* Forms list */
.wizard-forms-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.wizard-form-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid #e5e8ef;
  background: #f9fafb;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
.wizard-form-item:hover { border-color: #2563eb; }
a.wizard-form-item .wizard-form-code { color: #1d4ed8; text-decoration: underline; }
.wizard-form-code  { font-size: .85rem; font-weight: 700; color: #0a2540; flex-shrink: 0; min-width: 64px; }
.wizard-form-title { font-size: .9rem; font-weight: 600; color: #374151; }
.wizard-form-desc  { font-size: .82rem; color: #6b7280; margin-top: 2px; }

/* Guides list */
.wizard-guides-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.wizard-guide-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e5e8ef;
  text-decoration: none;
  color: #1e40af;
  font-size: .9rem;
  font-weight: 500;
  background: #f9fafb;
  transition: background .2s, border-color .2s;
}
.wizard-guide-item:hover { background: #eff6ff; border-color: #bfdbfe; }
.wizard-guide-item__icon { font-size: 1.1rem; }

/* ── Restart / print actions ──────────────────────────────── */
.wizard-results__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.wizard-btn-restart {
  padding: 12px 24px;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.wizard-btn-restart:hover { background: #e5e7eb; }
.wizard-btn-print {
  padding: 12px 24px;
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #e5e8ef;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.wizard-btn-print:hover { background: #f9fafb; border-color: #d1d5db; }

.wizard-below-cta {
  text-align: center;
  padding: 0 0 64px;
  color: #9ca3af;
  font-size: .85rem;
}
.wizard-below-cta p { margin-bottom: 10px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .wizard-step { padding: 24px 20px 20px; }
  .wizard-options { grid-template-columns: 1fr; }
  .wizard-options--two { grid-template-columns: 1fr; }
  .wizard-yesno { grid-template-columns: 1fr 1fr; }
  .wizard-cta-strip__inner { flex-direction: column; padding: 32px 24px; text-align: center; }
  .wizard-page__hero-inner { flex-direction: column; gap: 12px; }
  .wizard-tools-grid { grid-template-columns: 1fr; }
  .wizard-results__section { padding: 22px 20px; }
  .wizard-results__actions { flex-direction: column; }
  .wizard-btn-restart,
  .wizard-btn-print { width: 100%; text-align: center; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .wizard-page__hero { background: #0a2540 !important; -webkit-print-color-adjust: exact; }
  .wizard-step,
  .wizard-below-cta,
  .wizard-btn-restart,
  .wizard-btn-print,
  .wizard-progress { display: none !important; }
  .wizard-results__section { break-inside: avoid; }
}

/* ── High contrast ────────────────────────────────────────── */
@media (forced-colors: active) {
  .wizard-option-card,
  .wizard-yesno-card,
  .wizard-tool-card,
  .wizard-form-item { border: 2px solid ButtonText; }
  .wizard-option-label input:checked + .wizard-option-card,
  .wizard-option-label input:checked + .wizard-yesno-card { border-color: Highlight; }
}
