/*
BSW - Booking System Widget Styles
*/

/* Main container for the entire booking form */
.booking-form-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
}

/* Tabs styling */
#booking-tabs .nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
}

#booking-tabs .nav li a {
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    color: #555;
    display: block;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

#booking-tabs .nav li.ui-tabs-active a {
    background-color: #0073e6;
    color: #fff;
    border-bottom: 2px solid transparent;
}

.dnone {
    display: none; /* Hide unused tabs */
}

/* Form layout - using flexbox for a modern two-column feel */
.booking-form-1 .atb-box-346 {
    display: flex;
    gap: 20px;
    width: 100%;
}

.booking-form-1 .atb-box-346-inside {
    flex: 1;
    position: relative;
}

/* Input fields styling */
.booking-form-1 input[type="text"],
.booking-form-1 input[type="date"],
.booking-form-1 select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form-1 input[type="text"]:focus,
.booking-form-1 input[type="date"]:focus,
.booking-form-1 select:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
    outline: none;
}

/* Wrapper for date/time/passengers/bags */
.booking-form-hour-min-wrap,
.booking-form-pasbags {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.booking-form-hour-min-wrap > div,
.booking-form-pasbags > div {
    flex: 1;
}

.booking-form-time,
.return-journey-details-title {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* Add Waypoint Button */
.onward-add-via-box .add_button {
    text-decoration: none;
    color: #0073e6;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.onward-add-via-box .add_button img {
    width: 18px;
    height: 18px;
}

/* Map styling */
#atbMap, #atbReturnMap {
    height: 250px;
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Distance and Time display */
.route-content {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

/* Submit button */
.submit-booking-form {
    text-align: right;
    margin-top: 25px;
}

.atb-submit-button {
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.atb-submit-button:hover {
    background-color: #218838;
}

/* Helper classes */
.clear {
    clear: both;
}

.select-wrapper {
    position: relative;
}

/* Return journey block */
.return-block {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed #ccc;
}

/* Responsive styles for confirmation (3rd) and vehicle (2nd) page fields */
.vehicle-select-button {
  padding-left: 18px;
  padding-right: 18px;
}
@media (max-width: 700px) {
  .vehicle-select-button {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 480px) {
  .vehicle-select-button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  .confirmation-form-modern input,
  .confirmation-fields-row input {
    height: 22px;
    font-size: 12px;
    padding: 2px 6px;
  }
  .confirmation-form-modern textarea,
  .confirmation-fields-row textarea {
    height: 28px;
    font-size: 12px;
    padding: 2px 6px;
  }
}
