/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', 'Inter', Verdana, sans-serif; background: #f0f4f8; color: #333; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* ===== TOP LANGUAGE BAR ===== */
.top-lang-bar { background: #E31837; padding: 2px 0; font-size: 11px; border-bottom: 2px solid #999; }
.lang-bar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 20px; color: #fff; max-width: 1200px; margin: 0 auto; }
.lang-bar-inner select { font-size: 10px; padding: 1px 4px; border-radius: 0; border: 1px solid #ccc; cursor: pointer; color: #333; }

/* ===== HEADER ===== */
.site-header { 
  background: linear-gradient(to right, #000000 0%, #002244 15%, #004D95 40%, #004D95 100%); 
  padding: 8px 20px; 
  border-bottom: 2px solid #E31837;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}
.header-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.header-left { flex: 0 0 auto; }
.gas-flame-logo { height: 60px; object-fit: contain; margin-right: 15px; }

.header-title { flex: 1; text-align: center; }
.header-logo-text { height: 40px; object-fit: contain; }

.header-right { display: flex; align-items: center; gap: 15px; }
.pahal-img { height: 60px; object-fit: contain; }

.header-actions { display: flex; flex-direction: column; gap: 4px; }
.btn-register { 
  background: linear-gradient(to bottom, #E31837 0%, #B8132A 100%); 
  color: #fff; 
  border: 1px solid #770c1b; 
  border-radius: 3px; 
  padding: 3px 20px; 
  font-size: 13px; 
  cursor: pointer; 
  min-width: 120px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-register:hover { opacity: 0.9; }

/* ===== TOP MENU ===== */
.top-menu-wrapper { 
  background: linear-gradient(to bottom, #fff 0%, #E6E6E6 100%);
  border-bottom: 3px solid #E31837; 
  padding: 10px 0;
}
.top-menu-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.top-menu-scroll { 
  overflow-x: auto; 
  width: 100%;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.top-menu-scroll::-webkit-scrollbar { display: none; }
.top-menu-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 15px; 
  padding: 0 40px; 
  min-width: 100%;
  width: max-content;
}
.bubble-menu-item { display: block; transition: transform 0.2s; flex-shrink: 0; }
.bubble-menu-item:hover { transform: scale(1.05); }
.bubble-menu-item img { height: 50px; object-fit: contain; }

.menu-nav-arrow {
  background: none; border: none; font-size: 24px; color: #004D95; 
  cursor: pointer; position: absolute; top: 0; bottom: 0; z-index: 10;
  font-weight: bold; width: 45px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.menu-nav-arrow.left { 
  left: 0; 
  background: linear-gradient(to right, rgba(240,240,240,1) 40%, rgba(240,240,240,0)); 
}
.menu-nav-arrow.right { 
  right: 0; 
  background: linear-gradient(to left, rgba(240,240,240,1) 40%, rgba(240,240,240,0)); 
}

/* ===== MAIN LAYOUT ===== */
.main-container { display: flex; max-width: 1200px; margin: 20px auto; min-height: 600px; }

/* ===== SIDEBAR ===== */
/* ===== SIDEBAR (Layout Table TD) ===== */
#tdnav { 
  transition: transform 0.3s ease, left 0.3s ease;
}

/* ===== CONTENT AREA ===== */
.content-area { flex: 1; background: #fff; padding: 20px 30px; box-shadow: 0 0 10px rgba(0,0,0,0.05); }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 11px; color: #E31837; margin-bottom: 16px; display: flex; align-items: center; gap: 4px; border-bottom: 1px dashed #f0a0a0; padding-bottom: 6px; float: right; width: 100%; justify-content: flex-end; }
.breadcrumb a { color: #004D95; text-decoration: none; }
.bc-sep { color: #666; }
.bc-active { color: #E31837; }

/* ===== BOOKING FORM CARD ===== */
.booking-form-card { background: linear-gradient(135deg, #f7fbff 0%, #eaf4ff 100%); border: 1px solid #c8dff5; border-radius: 12px; padding: 24px; margin-bottom: 28px; box-shadow: 0 4px 20px rgba(20,73,140,0.08); }
.section-heading { font-size: 18px; font-weight: 700; color: #14498c; margin-bottom: 6px; }
.section-sub { font-size: 13px; color: #666; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: #444; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1.5px solid #c8dff5; border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #14498c; box-shadow: 0 0 0 3px rgba(20,73,140,0.12); }

/* ===== PRICE SUMMARY ===== */
.price-summary { background: #f7f9fc; border: 1px solid #e0e8f5; border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.price-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 4px 0; }
.total-row { border-top: 1.5px solid #c8dff5; margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 15px; color: #14498c; }
.btn-book-now { width: 100%; background: linear-gradient(135deg, #14498c, #1a6ca0); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.25s; margin-top: 8px; }
.btn-book-now:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20,73,140,0.3); }
.btn-book-now:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== WAITING SCREEN ===== */
.waiting-screen { margin-bottom: 28px; }
.waiting-card { background: linear-gradient(135deg, #f7fbff, #eaf4ff); border: 1px solid #c8dff5; border-radius: 16px; padding: 32px 28px; box-shadow: 0 4px 20px rgba(20,73,140,0.08); max-width: 640px; margin: 0 auto; }
.booking-confirmed-header { text-align: center; margin-bottom: 20px; }
.check-icon { font-size: 48px; margin-bottom: 8px; }
.booking-confirmed-header h2 { font-size: 22px; font-weight: 700; color: #14498c; margin-bottom: 10px; }
.booking-ref-badge { display: inline-block; background: #14498c; color: #fff; font-size: 13px; padding: 6px 18px; border-radius: 20px; font-weight: 600; letter-spacing: 0.5px; }

/* Booking Summary */
.booking-summary { background: #fff; border: 1px solid #e0e8f5; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 5px 0; border-bottom: 1px solid #f0f4f8; }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; color: #14498c; font-size: 14px; padding-top: 10px; }

/* Pulse Loader */
.pulse-loader { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 20px 0 14px; }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: #14498c; animation: pulse 1.4s ease-in-out infinite; }
.pulse-dot:nth-child(2) { animation-delay: 0.2s; background: #c73336; }
.pulse-dot:nth-child(3) { animation-delay: 0.4s; background: #f39c12; }
@keyframes pulse { 0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

.waiting-text { text-align: center; font-size: 15px; font-weight: 600; color: #14498c; margin-bottom: 6px; }
.waiting-sub { text-align: center; font-size: 12px; color: #888; margin-bottom: 20px; }

/* Waiting Steps */
.waiting-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.w-step { font-size: 13px; color: #aaa; padding: 8px 14px; border-radius: 8px; background: #f7f9fc; border-left: 3px solid #ddd; transition: all 0.3s; }
.w-step.active { color: #14498c; background: #eaf4ff; border-left-color: #14498c; font-weight: 600; }
.w-step.done { color: #27ae60; background: #f0fff4; border-left-color: #27ae60; }

/* Payment Ready */
.pay-ready-icon { font-size: 48px; text-align: center; margin-bottom: 10px; animation: bounceIn 0.5s ease; }
@keyframes bounceIn { 0% { transform: scale(0); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
.pay-ready-title { font-size: 20px; font-weight: 700; color: #27ae60; text-align: center; margin-bottom: 8px; }
.pay-ready-sub { font-size: 13px; color: #666; text-align: center; margin-bottom: 20px; }
.btn-pay-now { display: block; text-align: center; background: linear-gradient(135deg, #27ae60, #2ecc71); color: #fff; border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.25s; margin-bottom: 12px; animation: glow 2s ease-in-out infinite; }
.btn-pay-now:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(39,174,96,0.4); }
@keyframes glow { 0%, 100% { box-shadow: 0 4px 15px rgba(39,174,96,0.3); } 50% { box-shadow: 0 4px 25px rgba(39,174,96,0.6); } }
.pay-note { font-size: 11px; color: #888; text-align: center; margin-bottom: 16px; }
.btn-back-link { background: none; border: none; color: #14498c; font-size: 12px; cursor: pointer; text-decoration: underline; display: block; text-align: center; margin-top: 8px; }

/* ===== INFO SECTION ===== */
.info-section { padding: 0; font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #444; }
.info-section h3 { font-size: 14px; font-weight: bold; color: #000; margin: 20px 0 10px; }
.info-section p { margin-bottom: 15px; line-height: 1.5; }
.info-list { margin-left: 20px; line-height: 1.6; }
.info-list > li { margin-bottom: 12px; list-style-type: disc; }
.info-list ol { margin-left: 20px; margin-top: 8px; margin-bottom: 10px; }
.info-list ol li { margin-bottom: 6px; list-style-type: decimal; }
.qr-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qr-row img { height: 50px; }

/* ===== FAQ ===== */
.faq-block h4 { font-size: 13px; font-weight: bold; color: #000; margin: 15px 0 6px; }
.faq-block p { margin-bottom: 12px; line-height: 1.5; }
.faq-block ul { margin-left: 20px; margin-bottom: 12px; line-height: 1.6; list-style-type: circle; }
.faq-block ul li { margin-bottom: 4px; }

/* ===== FOOTER ===== */
.site-footer { background: linear-gradient(135deg, #14498c, #0e3a70); color: #fff; margin-top: 30px; padding: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.footer-logo-container { background: #fff; padding: 4px; border-radius: 2px; }
.footer-logo-container img { height: 45px; display: block; }
.footer-disclaimer { font-size: 11px; line-height: 1.5; color: #fff; flex: 1; text-align: justify; }
.footer-links { 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  align-items: center; 
  border-top: 1px solid rgba(255,255,255,0.15); 
  padding-top: 12px; 
  font-size: 12px; 
}
.f-left { text-align: left; }
.f-center { text-align: center; color: #fff; }
.f-right { text-align: right; }
.footer-links a:hover { text-decoration: underline; }

/* ===== UTR CONFIRMATION SECTION ===== */
.utr-divider { border-top: 1.5px dashed #c8dff5; margin: 20px 0; }
.utr-box { background: #fff; border: 1.5px solid #c8dff5; border-radius: 12px; padding: 18px; }
.utr-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.utr-icon { font-size: 28px; line-height: 1; }
.utr-title { font-size: 15px; font-weight: 700; color: #14498c; margin-bottom: 4px; }
.utr-sub { font-size: 12px; color: #666; line-height: 1.5; }
.utr-input-row { display: flex; gap: 10px; margin-bottom: 8px; }
.utr-input {
  flex: 1; padding: 11px 14px; border: 1.5px solid #c8dff5; border-radius: 8px;
  font-size: 14px; font-family: monospace; font-weight: 600; letter-spacing: 1px;
  outline: none; transition: border-color 0.2s;
}
.utr-input:focus { border-color: #14498c; box-shadow: 0 0 0 3px rgba(20,73,140,0.12); }
.btn-utr-submit {
  background: linear-gradient(135deg, #27ae60, #2ecc71); color: #fff;
  border: none; border-radius: 8px; padding: 11px 20px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-utr-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39,174,96,0.3); }
.btn-utr-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.utr-hint { font-size: 11px; color: #aaa; margin-top: 4px; }
.utr-success {
  background: linear-gradient(135deg, #f0fff4, #e8faf0); border: 1.5px solid #27ae60;
  border-radius: 8px; padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: #27ae60; margin-top: 12px; display: flex; align-items: center; gap: 8px;
  animation: bounceIn 0.4s ease;
}
.utr-error {
  background: #fff5f5; border: 1px solid #e74c3c; border-radius: 8px;
  padding: 10px 14px; font-size: 12px; color: #c0392b; margin-top: 8px;
}

/* ===== NOTICE BOX ===== */
.info-notice-box {
  background: #fff4f2;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
  border: 1px solid #ffebea;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.notice-icon {
  background: #ff7a5c1a;
  color: #ff7a5c;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.notice-title {
  font-weight: 700;
  color: #333;
  font-size: 16px;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
  display: flex;
  gap: 8px;
}

.notice-list li::before {
  content: attr(data-index);
  color: #888;
}

/* ===== QUICK SEARCH BOX (Exact Match) ===== */
.quick-search-box {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    padding: 20px;
    position: relative;
    max-width: 420px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quick-search-heading {
    color: #9e1c1c;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    font-family: 'Verdana', sans-serif;
}

.ribbon-tag {
    position: absolute;
    top: -5px;
    right: 15px;
    width: 40px;
    height: 55px;
    background: #9e1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ribbon-tag::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    border-left: 20px solid #9e1c1c;
    border-right: 20px solid #9e1c1c;
    border-bottom: 15px solid transparent;
}
.ribbon-tag img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.quick-search-box label {
    font-family: inherit;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.quick-search-box input[type="text"],
.quick-search-box select {
    width: 100% !important;
    height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    background: #fff;
    margin-bottom: 15px !important;
    color: #333;
}

.quick-search-box input[type="text"][readonly] {
    background: #eee !important;
    color: #666;
}

.quick-search-box .btn-red {
    background: #c33d3d !important;
    border-radius: 4px !important;
    height: 40px !important;
    font-weight: bold !important;
    cursor: pointer;
}
.quick-search-box .btn-gray {
    background: #c33d3d !important; /* Image shows both buttons are red-ish */
    border-radius: 4px !important;
    height: 40px !important;
    font-weight: bold !important;
    cursor: pointer;
}

/* ===== MOBILE MENU BAR ===== */
.mobile-menu-bar { display: none; background: #0070c0; padding: 10px 15px; }
.hamburger-btn { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 5px;}
.hamburger-btn .bar { width: 25px; height: 3px; background-color: white; border-radius: 2px; }

.GreyButton {
    background: #f4f4f4;
    color: #000;
    text-decoration: none;
    border: 1px solid #b2b2b2;
    font: 13px Verdana, Arial, Helvetica, sans-serif;
    margin: 1px;
    cursor: pointer;
}
.GreyButton:hover {
    background: #e6e6e6;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .site-header { background: #004d95; }
  .header-container { flex-direction: column; text-align: center; }
  .header-left { display: none; }
  .header-right { margin-top: 10px; justify-content: center; width: 100%; }
  
  .mobile-menu-bar { display: block; }

  .main-container { flex-direction: column; margin: 0; }
  
  /* Sidebar as overlay on mobile */
  #tdnav { 
    display: block !important;
    position: fixed;
    top: 0;
    left: -244px; /* Hidden by default */
    width: 244px;
    height: 100%;
    z-index: 9999;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
  }
  #tdnav.open {
    left: 0;
  }

  /* Backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }
  .sidebar-backdrop.active {
    display: block;
  }

  .content-area { border-radius: 0; box-shadow: none; padding: 15px;}
  
  .top-menu-inner { justify-content: flex-start; min-width: auto; padding: 0 45px; gap: 8px;}
  .bubble-menu-item img { height: 60px; object-fit: contain; }
  
  .form-grid { grid-template-columns: 1fr; }
  .header-actions { flex-direction: row; justify-content: center; width: 100%; gap: 8px; flex-wrap: wrap; }
  .btn-register { padding: 6px 12px; min-width: auto; font-size: 13px; max-width: 120px; }
  .pahal-img { display: none; }
  .waiting-card { padding: 20px 16px; }
}
