:root {
  
  --blue:       #0072CE;
  --blue-dark:  #005DA2;
  --sky:        #E8F4FD;
  --amber:      #F5A623;
  --amber-dark: #D4891A;
  --black:      #030303;
  --white:      #FFFFFF;
  --gray-light: #F4F6F9;
  --gray-mid:   #D8DEE6;
  --gray-text:  #5A6475;
  --text:       #1A2535;
  --purple:     #6B21A8;
  --purple-pill:#781d7e;
  --success:    #2E7D32;
  --error:      #D32F2F;

  --header-h:   70px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill:70px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
}

/* ---- Fonts ---- */
@font-face {
  font-family: "FiraSans Regular";
  src: url("./asset/fonts/Fira-Sans/FiraSans-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "FiraSans Medium";
  src: url("./asset/fonts/Fira-Sans/FiraSans-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "FiraSans Light";
  src: url("./asset/fonts/Fira-Sans/FiraSans-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Inter Regular";
  src: url("./asset/fonts/Inter/Inter-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter Medium";
  src: url("./asset/fonts/Inter/Inter-Medium.ttf") format("truetype");
}

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

body {
  margin: 0;
  font-family: "Inter Regular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--gray-light);
  /* allow scrolling on mobile */
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 2px 8px;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
}

.expresstoll-logo {
  height: clamp(36px, 5vh, 52px);
  width: auto;
  cursor: pointer;
  /* fallback text logo if image missing */
  display: flex;
  align-items: center;
}

/* Text fallback shown when logo image fails */
.expresstoll-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 32px);
}

.nav-link {
  font-family: "Inter Regular", sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--white);
  border-color: var(--amber);
}

.signin-btn {
  font-family: "Inter Regular", sans-serif;
  background: var(--amber);
  color: var(--navy);
  border: none;
  padding: clamp(8px, 1.2vh, 12px) clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius-sm);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.signin-btn:hover  { background: var(--amber-dark); transform: translateY(-1px); }
.signin-btn:active { transform: translateY(0); }

/* hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  z-index: 190;
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-nav-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-drawer .nav-link {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-drawer .signin-btn {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  text-align: center;
}

/* ============================================================
   PAGE CONTAINER & MAIN LAYOUT
   ============================================================ */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero / main area with background */
.main-container {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}

.section-left {
  position: relative;
  flex: 1;
  width: 100%;
  background-image: url('asset/image/tolling-background-image.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 6vh, 80px) clamp(16px, 5vw, 60px) clamp(24px, 4vh, 60px);
  /* Darken the image for legibility */
}
.section-left::before {
  content: '';
  position: absolute;
  inset: 0;
  
  pointer-events: none;
}
.section-left > * { position: relative; z-index: 1; }

/* Hero headline */
.section-left h1 {
  font-family: "Inter Medium", sans-serif;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0 0 clamp(20px, 3vh, 40px);
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  max-width: 700px;
}

.bg-desc {
  font-size: 48px;
  line-height: 48px;
  margin: 0;
  font-family: Oswald, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ---- Payment Options Cards ---- */
.payment-options {
  display: flex;
  gap: clamp(14px, 2.5vw, 32px);
  width: 100%;
  max-width: 820px;
}

.toll-pass,
.pay-by-plate {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 32px);
  transition: transform .2s, box-shadow .2s;
}
.toll-pass:hover,
.pay-by-plate:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.toll-pass .top-row,
.pay-by-plate .top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toll-pass h2,
.pay-by-plate h2 {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.toll-pass span,
.pay-by-plate span {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  color: rgba(255,255,255,.88);
  line-height: 1.45;
  flex: 1;
}

.toll-pass img,
.pay-by-plate img {
  width: clamp(36px, 4vw, 56px);
  height: clamp(22px, 2.5vw, 36px);
  object-fit: contain;
}

.payment-btn {
  font-family: "Inter Regular", sans-serif;
  width: 100%;
  padding: clamp(10px, 1.5vh, 14px) 16px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--navy);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  margin-top: auto;
}
.payment-btn:hover {
  background: var(--amber);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ============================================================
   SECTION BOTTOM â€” info strip
   ============================================================ */
.section-bottom {
  display: flex;
  background: var(--white);
  border-top: 3px solid var(--blue);
  padding: clamp(16px, 2.5vh, 28px) clamp(24px, 5vw, 80px);
  gap: clamp(16px, 4vw, 60px);
  flex-shrink: 0;
}

.section-bottom .pay-invoice,
.section-bottom .contact-us {
  flex: 1;
  min-width: 0;
  padding: clamp(12px, 1.5vh, 20px) clamp(16px, 2vw, 24px);
  border-radius: var(--radius-md);
  background: var(--gray-light);
  border-left: 4px solid var(--blue);
  transition: background .2s, border-color .2s;
}
.section-bottom .pay-invoice:hover,
.section-bottom .contact-us:hover {
  background: var(--sky);
  border-left-color: var(--navy);
}

.section-bottom h2 {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.section-bottom h3 {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: var(--gray-text);
  margin: 0 0 4px;
  line-height: 1.5;
}

.section-bottom a {
  font-size: clamp(12px, 1vw, 14px);
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.section-bottom a:hover { color: var(--navy); text-decoration: underline; }

/* ============================================================
   CHAT LAUNCHER PILL
   ============================================================ */
.chat-wrapper-off {
  position: fixed;
  z-index: 1000;
  bottom: 24px;
  right: 24px;
  cursor: pointer;
}

.launcher-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--purple-pill), #460073);
  border-radius: 40px;
  padding: 10px 10px 10px 20px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow .2s, transform .2s;
}
.launcher-pill:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  transform: translateY(-2px);
}

.launcher-text {
  font-family: "Inter Regular", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
}

.launcher-arrow {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.launcher-arrow .launcher-logo {
  width: 50px; height: 50px;
  object-fit: contain;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999999;
}
.hidden { display: none !important; }

/* ============================================================
   POPUP â€” Sign Up Modal
   ============================================================ */
.popup {
  font-family: "Inter Regular", sans-serif;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  width: clamp(320px, 90vw, 700px);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 3vh, 40px) clamp(20px, 3vw, 48px);
  border-radius: var(--radius-lg);
  z-index: 1000000;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.popup h2 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 24px;
}

.close-btn {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.close-btn img { width: 28px; height: 28px; }

.toll-pass-modal {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.toll-pass-card {
  flex: 1;
  min-width: 0;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.toll-pass-card h2 {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  margin: 0;
  color: var(--navy);
  text-align: left;
}

.toll-pass-plus  { background: rgba(161,0,255,.1); }
.toll-pass-simple{ background: rgba(200,200,201,.25); }

.higlight-text {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(13px, 1.1vw, 15px);
  color: #444;
}
.tick-icon { width: 22px; height: 22px; flex-shrink: 0; }

.sign-up-btn {
  margin-top: auto;
  font-family: "Inter Regular", sans-serif;
  width: 100%;
  padding: 13px 16px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.sign-up-btn:hover { background: var(--blue-dark); }
.toll-pass-simple .sign-up-btn { background: #9e9e9e; color: #333; }
.toll-pass-simple .sign-up-btn:hover { background: #888; }

/* ============================================================
   CONTACT POPUP
   ============================================================ */
.contact-popup {
  font-family: "Inter Regular", sans-serif;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  width: clamp(320px, 90vw, 700px);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(20px, 3vh, 36px) clamp(20px, 3vw, 42px) clamp(16px, 2vh, 28px);
  border-radius: var(--radius-lg);
  z-index: 1000000;
  box-shadow: var(--shadow-lg);
}

.contact-title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.contact-subtitle {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--gray-text);
  margin: 0 0 clamp(12px, 2vh, 24px);
  line-height: 1.5;
  font-weight: 400;
}

/* ---- Contact Form fields ---- */
.cf-row {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(10px, 1.5vh, 16px);
}

.cf-field {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

.cf-field label {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 600;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: clamp(8px, 1vh, 11px) 12px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: clamp(13px, 1vw, 14px);
  font-family: "Inter Regular", sans-serif;
  color: var(--text);
  background: var(--white);
  height: clamp(36px, 4vh, 44px);
  transition: border-color .15s, box-shadow .15s;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,114,206,.15);
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #b0b0b0; }
.cf-field select { appearance: auto; cursor: pointer; }
.cf-field input[type="file"] { padding: 8px 12px; cursor: pointer; color: #666; }

.cf-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(10px, 1.5vh, 20px);
  gap: 12px;
}
.cf-required {
  font-size: 12px; font-style: italic; font-weight: 700;
  color: #555; align-self: flex-start;
}

.cf-submit {
  background: var(--blue);
  border: none;
  border-radius: var(--radius-pill);
  padding: clamp(10px, 1.4vh, 14px) clamp(32px, 4vw, 50px);
  color: var(--white);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 700;
  font-family: "Inter Regular", sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.cf-submit:hover:not(:disabled) { background: var(--blue-dark); }
.cf-submit:disabled {
  background: #9e9e9e !important; cursor: not-allowed; opacity: .7; pointer-events: none;
}

/* Validation */
.cf-field .error-message {
  color: var(--error); font-size: 12px; margin-top: 4px;
  display: none; font-weight: 600;
}
.cf-field .error-message.visible { display: block; }
.cf-field input.input-error { border-color: var(--error) !important; }

/* ============================================================
   SUCCESS DIALOG
   ============================================================ */
.success-dialog {
  font-family: "Inter Regular", sans-serif;
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 40px 50px;
  z-index: 1000001;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px; width: 90%;
}
.success-dialog .success-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: #e8f5e9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.success-dialog .success-icon svg { width: 36px; height: 36px; fill: var(--success); }
.success-dialog h2 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.success-dialog p  { margin: 0 0 24px; color: #555; font-size: 15px; line-height: 1.5; }
.success-dialog .success-ok-btn {
  font-family: "Inter Regular", sans-serif;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-pill);
  padding: 12px 40px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.success-dialog .success-ok-btn:hover { background: var(--blue-dark); }

/* ============================================================
   CHAT WINDOW
   ============================================================ */
#chat-window {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s ease;
}
#chat-window.chat-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================================================
   RESPONSIVE â€” MOBILE
   ============================================================ */
@media (max-width: 767px) {

  :root { --header-h: 60px; }

  /* show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .header-nav { display: none; }

  /* allow page to scroll */
  body { overflow-y: auto; }

  /* stack main layout vertically */
  .main-container { flex-direction: column; }

  .section-left {
    padding: 32px 16px 28px;
    min-height: 70vw;
  }
  .section-left h1 { font-size: clamp(18px, 5vw, 26px); }

  /* stack cards vertically on small screens */
  .payment-options {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  /* bottom info strip */
  .section-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  /* modals */
  .popup, .contact-popup {
    width: 95vw;
    padding: 20px 16px;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }

  .toll-pass-modal { flex-direction: column; gap: 14px; }

  .cf-row { flex-direction: column; gap: 10px; }

  /* launcher pill */
  .launcher-text { display: none; }
  .launcher-pill {
    padding: 8px;
    border-radius: 50%;
    width: 56px; height: 56px;
    justify-content: center;
  }

  /* chat window full-screen */
  #chat-window {
    width: 100vw !important;
    height: 100dvh !important;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .payment-options { max-width: 680px; }
  .section-bottom { padding: 18px 24px; gap: 20px; }
}

/* Large screens - cap chat window */
@media (min-width: 1440px) {
  .contact-popup { width: 740px; }
}
@media (max-width: 1440px) {
  #chat-window { height: 580px !important; }
}
@media (max-width: 1280px) {
  #chat-window { width: 360px !important; height: 520px !important; bottom: 16px !important; right: 16px !important; }
}
@media (max-width: 1200px) {
  #chat-window { width: 320px !important; height: 470px !important; bottom: 12px !important; right: 12px !important; }
}
@media (max-width: 600px) {
  #chat-window { width: 100vw !important; height: 100vh !important; bottom: 0 !important; right: 0 !important; border-radius: 0 !important; }
}