/* Rider application: wide card + five-step wizard. Square corners, same red / yellow / dark palette. */
.au--wide .au__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .au--wide .au__grid { grid-template-columns: 340px minmax(0, 1fr); gap: 4rem; } .au--wide .au__intro { position: sticky; top: 2rem; } .au--wide .au__intro h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); } }
.au--wide .au__card { max-width: 820px; justify-self: center; width: 100%; }
@media (max-width: 560px) { .au--wide .au__card { padding: 1.4rem 1.1rem; } }

/* step indicator */
.wz-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 .9rem; padding: 0; counter-reset: wz; }
.wz-steps li { position: relative; text-align: center; font-size: .76rem; font-weight: 700; color: var(--gray, #6b7280); padding-top: 2.5rem; }
.wz-steps li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: #e3e5ea; color: #6b7280; font-weight: 800; z-index: 1; border-radius: 50%; font-size: .9rem; }
.wz-steps li::after { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e3e5ea; }
.wz-steps li:first-child::after { display: none; }
.wz-steps em { font-style: normal; display: block; line-height: 1.2; padding: 0 .15rem; }
.wz-steps li.is-done span { background: var(--primary); color: #fff; font-size: 0; }
.wz-steps li.is-done span::before { content: "\2713"; font-size: .95rem; }
.wz-steps li.is-done::after, .wz-steps li.is-current::after { background: var(--primary); }
.wz-steps li.is-current { color: var(--dark); }
.wz-steps li.is-current span { background: var(--secondary); color: #0a0a0f; box-shadow: 0 0 0 4px rgba(255, 204, 0, .3); }
.wz-js .wz-steps li.is-done { cursor: pointer; }
.wz-bar { height: 4px; background: #e3e5ea; margin-bottom: 1.6rem; display: none; }
.wz-js .wz-bar { display: block; }
.wz-bar i { display: block; height: 100%; width: 20%; background: var(--primary); transition: width .25s; }
@media (max-width: 560px) { .wz-steps em { display: none; } .wz-steps li { padding-top: 2.3rem; } }
.wz-steps { display: none; } .wz-js .wz-steps { display: grid; }

/* step panels */
.wz-step { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.wz-step legend { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; padding: 0; margin: 0 0 .3rem; color: var(--dark); }
.wz-step[hidden] { display: none !important; }
.wz-help { color: var(--gray); margin: 0 0 1.3rem; font-size: .96rem; }
.wz-sub { font-size: 1rem; margin: 1.4rem 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.wz-grid { display: grid; gap: 0 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .wz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wz-span { grid-column: 1 / -1; } }
.wz-grid > .wz-motor, .wz-motor .wz-grid { min-width: 0; }
[data-motor][hidden] { display: none !important; }
.wz-gap { display: none; }
.field.has-error input, .field.has-error select, [data-doc].has-error .doc__box { border-color: #b3354a; }

/* document pickers */
.docs { display: grid; gap: .9rem; margin-top: .6rem; }
@media (min-width: 640px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs > [data-motor] { grid-column: 1 / -1; }
.doc { position: relative; }
.doc__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.doc__box { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem; border: 2px dashed #cdd1d9; background: #fafbfc; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.doc__box:hover { border-color: var(--primary); background: #fff; }
.doc__input:focus-visible + .doc__box { outline: 3px solid var(--secondary); outline-offset: 2px; }
.doc__ico, .doc__prev { width: 52px; height: 52px; object-fit: cover; grid-column: 1; grid-row: 1; }
.doc__ico { display: grid; place-items: center; background: var(--plum-tint, #f1f2f5); color: var(--primary); font-size: 1.2rem; }
.doc__prev:not([hidden]) + .doc__ico { visibility: hidden; }
.doc__t strong { display: block; font-size: .95rem; color: var(--dark); }
.doc__t strong em { font-style: normal; font-weight: 500; color: #8b909c; font-size: .8rem; margin-left: .3rem; }
.doc__t small { display: block; color: var(--gray); font-size: .82rem; line-height: 1.3; }
.doc__file { display: block; color: #1d5a4c; font-size: .8rem; font-weight: 700; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc__pick { background: var(--dark); color: #fff; font-size: .82rem; font-weight: 700; padding: .45rem .85rem; }
.doc.has-file .doc__box { border-style: solid; border-color: #2e7d6b; background: #f2faf7; }
.doc.has-file .doc__pick { background: #2e7d6b; }
.doc .field__error { margin-top: .35rem; }

/* review */
.wz-summary { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 1rem; margin: 0 0 1.4rem; padding: .2rem 1.2rem; background: #fff; border: 1px solid var(--line, #e3e5ea); }
.wz-summary dt, .wz-summary dd { margin: 0; padding: .8rem 0; }
.wz-summary dt { color: var(--gray); font-weight: 600; } .wz-summary dd { font-weight: 700; word-break: break-word; }
.wz-summary dt:nth-of-type(n+2), .wz-summary dt:nth-of-type(n+2) + dd { border-top: 1px solid #eceef2; }
@media (max-width: 480px) { .wz-summary { grid-template-columns: 1fr; gap: 0; } .wz-summary dt { padding: .75rem 0 .1rem; font-size: .82rem; } .wz-summary dd { padding: 0 0 .75rem; } .wz-summary dt:nth-of-type(n+2) { border-top: 1px solid #eceef2; } .wz-summary dt:nth-of-type(n+2) + dd { border-top: 0; } }
.wz-agree .field { margin-bottom: .8rem; }
.wz-agree .check { font-weight: 500; font-size: .94rem; }

/* buttons */
.wz-nav { display: flex; align-items: center; gap: .8rem; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.wz-count { color: var(--gray); font-weight: 600; font-size: .88rem; flex: 1; text-align: center; }
.wz-nav .btn { min-width: 130px; }
.wz-nav [hidden] { display: none !important; }
.wz-nav [data-wz-back][hidden] + .wz-count { text-align: left; }
.wz-nav i { margin: 0 .2rem; }
html:not(.wz-js) .wz-nav [data-wz-back], html:not(.wz-js) .wz-nav [data-wz-next], html:not(.wz-js) .wz-count { display: none; }
html:not(.wz-js) .wz-step { margin-bottom: 2.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
@media (max-width: 480px) { .wz-nav .btn { min-width: 0; flex: 1; } .wz-count { display: none; } }
.au__card .wz-nav .btn--ghost { color: var(--dark); }

/* Fit the application on one screen (desktop): the page itself never scrolls. Spacing is tightened, and if a step is still taller
   than the window (small laptop screens), only the form card scrolls, with the Continue bar kept in view. */
@media (min-width: 1100px) {
  .au--wide.au--fit { height: 100vh; min-height: 0; }
  .au--wide.au--fit .au__grid { min-height: 0; align-items: stretch; padding-top: .8rem; padding-bottom: .8rem; }
  .au--wide.au--fit .au__intro { position: static; }
  .au--wide.au--fit .au__card { min-height: 0; max-height: 100%; overflow-y: auto; padding: 1.2rem 1.7rem 0; align-self: center; scrollbar-width: thin; }
  .au--wide.au--fit .au__card h1 { font-size: 1.4rem; }
  .au--wide.au--fit .au__card .muted { margin-bottom: .6rem; font-size: .9rem; }
  .au--wide.au--fit .wz-steps { margin-bottom: .5rem; }
  .au--wide.au--fit .wz-steps li { padding-top: 2.1rem; font-size: .72rem; }
  .au--wide.au--fit .wz-steps li span { width: 28px; height: 28px; font-size: .82rem; }
  .au--wide.au--fit .wz-steps li::after { top: 13px; }
  .au--wide.au--fit .wz-bar { margin-bottom: .8rem; }
  .au--wide.au--fit .wz-step legend { font-size: 1.1rem; margin-bottom: .1rem; }
  .au--wide.au--fit .wz-sub { margin: .5rem 0 .3rem; padding-bottom: .25rem; font-size: .92rem; }
  .au--wide.au--fit .wz-help { margin-bottom: .5rem; font-size: .88rem; line-height: 1.35; }
  .au--wide.au--fit .field { margin-bottom: .6rem; }
  .au--wide.au--fit .field input, .au--wide.au--fit .field select { padding-top: .6rem; padding-bottom: .6rem; }
  .au--wide.au--fit .field__help { margin-top: .2rem; font-size: .78rem; }
  .au--wide.au--fit .wz-nav { position: sticky; bottom: 0; background: #fff; margin: 0 -1.7rem; padding: .7rem 1.7rem; z-index: 2; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .au--wide.au--fit .au__intro p, .au--wide.au--fit .au__chips { display: none; }
  .au--wide.au--fit .wz-help { display: none; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .au--wide.au--fit .au__card { padding-top: .9rem; }
  .au--wide.au--fit .au__card h1 { font-size: 1.25rem; }
  .au--wide.au--fit .au__card .muted { margin-bottom: .35rem; font-size: .85rem; }
  .au--wide.au--fit .wz-steps li { padding-top: 1.9rem; }
  .au--wide.au--fit .wz-steps li span { width: 24px; height: 24px; font-size: .75rem; }
  .au--wide.au--fit .wz-steps li::after { top: 11px; }
  .au--wide.au--fit .wz-bar { margin-bottom: .5rem; }
  .au--wide.au--fit .wz-step legend { font-size: 1.02rem; }
  .au--wide.au--fit .wz-sub { margin: .3rem 0 .2rem; }
  .au--wide.au--fit .field { margin-bottom: .4rem; }
  .au--wide.au--fit .field label { margin-bottom: .2rem; font-size: .86rem; }
  .au--wide.au--fit .field input, .au--wide.au--fit .field select { padding-top: .45rem; padding-bottom: .45rem; font-size: .95rem; }
  .au--wide.au--fit .wz-nav { padding-top: .5rem; padding-bottom: .5rem; }
  .au--wide.au--fit .wz-nav .btn { padding-top: .6rem; padding-bottom: .6rem; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .au--wide.au--fit .au__grid { padding-top: .4rem; padding-bottom: .5rem; }
  .au--wide.au--fit .field { margin-bottom: .32rem; }
  .au--wide.au--fit .wz-sub { margin: .2rem 0 .1rem; padding-bottom: .15rem; }
}
@media (min-width: 1100px) and (max-height: 740px) {
  .au--wide.au--fit .wz-bar { display: none; }
  .au--wide.au--fit .wz-steps { margin-bottom: .3rem; }
  .au--wide.au--fit .wz-steps li { padding-top: 1.75rem; }
  .au--wide.au--fit .au__foot { padding: .6rem 0; }
  .au--wide.au--fit .au__foot-main { gap: .4rem; }
}
