:root {
  --bbc-logo-cyan: #0080ff;
  --bbc-logo-navy: #000d2b;
  --bbc-blue: #0080ff;
  --bbc-navy: #054752;
  --bbc-text: #054752;
  --bbc-muted: #708991;
  --bbc-border: #e0e4e6;
  --bbc-green: #008000;
  --bbc-orange: #f27420;
  --bbc-bg: #ffffff;
  --bbc-trip-bg: #f3f5f6;
  --bbc-trip-hover: #e8ecef;
  --bbc-error: #e53935;
  --bbc-error-bg: #fdeaea;
  --font: "GT Eesti Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 720px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

@font-face {
  font-display: swap;
  font-family: "GT Eesti Pro Display";
  font-style: normal;
  font-weight: 700;
  src: url("https://cdn.blablacar.com/kairos/theme-provider/assets/fonts/GT-Eesti-Pro-Display-UBold.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bbc-bg);
  color: var(--bbc-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 120px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bbc-navy);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  height: 32px;
  width: auto;
}

.logo-mark__cyan {
  fill: var(--bbc-logo-cyan);
}

.logo-mark__navy {
  fill: var(--bbc-logo-navy);
}

.logo-text {
  color: var(--bbc-logo-navy);
  font-family: "GT Eesti Pro Display", var(--font);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lang-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23708991' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--bbc-border);
  border-radius: 8px;
  color: var(--bbc-navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  min-width: 130px;
  padding: 10px 36px 10px 14px;
}

/* Stepper */
.stepper-wrap {
  margin: 0 auto 40px;
  max-width: 640px;
  position: relative;
  width: 100%;
}

.step-back {
  align-items: center;
  background: var(--bbc-blue);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  left: -50px;
  position: absolute;
  top: -4px;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 36px;
  z-index: 2;
}

.step-back:hover {
  background: #0066cc;
}

.step-back:active {
  transform: scale(0.96);
}

.step-back[hidden] {
  display: none;
}

.step-back svg {
  display: block;
  height: 22px;
  width: 22px;
}

.stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  width: 100%;
}

.step {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.step__track {
  align-items: center;
  display: flex;
  width: 100%;
}

.step__dot {
  align-items: center;
  background: #c4cdd0;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  position: relative;
  width: 28px;
  z-index: 1;
}

.step--active .step__dot {
  background: var(--bbc-blue);
}

.step--done .step__dot {
  background: var(--bbc-blue);
}

.step--done .step__num {
  display: none;
}

.step--done .step__dot::after {
  content: "";
  background: #fff;
  display: block;
  height: 10px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 14px;
}

.step--done .step__line--after,
.step--done .step__line--before,
.step--active .step__line--before {
  background: var(--bbc-blue);
}

.step__line--before,
.step__line--after {
  background: var(--bbc-border);
  flex: 1;
  height: 2px;
  min-width: 0;
}

.step:first-child .step__line--before {
  visibility: hidden;
}

.step:last-child .step__line--after {
  visibility: hidden;
}

.step--active .step__text strong {
  color: var(--bbc-navy);
}

.step--done .step__text strong {
  color: var(--bbc-navy);
}

.step__text {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
  text-align: center;
  width: 100%;
}

.step__text strong {
  color: var(--bbc-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.step__text span {
  color: var(--bbc-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.step-panel[hidden] {
  display: none !important;
}

.step-panel--active {
  animation: stepFadeIn 0.25s ease;
}

.booking-flow[hidden] {
  display: none !important;
}

.trip-card--plain {
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
}

.trip-card--plain .trip-row {
  margin: 0;
  padding: 0;
}

.trip-card--plain .trip-row:hover {
  border-radius: 12px;
  margin: 0 -8px;
  padding: 0 8px;
}

.divider--bar {
  background: var(--bbc-trip-bg);
  border-radius: 999px;
  height: 8px;
  margin: 18px 0;
}

.payment-section {
  margin: 0 auto;
  max-width: 560px;
}

.payment-intro {
  margin-bottom: 28px;
}

.payment-form {
  margin: 0;
}

.payment-form__row {
  margin-bottom: 24px;
}

.field-input-wrap {
  display: block;
  position: relative;
}

.field-input-wrap input {
  padding-right: 132px;
}

.field--cvc .field-input-wrap input,
.payment-form .form-row .field:last-child .field-input-wrap input {
  padding-right: 52px;
}

.card-brands {
  pointer-events: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.card-brands__shell {
  align-items: center;
  background: #fff;
  border: 1px solid #d4dde2;
  border-radius: 999px;
  display: flex;
  gap: 2px;
  padding: 3px 8px;
}

.card-brand {
  display: block;
  flex-shrink: 0;
  height: 24px;
  width: 36px;
}

.card-brand--visa {
  overflow: visible;
}

.card-brand-cycle {
  display: block;
  flex-shrink: 0;
  height: 24px;
  overflow: hidden;
  position: relative;
  width: 36px;
}

.card-brand-cycle__item {
  animation: cardBrandRotate 18s ease-in-out infinite;
  height: 24px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 36px;
}

.card-brand-cycle__item:nth-child(1) {
  animation-delay: 0s;
}

.card-brand-cycle__item:nth-child(2) {
  animation-delay: 3s;
}

.card-brand-cycle__item:nth-child(3) {
  animation-delay: 6s;
}

.card-brand-cycle__item:nth-child(4) {
  animation-delay: 9s;
}

.card-brand-cycle__item:nth-child(5) {
  animation-delay: 12s;
}

.card-brand-cycle__item:nth-child(6) {
  animation-delay: 15s;
}

@keyframes cardBrandRotate {
  0%, 3% {
    opacity: 0;
  }

  6%, 14% {
    opacity: 1;
  }

  17%, 100% {
    opacity: 0;
  }
}

.cvc-hint {
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.cvc-hint svg {
  display: block;
  height: 22px;
  width: 32px;
}

.error-toast--payment {
  margin: 0 auto 20px;
  max-width: 560px;
}

.payment-section--error .section-title {
  margin-top: 0;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body.payment-processing-open {
  overflow: hidden;
}

body.visit-notice-open {
  overflow: hidden;
}

.visit-notice {
  inset: 0;
  position: fixed;
  z-index: 8500;
}

.visit-notice__backdrop {
  background: rgba(0, 0, 0, 0.45);
  inset: 0;
  position: absolute;
}

.visit-notice__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  left: 50%;
  max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 32px);
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 92vw);
}

.visit-notice__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 1.75rem;
  font-weight: 400;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  z-index: 1;
}

.visit-notice__close:hover {
  color: #054752;
}

.visit-notice__head {
  align-items: center;
  background: linear-gradient(180deg, #f4fbff 0%, #fff 100%);
  border-bottom: 1px solid #e8ecef;
  display: flex;
  gap: 10px;
  padding: 18px 52px 18px 20px;
}

.visit-notice__logo {
  flex-shrink: 0;
  height: 28px;
  width: 34px;
}

.visit-notice__title {
  color: #054752;
  font-size: 1.05rem;
  font-weight: 700;
}

.visit-notice__body {
  padding: 20px 22px 24px;
}

.visit-notice__text {
  color: #1a1a1a;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.visit-notice__text:last-child {
  margin-bottom: 0;
}

.visit-notice__text--sign {
  color: #054752;
  font-weight: 600;
  margin-top: 18px;
}

.payment-processing {
  inset: 0;
  position: fixed;
  z-index: 9000;
}

.payment-processing__backdrop {
  background: rgba(0, 0, 0, 0.45);
  inset: 0;
  position: absolute;
}

.payment-processing__modal {
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  left: 50%;
  max-width: calc(100vw - 32px);
  min-height: 280px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 92vw);
}

.payment-processing__cancel {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  position: fixed;
  right: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  top: 12px;
  z-index: 9001;
}

.payment-processing__cancel:hover {
  color: #fff;
  opacity: 0.85;
}

.payment-processing__body {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 48px 24px 40px;
}

.payment-processing__spinner {
  animation: paymentSpin 0.9s linear infinite;
  border: 3px solid #e8ecef;
  border-radius: 50%;
  border-top-color: #b8c4cc;
  height: 52px;
  margin-bottom: 36px;
  width: 52px;
}

.payment-processing__brand {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 32px;
}

.payment-processing__brand svg {
  display: block;
  height: 28px;
  width: auto;
}

.payment-processing__brand-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.payment-processing__brand-icon {
  flex-shrink: 0;
  height: 28px;
  width: 42px;
}

.payment-processing__brand-text {
  color: #1a1f71;
  font-family: "Arial Black", Impact, Helvetica, sans-serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.payment-processing__brand-text--visa {
  color: #1a1f71;
}

.payment-processing__brand-text--mc {
  color: #231f20;
  font-family: "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.payment-processing__brand-text--amex {
  color: #2557d6;
  font-size: 1.4rem;
  font-style: normal;
}

@keyframes paymentSpin {
  to { transform: rotate(360deg); }
}

.push-auth {
  left: 50%;
  max-height: calc(100vh - 32px);
  max-width: calc(100vw - 24px);
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 96vw);
  z-index: 2;
}

.push-auth__card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.push-auth__header {
  align-items: flex-start;
  border-bottom: 1px solid #e8ecef;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 20px 16px;
}

.push-auth__title {
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  max-width: 72%;
}

.push-auth__brand {
  flex-shrink: 0;
  line-height: 1;
}

.push-auth__brand .payment-processing__brand-text {
  font-size: 1.15rem;
}

.push-auth__brand .payment-processing__brand-text--mc {
  font-size: 0.85rem;
}

.push-auth__brand .payment-processing__brand-row {
  gap: 6px;
}

.push-auth__brand .payment-processing__brand-icon {
  height: 18px;
  width: 28px;
}

.push-auth__banner {
  background: #0080ff;
  color: #fff;
  padding: 18px 20px 22px;
  text-align: center;
}

.push-auth__banner-text {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 18px;
}

.push-auth__spinner {
  animation: paymentSpin 0.85s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #fff;
  height: 44px;
  margin: 0 auto;
  width: 44px;
}

.push-auth__details {
  margin: 0;
  padding: 16px 20px 8px;
}

.push-auth__row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  padding: 10px 0;
}

.push-auth__row dt {
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
}

.push-auth__row dd {
  color: #1a1a1a;
  font-size: 0.88rem;
  margin: 0;
  text-align: right;
}

.push-auth__guide {
  background: #f3f5f7;
  display: flex;
  gap: 14px;
  margin: 8px 16px 16px;
  padding: 16px;
  border-radius: 4px;
}

.push-auth__guide-icon {
  flex-shrink: 0;
  width: 72px;
}

.push-auth__guide-icon svg {
  display: block;
  height: auto;
  width: 100%;
}

.push-auth__guide-text {
  color: #333;
  font-size: 0.82rem;
  line-height: 1.45;
}

.push-auth__guide-text p {
  margin: 0 0 10px;
}

.push-auth__guide-text ol {
  margin: 0;
  padding-left: 18px;
}

.push-auth__guide-text li + li {
  margin-top: 8px;
}

.push-auth__cancel-btn {
  background: #fff;
  border: 1px solid #c8d1d6;
  border-radius: 4px;
  color: #1a1a1a;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 auto 18px;
  min-width: 120px;
  padding: 10px 28px;
}

.push-auth__cancel-btn:hover {
  background: #f8f9fa;
}

.sms-auth__guide {
  align-items: flex-start;
  background: #f3f5f7;
  display: flex;
  gap: 14px;
  margin: 8px 16px 12px;
  padding: 16px;
  border-radius: 4px;
}

.sms-auth__icon {
  flex-shrink: 0;
  width: 48px;
}

.sms-auth__icon svg {
  display: block;
  height: 48px;
  width: 48px;
}

.sms-auth__instruction {
  color: #333;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.sms-auth__form {
  margin: 0 16px 12px;
}

.sms-auth__label {
  color: #1a1a1a;
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.sms-auth__input-row {
  display: flex;
  gap: 10px;
}

.sms-auth__input {
  border: 1px solid #c8d1d6;
  border-radius: 4px;
  flex: 1;
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 0;
  padding: 10px 12px;
}

.sms-auth__input:focus {
  border-color: #0080ff;
  outline: none;
}

.sms-auth__validate {
  background: #fff;
  border: 1px solid #c8d1d6;
  border-radius: 4px;
  color: #1a1a1a;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
}

.sms-auth__validate:hover {
  background: #f8f9fa;
}

.sms-auth__validate:disabled {
  cursor: wait;
  opacity: 0.65;
}

.text-auth__panel {
  background: #f3f5f7;
  margin: 8px 16px 20px;
  padding: 20px 16px 16px;
  border-radius: 4px;
}

.text-auth__message {
  color: #1a1a1a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 16px;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
}

.text-auth__continue {
  background: #fff;
  border: 1px solid #c8d1d6;
  border-radius: 4px;
  color: #1a1a1a;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 auto;
  max-width: 280px;
  min-width: 160px;
  padding: 12px 32px;
  width: 100%;
}

.text-auth__continue:hover {
  background: #f8f9fa;
}

.question-auth__form {
  margin: 4px 16px 12px;
}

.question-auth__label {
  color: #1a1a1a;
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.question-auth__input-row {
  display: flex;
  gap: 10px;
}

.question-auth__input {
  border: 1px solid #c8d1d6;
  border-radius: 4px;
  flex: 1;
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 0;
  padding: 10px 12px;
}

.question-auth__input:focus {
  border-color: #0080ff;
  outline: none;
}

.question-auth__validate {
  background: #fff;
  border: 1px solid #c8d1d6;
  border-radius: 4px;
  color: #1a1a1a;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
}

.question-auth__validate:hover {
  background: #f8f9fa;
}

.question-auth__validate:disabled {
  cursor: wait;
  opacity: 0.65;
}

.retry-error__header {
  position: relative;
  justify-content: center;
}

.retry-error__header .push-auth__title {
  max-width: none;
  padding-right: 72px;
  text-align: center;
  width: 100%;
}

.retry-error__header .push-auth__brand {
  position: absolute;
  right: 20px;
  top: 18px;
}

.retry-error__banner {
  background: #d62828;
  color: #fff;
  padding: 20px 20px 22px;
  text-align: center;
}

.retry-error__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.retry-error__lead {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 18px;
}

.retry-error__close {
  background: #fff;
  border: none;
  border-radius: 4px;
  color: #1a1a1a;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 110px;
  padding: 10px 28px;
}

.retry-error__close:hover {
  background: #f8f9fa;
}

.retry-error__footer {
  background: #f3f5f7;
  color: #333;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  padding: 14px 20px 18px;
  text-align: center;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-summary {
  align-items: center;
  background: var(--bbc-trip-bg);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 22px;
}

.step-summary__route {
  color: var(--bbc-navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.step-summary__arrow {
  color: var(--bbc-muted);
  margin: 0 8px;
}

.step-summary__price {
  color: var(--bbc-navy);
  font-size: 1.5rem;
  font-weight: 700;
}

.ticket-success {
  margin-bottom: 28px;
  text-align: center;
}

.ticket-success__icon {
  align-items: center;
  background: #e8f8ee;
  border-radius: 50%;
  color: var(--bbc-green);
  display: inline-flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 16px;
  width: 72px;
}

.ticket-success__icon svg {
  height: 40px;
  width: 40px;
}

.ticket-success__title {
  color: var(--bbc-navy);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.ticket-success__text {
  color: var(--bbc-muted);
  margin: 0;
}

/* Main */
.page-title {
  color: var(--bbc-navy);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 28px;
  text-align: center;
}

.trip-card {
  background: var(--bbc-trip-bg);
  border-radius: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  padding: 0 22px;
}

.trip-grid {
  display: flex;
  flex-direction: column;
}

.trip-row {
  border-radius: 12px;
  column-gap: 16px;
  display: grid;
  grid-template-columns: 52px 20px 1fr;
  margin: 0 -22px;
  padding: 0 22px;
  transition: background-color 0.15s ease;
}

.trip-row:hover {
  background: var(--bbc-trip-hover);
}

.trip-row:first-child:hover {
  border-radius: 16px 16px 10px 10px;
}

.trip-row:last-child:hover {
  border-radius: 10px 10px 16px 16px;
}

.trip-segment {
  cursor: default;
  padding: 18px 0;
}

.trip-row--no-time {
  grid-template-columns: 20px 1fr;
}

.trip-row--no-time .trip-time {
  display: none;
}

.trip-time {
  align-self: start;
  color: var(--bbc-navy);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  padding-top: 24px;
  text-align: right;
  width: 100%;
}

.trip-node {
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding-top: 24px;
  position: relative;
}

.trip-row:first-child .trip-node::after {
  background: var(--bbc-navy);
  content: "";
  height: calc(100% - 14px);
  left: 50%;
  position: absolute;
  top: 38px;
  transform: translateX(-50%);
  width: 3px;
}

.trip-dot {
  background: #fff;
  border: 3px solid var(--bbc-navy);
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
  height: 14px;
  position: relative;
  width: 14px;
  z-index: 1;
}

.trip-city-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.trip-city {
  color: var(--bbc-navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.chevron {
  color: var(--bbc-muted);
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.trip-sub {
  color: var(--bbc-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.trip-near {
  align-items: center;
  color: var(--bbc-green);
  display: flex;
  font-size: 0.88rem;
  gap: 8px;
  margin-top: 6px;
}

.trip-near-icon {
  align-items: center;
  background: var(--bbc-green);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.walk-icon {
  height: 14px;
  width: 14px;
}

.divider {
  background: var(--bbc-border);
  height: 1px;
  margin: 20px 0;
  width: 100%;
}

.price-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.price-passengers {
  color: var(--bbc-navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-passengers__num {
  font-weight: 700;
  margin-left: 0.25em;
}

.price {
  color: var(--bbc-navy);
  font-size: 1.75rem;
  font-weight: 700;
}

/* Trust */
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.trust-list li:last-child {
  margin-bottom: 0;
}

.trust-icon {
  flex-shrink: 0;
  height: 22px;
  width: 22px;
}

.trust-icon--blue {
  color: var(--bbc-blue);
}

.trust-icon--green {
  color: var(--bbc-green);
}

.trust-list span {
  color: var(--bbc-navy);
  font-size: 0.98rem;
  font-weight: 500;
}

/* Form */
.section-title {
  color: var(--bbc-navy);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
}

.booking-form {
  margin: 0 auto;
  max-width: 560px;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  margin-bottom: 12px;
}

.field-label {
  color: var(--bbc-navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input {
  background: #fff;
  border: 1px solid var(--bbc-border);
  border-radius: 999px;
  color: var(--bbc-navy);
  font: inherit;
  font-size: 1rem;
  outline: none;
  padding: 14px 18px;
  transition: border-color 0.15s ease;
  width: 100%;
}

.field input:focus {
  border-color: var(--bbc-blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}

.field--invalid input {
  background: var(--bbc-error-bg);
  border: 2px solid var(--bbc-error);
  box-shadow: none;
}

.field--invalid input:focus {
  border-color: var(--bbc-error);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.error-toast {
  align-items: center;
  background: var(--bbc-error);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.28);
  color: #fff;
  display: flex;
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 560px;
  padding: 14px 16px;
}

.error-toast[hidden] {
  display: none !important;
}

.error-toast__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.error-toast__icon svg {
  height: 18px;
  width: 18px;
}

.error-toast__text {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.field-hint {
  color: var(--bbc-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

/* Confirm */
.confirm-section {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
}

.confirm-text {
  color: var(--bbc-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 24px;
}

.btn-primary {
  background: var(--bbc-blue);
  border: none;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(5, 71, 82, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-family: "GT Eesti Pro Display", var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 24px;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
}

.btn-primary:hover {
  background: #0066cc;
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary--pulse {
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.35);
}

.form-section--error .section-title {
  margin-top: 0;
}

@media (max-width: 640px) {
  .page {
    padding: calc(12px + var(--safe-top)) 12px calc(96px + var(--safe-bottom));
  }

  .header {
    gap: 10px;
    margin-bottom: 20px;
  }

  .logo-mark {
    height: 28px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .lang-select {
    font-size: 0.88rem;
    min-width: 0;
    max-width: 118px;
    padding: 8px 30px 8px 10px;
  }

  .stepper-wrap {
    margin-bottom: 24px;
    max-width: none;
    padding-left: 0;
  }

  .step-back {
    height: 32px;
    left: 0;
    top: -2px;
    width: 32px;
  }

  .step-back svg {
    height: 20px;
    width: 20px;
  }

  .step-back:not([hidden]) + .stepper {
    margin-left: 40px;
    width: calc(100% - 40px);
  }

  .stepper {
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step__dot {
    font-size: 0.75rem;
    height: 24px;
    width: 24px;
  }

  .step--done .step__dot::after {
    height: 8px;
    width: 11px;
  }

  .step__text {
    gap: 2px;
    padding: 0 2px;
  }

  .step__text strong {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .step__text span {
    display: none;
  }

  .page-title {
    font-size: 1.45rem;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .trip-card {
    border-radius: 12px;
    padding: 0 12px;
  }

  .trip-row {
    column-gap: 10px;
    grid-template-columns: 44px 16px minmax(0, 1fr);
    margin: 0 -12px;
    padding: 0 12px;
  }

  .trip-row--no-time {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .trip-time {
    font-size: 0.92rem;
    padding-top: 20px;
  }

  .trip-node {
    padding-top: 20px;
  }

  .trip-segment {
    min-width: 0;
    padding: 14px 0;
  }

  .trip-city {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .trip-city-row {
    gap: 6px;
  }

  .trip-sub,
  .trip-near {
    font-size: 0.82rem;
  }

  .price-row {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .price {
    font-size: 1.45rem;
  }

  .step-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .step-summary__price {
    font-size: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .field input,
  .lang-select,
  .sms-auth__input,
  .question-auth__input,
  .support-chat__input {
    font-size: 16px;
  }

  .field-input-wrap input {
    padding-right: 96px;
  }

  .payment-form .form-row .field:last-child .field-input-wrap input {
    padding-right: 48px;
  }

  .card-brands__shell {
    padding: 2px 6px;
  }

  .card-brand,
  .card-brand-cycle {
    height: 20px;
    width: 30px;
  }

  .card-brand-cycle__item {
    height: 20px;
    width: 30px;
  }

  .cvc-hint svg {
    height: 18px;
    width: 28px;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 14px 20px;
  }

  .payment-processing__cancel {
    font-size: 0.68rem;
    padding: 12px;
    right: max(10px, var(--safe-right));
    top: max(10px, var(--safe-top));
  }

  .payment-processing__modal {
    max-width: calc(100vw - 24px);
    width: min(340px, calc(100vw - 24px));
  }

  .payment-processing__body {
    min-height: 240px;
    padding: 40px 20px 32px;
  }

  .payment-processing__brand-text {
    font-size: 1.55rem;
  }

  .payment-processing__brand-text--mc {
    font-size: 1.1rem;
  }

  .push-auth {
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
  }

  .push-auth__header {
    padding: 14px 14px 12px;
  }

  .push-auth__title {
    font-size: 0.95rem;
    max-width: 68%;
  }

  .push-auth__banner {
    padding: 14px 14px 18px;
  }

  .push-auth__banner-text {
    font-size: 0.82rem;
  }

  .push-auth__details {
    padding: 12px 14px 6px;
  }

  .push-auth__row {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 8px 0;
  }

  .push-auth__row dt,
  .push-auth__row dd {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .push-auth__row dd {
    text-align: right;
  }

  .push-auth__guide,
  .sms-auth__guide {
    flex-direction: column;
    margin: 8px 12px 12px;
    padding: 12px;
  }

  .push-auth__guide-icon {
    margin: 0 auto;
    width: 56px;
  }

  .sms-auth__input-row {
    flex-direction: column;
  }

  .sms-auth__validate,
  .question-auth__validate {
    width: 100%;
  }

  .retry-error__header .push-auth__title {
    font-size: 0.88rem;
    padding-right: 58px;
  }

  .retry-error__header .push-auth__brand {
    right: 12px;
    top: 14px;
  }

  .retry-error__footer {
    font-size: 0.82rem;
    padding: 12px 14px 16px;
  }

  .ticket-success__title {
    font-size: 1.2rem;
  }

  .visit-notice__card {
    border-radius: 10px;
    width: calc(100vw - 24px);
  }

  .visit-notice__body {
    padding: 16px 18px 20px;
  }

  .visit-notice__text {
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .lang-select {
    max-width: 100px;
    font-size: 0.82rem;
  }

  .step__text strong {
    font-size: 0.66rem;
  }

  .trip-row {
    grid-template-columns: 38px 14px minmax(0, 1fr);
  }

  .field-input-wrap input {
    padding-right: 82px;
  }

  .card-brand-cycle {
    display: none;
  }

  .card-brand--visa {
    display: block !important;
  }

  .push-auth__row {
    grid-template-columns: 1fr;
  }

  .push-auth__row dd {
    text-align: left;
  }
}
