/* Intercity transfers page. Everything is scoped under .ic because the site theme defines global layout classes. */
.ic { --ic-navy: #062c72; --ic-yellow: #ffcf00; --ic-ink: #173566; font-family: 'DM Sans', sans-serif; color: var(--ic-navy); text-align: left; background: #fff; overflow: hidden; }
.ic *, .ic *::before, .ic *::after { box-sizing: border-box; }
.ic a { text-decoration: none; }
.ic a:focus-visible, .ic button:focus-visible { outline: 3px solid var(--ic-yellow); outline-offset: 4px; }
.ic [hidden] { display: none !important; }
.ic :where(h1, h2, h3, p, ul) { text-transform: none; margin: 0; padding: 0; }
.ic ul { list-style: none; }

/* Hero */
.ic-hero { width: min(100% - 48px, 1400px); margin: 0 auto; padding: 36px 0 52px; display: grid; grid-template-columns: 48% 52%; align-items: center; }
.ic-hero-media { position: relative; min-height: clamp(320px, 30vw, 470px); align-self: stretch; }
.ic-hero-media::after { content: ""; position: absolute; width: 105px; height: 105px; right: 0; bottom: -17px; border: 13px solid var(--ic-yellow); border-radius: 50%; z-index: 0; }
.ic-hero-photo { position: absolute; inset: 0 26px 0 0; z-index: 1; border-radius: 20px 90px 20px 20px; overflow: hidden; background: #e5edf5; }
.ic-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ic-hero-content { padding: 12px 0 12px 40px; text-align: center; }
.ic-headline-pill { background: var(--ic-navy); border-radius: 22px 9px 22px 9px; padding: 16px 20px 17px; transform: rotate(-1deg); box-shadow: 0 12px 24px #062c7226; }
.ic-headline { font-family: 'Work Sans', sans-serif; font-style: italic; font-weight: 800; letter-spacing: -.065em; line-height: 1.05; color: var(--ic-yellow); font-size: clamp(30px, 3.4vw, 52px); }
.ic-subheading { margin-top: 26px; font-weight: 800; font-size: clamp(19px, 1.8vw, 26px); color: var(--ic-navy); }
.ic-intro { max-width: 460px; margin: 12px auto 0; font-weight: 500; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.4; color: var(--ic-ink); }
.ic-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.ic-benefit { padding: 0 8px; border-left: 1px solid #cfdaea; font-weight: 700; font-size: 13px; line-height: 1.25; }
.ic-benefit:first-child { border-left: 0; }
.ic-benefit-icon { width: 46px; height: 46px; margin: 0 auto 9px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #edf3fb; color: var(--ic-navy); font-size: 20px; }

/* Popular routes */
.ic-routes { background: #f5f7fb; border-top: 1px solid #e8edf5; border-bottom: 1px solid #e8edf5; padding: 30px 0 38px; }
.ic-routes-inner { width: min(100% - 48px, 1400px); margin: 0 auto; }
.ic-routes-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; }
.ic-routes-heading::before, .ic-routes-heading::after { content: ""; height: 1px; flex: 1; background: #cad5e5; }
.ic-routes-heading h2 { background: var(--ic-navy); border-radius: 30px; padding: 8px 26px; white-space: nowrap; color: #fff; font-style: italic; font-weight: 700; font-size: 17px; }
.ic-route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ic-route-card { position: relative; display: block; height: clamp(168px, 14vw, 230px); overflow: hidden; border-radius: 13px; background: #dce6f0; box-shadow: 0 3px 10px #062c7214; transition: transform .22s, box-shadow .22s; }
.ic-route-card:hover { transform: translateY(-5px); box-shadow: 0 12px 22px #062c722b; }
.ic-route-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ic-route-card:hover img { transform: scale(1.05); }
.ic-route-label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 24px 14px 12px; background: linear-gradient(transparent, #001d52 80%); color: #fff; font-weight: 700; font-size: 14px; }

/* Book now bar */
.ic-cta { background: var(--ic-navy); color: #fff; padding: 28px 0 31px; }
.ic-cta-inner { width: min(100% - 48px, 1400px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ic-cta-copy { display: flex; align-items: center; gap: 16px; }
.ic-cta-icon { font-size: 40px; flex: none; }
.ic-cta h2 { font-style: italic; font-weight: 700; font-size: 21px; line-height: 1.2; color: #fff; }
.ic-cta p { margin-top: 8px; font-size: 14px; color: #fff; }
.ic-book-btn { display: inline-flex; align-items: center; gap: 12px; flex: none; padding: 13px 34px; border-radius: 999px; background: #163e32; border: 2px solid #fff; box-shadow: 0 6px 0 #0b241c; color: #fff; font-weight: 800; font-size: 19px; transition: transform .2s, box-shadow .2s; }
.ic-book-btn:hover { transform: translateY(-3px); background: #285a43; box-shadow: 0 9px 0 #0b241c; color: #fff; }

/* Booking panel */
.ic-plan { background: #f5f7fb; padding: 44px 0 56px; scroll-margin-top: 130px; }
.ic-js .ic-plan:not(.is-open) { display: none; }
.ic-plan-inner { width: min(100% - 48px, 820px); margin: 0 auto; }
.ic-plan h2 { font-family: 'Work Sans', sans-serif; font-style: italic; font-weight: 800; letter-spacing: -.04em; font-size: clamp(24px, 2.4vw, 32px); text-align: center; }
.ic-plan-lead { margin: 10px auto 26px; max-width: 600px; text-align: center; color: var(--ic-ink); line-height: 1.5; font-size: 15px; }
.ic-form { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px #062c7218; }
.ic-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ic-field { min-width: 0; }
.ic-field-wide { grid-column: 1 / -1; }
.ic-field > label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--ic-navy); }
.ic-field .form-control { width: 100%; height: 48px; border: 1px solid #cad5e5; border-radius: 10px; padding: 0 14px; font-size: 15px; color: var(--ic-ink); background: #fff; }
.ic-field small { display: block; margin-top: 6px; color: #5b6f91; font-size: 12px; }
.ic-return-toggle { display: flex; align-items: flex-end; }
.ic-check { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.ic-check input { width: 20px; height: 20px; accent-color: var(--ic-navy); margin: 0; }
.ic-check label { margin: 0; font-weight: 700; font-size: 14px; cursor: pointer; }
.ic-alert { margin-top: 16px; padding: 0; text-align: center; font-size: 14px; }
.ic-alert:empty { display: none; }
.ic-submit { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 20px; min-height: 54px; border: 0; border-radius: 999px; background: #163e32; box-shadow: 0 5px 0 #0b241c; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .03em; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ic-submit:hover:not(:disabled) { transform: translateY(-2px); background: #285a43; box-shadow: 0 7px 0 #0b241c; }
.ic-submit:disabled { opacity: .7; cursor: wait; }

@media (max-width: 1100px) {
    .ic-hero-content { padding-left: 24px; }
    .ic-benefit { font-size: 12px; }
}

@media (max-width: 900px) {
    .ic-hero { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
    .ic-hero-media { min-height: 340px; }
    .ic-hero-content { max-width: 650px; margin: 0 auto; padding: 0; }
    .ic-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ic-route-card { height: 168px; }
}

@media (max-width: 560px) {
    .ic-hero, .ic-routes-inner, .ic-cta-inner, .ic-plan-inner { width: calc(100% - 32px); }
    .ic-hero { padding: 16px 0 32px; gap: 22px; }
    .ic-hero-media { min-height: 250px; }
    .ic-hero-photo { right: 12px; border-radius: 14px 55px 14px 14px; }
    .ic-hero-media::after { width: 80px; height: 80px; border-width: 10px; }
    .ic-headline-pill { padding: 12px 10px; }
    .ic-benefits { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .ic-benefit:nth-child(3) { border-left: 0; }
    .ic-routes { padding: 24px 0 28px; }
    .ic-routes-heading { gap: 8px; }
    .ic-routes-heading h2 { padding: 7px 14px; font-size: 15px; }
    .ic-route-grid { gap: 10px; }
    .ic-route-card { height: 137px; }
    .ic-route-label { padding: 20px 8px 9px; font-size: 13px; }
    .ic-cta { padding: 28px 0 34px; }
    .ic-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .ic-cta-icon { display: none; }
    .ic-book-btn { justify-content: center; }
    .ic-plan { padding: 32px 0 40px; scroll-margin-top: 80px; }
    .ic-form { padding: 20px 16px; border-radius: 14px; }
    .ic-form-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ic-route-card, .ic-route-card img, .ic-book-btn, .ic-submit { transition: none; }
}
