/* Intake Wizard */

.wizard-shell {
  max-width: 980px;
  text-align: left;
}

.wizard-title {
  margin-top: 0;
  color: #002855;
}

.wizard-intro {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(11, 99, 182, 0.045);
  border: 1px solid rgba(11, 99, 182, 0.16);
}

.wizard-intro[hidden] {
  display: none !important;
}

.wizard-subtitle {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 99, 182, 0.16);
  background: rgba(11, 99, 182, 0.04);
}

.wizard-subtitle__lead {
  margin: 0 0 8px;
  color: #12304f;
  line-height: 1.45;
}

.wizard-subtitle__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(11, 99, 182, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: #2f3a40;
  line-height: 1.4;
}

.wizard-step-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(11, 99, 182, 0.12);
  font-size: 1.25rem;
}

.wizard-step-card__text {
  font-size: 0.95rem;
}

.wizard-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  margin: 18px 0;
}

.wizard-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wizard-methods--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-method-card {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
}

.wizard-method-card--primary {
  border-color: #0b63b6;
  background: linear-gradient(160deg, #0b63b6, #1d7ddd);
  box-shadow: 0 10px 24px rgba(11, 99, 182, 0.28);
}

.wizard-method-card--primary .wizard-method-title,
.wizard-method-card--primary .wizard-method-text {
  color: #ffffff;
}

.wizard-method-title {
  margin: 0 0 6px;
  color: #002855;
  font-size: 1rem;
  line-height: 1.35;
}

.wizard-method-text {
  margin: 0;
  color: rgba(0, 0, 0, 0.82);
  line-height: 1.5;
}


.wizard-process-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 99, 182, 0.16);
  background: rgba(11, 99, 182, 0.04);
}

.wizard-process-note h2 {
  margin: 0 0 6px;
  color: #002855;
  font-size: 1.06rem;
  line-height: 1.35;
}

.wizard-process-note p {
  margin: 0;
  color: rgba(0, 0, 0, 0.82);
  line-height: 1.5;
}

.wizard-choice {
  margin-bottom: 10px;
}

.wizard-method-start {
  margin-top: 12px;
  width: 100%;
}


.wizard-privacy-note {
  margin: 12px auto 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(0, 0, 0, 0.80);
  line-height: 1.45;
  font-size: 0.98rem;
  text-align: center;
  max-width: 780px;
}


.wizard-upload-note {
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11, 99, 182, 0.16);
  background: rgba(11, 99, 182, 0.04);
  color: rgba(0, 0, 0, 0.82);
  line-height: 1.45;
  font-size: 0.97rem;
  text-align: center;
  max-width: 780px;
}


.wizard-upload-note p {
  margin: 0;
}

.wizard-upload-note__cta {
  margin-top: 12px;
}

.wizard-upload-note__cleanup {
  margin-top: 10px !important;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.78);
}


.wizard-completion-status {
  max-width: 860px;
  margin: 14px auto 10px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(16, 73, 28, 0.22);
  background: linear-gradient(180deg, rgba(238, 252, 240, 0.96), rgba(224, 246, 228, 0.93));
  color: #1d4426;
  text-align: center;
  font-size: 1.16rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(11, 44, 18, 0.08);
}

.wizard-upload-note--completion {
  max-width: 920px;
  margin: 12px auto 0;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(11, 99, 182, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.94));
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.82);
  box-shadow: 0 16px 30px rgba(15, 53, 90, 0.14);
}

.wizard-upload-note--completion .wizard-upload-note__cta {
  margin-top: 14px;
  padding: 12px 20px;
}

.wizard-upload-note--completion .wizard-upload-note__cleanup {
  margin-top: 14px !important;
  font-size: 0.94rem;
}

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

.wizard-actions-top .wizard-primary,
.wizard-actions-top .wizard-secondary {
  width: auto !important;
  min-width: 190px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.wizard-primary,
.wizard-secondary {
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  text-align: center;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.wizard-primary {
  background: #0b63b6;
  color: #fff;
}

.wizard-primary:hover {
  background: #094f90;
}

.wizard-primary:disabled,
.wizard-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.wizard-secondary {
  background: #ffffff;
  color: #0b63b6;
  border: 1px solid rgba(11, 99, 182, 0.35);
}

.wizard-secondary:hover {
  background: rgba(11, 99, 182, 0.06);
}

.wizard-danger {
  background: #6b0f1a;
}

.wizard-danger:hover {
  background: #520b14;
}

.wizard-autosave {
  margin: 10px 0 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 99, 182, 0.22);
  background: rgba(11, 99, 182, 0.045);
}

.wizard-autosave__title {
  margin: 0 0 6px;
  color: #002855;
  font-size: 1rem;
}

.wizard-autosave__text {
  margin: 0;
  color: rgba(0, 0, 0, 0.82);
  line-height: 1.5;
}


.wizard-autosave__text p {
  margin: 0;
}

.wizard-autosave__bullets {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.45;
}

.wizard-autosave__bullets li + li {
  margin-top: 4px;
}

.wizard-no-recovery {
  color: #6b0f1a;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wizard-autosave__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

.wizard-autosave__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #002855;
  min-width: 0;
}

.wizard-autosave__field[hidden] {
  display: none;
}

.wizard-autosave__field input {
  border: 1px solid rgba(11, 99, 182, 0.28);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.98rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wizard-autosave__field-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 10px;
  width: 100%;
}

.wizard-autosave__field-label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.wizard-password-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: #0b63b6;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  display: inline-block;
  width: fit-content;
  justify-self: end;
  align-self: center;
  cursor: pointer;
}

.wizard-password-toggle:hover {
  background: transparent;
  color: #084b87;
}

.wizard-password-toggle:focus,
.wizard-password-toggle:focus-visible {
  outline: none;
  background: transparent;
  text-decoration-thickness: 3px;
}

.wizard-password-toggle:active {
  background: transparent;
}

.wizard-password-toggle--inline {
  display: inline;
  margin-left: 8px;
  font-size: 0.82rem;
}

.wizard-autosave__field input:focus {
  outline: 3px solid rgba(11, 99, 182, 0.20);
  border-color: rgba(11, 99, 182, 0.65);
}

.wizard-autosave__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.wizard-page-wrap {
  width: 100%;
  overflow: auto;
}

.wizard-page {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 8.5 / 11;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.wizard-page--locked {
  opacity: 0.82;
}

.wizard-page__bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wizard-page__fields {
  position: absolute;
  inset: 0;
}

.wizard-progress {
  height: 10px;
  width: 100%;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.wizard-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0b63b6, #5aa6ff);
  transition: width 0.2s ease;
}

.wizard-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 12px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.wizard-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wizard-error {
  color: #8b0000;
  font-weight: 700;
  min-height: 1.2em;
}

.wizard-footnote {
  margin: 14px 0 0;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.45;
  font-size: 0.96rem;
}

.wizard-resume-status {
  min-height: 1.4em;
  margin-top: 4px;
}

.wizard-resume-status.wizard-completion-status {
  max-width: 860px;
  margin: 14px auto 10px;
}


.wizard-quick-tips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: center;
  background: linear-gradient(180deg, rgba(11, 99, 182, 0.08), rgba(11, 99, 182, 0.03));
  border: 1px solid rgba(11, 99, 182, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.wizard-quick-tips__label {
  grid-column: 1 / -1;
  font-weight: 700;
  color: #11467c;
}

.wizard-quick-tips__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

.wizard-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f0f4fa 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 1px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  color: #133d66;
  white-space: nowrap;
}


@media (max-width: 1250px) {
  .wizard-quick-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wizard-quick-tips {
    grid-template-columns: 1fr;
  }

  .wizard-keycap {
    min-width: 120px;
  }
}

.wiz-field {
  position: absolute;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid rgba(11, 99, 182, 0.28);
  background: rgba(255, 255, 255, 0.88);
  font-size: clamp(11px, 1.35vw, 14px);
  line-height: 1.3;
  padding: 1px 3px;
  overflow: hidden;
  color: #000;
}

.wiz-field:focus {
  outline: 3px solid rgba(11, 99, 182, 0.25);
  border-color: rgba(11, 99, 182, 0.65);
}

.wiz-field.wiz-multiline {
  resize: none;
  overflow: auto;
}

.wiz-field::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.wiz-field.wiz-signature {
  font-size: clamp(12px, 1.5vw, 18px);
  font-style: italic;
  padding: 2px 4px;
}

.wiz-check,
.wiz-radio {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.55);
  background-repeat: no-repeat;
  background-position: center;
}

.wiz-check {
  border-radius: 2px;
  background-image: linear-gradient(#0b63b6, #0b63b6);
  background-size: 0% 0%;
}

.wiz-check:checked {
  background-size: 65% 65%;
}

.wiz-radio {
  border-radius: 50%;
  background-image: radial-gradient(circle, #0b63b6 0 36%, transparent 38%);
  background-size: 0% 0%;
}

.wiz-radio:checked {
  background-size: 100% 100%;
}

.wiz-check:focus,
.wiz-radio:focus {
  outline: 3px solid rgba(11, 99, 182, 0.25);
  outline-offset: 1px;
  border-color: rgba(11, 99, 182, 0.65);
}

.wiz-invalid {
  border-color: rgba(139, 0, 0, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.12) !important;
}

@media (max-width: 720px) {
  .wizard-shell {
    max-width: 100%;
  }

  .wizard-subtitle__steps,
  .wizard-methods--two-col,
  .wizard-autosave__fields {
    grid-template-columns: 1fr;
  }

  .wizard-actions-top .wizard-primary,
  .wizard-actions-top .wizard-secondary {
    min-width: 160px;
    flex: 1 1 220px;
  }

  .wizard-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-nav__right {
    justify-content: space-between;
  }

  .wizard-completion-status {
    margin: 10px auto;
    padding: 12px 14px;
    font-size: 1.02rem;
  }

  .wizard-upload-note--completion {
    padding: 14px 14px;
    font-size: 1.06rem;
  }
}
