/* style.css - Red theme (Tommy Speed) */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #b30000;
  padding: 18px 40px 18px 30px;
  position: relative;
  color: white;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container .logo {
  height: 54px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.8em;
  font-weight: bold;
}

/* Search form hiện đại */
#searchForm {
  position: relative;
  width: 500px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

#searchBox {
  width: 100%;
  font-size: 1.2rem;
  padding: 12px 24px;
  border-radius: 30px 0 0 30px;
  border: none;
  outline: none;
  box-sizing: border-box;
  background: #fff;
  transition: box-shadow 0.2s;
}

#searchBox:focus {
  box-shadow: 0 0 8px rgba(179,0,0,0.18);
}

.search-btn {
  background: #ffc300;           /* vàng tươi */
  color: #b30000;                /* đỏ đậm cho icon */
  border: none;
  border-radius: 0 30px 30px 0;
  padding: 0 26px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -2px;
}

.search-btn:hover, .search-btn:focus {
  background: #ffb000;           /* vàng đậm hơn khi hover */
  color: #900000;
}

.search-icon {
  font-size: 1.25em;
  display: inline-block;
  vertical-align: middle;
}

/* Suggestion box chỉnh đẹp, nổi bật */
#suggestions {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;           /* Đảm bảo suggestion rộng đúng bằng search box */
  min-width: 0;          /* Không ép min-width lớn hơn search box */
  background: #fff;
  border: 1.5px solid #b30000;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(179,0,0,0.10);
  z-index: 100;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 1rem;
  color: #b30000;
  background: #fff;
  transition: background 0.15s, color 0.15s;
  border: none;
}

.suggestion-item:hover, .suggestion-item:focus {
  background: #fbeaea;
  color: #900000;
}

.suggestion-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  object-fit: contain;
}
.no-suggestion {
  padding: 10px 18px;
  color: #888;
  font-style: italic;
  background: #fff;
}

/* Modern container */
.modern-container {
  max-width: 1300px;
  margin: 32px auto 0 auto;
  padding: 0 24px 32px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(179,0,0,0.07);
}

/* Filters section */
.filters-section {
  padding: 24px 0 8px 0;
  background: transparent;
}

.filters {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
}

.filters select {
  padding: 12px 22px;
  border: 1.5px solid #b30000;
  border-radius: 10px;
  background: #fff;
  color: #b30000;
  font-size: 1.08rem;
  font-weight: 500;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(179,0,0,0.06);
  min-width: 150px;
  cursor: pointer;
}

.filters select:focus {
  border-color: #ff3333;
  box-shadow: 0 0 0 2px #ffeaea;
}

/* Car grid hiện đại */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 12px;
  margin-bottom: 24px;
}

/* Card hiện đại */
.car-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1.5px solid #f2f2f2;
}

.car-card:hover {
  box-shadow: 0 8px 32px rgba(179,0,0,0.10);
  transform: translateY(-4px) scale(1.015);
  border-color: #ffd6d6;
}

.car-card img {
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #f7f7f7;
}

.car-card h3 {
  color: #b30000;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
}

.car-card p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}

.car-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  font-size: 0.98rem;
  color: #222;
}

.car-card ul li {
  margin-bottom: 2px;
}

.rent-btn {
  background: #b30000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 8px;
  text-decoration: none;
}

.rent-btn:hover {
  background-color: #900000;
}

.rent-btn:disabled,
.rent-btn[disabled] {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
}

/* Reservation Page Styles */
.reservation-container {
  max-width: 520px;
  margin: 48px auto 0 auto;
  background: #fff;
  padding: 38px 32px 32px 32px;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(179,0,0,0.10), 0 1.5px 0 #ffeaea;
  position: relative;
}

.reservation-header {
  text-align: center;
  margin-bottom: 24px;
}

.reservation-header h2 {
  font-size: 2.2rem;
  color: #b30000;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #ffeaea;
}

.car-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #fff 70%, #fff7e0 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(255,195,0,0.10);
  border: 1.5px solid #ffeaea;
  transition: box-shadow 0.2s;
}

.car-summary-info {
  flex: 1;
}

.car-summary-info h3 {
  font-size: 1.18rem;
  color: #b30000;
  font-weight: 700;
  margin-bottom: 8px;
}

.car-summary-info ul {
  font-size: 1rem;
  color: #333;
}

.car-summary-image {
  margin-left: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-summary-image img {
  max-width: 120px;
  max-height: 80px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255,195,0,0.10);
  border: 1.5px solid #ffeaea;
  background: #f7f7fa;
}

.car-summary h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 10px;
}

.car-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.car-summary ul li {
  font-size: 1rem;
  margin-bottom: 5px;
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 10px;
  background: #fafbff;
  border-radius: 14px;
  padding: 22px 18px 12px 18px;
  box-shadow: 0 2px 12px rgba(179,0,0,0.04);
}

.reservation-form label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #b30000;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.reservation-form input[type="text"],
.reservation-form input[type="tel"],
.reservation-form input[type="email"],
.reservation-form input[type="date"],
.reservation-form input[type="number"] {
  padding: 12px 14px;
  font-size: 1.08rem;
  border: 1.5px solid #ffeaea;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 10px;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(179,0,0,0.04);
}

.reservation-form input:focus {
  border-color: #ffc300;
  box-shadow: 0 0 0 2px #fff7e0;
  outline: none;
}

.total-price {
  font-size: 1.18rem;
  font-weight: bold;
  color: #d00;
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
  background: #fffbe7;
  border-radius: 8px;
  padding: 8px 0 8px 16px;
  box-shadow: 0 1px 6px rgba(255,195,0,0.07);
}

.submit-btn {
  padding: 11px 0;
  background-color: #b30000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  background: linear-gradient(90deg, #ffc300 70%, #ffb000 100%);
  color: #b30000;
  border: none;
  box-shadow: 0 2px 8px rgba(255,195,0,0.10);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #ffb000 70%, #ffc300 100%);
  color: #900000;
}

.submit-btn:disabled {
  background: #eee !important;
  color: #aaa !important;
  cursor: not-allowed;
  box-shadow: none;
  border: 1.5px solid #ffeaea;
}

/* Reservation button nổi bật và không bị chìm */
.reservation-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #b30000 !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-left: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  vertical-align: middle;
  border: 2px solid #fff;
}

.reservation-btn:hover, .reservation-btn:focus {
  background: #b30000;
  color: #fff !important;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(179,0,0,0.10);
}

.cancel-btn, .back-btn {
  margin-left: 10px;
  background: #eee;
  color: #b30000;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cancel-btn:hover, .back-btn:hover {
  background: #ccc;
}

.form-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  justify-content: center;
}

.form-actions button {
  min-width: 120px;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(179,0,0,0.04);
}

.back-btn {
  background: #fff;
  color: #b30000;
  border: 2px solid #ffeaea;
}

.back-btn:hover {
  background: #ffeaea;
  color: #900000;
}

.cancel-btn {
  background: #f7f7fa;
  color: #b30000;
  border: 2px solid #ffeaea;
}

.cancel-btn:hover {
  background: #ffeaea;
  color: #900000;
}

/* Footer */
.site-footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Confirmation Styles */
.confirm-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background: linear-gradient(120deg, #fffbe7 0%, #f4f4f9 100%);
  animation: fadeIn 0.7s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

.confirm-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(179,0,0,0.13), 0 1.5px 0 #ffeaea;
  padding: 48px 38px 38px 38px;
  max-width: 430px;
  width: 100%;
  text-align: center;
  transition: box-shadow 0.2s;
  margin: 32px 0;
}

.confirm-success {
  color: #19b94a;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.5px;
  animation: popIn 0.7s;
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0;}
  80% { transform: scale(1.1);}
  100% { transform: scale(1); opacity: 1;}
}

.confirm-success .icon {
  font-size: 3.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px #e0ffe0);
}

.confirm-details {
  margin: 18px 0 0 0;
  background: #f7f7fa;
  border-radius: 14px;
  padding: 18px 12px 12px 12px;
  box-shadow: 0 2px 12px rgba(25,185,74,0.04);
}

.car-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  justify-content: center;
}

.car-img {
  width: 170px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  background: #f7f7fa;
  border: 1.5px solid #e0ffe0;
  margin-bottom: 8px;
}

.car-meta {
  text-align: center;
}

.car-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 2px;
  color: #b30000;
}

.car-brand {
  color: #888;
  font-size: 1rem;
  font-weight: normal;
}

.car-row {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.confirm-total {
  margin-top: 14px;
  font-size: 1.13rem;
  font-weight: bold;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.total-price {
  color: #d00;
  font-size: 1.35rem;
  margin-left: 6px;
  font-weight: 900;
  background: #fffbe7;
  border-radius: 8px;
  padding: 2px 12px;
  box-shadow: 0 1px 6px rgba(255,195,0,0.07);
}

.confirm-link {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 38px;
  background: linear-gradient(90deg, #ffc300 70%, #ffb000 100%);
  color: #b30000 !important;
  border-radius: 30px;
  font-size: 1.18rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255,195,0,0.10);
  letter-spacing: 0.5px;
}

.confirm-link:hover {
  background: linear-gradient(90deg, #ffb000 70%, #ffc300 100%);
  color: #900000 !important;
  box-shadow: 0 4px 16px rgba(179,0,0,0.10);
}

@media (max-width: 600px) {
  .reservation-container {
    padding: 10px 2vw 18px 2vw;
    max-width: 99vw;
  }
  .car-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 10px;
  }
  .car-summary-image img {
    max-width: 100px;
    max-height: 60px;
  }
  .reservation-form {
    padding: 12px 2vw 8px 2vw;
  }
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .confirm-card {
    padding: 18px 2vw 18px 2vw;
    max-width: 99vw;
    margin: 10px 0;
  }
  .car-img {
    width: 100px;
    height: 60px;
  }
}

.input-feedback {
  color: #d00;
  font-size: 0.97em;
  min-height: 18px;
  margin-bottom: 2px;
  margin-top: -8px;
  padding-left: 2px;
}

