.sanisel-form .form-status { min-height: 1.2em; margin-top: 14px; }
.sanisel-form.is-busy { opacity: .7; pointer-events: none; }

.wizard {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0, 56, 144, .05), transparent 52%),
    linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(0, 56, 144, .11);
  box-shadow: none;
  overflow: hidden;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 26px;
  padding: 8px;
  border: 1px solid rgba(0, 56, 144, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.wizard-progress-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 8px 6px;
  border-radius: 13px;
  position: relative;
  color: var(--muted, #6a7382);
}

.wizard-progress-item:not(:last-child):after { display: none; }

.wizard-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  margin: 3px 0;
  background: rgba(0, 56, 144, .07);
  transition: background .3s, box-shadow .3s;
  position: relative;
  z-index: 1;
}

.wizard-progress-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.wizard-progress-item.is-on,
.wizard-progress-item.is-done {
  background: rgba(160, 200, 56, .12);
}

.wizard-progress-item.is-on .wizard-progress-dot,
.wizard-progress-item.is-done .wizard-progress-dot {
  background: var(--lime, #a0c838);
  color: #101820;
  box-shadow: 0 0 0 4px rgba(160, 200, 56, .18);
}

.wizard-progress-item.is-on .wizard-progress-label,
.wizard-progress-item.is-done .wizard-progress-label {
  color: var(--navy, #061018);
}

.wizard-progress-item.is-done:not(:last-child):after,
.wizard-progress-item.is-on:not(:last-child):after {
  background: rgba(160, 200, 56, .55);
}

.wizard-step { display: none; }
.wizard-step.is-on {
  display: block;
  animation: wizard-up .55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wizard-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.wizard-step-head { margin-bottom: 20px; max-width: 42ch; }
.wizard-step-head h2 {
  margin: 0 0 8px;
  color: #101820;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}
.wizard-lead {
  margin: 0;
  color: #1d2733;
  font-size: 1.02rem;
  font-weight: 300;
}

.wizard-subhead { margin: 24px 0 12px; }
.wizard-subhead h3 { margin: 0; font-size: .98rem; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-grid-two { grid-template-columns: 1fr 1fr; }
.choice-grid-photos { grid-template-columns: repeat(3, 1fr); }

.choice {
  position: relative;
  display: block;
  border: 1px solid rgba(0, 56, 144, .11);
  border-radius: 18px;
  padding: 16px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, .9);
  font-family: var(--font-body, Outfit, system-ui, sans-serif);
  transition: border-color .25s, transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s, background .25s;
}

.choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 56, 144, .24);
  box-shadow: 0 14px 32px rgba(0, 56, 144, .08);
}
.choice.is-on,
.choice:has(input:checked) {
  border-color: var(--lime-dark, #88ad2c);
  box-shadow: 0 0 0 1px rgba(160, 200, 56, .5), 0 18px 40px rgba(0, 56, 144, .1);
  background: #fff;
}

.choice-card strong,
.choice-body strong {
  display: block;
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #101820;
  margin: 0 0 6px;
}

.choice-card em,
.choice-body em {
  display: block;
  font-style: normal;
  color: var(--muted, #6a7382);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.45;
}

.choice-photo {
  padding: 0;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.choice-media {
  display: block;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.choice-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 56, 144, .34) 100%);
}

.choice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.choice-photo:hover .choice-media img,
.choice-photo:has(input:checked) .choice-media img {
  transform: scale(1.08);
}

.choice-body {
  display: block;
  padding: 14px 14px 16px;
  flex: 1;
}

.choice-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 500;
}

.choice-check input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  margin-top: 3px;
  accent-color: var(--lime, #a0c838);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.choice-check span { color: var(--ink, #1a2433); line-height: 1.5; }
.choice-check a { color: var(--blue, #003890); text-decoration: underline; text-underline-offset: 3px; }

.privacy-consent {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 56, 144, .12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(247,251,255,.96) 100%);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 56, 144, .05);
}

.privacy-consent:hover {
  border-color: rgba(0, 56, 144, .22);
  background: #fff;
}

.privacy-consent input {
  position: absolute;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.privacy-consent-box {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border: 1.5px solid rgba(0, 56, 144, .28);
  border-radius: 8px;
  background: #fff;
  color: var(--blue, #003890);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

.privacy-consent input:checked + .privacy-consent-box {
  border-color: var(--lime-dark, #88ad2c);
  background: var(--lime, #a0c838);
  color: var(--blue-deep, #00245c);
}

.privacy-consent input:checked + .privacy-consent-box:after {
  content: "✓";
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.privacy-consent input:focus-visible + .privacy-consent-box {
  box-shadow: 0 0 0 4px rgba(0, 56, 144, .12);
}

.privacy-consent-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.privacy-consent-copy strong {
  color: var(--ink, #101820);
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: .96rem;
  line-height: 1.25;
}

.privacy-consent-copy small {
  color: var(--muted, #6a7382);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.5;
}

.privacy-consent-copy a {
  color: var(--blue, #003890);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.file-drop {
  position: relative;
  display: block;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop-ui {
  display: grid;
  gap: 6px;
  padding: 22px 18px;
  border: 1.5px dashed rgba(0, 56, 144, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  text-align: center;
  transition: border-color .25s, background .25s;
}

.file-drop:hover .file-drop-ui,
.file-drop.has-files .file-drop-ui {
  border-color: var(--lime-dark, #88ad2c);
  background: #fff;
}

.file-drop-ui strong {
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy, #061018);
}

.file-drop-ui em {
  font-style: normal;
  color: var(--muted, #6a7382);
  font-size: .9rem;
}

.file-drop-names {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--blue, #003890);
  font-weight: 500;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 56, 144, .1);
}

.wizard-nav .btn-ghost:after { content: none; }

.wizard-success {
  text-align: center;
  padding: 20px 0 8px;
}

.wizard-success .wizard-step-head {
  margin-inline: auto;
  max-width: 36ch;
}

.wizard-success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime, #a0c838);
  color: var(--navy, #061018);
  font-size: 1.8rem;
  font-weight: 600;
  box-shadow: 0 0 0 10px rgba(160, 200, 56, .18);
  animation: wizard-pop .6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wizard-pop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wizard-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.wizard.is-complete .wizard-progress { opacity: .55; }

@media (max-width: 860px) {
  .choice-grid,
  .choice-grid-photos,
  .choice-grid-two,
  .form-row {
    grid-template-columns: 1fr;
  }

  .wizard-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .wizard-progress-item:not(:last-child):after { display: none; }

  .wizard-progress-label {
    font-size: .58rem;
    letter-spacing: .08em;
  }

  .choice-photo { min-height: 0; }
  .choice-media { height: 160px; }
}

@media (max-width: 520px) {
  .wizard { border-radius: 28px; padding: 22px 18px 24px; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; justify-content: center; }
}
