/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Triệt tiêu thẻ p và br tự động của CF7 */

.booking-card p,
.booking-card br {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}
.booking-card *, .booking-notice-outer * {
  box-sizing: border-box;
}

/* ĐIỀU CHỈNH ĐỘ RỘNG FORM: Rộng rãi (560px), cân đối đẹp mắt */
.booking-card {
  max-width: 560px !important; /* Tăng độ rộng tại đây */
  width: 100% !important;
  margin: 20px auto 10px;
  border: 3px solid #010a14;
  border-radius: 4px;
  background-color: #fbf8e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 2 Tab trên cùng */
.booking-card .tab-header {
  display: flex !important;
  width: 100%;
  border-bottom: 2px solid #004c99;
}
.booking-card .tab-item {
  flex: 1 1 50%;
  text-align: center;
  padding: 15px 0;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  background-color: #fdfcee;
  color: #111;
  user-select: none;
}
.booking-card .tab-item.active {
  background-color: #004c99 !important;
  color: #ffffff !important;
}

/* Thân form */
.booking-body {
  padding: 24px 22px;
}
.field-item {
  margin-bottom: 14px;
}
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

/* Khung bọc input & sửa lỗi CF7 */
.booking-card .wpcf7-form-control-wrap {
  display: block !important;
  width: 100%;
}
.booking-card input[type="text"],
.booking-card input[type="tel"],
.booking-card input[type="email"],
.booking-card input[type="date"],
.booking-card select {
  width: 100% !important;
  height: 44px !important;
  background: #ffffff !important;
  border: 1px solid #c7ccd3 !important;
  border-radius: 4px !important;
  padding: 0 12px !important;
  font-size: 15px !important;
  color: #222 !important;
  outline: none !important;
}
.booking-card input:focus,
.booking-card select:focus {
  border-color: #004c99 !important;
}

/* Icon định vị */
.input-wrap {
  position: relative !important;
  display: block;
}
.input-wrap .field-ico {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 16px;
  z-index: 3;
  pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  padding-left: 38px !important;
}

/* Khối nút Đổi chiều */
.input-with-action {
  display: flex !important;
  gap: 8px;
}
.input-with-action .input-wrap {
  flex: 1;
}
.btn-swap-route {
  background-color: #2072e5;
  color: #fff;
  border: none;
  height: 44px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* 2 cột Dịch vụ & Ngày đi */
.field-row {
  display: flex !important;
  gap: 14px;
  margin-bottom: 14px;
}
.field-col {
  flex: 1 1 50%;
  min-width: 0;
}

/* SỬA NÚT TOGGLE HÓA ĐƠN GTGT (Không bị kéo dài) */
.vat-toggle-box {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.toggle-switch {
  position: relative;
  display: inline-block !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 26px !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 26px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #004c99;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}
.toggle-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #222;
}

/* 4 LOẠI XE - VÒNG TRÒN TO RÕ NÉT */
.car-selector-grid {
  display: flex !important;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 18px;
}
.car-item {
  flex: 1 1 25%;
  text-align: center;
  cursor: pointer;
  margin: 0 !important;
}
.car-item input[type="radio"] {
  display: none !important;
}
.car-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc 50%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.car-svg {
  width: 58px;
  height: 58px;
}
.car-item input[type="radio"]:checked + .car-inner .car-avatar {
  border-color: #004c99;
  box-shadow: 0 0 0 2px #004c99;
  transform: translateY(-2px);
}
.car-km {
  display: block;
  font-size: 12px;
  color: #0d6efd;
  line-height: 1.3;
}
.car-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-top: 4px;
}

/* Thanh toán & Submit */
.payment-row .wpcf7-list-item {
  margin-right: 24px;
}
.payment-row label {
  font-size: 14.5px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}
.btn-order-submit {
  width: 100% !important;
  background-color: #004c99 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  height: 48px !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
}
.btn-order-submit:hover {
  background-color: #00366f !important;
}

/* Dòng chú thích giá */
.booking-notice-outer {
  max-width: 560px;
  margin: 8px auto 25px;
  font-size: 13.5px;
  color: #cc0000;
  line-height: 1.45;
  font-weight: 500;
}

/* Dòng báo lỗi đỏ CF7 */
.booking-card .wpcf7-not-valid-tip {
  display: block !important;
  color: #dc3545 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

/* Keep homepage product widget thumbnails from cropping product images. */
.home .widget_products .product_list_widget li > a img {
  object-fit: contain !important;
}

.home .widget_products .product_list_widget .product-widget-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.home .widget_products .product_list_widget .product-widget-price-row del,
.home .widget_products .product_list_widget .product-widget-price-row ins {
  display: inline-block;
  margin: 0;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}