#cab-booking-form {
    /* background-color: #f9f9f9; */
    padding: 20px;
    /* border: 1px solid #ddd; */
    /* max-width: 400px;
    margin: 20px auto; */
    font-family: Arial, sans-serif;
    padding-right: 35px;
    width: 100%;
    margin: 0;
    padding: 0;

}

#cab-booking-form label {
    font-weight: bold;
    display: block;
    /* margin-bottom: 5px; */
}

/*#cab-booking-form input, #cab-booking-form select, #cab-booking-form textarea {*/
/*    width: 100%;*/
/*    padding: 10px;*/
    /* margin-bottom: 15px; */
/*    border: 1px solid #ccc;*/
/*    border-radius: 5px;*/
/*    padding-right:0;*/
/*}*/

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-family: 'Inter', sans-serif;
  color: #333;
  appearance: none; /* Removes default styles for select */
  transition: border 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2563eb; /* Blue focus */
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); /* Soft glow */
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

input#submit_booking{
    justify-self: center;
    display: flex;
}
.box-shadow {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin: auto;
}

p.success-msg{
    border-left: 2px solid green;
    background: #00800038;
    padding: 10px;
}
p.error-msg{
    border-left: 2px solid red;
    background: #ff000024;
    padding: 10px;
}

h1.phone-number{
    background: #FFD700;
    padding: 10px;
    border-radius: 10px;
    font-weight: 800;
    width: 385px;
}

.display-none{
    display:none;
}
.has-global-padding{
    padding-right: 10px !important;
    padding-left: 10px !important;
}

#trip_details{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px;
    background: #000;
    color: #fff;
    width: 100%;
    padding-bottom: 0;
}

div#map{
    height: 400px;
    width: auto;
    position: relative;
    overflow: hidden;
    margin-left: -22px;
    margin-right: -22px;
}

input.wp-block-button__link[type="submit"]:disabled {
    background-color: #636363; 
}
input.wp-block-button__link[type="submit"]:not(:disabled):hover{
    background-color: #111111; 
}

 /* Responsive styling */
 @media (max-width: 600px) {
    #priceResult {
        padding-right: 25px;
    }
}

/* #cab-booking-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

#cab-booking-form input[type="submit"]:hover {
    background-color: #005177;
} */

 /* Container styling */
 .slider-container {
    display: flex;
    background-color: #000; /* Black background */
    border-radius: 30px;
    padding: 5px;
    width: 200px;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Option button styling */
  .slider-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 30px;
    cursor: pointer;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
  }

  /* Active option style */
  .slider-option.active {
    color: #000;
    background-color: #fff;
  }

/****************************************** DATE TIME PICKER STYLING ***************************/

/* Style the main DateTimePicker container */
.ui-datepicker, .ui-timepicker-container {
    font-family: Arial, sans-serif;
    background-color: #fff; /* Light background */
    color: #333; /* Darker text */
    border: 1px solid #ddd; /* Light border */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

/* Style the header with month and year */
.ui-datepicker-header {
    background-color: #f7f7f7;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    text-align: center;
}

/* Style the navigation buttons */
.ui-datepicker-prev, .ui-datepicker-next {
    color: #333;
    background: #eaeaea;
    border-radius: 4px;
    padding: 4px;
    transition: background 0.3s;
}

.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: #ccc;
    cursor: pointer;
}

/* Style the days of the week header */
.ui-datepicker th {
    color: #666;
    padding: 5px;
    font-weight: normal;
}

/* Style individual day cells */
.ui-datepicker td a {
    color: #333;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s;
}

/* Style the selected day */
.ui-datepicker td .ui-state-active {
    background-color: #0073e6;
    color: #fff;
}

/* Disabled days */
.ui-datepicker-unselectable .ui-state-disabled {
    color: #ccc;
}

/* Style time picker section */
.ui-timepicker-div {
    background-color: #fff;
    border-top: 1px solid #ddd;
    color: #333;
    padding: 10px;
    margin-top: -10px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Time picker button styling */
.ui-timepicker-div .ui-widget-content {
    background: #f7f7f7;
}

.ui-timepicker-div .ui-widget-content .ui-state-default {
    color: #333;
    background-color: #eaeaea;
    border-radius: 4px;
    padding: 6px;
}

.ui-timepicker-div .ui-widget-content .ui-state-default:hover {
    background-color: #ddd;
}

/* Style the time selection list */
.ui-timepicker-div .ui-timepicker-list {
    color: #333;
    background-color: #fff;
    padding: 5px;
    border-radius: 6px;
}

.ui-timepicker-div .ui-timepicker-list li {
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.ui-timepicker-div .ui-timepicker-list li:hover {
    background-color: #f0f0f0;
}

/* Input field styling */
#date {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}


/****************************************** DATE TIME PICKER STYLING ***************************/

/************************* STYLING FOR TOASTS **********************/

/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast message */
.toast {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    min-width: 200px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    animation: fadeInOut 4s forwards;
}

/* Error and warning styles */
.toast-error {
    background-color: #d9534f;
}
.toast-warning {
    background-color: #f0ad4e;
}

/* Fade animation */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/************************* STYLING FOR TOASTS **********************/


div.prediction-item{
    border-bottom: 1px solid grey;
    cursor: pointer;
    padding-bottom: 5px;
}

/******************************** STYLING FOR LOADER ***************************/

  /* Fullscreen loader overlay */
  .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999; /* Ensure it stays above other content */
}

/* Spinner styling */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid black;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Text styling */
.loader-text {
    font-size: 1.5rem;
    color: black;
    text-align: center;
}

/******************************** BOOKING MODAL POPUP ****************/
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Close Button */
.close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Input and Button Styling */
.otp-input {
    width: 200px;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.confirm-booking-btn {
    margin-top: 15px;
}

  /* Responsive styling */
  @media (max-width: 600px) {
    .modal-content {
        margin: 60% auto;
    }
}


/******************************** BOOKING MODAL POPUP ****************/

  .toggle-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
    position: relative; /* for the off-screen input */
    float: right;
    top: -110px;
  }
  .toggle-switch input {
    /* hide the checkbox but keep it togglable via the label */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  .toggle-switch .slider {
    display: inline-block;
    width: 32px;
    height: 16px;
    background: #ccc;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
  }
  .toggle-switch .slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
  }
  /* Use the general sibling selector so whitespace won’t break it */
  .toggle-switch input:checked ~ .slider {
    background: #4caf50;
  }
  .toggle-switch input:checked ~ .slider::before {
    transform: translateX(16px);
  }


