/* ==========================================================
   Kramat Djati Public Portal — Main Stylesheet
   Design: "Indonesian Horizon" — Warm, modern, trustworthy
   Fonts: Sora (Google Fonts)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --primary:        #0F3460;
  --primary-dark:   #091E3A;
  --primary-light:  #1A4A8A;
  --accent:         #FF6B35;
  --accent-dark:    #E55522;
  --accent-light:   #FFF0EB;
  --success:        #0FB981;
  --success-light:  #E8F8F3;
  --warning:        #F5A623;
  --danger:         #E74C3C;
  --danger-light:   #FEF0EE;

  --bg:             #F0F4FA;
  --card:           #FFFFFF;
  --card-hover:     #FAFCFF;
  --text:           #1A2535;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;
  --border:         #DDE3EE;
  --border-light:   #EEF2F8;

  --shadow-xs:      0 1px 3px rgba(15,52,96,.08);
  --shadow-sm:      0 2px 8px rgba(15,52,96,.10);
  --shadow-md:      0 6px 24px rgba(15,52,96,.12);
  --shadow-lg:      0 16px 48px rgba(15,52,96,.16);
  --shadow-accent:  0 6px 24px rgba(255,107,53,.30);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --font:    'Sora', sans-serif;
  --trans:   0.2s ease;
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font-family: var(--font);
  outline: none;
}

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------------------------------
   Navbar
   ---------------------------------------------------------- */
.navbar {
  /* background: var(--primary-dark); */
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Logo gambar di navbar */
.navbar-logo {
  height: 80px;
  width: auto;
  /* Logo asli putih berlatar transparan/gelap akan cocok;
     jika latar putih, pakai filter brightness untuk kontras di navbar gelap */
  /* filter: brightness(0) invert(1);   
  object-fit: contain;
  transition: opacity .2s; */
}

.navbar-brand:hover .navbar-logo { opacity: .85; }

/* Mobile hamburger — hidden di desktop */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Mobile dropdown menu */
.nav-mobile {
  display: none;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 20px 16px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-mobile ul li a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-mobile ul li a:hover { color: #fff; }
.nav-mobile .nav-cta-mobile {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  /* color: rgba(255,255,255,.75); */
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--trans);
}

.navbar-links a:hover { color: #fff; }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--primary-dark); }

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1A5276 100%);
  position: relative;
  /* overflow visible — dekorasi dikurung di .hero-deco child */
  overflow: visible;
  padding: 64px 0 48px;    /* bottom dikurangi, search-section yang lanjutkan */
}

/* Wrapper dekorasi radial gradient — overflow:hidden terisolasi di sini */
.hero-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.hero-deco::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-deco::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,74,138,.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.05rem;
  opacity: .8;
  max-width: 520px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   Search Section (terpisah dari hero agar dropdown bebas)
   ---------------------------------------------------------- */
.search-section {
  background: var(--primary);           /* sambungan warna hero */
  padding-bottom: 40px;
  position: relative;
  z-index: 5;                           /* di atas hero, di bawah navbar */
}

/* ----------------------------------------------------------
   Search Card
   ---------------------------------------------------------- */
.search-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: -24px auto 0;
}

.search-card-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--text);
  background: var(--card);
  transition: border-color var(--trans), box-shadow var(--trans);
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,52,96,.10);
}

.form-control-icon {
  position: relative;
}

.form-control-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.form-control-icon .form-control { padding-left: 42px; }

.btn-search {
  padding: 13px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-accent);
  height: 48px;
}

.btn-search:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,107,53,.4);
}

.btn-search:active { transform: translateY(0); }

/* ----------------------------------------------------------
   Section: Features strip below hero
   ---------------------------------------------------------- */
.features-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  padding: 22px 0;
}

.features-strip-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
}

.feature-item .fi-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ----------------------------------------------------------
   Page Header (for inner pages)
   ---------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 32px 0;
  color: #fff;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.5px;
}

.page-header .breadcrumb {
  font-size: .82rem;
  opacity: .65;
  margin-top: 4px;
}

.page-header .breadcrumb a { color: rgba(255,255,255,.8); }
.page-header .breadcrumb a:hover { color: #fff; }

/* ----------------------------------------------------------
   Progress Steps
   ---------------------------------------------------------- */
.steps-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}

.steps-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-light);
}

.step-item.active { color: var(--primary); }
.step-item.done   { color: var(--success); }

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.step-item.done .step-num {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}

.step-item.done + .step-connector { background: var(--success); }

/* ----------------------------------------------------------
   Trip Result Cards
   ---------------------------------------------------------- */
.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 40px 0;
}

.trip-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  cursor: pointer;
}

.trip-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trip-times {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trip-time-block { text-align: center; }
.trip-time-block .time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.trip-time-block .date-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trip-time-block .city {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.trip-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
}

.trip-duration .line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  position: relative;
}

.trip-duration .line::before,
.trip-duration .line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.trip-duration .line::before { left: -4px; }
.trip-duration .line::after  { right: -4px; }

.trip-duration .dur-label {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trip-seat-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.seat-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.seat-badge.available {
  background: var(--success-light);
  color: var(--success);
}

.seat-badge.limited {
  background: #FFF8E6;
  color: var(--warning);
}

.seat-badge.full {
  background: var(--danger-light);
  color: var(--danger);
}

.trip-price {
  text-align: right;
}

.trip-price .price-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.trip-price .price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.5px;
  line-height: 1.1;
}

.trip-price .price-per {
  font-size: .72rem;
  color: var(--text-muted);
}

.btn-choose {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  white-space: nowrap;
}

.btn-choose:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   Seatmap
   ---------------------------------------------------------- */
.seatmap-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 40px 0;
}

.bus-shell {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 2px solid var(--border-light);
}

.bus-front {
  background: linear-gradient(180deg, #E8EFF9, var(--card));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 16px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px dashed var(--border);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.seatmap-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seat-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.seat {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  border: 2px solid transparent;
  position: relative;
  flex-shrink: 0;
}

.seat.available {
  background: #EEF5FF;
  color: var(--primary);
  border-color: #C5D8F5;
}

.seat.available:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.seat.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: scale(1.05);
}

.seat.taken {
  background: #F0F2F5;
  color: #BDC3CC;
  cursor: not-allowed;
  border-color: #E2E6EA;
}

.seat.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

/* Seat label tooltip */
.seat::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.seat:hover::after { opacity: 1; }

.seat-aisle {
  width: 24px;
  flex-shrink: 0;
}

/* Seat Legend */
.seat-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Booking Summary Sidebar */
.booking-summary {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.summary-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 20px 24px;
  color: #fff;
}

.summary-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.summary-body {
  padding: 20px 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .88rem;
}

.summary-row:last-child { border-bottom: none; }

.summary-row .sr-label { color: var(--text-muted); font-weight: 500; }
.summary-row .sr-value { font-weight: 600; color: var(--text); text-align: right; }

.summary-total {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total .tot-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}

.summary-total .tot-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.5px;
}

.btn-next {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-accent);
}

.btn-next:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,107,53,.4);
}

.btn-next:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ----------------------------------------------------------
   Passenger Form
   ---------------------------------------------------------- */
.passengers-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 40px 0;
}

.section-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 2px solid var(--border-light);
  margin-bottom: 20px;
}

.section-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-card-title .sc-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.full  { grid-template-columns: 1fr; }

.passenger-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  background: #FAFBFD;
  position: relative;
}

.passenger-block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.passenger-block-label .pbl-seat {
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.passenger-block-label .pbl-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.meal-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--success-light);
  border: 1px solid #B2E8D5;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 12px;
  cursor: pointer;
}

.meal-toggle input[type="checkbox"] { cursor: pointer; width: 18px; height: 18px; accent-color: var(--success); }
.meal-toggle-label { font-size: .88rem; font-weight: 500; color: var(--text); flex: 1; }
.meal-toggle-price { font-size: .82rem; font-weight: 700; color: var(--success); }

/* ----------------------------------------------------------
   Confirmation Page
   ---------------------------------------------------------- */
.confirm-layout {
  padding: 40px 0;
  max-width: 760px;
  margin: 0 auto;
}

.confirm-block {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  margin-bottom: 20px;
}

.confirm-block-header {
  background: #F0F4FA;
  padding: 14px 24px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-block-body { padding: 20px 24px; }

.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border-light);
}

.confirm-row:last-child { border-bottom: none; }
.confirm-row .cr-label { color: var(--text-muted); }
.confirm-row .cr-value { font-weight: 600; }

.confirm-total-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ctb-label { color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; }
.ctb-amount {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.btn-confirm {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-accent);
}

.btn-confirm:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,107,53,.4);
}

/* ----------------------------------------------------------
   Success / Failed Page
   ---------------------------------------------------------- */
.result-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.result-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.result-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
}

.result-icon.success { background: var(--success-light); color: var(--success); }
.result-icon.failed  { background: var(--danger-light);  color: var(--danger); }

.result-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.5px; }
.result-card p  { color: var(--text-muted); font-size: .95rem; margin-bottom: 28px; }

.booking-id-box {
  background: #F0F4FA;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0 28px;
  border: 1px dashed var(--border);
}

.booking-id-box .bid-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.booking-id-box .bid-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
}

.detail-list {
  text-align: left;
  margin: 16px 0;
  border-top: 1px solid var(--border-light);
}

.detail-list .dl-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-list .dl-label { color: var(--text-muted); }
.detail-list .dl-value { font-weight: 600; }

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  text-decoration: none;
}

.btn-back-home:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   Info / Alert Boxes
   ---------------------------------------------------------- */
.alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert.alert-info    { background: #EDF5FF; color: #1565C0; border-left: 4px solid #1565C0; }
.alert.alert-warning { background: #FFF8E1; color: #F57F17; border-left: 4px solid #F57F17; }
.alert.alert-danger  { background: var(--danger-light); color: var(--danger); border-left: 4px solid var(--danger); }
.alert.alert-success { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }

/* ----------------------------------------------------------
   Empty State
   ---------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-state .es-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { color: var(--text-muted); font-size: .9rem; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.6);
  padding: 40px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
  /* Logo hitam → putih di footer gelap */
  /* filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .2s; */
}

.footer-logo:hover { opacity: 1; }

/* Social icon buttons */
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* Trust badges strip */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 20px;
}

.footer-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
}

.footer-badge-item i { font-size: 1rem; }
.footer-tagline { font-size: .85rem; line-height: 1.6; }

.footer-col h4 {
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  font-size: .8rem;
  text-align: center;
}

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */
.text-accent    { color: var(--accent); }
.text-muted     { color: var(--text-muted); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.mt-auto        { margin-top: auto; }
.w-full         { width: 100%; }
.text-center    { text-align: center; }
.d-flex         { display: flex; }
.align-center   { align-items: center; }
.gap-8          { gap: 8px; }
.gap-12         { gap: 12px; }

/* Rupiah format helper via ::before */
.rp::before { content: 'Rp '; font-weight: 400; font-size: .85em; }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .4s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-form-grid .btn-search { grid-column: 1 / -1; }
  .trip-card { grid-template-columns: 1fr; gap: 16px; }
  .seatmap-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .passengers-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .navbar-links { display: none; }
  .nav-hamburger { display: flex; }
  .search-card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .search-form-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .features-strip-inner { gap: 24px; }
  .steps-inner { gap: 0; }
  .step-item .step-label { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .confirm-total-bar { flex-direction: column; gap: 8px; text-align: center; }
  .result-card { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trip-times { flex-wrap: wrap; justify-content: center; }
}