/*--------------------------------------------------------------
# Rent A Car Booking Form Style
--------------------------------------------------------------*/
.place-booking-form {
  margin-top : 100px;
   background: var(--secondary-color-rent-car);
  padding: 30px 0;
}
.place-booking-form .title-description-section h3 {
  color: var(--white);
}
.racb-booking-form {
   width: 100%;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: "Outfit", sans-serif;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;

  /* for elementor */
}
.racb-field input {
        font-family: Outfit;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-dark);
    line-height: 22px;
    text-align: left;
    width: 100%;
    background: var(--white);
  border: 1px solid #d2d1d6;
    border-radius: var(--border-radius-30);
    padding: 15px 20px;
}

.racb-booking-form h2 {
    text-align: center;
    color: #fff;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
    width: 100%;
}

.racb-booking-form h2:after {
  content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
  background: #f5b754;
    border-radius: 3px;
}

.racb-field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
}

.racb-field label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.racb-field label:before {
  content: "";
    width: 6px;
    height: 6px;
  background: #f5b754;
    margin-right: 8px;
    border-radius: 50%;
}

.racb-field input,
.racb-field select {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    transition: all 0.3s ease;
    background: #374151;
    color: #fff;
  font-family: "Outfit", sans-serif;
    width: 100%;
  height: 50px;
  box-sizing: border-box;
}

.racb-field input:focus,
.racb-field select:focus {
  border-color: #f5b754;
    background: #2d3748;
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 183, 84, 0.15);
}

.racb-field input::placeholder {
    color: #9ca3af;
    font-size: 15px;
}

.racb-submit {
  background: linear-gradient(45deg, #f5b754, #f7c778);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 183, 84, 0.3);
}

.racb-submit:hover {
  background: linear-gradient(45deg, #f7c778, #f5b754);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 183, 84, 0.4);
}

/*------------------------------
# Success & Error Messages
------------------------------*/
.racb-message {
    text-align: center;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    animation: slideIn 0.3s ease;
}

.racb-message.success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.racb-message.error {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .racb-booking-form {
      
        margin: 20px 15px;
    }
    
    .racb-booking-form h2 {
        font-size: 24px;
    }
    
    .racb-field {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .racb-field input,
    .racb-field select {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .racb-submit {
        padding: 14px 25px;
        font-size: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .racb-booking-form {
        padding: 20px;
    }
    
    .racb-booking-form h2 {
        font-size: 22px;
    }
    
    .racb-field {
        margin-bottom: 12px;
    }
    
    .racb-field input,
    .racb-field select {
        padding: 10px 15px;
    }
}
 
/*------------------------------
# Responsive
------------------------------*/
@media (max-width: 480px) {
    .racb-booking-form {
        padding: 20px;
        border-radius: 20px;
    }

    .racb-booking-form h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .racb-field input,
    .racb-field select {
        font-size: 15px;
        padding: 10px 14px;
    }

    .racb-submit {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Admin stat cards */
.racb-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 160px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.racb-card-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.racb-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.racb-pagination .page-numbers {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  margin: 0 4px;
}
.racb-pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.racb-pagination .page-numbers:hover {
  border-color: #ddd;
}

/* Colored cards with icons */
.racb-cards-wrap {
  margin-top: 30px !important;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.racb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  min-width: 220px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  flex: 1 1 260px;
}
.racb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}
.racb-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.racb-card-body {
  display: flex;
  flex-direction: column;
}
.racb-card-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.racb-card-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

/* Variants */
.racb-card--today {
  background: linear-gradient(90deg, #ffb347, #ffcc33);
}
.racb-card--today .racb-card-icon {
  background: rgba(255, 255, 255, 0.12);
}
.racb-card--pending {
  background: linear-gradient(90deg, #f5b754, #f7c778);
}
.racb-card--pending .racb-card-icon {
  background: rgba(255, 255, 255, 0.12);
}
.racb-card--confirmed {
  background: linear-gradient(90deg, #10b981, #059669);
}
.racb-card--confirmed .racb-card-icon {
  background: rgba(255, 255, 255, 0.12);
}
.racb-card--cancelled {
  background: linear-gradient(90deg, #ff6b6b, #ff4d6d);
}
.racb-card--cancelled .racb-card-icon {
  background: rgba(255, 255, 255, 0.12);
}

/* Dashicons sizing */
.racb-card .dashicons {
  font-size: 22px;
  line-height: 1;
}

/* Status badges */
.racb-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.racb-status--pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.racb-status--confirmed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.racb-status--cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/*------------------------------
# Booking Confirmation Modal
------------------------------*/
#racb-booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.racb-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.racb-modal-content {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.racb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.racb-modal-header h3 {
  margin: 0;
  color: var(--secondary-color-rent-car);
  font-size: 24px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.racb-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.racb-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f5b754;
}

.racb-modal-body {
  padding: 32px 24px;
  text-align: center;
}

.racb-modal-icon {
  width: 80px;
  height: 80px;
  background: #4c763b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  font-size: 36px;
  color: #fff;
  font-weight: bold;
}

.racb-modal-body p {
  margin: 0 0 16px 0;
  color: var(--secondary-color-rent-car);
  font-size: 16px;
  line-height: 1.6;
  font-family: "Outfit", sans-serif;
}

.racb-modal-body p:last-child {
  margin-bottom: 0;
  color: var(--secondary-color-rent-car);
  font-size: 14px;
}

.racb-modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  justify-content: center;
}

.racb-modal-btn {
  background: linear-gradient(45deg, #f5b754, #f7c778);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(245, 183, 84, 0.3);
}

.racb-modal-btn:hover {
  background: linear-gradient(45deg, #f7c778, #f5b754);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 183, 84, 0.4);
}

.racb-modal-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .racb-modal-overlay {
    padding: 16px;
  }

  .racb-modal-content {
    border-radius: 12px;
  }

  .racb-modal-header {
    padding: 20px 20px 0 20px;
  }

  .racb-modal-header h3 {
    font-size: 20px;
  }

  .racb-modal-body {
    padding: 24px 20px;
  }

  .racb-modal-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin-bottom: 20px;
  }

  .racb-modal-footer {
    padding: 0 20px 20px 20px;
  }
}

/*------------------------------
# Flatpickr Custom Styling
------------------------------*/
.flatpickr-time .flatpickr-time-separator {
  height: initial !important;
}
.flatpickr-calendar {
  background: var(--white) !important;
  border: 1px solid #d2d1d6 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 14px !important;
}

.flatpickr-months {
  background: var(--secondary-color-rent-car) !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px !important;
}

.flatpickr-month {
  background: transparent !important;
  color: #fff !important;
}

.flatpickr-current-month {
  color: #fff !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: #fff !important;
  fill: #fff !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: #f5b754 !important;
  fill: #f5b754 !important;
}

.flatpickr-weekdays {
  background: rgba(245, 183, 84, 0.1) !important;
  border-bottom: 1px solid #d2d1d6 !important;
}

.flatpickr-weekday {
  color: var(--secondary-color-rent-car) !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.flatpickr-days {
  background: var(--white) !important;
}

.flatpickr-day {
  color: var(--secondary-color-rent-car) !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 400 !important;
  border-radius: 8px !important;
  margin: 2px !important;
  transition: all 0.3s ease !important;
}

.flatpickr-day:hover {
  background: rgba(245, 183, 84, 0.1) !important;
  color: var(--secondary-color-rent-car) !important;
  border: 1px solid #f5b754 !important;
}

.flatpickr-day.selected {
  background: #f5b754 !important;
  color: #fff !important;
  border: 1px solid #f5b754 !important;
  font-weight: 600 !important;
}

.flatpickr-day.selected:hover {
  background: #f7c778 !important;
  color: #fff !important;
}

.flatpickr-day.today {
  background: rgba(245, 183, 84, 0.2) !important;
  color: var(--secondary-color-rent-car) !important;
  border: 1px solid rgba(245, 183, 84, 0.5) !important;
  font-weight: 600 !important;
}

.flatpickr-day.today:hover {
  background: rgba(245, 183, 84, 0.3) !important;
}

.flatpickr-day.disabled {
  color: #9ca3af !important;
  background: transparent !important;
}

.flatpickr-day.disabled:hover {
  background: transparent !important;
  color: #9ca3af !important;
}

/* Time picker styling */
.flatpickr-time {
  background: var(--white) !important;
  border-top: 1px solid #d2d1d6 !important;
  border-radius: 0 0 12px 12px !important;
  padding: 12px !important;
  max-height: 78px !important;
}

.flatpickr-time input {
  background: transparent !important;
  color: var(--secondary-color-rent-car) !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 500 !important;
  border: 1px solid #d2d1d6 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  transition: all 0.3s ease !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
  border-color: #f5b754 !important;
  box-shadow: 0 0 0 2px rgba(245, 183, 84, 0.15) !important;
  outline: none !important;
}

.flatpickr-time .flatpickr-time-separator {
  color: var(--secondary-color-rent-car) !important;
  font-weight: 600 !important;
}

/* Alt input styling (the visible input) */
.flatpickr-input {
  font-family: "Outfit", sans-serif !important;
  color: var(--secondary-color-rent-car) !important;
  background: var(--white) !important;
  border: 1px solid #d2d1d6 !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  transition: all 0.3s ease !important;
}

.flatpickr-input:hover {
  border-color: #f5b754 !important;
}

.flatpickr-input:focus {
  border-color: #f5b754 !important;
  box-shadow: 0 0 0 4px rgba(245, 183, 84, 0.15) !important;
  outline: none !important;
}
.flatpickr-calendar.hasTime .flatpickr-time {
  height: 65px !important;
}
/* Arrow styling */
.flatpickr-input[readonly] {
  cursor: pointer !important;
}

.flatpickr-input[readonly]:after {
  content: "📅" !important;
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}
