/* Credit form styling based on the supplied reference. The advisor layout and media stay in advisor.css. */
.credit__form {
  color: #081443;
  background: rgb(255 255 255 / .97);
  border: 1px solid #eef1f8;
  border-radius: clamp(1rem, 2cqw, 1.75rem);
  box-shadow: 0 20px 60px rgb(41 66 112 / .1);
}
.credit__form-intro {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.45cqw, 1.375rem);
}
.credit__form-icon {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(2.75rem, 5cqw, 4.5rem);
  width: clamp(2.75rem, 5cqw, 4.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #1548d5;
  background: #e9f0ff;
}
.credit__form-icon svg { width: 58%; height: 58%; }
.credit__form-intro > div { min-width: 0; }
.credit__guidance {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #081443;
  font: 700 clamp(1rem, 1.55cqw, 1.5rem)/1.27 var(--font-display);
  letter-spacing: -.025em;
}
.credit__form-subtitle {
  margin: .3rem 0 0;
  color: #6d7b9b;
  font: 400 clamp(.8125rem, 1.13cqw, 1.125rem)/1.4 var(--font-text);
}
.credit-quiz__header {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.5cqw, 1.5rem);
  min-height: 4.5rem;
  margin-top: clamp(.875rem, 1.8cqw, 1.75rem);
  padding-bottom: clamp(.875rem, 1.6cqw, 1.5rem);
  border-bottom: 1px solid #dbe2ef;
}
.credit-quiz__back { order: 2; flex: none; color: #657393; }
.credit-quiz__back:disabled { display: none; }
.credit-quiz__progress {
  position: relative;
  order: 0;
  flex: 1 1 auto;
  min-width: 3rem;
  height: 6px;
  margin: 0 8px 0 0;
  overflow: visible;
  border-radius: 99px;
  background: #dfe4ee;
}
.credit-quiz__progress .credit-quiz__progress-fill {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: #1044ce;
  transition: width 420ms cubic-bezier(.22, 1, .36, 1);
}
.credit-quiz__progress i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dfe4ee;
  box-shadow: 0 0 0 1px #fff;
  transform: translate(-50%, -50%);
  transition: width 420ms cubic-bezier(.22, 1, .36, 1), height 420ms cubic-bezier(.22, 1, .36, 1), background-color 420ms ease, box-shadow 420ms ease;
}
.credit-quiz__progress i:nth-of-type(1) { left: 33.333%; }
.credit-quiz__progress i:nth-of-type(2) { left: 66.666%; }
.credit-quiz__progress i:nth-of-type(3) { left: 100%; }
.credit-quiz__progress[aria-valuenow='1'] i:nth-of-type(1),
.credit-quiz__progress[aria-valuenow='2'] i:nth-of-type(2),
.credit-quiz__progress[aria-valuenow='3'] i:nth-of-type(3) {
  width: 23px;
  height: 23px;
  background: #2e70f0;
  box-shadow: 0 2px 8px rgb(20 67 165 / .22), 0 0 0 1px #dce6f7;
}
.credit-quiz__progress[aria-valuenow='2'] i:nth-of-type(1),
.credit-quiz__progress[aria-valuenow='3'] i:nth-of-type(-n+2) { background: #1044ce; }
.credit-quiz__counter {
  order: 1;
  flex: none;
  color: #6a799b;
  font: 400 clamp(.75rem, 1.15cqw, 1.125rem)/1.2 var(--font-text);
  white-space: nowrap;
}
.credit-quiz__counter strong { color: inherit; font-weight: 400; }
.credit-quiz__stage { min-height: 23rem; padding: clamp(1.25rem, 2cqw, 2rem) 0 1.375rem; }
.credit-quiz__stage.is-transitioning { position: relative; box-sizing: border-box; }
.credit-quiz__stage.is-transitioning .credit-quiz__panel {
  position: absolute;
  top: var(--quiz-panel-top);
  right: 0;
  left: 0;
}
.credit-quiz__title {
  color: #071440;
  font: 700 clamp(1.5rem, 2.35cqw, 2.5rem)/1.15 var(--font-display);
  letter-spacing: -.035em;
}
.credit-quiz__hint {
  margin: .5rem 0 clamp(1rem, 1.5cqw, 1.5rem);
  color: #6c7a9a;
  font: 400 clamp(.875rem, 1.3cqw, 1.25rem)/1.4 var(--font-text);
}
.credit-quiz__options { gap: clamp(.5rem, .9cqw, .875rem); }
.credit-quiz__options button {
  min-height: clamp(3.5rem, 5.2cqw, 5rem);
  padding: .65rem clamp(.75rem, 1.35cqw, 1.375rem);
  border: 1.5px solid #cad9fa;
  border-radius: clamp(.625rem, 1cqw, 1rem);
  background: #fff;
  color: #081443;
  font: 700 clamp(1rem, 1.55cqw, 1.5rem)/1.2 var(--font-display);
}
.credit-quiz__options button span {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(2rem, 2.9cqw, 2.75rem);
  width: clamp(2rem, 2.9cqw, 2.75rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8f7f4;
  color: #b98b34;
  font: 400 clamp(1.4rem, 2cqw, 2rem)/1 var(--font-text);
}
.credit-quiz__options button[aria-pressed='true'] {
  border-color: #2e70f0;
  background: #f1f5ff;
  color: #081443;
  box-shadow: 0 0 0 2px rgb(46 112 240 / .12);
}
.credit-quiz__options button[aria-pressed='true'] span { color: #b98b34; }
.credit-quiz__next {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: clamp(1rem, 1.6cqw, 1.5rem) 0 0;
  color: #6c7a9a;
  font: 400 clamp(.8125rem, 1.1cqw, 1rem)/1.4 var(--font-text);
}
.credit-quiz__info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.375rem;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 700 .875rem/1 var(--font-text);
}
.credit__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 1.2cqw, 1.125rem);
  min-height: 3.75rem;
  margin: 0;
  padding: clamp(1rem, 1.7cqw, 1.625rem) 0 0;
  border-top: 1px solid #dbe2ef;
  color: #6c7a9a;
  font: 400 clamp(.75rem, 1.03cqw, 1rem)/1.4 var(--font-text);
  text-align: center;
}
.credit__lock { flex-basis: 1.375rem; height: 1.375rem; background: #bf903c; }

@container norcred (width >= 64rem) {
  /* One compact task beside the advisor, not a viewport-sized form panel. */
  .credit__form {
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.125rem;
    box-shadow: 0 12px 32px rgb(41 66 112 / .07);
  }
  .credit__form-intro { gap: .75rem; }
  .credit__form-icon { flex-basis: 2.5rem; width: 2.5rem; }
  .credit__guidance { margin: 0; padding: 0; font-size: 1rem; line-height: 1.3; }
  .credit__form-subtitle { margin-top: .25rem; font-size: .8125rem; }
  .credit-quiz__header { min-height: 0; margin-top: .875rem; padding-bottom: .75rem; gap: .875rem; }
  .credit-quiz__progress { height: 4px; margin-bottom: 0; }
  .credit-quiz__progress i { width: 12px; height: 12px; border-width: 2px; }
  .credit-quiz__progress[aria-valuenow='1'] i:nth-of-type(1),
  .credit-quiz__progress[aria-valuenow='2'] i:nth-of-type(2),
  .credit-quiz__progress[aria-valuenow='3'] i:nth-of-type(3) { width: 17px; height: 17px; }
  .credit-quiz__counter { font-size: .75rem; }
  .credit-quiz__stage { min-height: 0; padding: 1rem 0; }
  .credit-quiz__title { font-size: 1.375rem; line-height: 1.2; }
  .credit-quiz__hint { margin: .375rem 0 .875rem; font-size: .875rem; }
  .credit-quiz__options { gap: .5rem; }
  .credit-quiz__options button { min-height: 3rem; padding: .5rem .875rem; font-size: 1rem; border-radius: .625rem; }
  .credit-quiz__options button span { flex-basis: 1.75rem; width: 1.75rem; font-size: 1.25rem; }
  .credit-quiz__next { display: flex; margin-top: .75rem; gap: .5rem; font-size: .75rem; }
  .credit-quiz__info-icon { flex-basis: 1rem; width: 1rem; height: 1rem; border-width: 1px; font-size: .6875rem; }
  .credit__field { min-height: 3rem; }
  .credit__user { flex-basis: 2.75rem; height: 1.25rem; mask-size: 1.25rem; }
  .credit__field input { height: 1.5rem; font-size: 1rem; padding-inline: .75rem; }
  .credit__consent { margin-top: .75rem; }
  .credit__consent p { font-size: .8125rem; line-height: 1.5; }
  .credit__submit { min-height: 3rem; margin-top: .875rem; font-size: 1rem; gap: .875rem; }
  .credit__arrow { width: 1.25rem; height: 1.25rem; }
  .credit__privacy { min-height: 0; margin: 0; padding-top: .875rem; gap: .5rem; font-size: .75rem; line-height: 1.4; }
  .credit__lock { flex-basis: 1rem; height: 1rem; }
}
@container norcred (48rem <= width < 64rem) {
  .credit__form { padding: 1.25rem; }
  .credit__form-icon { flex-basis: 2.75rem; width: 2.75rem; }
  .credit__guidance { font-size: 1rem; }
  .credit__form-subtitle { font-size: .8125rem; }
  .credit-quiz__stage { min-height: 20rem; }
  .credit-quiz__title { font-size: 1.375rem; }
  .credit-quiz__options button { min-height: 3.5rem; font-size: 1rem; }
}
@container norcred (width < 48rem) {
  .credit__form { padding: clamp(1rem, 4.5cqw, 1.5rem); background: #fff; }
  .credit__form-icon { flex-basis: 2.625rem; width: 2.625rem; }
  .credit__guidance { font-size: clamp(.9375rem, 3.7cqw, 1.125rem); }
  .credit__form-subtitle { font-size: .8125rem; }
  .credit-quiz__header { min-height: 3.75rem; margin-top: .875rem; padding-bottom: .75rem; gap: .625rem; }
  .credit-quiz__back { font-size: .75rem; }
  .credit-quiz__back span { font-size: 1rem; }
  .credit-quiz__progress { margin-right: 5px; }
  .credit-quiz__counter { font-size: .75rem; }
  .credit-quiz__stage { min-height: 20rem; padding-top: 1.25rem; }
  .credit-quiz__title { font-size: clamp(1.25rem, 5.2cqw, 1.5rem); }
  .credit-quiz__hint { font-size: .875rem; margin: .4rem 0 1rem; }
  .credit-quiz__options button { min-height: 3.5rem; padding: .5rem .625rem; font-size: clamp(.9375rem, 3.8cqw, 1.125rem); }
  .credit-quiz__options button span { flex-basis: 1.75rem; width: 1.75rem; font-size: 1.375rem; }
  .credit-quiz__next { font-size: .75rem; gap: .5rem; }
  .credit-quiz__info-icon { flex-basis: 1.25rem; width: 1.25rem; height: 1.25rem; }
  .credit__privacy { min-height: 3.5rem; margin: 0; padding-top: 1rem; font-size: .75rem; }
  .credit__lock { flex-basis: 1.125rem; height: 1.125rem; }
}
@container norcred (width < 23rem) {
  .credit-quiz__options button { gap: .25rem; padding-inline: .5rem; font-size: .875rem; letter-spacing: -.025em; }
  .credit-quiz__options button span { flex-basis: 1.5rem; width: 1.5rem; font-size: 1.125rem; }
}
@container norcred (width < 14rem) {
  .credit-quiz__header { flex-wrap: wrap; }
  .credit-quiz__progress, .credit-quiz__counter, .credit-quiz__back { flex-basis: 100%; }
  .credit-quiz__back { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .credit-quiz__progress-fill, .credit-quiz__progress i { transition: none; }
}
@media (forced-colors: active) {
  .credit__form, .credit-quiz__options button { border-color: CanvasText; }
  .credit-quiz__progress { border: 0; background: CanvasText; }
  .credit-quiz__progress-fill, .credit-quiz__progress i { background: Highlight; }
}
