@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
  --navy: #081b33;
  --blue: #0c4a88;
  --sky: #1e79d1;
  --gold: #f6b72d;
  --light: #f5f8fc;
  --ink: #14253a;
  --muted: #6d7c8e;
  --line: #e5eaf0;
  --white: #fff;
  --green: #169b62;
  --red: #d94a4a;
  scroll-behavior: smooth !important;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth !important;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth !important;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1160px, 92%);
  margin: auto;
}

.topbar {
  background: var(--navy);
  color: #dce8f6;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav .container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font: 700 25px Outfit;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo img {
  display: block;
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

.logo span {
  color: var(--gold);
}

.navlinks {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 14px;
}

.navlinks a:hover {
  color: var(--sky);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-blue {
  background: var(--sky);
  color: #fff;
}

.hero {
  background:
    linear-gradient(115deg, #061a31e8, #0a3f78e8),
    url("../img/hero.jpg") center/cover;
  min-height: 510px;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero h1 {
  font: 700 clamp(38px, 5vw, 62px) Outfit;
  line-height: 1.02;
  max-width: 700px;
  margin: 0 0 20px;
}

.hero p {
  font-size: 18px;
  color: #dbe9f7;
  max-width: 650px;
}

.searchbox {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  margin-top: 28px;
  box-shadow: 0 18px 45px #00142b50;
}

.field {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
  background: #fff;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.field select,
.field input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--sky);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.3px;
}

.section h2 {
  font: 700 34px Outfit;
  margin: 7px 0 0;
}

.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.route {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 25px #0a25400d;
}

.routeimg {
  height: 160px;
  background: linear-gradient(135deg, #123b63, #1975be);
  position: relative;
}

.routeimg:after {
  content: "TRINITY EXPRESS";
  position: absolute;
  bottom: 15px;
  left: 16px;
  color: #fff;
  font: 700 14px Outfit;
  letter-spacing: 1px;
}

.routebody {
  padding: 18px;
}

.routebody h3 {
  margin: 0 0 10px;
  font: 700 20px Outfit;
}

.route-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.fare {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.features {
  background: var(--light);
}

.featuregrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: #eaf4ff;
  color: var(--sky);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 14px;
}

.feature h3 {
  font: 700 19px Outfit;
  margin: 0 0 8px;
}

.feature p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 25px;
  border-top: 3px solid var(--gold);
}

.num {
  font: 800 34px Outfit;
  color: #dfe8f2;
}

.step h3 {
  font: 700 18px Outfit;
  margin: 7px 0;
}

.step p {
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  background: var(--navy);
  color: #cddaea;
  padding: 52px 0 20px;
}

.footergrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 45px;
}

.footer h3 {
  color: #fff;
  font: 700 19px Outfit;
}

.footer p {
  line-height: 1.7;
}

.footer a {
  display: block;
  margin: 9px 0;
  color: #cddaea;
}

.copy {
  border-top: 1px solid #ffffff18;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 13px;
  color: #8fa5bd;
}

.booking-wrap {
  background: var(--light);
  padding: 45px 0;
  min-height: 70vh;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.card h2 {
  font: 700 25px Outfit;
  margin-top: 0;
}

.results {
  display: grid;
  gap: 14px;
}

.trip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.trip strong {
  font-size: 18px;
}

.trip small {
  color: var(--muted);
}

.trip .time {
  font: 700 21px Outfit;
}

.trip .price {
  text-align: right;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.seat-layout {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.bus {
  width: 330px;
  border: 1px solid #dce3ea;
  border-radius: 35px 35px 18px 18px;
  padding: 30px 25px 24px;
  background: #fbfcfe;
}

.driver {
  height: 44px;
  border: 1px dashed #bcc9d6;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #718196;
  font-size: 12px;
  margin-bottom: 18px;
}

.seatrow {
  display: grid;
  grid-template-columns: 1fr 1fr 28px 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.seat {
  height: 37px;
  border-radius: 7px 7px 5px 5px;
  background: #dce7f2;
  border: 1px solid #c6d4e1;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #38516a;
  cursor: pointer;
}

.seat:hover {
  outline: 2px solid #8eb9df;
}

.seat.selected {
  background: var(--gold);
  color: var(--navy);
  border-color: #e2a61c;
}

.seat.booked {
  background: #596a7b;
  color: #fff;
  border-color: #596a7b;
  cursor: not-allowed;
}

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -3px;
  margin-right: 5px;
}

.seat-summary {
  position: sticky;
  top: 95px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.formgroup label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.formgroup input,
.formgroup select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.alert {
  padding: 13px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #e9f5ff;
  color: #145284;
}

.success {
  background: #e9f8f1;
  color: #146b46;
}

.error {
  background: #fff0f0;
  color: #9d3333;
}

.adminbody {
  background: #f3f6fa;
}

.adminnav {
  background: var(--navy);
  color: #fff;
  min-height: 100vh;
  position: fixed;
  width: 235px;
  padding: 25px 15px;
}

.adminnav .logo {
  color: #fff;
  margin: 0 10px 30px;
  display: block;
}

.adminnav a {
  display: block;
  padding: 12px 13px;
  border-radius: 7px;
  color: #bdccdd;
  margin: 3px 0;
}

.adminnav a:hover,
.adminnav a.active {
  background: #ffffff12;
  color: #fff;
}

.adminmain {
  margin-left: 235px;
  padding: 35px;
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
}

.stat small {
  color: var(--muted);
}

.stat strong {
  display: block;
  font: 700 28px Outfit;
  margin-top: 5px;
}

.tablewrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  margin-top: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.badge {
  padding: 5px 8px;
  border-radius: 99px;
  background: #edf2f7;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 850px) {
  .navlinks {
    display: none;
  }

  .searchbox,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .routes,
  .featuregrid,
  .steps,
  .footergrid {
    grid-template-columns: 1fr 1fr;
  }

  .seat-summary {
    position: static;
  }

  .adminnav {
    position: static;
    width: auto;
    min-height: auto;
  }

  .adminmain {
    margin: 0;
    padding: 20px;
  }

  .statgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topbar .container {
    display: none;
  }

  .routes,
  .featuregrid,
  .steps,
  .footergrid,
  .formgrid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }

  .searchbox {
    padding: 13px;
  }

  .seat-layout {
    flex-direction: column;
  }

  .bus {
    width: 100%;
  }
}

/* V3 enhancements */
.route-img {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}

.route-img:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 25, 45, 0.72));
  pointer-events: none;
}

.route-img > div {
  position: relative;
  z-index: 2;
}

.payment-number {
  background: linear-gradient(135deg, var(--navy, #0b2c50), #174d7e);
  color: #fff;
  padding: 25px;
  border-radius: 10px;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.payment-number small {
  color: #f2b632;
  font-weight: 800;
  letter-spacing: 2px;
}

.payment-number strong {
  font-size: 31px;
  letter-spacing: 1px;
}

.payment-number span {
  opacity: 0.8;
}

.bus-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bus-admin-card {
  overflow: hidden;
}

.bus-photo {
  height: 190px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef3f7;
}

.bus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .bus-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .bus-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* V4 booking/admin enhancements */
.trip-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.trip-bus-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.availability {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  margin-top: 5px;
}

.availability.soldout {
  color: var(--red);
}

.trip button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.soldout-card {
  text-align: center;
  padding: 45px;
}

.trip-photo-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.trip-photo-head img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.trip-photo-head strong,
.trip-photo-head span {
  display: block;
}

.trip-photo-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.fleet {
  background: #f8fafc;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fleet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px #0a25400d;
}

.fleet-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.fleet-card div {
  padding: 17px;
}

.fleet-card h3 {
  font: 700 19px Outfit;
  margin: 0 0 5px;
}

.fleet-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-thumb {
  width: 74px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.btn-danger {
  background: #fff0f0;
  color: #9d3333;
  border: 1px solid #f0caca;
}

.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.media-preview {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.media-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
}

.media-info span {
  color: var(--muted);
}

.content-step {
  background: #f7f9fc;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 10px;
}

.content-step h3 {
  margin: 0 0 10px;
  font: 700 17px Outfit;
}

.content-step input,
.content-step textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 8px;
  font: inherit;
}

.adminmain textarea {
  resize: vertical;
}

@media (max-width: 900px) {
  .fleet-grid,
  .media-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .fleet-grid,
  .media-admin-grid {
    grid-template-columns: 1fr;
  }

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

  .trip-main {
    align-items: flex-start;
  }

  .trip-bus-thumb {
    width: 78px;
    height: 55px;
  }
}

/* V6 seamless navigation + landing hero */
body.home-page {
  background: #fff;
}

.nav-home {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
}

.nav-home .logo {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav-home .navlinks a {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-home .navlinks a:hover {
  color: var(--gold);
}

.nav-home .container {
  height: 82px;
}

.hero-seamless {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #061a31;
  color: #fff;
  align-items: center;
  padding-top: 85px;
}

.hero-seamless .hero-slides,
.hero-seamless .hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1s ease,
    transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(3, 20, 38, 0.88) 0%,
      rgba(5, 34, 65, 0.65) 48%,
      rgba(3, 18, 34, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(3, 17, 31, 0.52), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-seamless h1 {
  max-width: 760px;
}

.hero-seamless .searchbox {
  max-width: 1120px;
}

.home-page .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(4, 20, 38, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.home-page .topbar .container {
  color: #eef6ff;
}

.inner-page .nav {
  position: sticky;
}

.inner-page .topbar {
  position: relative;
}

.media-admin-grid .card {
  position: relative;
}

.media-admin-grid .card img {
  display: block;
}

.media-admin-grid .btn {
  padding: 9px 13px;
  font-size: 12px;
}

@media (max-width: 850px) {
  .nav-home {
    top: 34px;
  }

  .nav-home .container {
    height: 70px;
  }

  .hero-seamless {
    min-height: 760px;
    padding-top: 120px;
  }

  .home-page .topbar .container {
    display: flex;
  }

  .home-page .nav .btn {
    padding: 10px 13px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .home-page .topbar {
    display: none;
  }

  .nav-home {
    top: 0;
  }

  .hero-seamless {
    padding-top: 100px;
    min-height: 760px;
  }

  .hero-seamless .searchbox {
    margin-top: 22px;
  }

  .nav-home .container {
    height: 70px;
  }

  .nav-home .logo {
    font-size: 21px;
  }

  .nav-home .navlinks {
    display: none;
  }
}

/* V7 FINAL: navigation + landing hero are one continuous composition */
.site-header-home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #fff;
}

.site-header-home .topbar {
  position: relative;
  background: rgba(3, 18, 34, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(7px);
}

.site-header-home .nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  background: rgba(3, 18, 34, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(9px);
}

.site-header-home .nav .container {
  height: 78px;
}

.site-header-home .nav .logo {
  color: #fff;
}

.site-header-home .nav .navlinks a {
  color: #fff;
}

.site-header-home .nav .navlinks a:hover {
  color: var(--gold);
}

.hero-seamless {
  margin-top: 0 !important;
  padding-top: 175px !important;
}

.hero-seamless .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-seamless .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-seamless .hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 850px) {
  .site-header-home .nav .container {
    height: 68px;
  }

  .hero-seamless {
    padding-top: 155px !important;
  }
}

@media (max-width: 560px) {
  .site-header-home .topbar {
    display: none;
  }

  .site-header-home .nav .container {
    height: 70px;
  }

  .hero-seamless {
    padding-top: 105px !important;
  }
}

/* V8 landing hero: exact seamless heading treatment */
.hero-seamless .hero-kicker {
  margin: 0 0 12px;
  font:
    700 13px/1.2 Outfit,
    Arial,
    sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f6b72d;
}

.hero-seamless h1 {
  margin: 0 0 28px;
}

.hero-seamless .hero-content {
  padding-bottom: 18px;
}

@media (max-width: 560px) {
  .hero-seamless .hero-kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero-seamless h1 {
    margin-bottom: 22px;
  }
}

/* V9: compact desktop passenger form + refined payment flow */
.passenger-page .content {
  padding-top: 34px;
  padding-bottom: 60px;
}

.passenger-page .passenger-form {
  max-width: 980px;
  margin: 0 auto;
}

.passenger-page .passenger-panel {
  padding: 28px 30px;
}

.passenger-page .passenger-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.passenger-page .passenger-panel .field {
  padding: 10px 12px;
}

.passenger-page .passenger-panel .field input {
  font-size: 14px;
}

.passenger-page .passenger-summary {
  max-width: 980px;
  margin: 16px auto 0;
}

.payment-page .content {
  padding-top: 36px;
  padding-bottom: 65px;
}

.payment-shell {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
}

.payment-main,
.payment-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(7, 31, 55, 0.07);
}

.payment-main {
  padding: 34px;
}

.payment-side {
  padding: 28px;
  height: max-content;
  position: sticky;
  top: 100px;
}

.payment-main h2 {
  margin: 5px 0 8px;
}

.payment-number {
  margin: 24px 0;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #071d36, #0b4c8e);
  color: #fff;
}

.payment-number small {
  display: block;
  color: #d9e7f5;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
}

.payment-number strong {
  display: block;
  color: var(--gold);
  font-size: 31px;
  line-height: 1.15;
  margin: 7px 0;
}

.payment-number span {
  color: #fff;
  font-size: 13px;
}

.payment-instructions {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.payment-instruction {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.payment-instruction .step-circle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf5fb;
  color: var(--navy);
  font-weight: 800;
  font-size: 12px;
}

.paid-trigger {
  margin-top: 22px;
  width: 100%;
}

.transaction-box {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.transaction-box.show {
  display: block;
}

.transaction-box .field {
  margin-bottom: 12px;
}

.payment-side h3 {
  margin-top: 0;
}

.payment-side .journey {
  font: 700 22px Outfit;
  color: var(--navy);
  line-height: 1.15;
}

.payment-side .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.payment-side .summary-line span:first-child {
  color: var(--muted);
}

.payment-side .total {
  font: 700 25px Outfit;
  color: var(--navy);
  margin-top: 18px;
}

@media (max-width: 800px) {
  .payment-shell {
    grid-template-columns: 1fr;
  }

  .payment-side {
    position: static;
  }

  .payment-main {
    padding: 24px;
  }

  .passenger-page .passenger-panel .form-grid {
    grid-template-columns: 1fr;
  }
}

/* V11: class-based fares, WhatsApp payment handoff, ticket editing */
.seat-position-head {
  width: 330px;
  margin: 0 0 8px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 28px 1fr 1fr;
  gap: 8px;
  text-align: center;
  color: #7b8a9b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.seat small {
  display: block;
  font-size: 7px;
  line-height: 1.05;
  margin-top: 2px;
  opacity: 0.75;
}

.seat b {
  font-size: 10px;
}

.class-fares {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.class-fares span {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--muted);
}

.class-fares b {
  color: var(--navy);
}

.payment-total-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid #e7d29a;
  background: #fffaf0;
  border-radius: 12px;
  margin: 15px 0;
}

.payment-total-banner span {
  color: var(--muted);
  font-size: 13px;
}

.payment-total-banner strong {
  font: 700 23px Outfit;
  color: var(--navy);
}

.whatsapp-choices {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dcefe5;
  border-radius: 14px;
  background: #f7fcf9;
}

.wa-title {
  font: 800 14px Outfit;
  margin-bottom: 10px;
  color: var(--navy);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin: 8px 0;
  background: #fff;
  border: 1px solid #dce6df;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
}

.whatsapp-btn b {
  margin-left: auto;
  font-size: 11px;
  color: #15945b;
}

.wa-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20b866;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.edit-ticket-shell {
  max-width: 960px;
  margin: 0 auto;
}

.edit-ticket-page {
  padding-top: 35px;
  padding-bottom: 70px;
}

.edit-ticket-page .card {
  box-shadow: 0 12px 35px rgba(7, 31, 55, 0.06);
}

.class-fare-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.class-fare-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfcfe;
}

.class-fare-box > strong {
  display: block;
  font: 700 17px Outfit;
  color: var(--navy);
  margin-bottom: 12px;
}

.class-fare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.class-fare-row .btn {
  padding: 6px 9px;
  font-size: 10px;
}

.mini-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.mini-form input,
.mini-form select {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mini-form .btn {
  grid-column: 1/-1;
}

@media (max-width: 900px) {
  .class-fare-admin-grid {
    grid-template-columns: 1fr;
  }

  .seat-position-head {
    width: 100%;
    max-width: 330px;
  }
}

@media (max-width: 600px) {
  .seat-position-head {
    display: none;
  }

  .payment-main {
    padding: 20px;
  }

  .whatsapp-btn {
    font-size: 13px;
  }

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

  .mini-form .btn {
    grid-column: auto;
  }
}

/* V12: payment resume, admin-only editing, WhatsApp floating booking */
.confirm-payment-shell {
  max-width: 820px;
  margin: 0 auto;
}

.confirm-payment-page {
  padding: 35px 0 70px;
}

.payment-resume-card {
  margin-top: 18px;
}

.wa-float-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
}

.wa-float {
  border: 0;
  border-radius: 999px;
  background: #18a957;
  color: #fff;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font: 700 13px Outfit;
}

.wa-float span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #18a957;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.wa-float-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 250px;
  background: #fff;
  border: 1px solid #dce6df;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(7, 31, 55, 0.16);
  padding: 12px;
}

.wa-float-menu.show {
  display: block;
}

.wa-float-menu strong {
  display: block;
  color: var(--navy);
  font: 700 14px Outfit;
  margin: 3px 4px 9px;
}

.wa-float-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
}

.wa-float-menu a:hover {
  background: #f3faf6;
}

.wa-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18a957;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 900;
}

.adminmain .btn-blue {
  background: #eaf3fb;
  color: #0a5b99;
  border: 1px solid #cfe2f3;
}

@media (max-width: 600px) {
  .wa-float-wrap {
    right: 14px;
    bottom: 14px;
  }

  .wa-float b {
    display: none;
  }

  .wa-float {
    padding: 8px;
  }

  .wa-float-menu {
    right: 0;
    width: 230px;
  }
}
