:root{
  --fare-red:#df151d;
  --fare-red-dark:#990710;
  --fare-blue:#145bad;
  --fare-green:#176f3a;
  --fare-ink:#172233;
  --fare-muted:#5f6978;
  --fare-line:#d4dde7;
  --fare-soft:#f2f5f8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--fare-ink);
  background:
    radial-gradient(circle at 94% 0%,rgba(223,21,29,.12),transparent 35%),
    linear-gradient(180deg,#fbfcfd 0%,#edf2f6 100%);
  font-family:Arial,"Helvetica Neue",sans-serif;
}
.fare-page{
  width:min(1120px,calc(100% - 20px));
  margin:15px auto 55px;
}
.fare-hero{
  padding:clamp(28px,5vw,54px);
  border-radius:22px;
  color:#fff;
  background:linear-gradient(135deg,var(--fare-red-dark),var(--fare-red));
  box-shadow:0 18px 44px rgba(96,4,11,.20);
}
.fare-hero__eyebrow{
  display:inline-flex;
  margin-bottom:12px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.38);
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.fare-hero h1{
  margin:0;
  max-width:800px;
  font-size:clamp(38px,6vw,70px);
  line-height:.98;
  letter-spacing:-.05em;
}
.fare-hero p{
  max-width:800px;
  margin:17px 0 0;
  font-size:clamp(15px,2vw,19px);
  line-height:1.55;
}
.unite-pay-page-tabs{
  position:relative;
  z-index:5;
  display:flex;
  width:100%;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 18px;
  padding:9px;
  border:1px solid #cbd5df;
  border-radius:14px;
  background:#fff;
  box-shadow:0 7px 20px rgba(23,34,51,.08);
}
.unite-pay-page-tabs a{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  justify-content:center;
  padding:9px 13px;
  border-radius:9px;
  color:#172233;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}
.unite-pay-page-tabs a:hover,
.unite-pay-page-tabs a:focus-visible,
.unite-pay-page-tabs a[aria-current="page"]{
  color:#fff;
  background:var(--fare-red);
  outline:none;
}
.fare-card{
  margin-top:14px;
  padding:clamp(19px,3vw,31px);
  border:1px solid var(--fare-line);
  border-radius:19px;
  background:#fff;
  box-shadow:0 9px 28px rgba(23,34,51,.07);
}
.fare-card h2{
  margin:0 0 8px;
  font-size:clamp(25px,3vw,38px);
  letter-spacing:-.03em;
}
.fare-card>p{
  margin:0;
  color:var(--fare-muted);
  line-height:1.55;
}
.step{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--fare-line);
}
.step:first-of-type{
  padding-top:0;
  border-top:0;
}
.step-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:11px;
}
.step-number{
  display:inline-flex;
  width:31px;
  height:31px;
  flex:0 0 31px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  background:var(--fare-red);
  font-weight:900;
}
.step-title strong{font-size:18px}
.letter-grid{
  display:grid;
  grid-template-columns:repeat(13,minmax(42px,1fr));
  gap:8px;
}
.letter-button{
  min-height:45px;
  border:1px solid #bcc8d5;
  border-radius:10px;
  color:var(--fare-ink);
  background:var(--fare-soft);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.letter-button:hover,
.letter-button:focus-visible,
.letter-button.is-active{
  border-color:var(--fare-red);
  color:#fff;
  background:var(--fare-red);
  outline:none;
}
.letter-button:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.station-field{
  display:grid;
  gap:7px;
  max-width:620px;
}
.station-field label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.station-field select{
  width:100%;
  min-height:51px;
  padding:10px 12px;
  border:1px solid #afbdcb;
  border-radius:11px;
  color:var(--fare-ink);
  background:#fff;
  font:inherit;
  font-size:16px;
  font-weight:800;
}
.station-field select:focus{
  border-color:var(--fare-blue);
  outline:3px solid rgba(20,91,173,.14);
}
.station-field select:disabled{
  color:#838d99;
  background:#edf1f4;
}
.letter-help{
  margin-top:8px;
  color:var(--fare-muted);
  font-size:13px;
}
.result{
  display:none;
  grid-template-columns:minmax(0,1fr) minmax(210px,.45fr);
  gap:12px;
  margin-top:13px;
}
.result.is-visible{display:grid}
.result-box{
  min-height:125px;
  padding:19px;
  border:1px solid var(--fare-line);
  border-radius:15px;
  background:var(--fare-soft);
}
.result-box span{
  display:block;
  color:var(--fare-muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.result-box strong{
  display:block;
  margin-top:8px;
  font-size:clamp(25px,4vw,42px);
  line-height:1.05;
  overflow-wrap:anywhere;
}
.result-box.payment{
  border-color:var(--fare-red);
  color:#fff;
  background:linear-gradient(135deg,var(--fare-red-dark),var(--fare-red));
}
.result-box.payment span,
.result-box.payment strong{color:#fff}
.notice{
  margin-top:15px;
  padding:14px 16px;
  border-left:5px solid var(--fare-blue);
  border-radius:11px;
  background:#eaf3ff;
  line-height:1.55;
}
.notice strong{
  display:block;
  margin-bottom:3px;
}
.notice.green{
  border-left-color:var(--fare-green);
  background:#eaf7ef;
}
.clear-button{
  margin-top:13px;
  min-height:42px;
  padding:9px 14px;
  border:1px solid #aebac7;
  border-radius:9px;
  color:var(--fare-ink);
  background:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.clear-button:hover,
.clear-button:focus-visible{
  border-color:var(--fare-red);
  color:var(--fare-red);
  outline:none;
}
.source-note{
  margin-top:15px;
  padding:15px;
  border-radius:12px;
  color:#3d4857;
  background:#e9eef3;
  font-size:13px;
  line-height:1.5;
}
@media(max-width:920px){
  .letter-grid{grid-template-columns:repeat(9,minmax(42px,1fr))}
}
@media(max-width:650px){
  .fare-page{
    width:calc(100% - 12px);
    margin-top:7px;
  }
  .fare-hero{border-radius:16px}
  .unite-pay-page-tabs{
    display:grid;
    grid-template-columns:1fr;
  }
  .unite-pay-page-tabs a{width:100%}
  .letter-grid{grid-template-columns:repeat(5,minmax(42px,1fr))}
  .result{grid-template-columns:1fr}
}
