@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Prompt", "Sarabun", sans-serif;
  color: #333;
}

.thai-prompt {
  font-family: "Prompt", sans-serif;
}

.thai-sarabun {
  font-family: "Sarabun", sans-serif;
}

.text-primary {
  color: #0d6efd !important;
}

.bg-primary {
  background-color: #0d6efd !important;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.text-info {
  color: #0dcaf0 !important;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?ixlib=rb-4..3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80");
  background-size: cover;
  background-position: center;
  height: 80vh;
  color: white;
}

.card {
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

footer .btn-primary,
footer .bg-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

footer .btn-info {
  background-color: #0dcaf0 !important;
  border-color: #0dcaf0 !important;
}

footer .rounded-circle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer .btn-light:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

footer a:hover {
  color: #0d6efd !important;
}

footer .input-group .form-control:focus {
  border-color: #0d6efd;
}

@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
  }
}

.booking-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?ixlib=rb-4..3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 50vh;
  display: flex;
  align-items: center;
}

.z-index-1 {
  z-index: 1;
}

.booking-steps {
  position: relative;
  padding: 0 40px;
}

.booking-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.booking-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 50px;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  color: #6c757d;
  transition: all 0.3s ease;
}

.booking-step.active .step-number {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.step-text {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
}

.booking-step.active .step-text {
  color: #0d6efd;
  font-weight: bold;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.car-option {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.car-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.car-option.border-primary {
  border-color: #0d6efd !important;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #0d6efd;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

@media (max-width: 768px) {
  .booking-hero-section {
    height: 40vh;
  }

  .booking-steps {
    padding: 0 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .step-text {
    font-size: 0.7rem;
  }
}

.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.transition {
  transition: all 0.3s ease;
}

.btn-outline-primary.active {
  background-color: #0d6efd;
  color: white;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

.contact-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1423666639041-f56000c27a9a?ixlib=rb-4..3&auto=format&fit=crop&w=1170&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 40vh;
  display: flex;
  align-items: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover .contact-icon {
  transform: scale(1.1);
}

.card {
  transition: all 0.3s ease;
  border: none !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

#contactForm .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#contactForm .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#contactForm .form-control,
#contactForm .form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

#contactForm .form-control:hover,
#contactForm .form-select:hover {
  border-color: #0d6efd;
}

.alert-custom {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.alert-success {
  background-color: #d1edff;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-bottom-color: rgba(13, 110, 253, 0.25);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

.accordion-item {
  border: 1px solid rgba(13, 110, 253, 0.125);
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-button {
  border-radius: 8px;
  font-weight: 500;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .contact-hero-section {
    height: 30vh;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .alert-custom {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    min-width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 576px) {
  .contact-hero-section h1 {
    font-size: 2rem;
  }

  .contact-hero-section .lead {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

.card:nth-child(5) {
  animation-delay: 0.5s;
}

.card:nth-child(6) {
  animation-delay: 0.6s;
}
/* เราเพิ่มตรงนี้นะ */
.bs-stepper {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.bs-stepper-header {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-bottom: 2px solid #f1f3f5;
  padding: 20px;
}

.bs-stepper-content {
  padding: 30px;
  background: #ffffff;
}

/* Card payment method styles (แบบเดียวกับ booking.php car-card) */
.card-payment-method {
  width: 190px;
  height: 254px;
  border-radius: 30px;
  background: #212121;
  box-shadow: 15px 15px 30px rgb(25, 25, 25), -15px -15px 30px rgb(60, 60, 60);
  border: none;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s,
    transform 0.15s;
  cursor: pointer;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-payment-method:hover:not(.active):not(.disabled) {
  border: 2px solid #0dcaf0 !important;
  box-shadow: 0 0 0 2px #0dcaf055;
  background: #f8fbff;
  transform: translateY(-2px) scale(1.03);
}

.card-payment-method.active,
.btn-check:checked + .card-payment-method {
  border: 2.5px solid #0d6efd !important;
  box-shadow: 0 0 0 4px #0d6efd22, 0 2px 16px #0001 !important;
  transform: scale(1.04);
}

.card-payment-method .fa-2x {
  margin-bottom: 8px;
}

/* ติ๊กถูกมุมขวาบน */
.payment-selected-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: none;
  font-size: 1.5em;
  color: #0d6efd;

  border-radius: 50%;

  padding: 2px;
}

.card-payment-method.active .payment-selected-icon,
.btn-check:checked + .card-payment-method .payment-selected-icon {
  display: block;
}

/* New styles for payment cards */
.payment-card {
  width: 260px;
  height: 254px;
  border-radius: 20px;
  background: #f5f5f5;
  position: relative;
  padding: 1.8rem;
  border: 2px solid #c3c6ce;
  transition: 0.5s ease-out;
  overflow: visible;
  margin: 0 10px 20px 10px;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
}

.payment-card.selected,
.payment-card:has(.btn-check:checked) {
  border-color: #008bf8;
  box-shadow: 0 4px 18px 0 rgba(0, 139, 248, 0.15);
}

.payment-card .payment-selected-icon {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  font-size: 1.6em;
  color: #008bf8;

  padding: 2px;
  display: none;
  transition: 0.2s;
}

.payment-card.selected .payment-selected-icon,
.payment-card:has(.btn-check:checked) .payment-selected-icon {
  display: block;
}

.card-details {
  color: black;
  height: 100%;
  gap: 0.5em;
  display: grid;
  place-content: center;
}

.card-button {
  transform: translate(-50%, 125%);
  width: 60%;
  border-radius: 1rem;
  border: none;
  background-color: #008bf8;
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transition: 0.3s ease-out;
  cursor: pointer;
}

.text-body {
  color: rgb(134, 134, 134);
}

.text-title {
  font-size: 1.5em;
  font-weight: bold;
}

.payment-card:hover {
  border-color: #008bf8;
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.payment-card:hover .card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

@media (max-width: 900px) {
  .payment-card {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto 20px auto;
  }
}

.payment-card-group {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bs-stepper-header .step-trigger {
  pointer-events: none;
  cursor: default;
  opacity: 1;
}

.form-control,
.form-select {
  height: 58px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 202, 240, 0.1);
}

input[type="file"].form-control {
  height: auto !important;
  border-radius: 6px !important;
  border: 1px solid #ced4da !important;
  padding: 8px 12px !important;
  background: #fff !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: border-color 0.2s;
}

input[type="file"].form-control:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 2px rgba(13, 202, 240, 0.15) !important;
}

#creditCardForm input[type="text"],
#creditCardForm input[type="password"] {
  font-size: 1.2em;
  letter-spacing: 0.1em;
}
