/* Easy mode for the 2025 application: one question at a time with plain-language help. */
.wd-easy-off {
  display: none !important;
}

/* Mode switch above each question step */
.wd-easy-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 14px 48px 0;
}
.wd-easy-bar[hidden] {
  display: none;
}
.wd-easy-bar-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.wd-easy-bar-label {
  font: 800 13px/1.2 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: var(--navy);
}
.wd-easy-bar-hint {
  font: 600 12px/1.3 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: var(--muted);
}
.wd-easy-switch {
  position: relative;
  width: 60px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.wd-easy-switch::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d9e1e4;
  box-shadow: inset 0 0 0 1px rgba(16, 41, 75, 0.1);
}
.wd-easy-switch-knob {
  position: absolute;
  left: 7px;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 41, 75, 0.25);
}
.wd-easy-bar.is-on .wd-easy-switch::before {
  background: var(--teal);
}
.wd-easy-bar.is-on .wd-easy-switch-knob {
  transform: translateX(22px);
}
.wd-easy-switch:focus-visible {
  outline: 3px solid rgba(8, 127, 130, 0.45);
  outline-offset: 2px;
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) {
  .wd-easy-switch::before,
  .wd-easy-switch-knob {
    transition: transform 0.18s ease, background 0.18s ease;
  }
}

/* Welcome: choose Easy or Standard */
.wd-easy-chooser {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}
.wd-easy-chooser legend {
  padding: 0;
  margin-bottom: 10px;
  font: 800 15px/1.35 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: var(--navy);
}
.wd-easy-option {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.wd-easy-option.is-checked {
  border-color: rgba(8, 127, 130, 0.55);
  background: var(--teal2);
  box-shadow: 0 0 0 1px rgba(8, 127, 130, 0.25);
}
.wd-easy-option input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--teal);
}
.wd-easy-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wd-easy-option-text strong {
  font: 800 15px/1.3 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: var(--navy);
}
.wd-easy-option-text small {
  font: 500 14.5px/1.5 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: #53646c;
}

/* Question header */
.wd-easy-head {
  display: block;
}
.wd-easy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.wd-easy-section {
  font: 800 12px/1.2 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  letter-spacing:0;
  text-transform:none;
  color: var(--teal);
}
.wd-easy-count {
  font: 700 14px/1.2 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: #53646c;
}
.wd-easy-dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.wd-easy-dots span {
  height: 6px;
  flex: 1 1 0;
  max-width: 56px;
  border-radius: 999px;
  background: rgba(16, 41, 75, 0.1);
}
.wd-easy-dots span.is-done {
  background: rgba(8, 127, 130, 0.45);
}
.wd-easy-dots span.is-now {
  background: var(--teal);
}
.wd-step h2.wd-easy-q {
  margin-top: 18px;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.wd-easy-q:focus {
  outline: none;
}

/* Why we ask / Where to find it */
.wd-easy-help {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 17px;
  background: #f3f6f6;
  display: grid;
  gap: 12px;
  max-width: 680px;
}
.wd-easy-help p {
  margin: 0;
  font: 500 16.5px/1.55 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: #3e525b;
}
.wd-easy-help strong {
  display: block;
  margin-bottom: 2px;
  font: 800 13px/1.3 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: var(--navy);
}
.wd-step > .wd-easy-help {
  margin-top: 22px;
}

/* Easy mode actions and messages */
.wd-easy-actions {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wd-easy-note {
  display: none;
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #edf8f6;
  color: #126567;
  font: 700 15px/1.45 var(--font-ui, "Libre Franklin", Arial, sans-serif);
}
.wd-easy-note.is-visible {
  display: block;
}
.wd-easy-note.is-error {
  background: #fff1f2;
  color: var(--danger);
}

/* Larger, calmer layout while Easy mode is on */
.wd-easy-mode .wd-step .wd-input {
  height: 58px;
  font-size: 18px;
}
.wd-easy-mode .wd-step .wd-input.big {
  height: 64px;
  font-size: 27px;
}
.wd-easy-mode .wd-step .wd-field-label {
  font-size: 14.5px;
}
.wd-easy-mode .wd-step h3 {
  font-size: 18px;
}
.wd-easy-mode .wd-step .wd-btn {
  min-height: 54px;
  font-size: 15px;
}
.wd-easy-mode .wd-step .wd-btn.small {
  min-height: 46px;
  font-size: 13.5px;
}
.wd-easy-mode .wd-yesno button {
  min-width: 132px;
  min-height: 58px;
  font-size: 17px;
}
.wd-easy-mode .wd-choice strong {
  font-size: 17px;
}
.wd-easy-mode .wd-choice small {
  font-size: 15px;
}
.wd-easy-mode .wd-income-list label span,
.wd-easy-mode .wd-check-row span {
  font-size: 16px;
}
.wd-easy-step .wd-field-grid.two,
.wd-easy-step .wd-year-grid {
  grid-template-columns: 1fr;
}
.wd-easy-step .wd-subquestion {
  margin-top: 22px;
}

/* Standard mode: gentle offer to switch */
.wd-easy-nudge {
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: 17px;
  background: var(--teal2);
  border: 1px solid rgba(8, 127, 130, 0.18);
}
.wd-easy-nudge p {
  margin: 0;
  font: 600 15.5px/1.5 var(--font-ui, "Libre Franklin", Arial, sans-serif);
  color: #24545a;
}
.wd-easy-nudge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.wd-easy-nudge .wd-btn.small {
  min-height: 46px;
  font-size: 13px;
}

@media (max-width: 680px) {
  .wd-easy-bar {
    margin: 10px 18px 0;
  }
  .wd-easy-actions .wd-easy-next {
    flex: 1;
  }
  .wd-easy-help p {
    font-size: 16px;
  }
  .wd-easy-mode .wd-yesno button {
    min-width: 0;
  }
}

@media print {
  .wd-easy-bar,
  .wd-easy-nudge,
  .wd-easy-actions {
    display: none !important;
  }
}

/* Validation message repeated beside the buttons (both modes) */
.wd-easy-step-error {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--danger);
  font: 700 15px/1.45 var(--font-ui, "Libre Franklin", Arial, sans-serif);
}
.wd-easy-step-error + .wd-step-actions {
  padding-top: 16px;
}
