/* The same route line fills as the visitor moves from questions to a receipt. */
#apply [hidden] { display: none; }
.mobile-action:not(.is-visible), body:has(#apply:focus-within) .mobile-action { visibility: hidden; }
#apply .form-heading { align-items: baseline; margin-bottom: 14px; }
#apply .form-heading span { font-size: .875rem; }
#apply #stepStatus { color: #315765; font-variant-numeric: tabular-nums; }
#apply .progress-bar { gap: 5px; margin-bottom: 1.75rem; }
#apply .progress-step {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: #d8e6e9;
}
#apply .progress-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #17667b;
  transform: scaleX(0);
  transform-origin: left;
}
#apply .progress-step:is(.active,.done)::after { transform: scaleX(1); }
#apply .pill-grid.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
#apply .pill-option,
#apply .pill-option.selected {
  padding: 1rem .75rem;
  min-height: 64px;
  font: inherit;
  font-weight: 650;
  text-align: center;
}
#apply .pill-option.selected { color: #093f4d; background: #e0f3f4; border-color: #217389; }
#apply .choose-hint { color: #943d18; font-size: 1rem; }
#apply :is(a,button,input):focus-visible { outline: 3px solid #136587; outline-offset: 3px; }
.request-ticket {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.2rem 1.35rem;
  border-radius: 14px;
  background: linear-gradient(112deg,#102f42,#165568);
  color: #fff;
}
.request-ticket::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at 105% 150%,transparent 0 17px,#bfe9ea2b 18px 19px,transparent 20px 32px);
  mask-image: linear-gradient(to right,transparent 30%,#000);
}
#summaryAmount { display: block; font-size: clamp(1.8rem,5vw,2.4rem); line-height: 1.2; letter-spacing: -.045em; }
.ticket-caption { color: #cae9ec; font-size: .875rem; font-weight: 600; letter-spacing: .065em; }
.ticket-spark,.receipt-mark {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  color: #cef6df; border: 1.5px solid #9ed5cb;
}
.ticket-spark svg,.receipt-mark svg { width: 65%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.request-receipt { padding-block: .5rem; }
.receipt-mark { margin-bottom: 1.1rem; width: 60px; height: 60px; background: #dcf4e8; color: #125b50; }
.request-receipt p { margin-bottom: 1rem; }
.request-receipt dl { border-block: 1px solid #cddee1; margin: 1.4rem 0 1rem; }
.request-receipt dl div { padding: .85rem 0; }
.request-receipt dl div + div { border-top: 1px solid #e0e9eb; }
.request-receipt dt { font-size: .9rem; color: #40616d; }
.request-receipt dd { margin: .25rem 0 0; line-height: 1.4; font-weight: 650; }
.request-receipt dd small { display: block; margin-top: .25rem; font-size: .94rem; font-weight: 450; }
.request-receipt .receipt-reference,.request-receipt .receipt-fine { font-size: .875rem; color: #415b66; }
@media (prefers-reduced-motion: no-preference) {
  #apply .progress-step::after { transition: transform .24s ease-out; }
  .active .request-ticket::after { animation: ticket-arrive .55s ease-out both; }
  .active .ticket-spark path,.active .receipt-mark path { stroke-dasharray: 40; animation: receipt-check .44s ease-out both; }
  .active .receipt-mark { animation: receipt-ring .65s ease-out; }
}
@keyframes ticket-arrive { from { transform: translateX(12px); opacity: .3; } }
@keyframes receipt-check { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes receipt-ring { from { box-shadow: 0 0 0 0 #80b99a88; } to { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) {
  #apply .step-content.active { animation: none; }
}
