body {
    margin: 0;
    max-width: 100%;
    font-family: 'Open Sans', sans-serif;
}


.header {
    display: flex;
    justify-content: space-between;

    align-items: center;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}

.header-logo {
    /* Keep logo left-aligned and sized consistently */
    flex: 0 0 auto; /* don't stretch */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.header-logo a {
    display: inline-flex;
    align-items: center;
}

.header-logo img {
    height: 120px; /* even larger desktop size */
    width: auto;
    display: block;
    border-radius: 8px; /* subtle rounding */
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.header-logo img:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.header-navigation {
    flex: 2;
}

a {
    text-decoration: none;
}

.header-navigation ul {
    display: flex;
    text-decoration: none;
    list-style: none;
    gap: 20px;
}

.menu-item {
    padding: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: black;
}

.menu-link {
    position: relative;
    transition: 0.3s;
}

.menu-link:hover {
    transform: scale(1.05);
    color: darkgreen;
    transition: 0.3s;
}

.search-toggle-li {
    padding: 15px;
}


.banner {
    width: 100%;
    height: 500px;
    background-image: url("anhlogo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}



.menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}


@media (max-width: 768px) {
    .header {
        margin: 0;
        justify-content: space-between;
        padding: 0 15px;
    }

    /* animated mobile menu: use max-height so it can transition smoothly */
    .header-navigation ul {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 240px;
        border: 1px solid #ddd;
        padding: 0 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        transition: max-height 0.36s ease, opacity 0.36s ease, transform 0.32s ease;
        opacity: 0;
        transform: translateY(-8px);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .header-navigation ul.active {
        max-height: 1000px; /* large enough to show content */
        opacity: 1;
        transform: translateY(0);
        padding: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    /* menu icon animation */
    .menu-toggle i {
        transition: transform 0.28s ease, color 0.18s ease;
        transform-origin: center;
    }
    .menu-toggle.open i {
        transform: rotate(90deg);
        color: #4CAF50;
    }
}

.banner-list {
    justify-content: center;
    text-align: center;
    align-items: center;
    height: auto;
    width: 400px;
    margin: auto;
    padding: 30px;
    background-color: rgba(42, 48, 93, 0.4);
    color: aliceblue;
    border-radius: 20px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    

}

.banner-list h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    color: #75e7b6;
    font-weight: 900;
}

.banner-list p {
    font-size: 15px;
    margin: 0 0 20px;
    margin-bottom: 0;
}

.tds-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;

    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
}

.tds-button:hover {
    background-color: #45a049;
    transition: 0.3s;
    transform: scale(1.05);
}

.price-table {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.price-table h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
}

.price-table p {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.price-table th,
.price-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.price-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background-color: #fafafa;
}

.price-table .note {
    font-size: 14px;
    text-align: center;
    color: #555;
    font-style: italic;
}
/* ===== Các Tuyến Xe Phổ Biến ===== */
.popular-routes {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

.popular-routes h2 {
    font-size: 24px;
    margin-bottom: 10px;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 5px;
}

.popular-routes p {
    margin-bottom: 30px;
    color: #555;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.route-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
}

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

.route-card h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    color: #222;
}

.route-card p {
    font-size: 14px;
    padding: 0 10px;
    margin-bottom: 10px;
    color: #555;
}

.route-card .rating {
    color: orange;
    font-size: 16px;
    margin-bottom: 10px;
}

.route-card .btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.route-card .btn:hover {
    background-color: #45a049;
}

.footer {
  background: #e4f7eb;
  padding: 40px 20px 20px;
  font-family: "Open Sans", sans-serif;
  color: #333;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #00894d;
}

.footer-column p,
.footer-column a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #00894d;
  text-decoration: underline;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}


.btn-hotline {
  display: inline-block;
  margin-top: 10px;
  background: #d32f2f;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-hotline:hover {
  background: #a20000;
}


.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ccc;
  font-size: 13px;
  color: #666;
}

@media (max-width: 768px) {
    .header-logo h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: none;
        text-overflow: ellipsis;
        max-width: 120px;
        margin: 0;
    }
    .header-logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    /* larger logo on mobile */
    .header-logo img {
        height: 80px;
    }
}

.hotline-fixed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #d32f2f;
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.hotline-fixed:hover {
    background: #a20000;
    transform: scale(1.07);
}

.zalo-fixed {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: #0084ff;
    color: #fff;
    padding: 12px 20px 12px 14px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
}
.zalo-fixed:hover {
    background: #005ecb;
    transform: scale(1.07);
}
/* ==== Nút nổi "Đặt xe ngay" ==== */
.booking-btn {
    position: fixed;
    bottom: 140px; /* raised above Zalo */
    right: 20px; /* align with other fixed buttons */
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10001; /* above zalo/hotline */
  transition: background 0.3s;
}
.booking-btn:hover {
  background-color: #e55b00;
}

/* ==== Popup form ==== */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}
.popup-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: popupFade 0.3s ease;
}
@keyframes popupFade {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
.popup-content h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #ff6600;
}
.popup-content label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

/* ===== Booking form styles ===== */
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.booking-form .full {
  grid-column: 1/ -1;
}
.booking-form label {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  display: block;
}
.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="email"],
.booking-form input[type="datetime-local"],
.booking-form textarea,
.booking-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dedede;
  background: linear-gradient(180deg,#ffffff,#fbfbfb);
  font-size: 15px;
  color: #222;
  line-height: 1.3;
  min-height: 44px;
  transition: box-shadow 0.14s ease, border-color 0.14s ease, transform 0.08s ease;
}
.booking-form input[type="text"]::placeholder,
.booking-form input[type="tel"]::placeholder,
.booking-form input[type="email"]::placeholder,
.booking-form textarea::placeholder,
.booking-form select::placeholder {
  color: #a8a8a8;
}
.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  outline: none;
  border-color: #3aa05a;
  box-shadow: 0 10px 30px rgba(58,160,90,0.08);
  transform: translateY(-1px);
}
.booking-form .input-large {
  padding: 14px 14px;
  font-size: 15px;
  border-radius: 10px;
}

/* Specific nicer styling for name and phone fields */
#name, #phone {
  padding: 14px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  background: linear-gradient(180deg, #fff, #fbfbfb);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
#name::placeholder, #phone::placeholder {
  color: #a8a8a8;
}
#name:focus, #phone:focus {
  border-color: #3aa05a;
  box-shadow: 0 10px 30px rgba(58,160,90,0.08);
  transform: translateY(-1px);
}
.trip-type {
  display: flex;
  gap: 10px;
  align-items: center;
}
.trip-type label {
  font-weight: 600;
  font-size: 13px;
}
.submit-btn {
  grid-column: 1/ -1;
  display: inline-block;
  background: linear-gradient(90deg,#ff7a2f,#ff6600);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255,102,0,0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.submit-btn:hover { transform: translateY(-3px); opacity: 0.98; }

/* Make popup-content match form width */
.popup-content form { margin-top: 6px; }

@media (max-width: 720px) {
  .booking-form { grid-template-columns: 1fr; }
  .booking-btn { padding: 12px 16px; font-size: 15px; }
  .popup-content { width: 95%; max-width: 420px; }
}

/* close button inside popup */
.popup-content {
  position: relative;
  padding: 20px 20px 18px;
}
.close-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: color 0.12s ease, transform 0.12s ease;
}
.close-btn:hover { color: #000; transform: scale(1.06); }


.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.submit-btn {
  width: 100%;
  margin-top: 15px;
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}
.submit-btn:hover {
  background-color: #e55b00;
}
.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}
.close-btn:hover {
  color: #000;
}
.booking-btn {
  position: fixed;
  bottom: 180px; /* cao hơn nút zalo/gọi điện */
  right: 20px;
  background-color: #ffc107;
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999; /* trên cùng */
  transition: all 0.3s ease;
}
.booking-btn:hover {
  background-color: #ffda33;
  transform: scale(1.05);
}

/* Popup nền tối */
.popup {
  display: none;
  position: fixed;
  z-index: 10000; /* cao hơn cả nút zalo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* Khung form popup */
.popup-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {transform: translateY(-40px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* Nút đóng */
.close-btn {
  color: #333;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Input form */
.popup-content input[type=text],
.popup-content input[type=tel],
.popup-content textarea {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

/* Nút gửi */
.submit-btn {
  background-color: #28a745;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.submit-btn:hover {
  background-color: #218838;
}

/* Loại hình di chuyển */
.trip-type {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.trip-type label {
  font-weight: 500;
}