@import "./variables.css";

body {
  font-family: "Outfit", sans-serif;
  background-color: #000;
  margin: 0;
  padding: 0;
}

.g-4-5 {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 2.5rem;
}

.booking-popup {
  background: #111;
  width: 1024px;
  max-width: 95%;
  border-radius: 20px;
}

/* ✅ Header text style */
.text-warning {
  font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.text-center.mb-4 small {
  display: block;
  margin-bottom: 8px;
}

h2.fw-bold {
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---- Step Indicator ---- */
.step-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  width: 80%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

.step p {
  font-size: 12px;
  color: #888;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 25px;
}

.step.active p {
  color: #fff;
  font-weight: 600;
}

.step-icon {
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  opacity: 1;
  filter: brightness(1) saturate(2);
}

.line {
  flex-grow: 1;
  height: 2px;
  background-color: #bbbcbe;
  margin: 0 -20px;
  top: -19px;
  position: relative;
  z-index: 1;
}

/* ---- Animation + Input giữ nguyên ---- */
.step-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom input chung */

.custom-input {
  background-color: #111;
  border: 1px solid var(--input-color);
  border-radius: 24px;
  color: #fff;
  padding: 20px;
  width: 100%;
  height: 50px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.custom-input::placeholder {
  color: var(--input-color);
}

.custom-input:focus {
  background-color: transparent;
  color: #fff;
  border-color: var(--input-color);
  outline: none;
  box-shadow: none;
}

.custom-input::placeholder {
  color: #aaa;
}

/* ô input list */

.dropoff-section .dropoff-input {
  background-color: #111;
  border: 1px solid var(--input-color);
  border-radius: 24px;
  color: #fff;
  padding: 20px;
  width: 100%;
  height: 50px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.dropoff-section .dropoff-input::placeholder {
  color: var(--input-color);
}

.dropoff-section .dropoff-input:focus {
  background-color: transparent;
  color: #fff;
  border-color: var(--input-color);
  outline: none;
  box-shadow: none;
}

/* Số thứ tự trong input */
.dropoff-section .circle-number {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--main-color);
  color: #000;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
}

/* Cần padding trái lớn hơn nếu có số */
.dropoff-section .has-number .dropoff-input {
  padding-left: 55px;
}

/* Nút Add stop */
.dropoff-section .add-btn {
  border: 1px dashed var(--main-color);
  color: var(--main-color);
  border-radius: 24px;
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dropoff-section .add-btn:hover {
  background-color: var(--main-color);
  color: #000;
}

/* Nút Remove */
.dropoff-section .remove-btn {
  border: 1px solid #888;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.dropoff-section .remove-btn:hover {
  background-color: var(--main-color);
  color: #000;
}

.dropoff-section .dropoff-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.dropoff-section .dropoff-item + .dropoff-item {
  margin-top: 12px;
  transition: all 0.3s ease;
}

.dropoff-section .dropoff-item.adding {
  opacity: 0;
  transform: translateY(-10px);
}

.dropoff-section .dropoff-item.adding.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Hiệu ứng xóa */
.dropoff-section .dropoff-item.removing {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* ============== Button Footer ============= */

.btn-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

#backBtn1,
#backBtn2 {
  background-color: #222222;
  color: #fff;
  border: 1px solid #333;
}

.btn-main {
  background-color: var(--main-color);
  color: #000;
  font-size: 16px;
  width: 195.89px;
  height: 60px;
  border-radius: 30px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-main:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* === Container cho Toggle và Button === */
.footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  appearance: none;
  width: 45px;
  height: 24px;
  background-color: #555;
  border-radius: 34px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  top: 2px;
  left: 4px;
  transition: all 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked {
  background-color: var(--main-color);
}

.toggle-switch input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

.toggle-switch label {
  color: #fff;
  font-size: 16px;
  user-select: none;
}

/* =============== Card car ============== */

.car-card-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.car-card-item {
  background: #222222;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 150px;
}
.car-card-item:hover {
  border-color: var(--main-color);
  background: #2a2a2a;
}

.car-card-item .car-image {
  width: 200px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  display: flex;
  align-self: center;
}

.car-info {
  flex: 1;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 28px;
  height: 100%;
}

.car-name {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}

.car-details {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--font-size-base);
  color: var(--input-color);
  margin-top: 5px;
}

.car-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-book-car {
  width: 14px;
  height: 14px;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: middle;
}

.car-desc {
  font-size: var(--font-size-base);
  color: var(--input-color);
  margin-top: 5px;
  margin-bottom: 0;
}

.car-price {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 80px;
}

.car-price span {
  color: var(--main-color);
  font-weight: 600;
  font-size: 18px;
}

/* Ẩn input radio gốc */
.car-checkbox {
  display: none;
}

/* Vòng tròn chọn */
.radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: all 0.2s ease;
}

/* Khi được chọn */
.car-checkbox:checked + img + .car-info + .car-price .radio {
  background-color: var(--main-color);
  border-color: var(--main-color);
}

.car-checkbox:checked ~ img,
.car-checkbox:checked ~ .car-info,
.car-checkbox:checked ~ .car-price {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.car-checkbox:checked ~ img,
.car-checkbox:checked ~ .car-info,
.car-checkbox:checked ~ .car-price {
  transform: scale(1.02);
}

.car-card-item:active {
  transform: scale(0.98);
}

.car-card-item {
  transition: all 0.3s ease;
}

/* ---------- Optional Service Card ---------- */

.option-card-container {
  margin-top: 15px;
}

.option-card {
  background: #222222;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #333;
  min-height: 100px;
}

.option-card:hover {
  border-color: var(--main-color);
  background: #2a2a2a;
  /* transform: translateY(-2px); */
}

/* Checkbox */
.option-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 20px;
  accent-color: var(--main-color);
  cursor: pointer;
}

/* Nội dung bên trái */
.option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.option-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.option-desc {
  font-size: var(--font-size-base);
  font-weight: 300;
  color: var(--input-color);
  margin-top: 6px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Giá */
.option-price {
  color: var(--main-color);
  font-weight: 600;
  font-size: 18px;
  margin-left: 20px;
}

/* ================== Step 3 ================ */

.step-payment {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.order-info {
  background: #222;
  border-radius: 12px;
  padding: 20px 25px;
  color: #fff;
  max-width: 100%;
  word-break: break-word;
  border: 1px solid var(--border-color);
}

.order-user {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.user-left {
  flex: 0 0 350px;
  max-width: 350px;
  word-break: break-word;
  white-space: normal;
}

.user-right {
  flex: 1;
  min-width: 250px;
}

.text-pickup {
  color: #fff !important;
}

.order-user p {
  margin: 8px 0;
  color: var(--input-color);
  font-size: var(--font-size-base);
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 8px;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

.order-user img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateY(2px);
}

/* ============= Order xe ============= */

/* --- Tổng thể --- */
.order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  justify-content: flex-start;
}

/* --- CARD XE --- */
.car-card {
  display: flex;
  background: var(--background-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.img-car {
  display: flex;
  justify-content: center;
  width: 45%;
}

.car-card img {
  width: 320px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.car-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex-grow: 1;
  width: 55%;
}

.car-name {
  font-size: 18px;
  font-weight: 600;
}

.car-details {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.car-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.car-details img {
  width: 16px;
  height: 16px;
}

.car-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 4px;
}

/* --- CARD GIÁ TIỀN --- */
.price-summary {
  background: var(--background-card);
  border-radius: 12px;
  padding: 25px 30px;
  flex: 0.8;
  min-width: 350px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.price-row span:last-child {
  font-weight: 500;
}

.discount span:last-child {
  color: #00cc66;
}

.total {
  font-weight: 700;
  font-size: 16px;
  margin-top: 10px;
}

hr {
  border: none;
  border-top: 1px solid #444;
  margin: 10px 0;
}

/* --- COUPON --- */
.coupon-row {
  display: flex;
  align-items: center;
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 4px;
  margin-top: 15px;
  width: 100%;
  height: 50px;
}

.coupon-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--input-color);
  font-size: 14px;
  padding: 0 15px;
  outline: none;
}

.coupon-btn {
  background-color: var(--main-color);
  color: #000;
  border: none;
  border-radius: 40px;
  padding: 8px 25px;
  height: 100%;
  cursor: pointer;
  transition: transform 0.1s ease;
  position: relative;
  right: 18px;
}

.coupon-btn:hover {
  background-color: #f1cd66;
}

.coupon-btn:active {
  transform: scale(0.96);
}

.custom-checkbox {
  accent-color: var(--main-color);
  width: 16px;
  height: 16px;
}

/* ======== index 2 ========== */

.flex-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

select.custom-input {
  height: 50px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: 1.5 !important;
  color: #fff !important;
  appearance: none;
}

select.custom-input option {
  background-color: #000;
}
