/* bus-bookings/assets/css/frontend.css */

.bb-booking-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bb-booking-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bb-form-section {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.bb-form-section:last-of-type {
    border-bottom: none;
}

.bb-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.bb-bus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bb-bus-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bb-bus-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bb-bus-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bb-bus-radio:checked + .bb-bus-label {
    border-color: #2271b1;
    background-color: #f0f6fc;
}

.bb-bus-radio:checked + .bb-bus-label .bb-bus-availability {
    display: block;
}

.bb-bus-label {
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bb-bus-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bb-bus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-bus-info {
    padding: 15px;
}

.bb-bus-name {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.bb-bus-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.bb-bus-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #555;
}

.bb-bus-meta span {
    display: block;
}

.bb-bus-availability {
    display: none;
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.bb-bus-availability h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #2271b1;
}

.bb-mini-calendar {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
}

.bb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.bb-calendar-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bb-calendar-nav {
    display: flex;
    gap: 10px;
}

.bb-calendar-nav button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.bb-calendar-nav button:hover {
    background: #135e96;
}

.bb-calendar-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.bb-calendar-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    padding: 5px;
}

.bb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-calendar-day.empty {
    cursor: default;
}

.bb-calendar-day.available {
    background: #e7f5e7;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.bb-calendar-day.available:hover {
    background: #c8e6c9;
    transform: scale(1.05);
}

.bb-calendar-day.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.bb-calendar-day.selected {
    background: #2271b1;
    color: #fff;
    font-weight: 600;
    border: 2px solid #135e96;
}

.bb-datetime-wrapper {
    margin-bottom: 20px;
}

.bb-selected-date-display {
    background: #f0f6fc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.bb-selected-date-display h3 {
    margin: 0;
    font-size: 18px;
    color: #2271b1;
}

.bb-time-slots-section {
    margin-bottom: 20px;
}

.bb-time-slots-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.bb-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.bb-time-slot {
    padding: 15px 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.bb-time-slot.available {
    background: #fff;
    color: #333;
}

.bb-time-slot.available:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.bb-time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.bb-time-slot.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.bb-duration-section {
    margin-top: 20px;
}

.bb-hours-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.bb-hour-btn {
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.bb-hour-btn:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.bb-hour-btn.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.bb-hour-btn.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.bb-passenger-wrapper,
.bb-summary-wrapper,
.bb-payment-wrapper {
    margin-bottom: 20px;
}

.bb-form-group {
    margin-bottom: 20px;
}

.bb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.bb-form-group input[type="text"],
.bb-form-group input[type="email"],
.bb-form-group input[type="tel"],
.bb-form-group input[type="number"],
.bb-form-group select,
.bb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.bb-form-group input:focus,
.bb-form-group select:focus,
.bb-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.bb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bb-form-group-half {
    margin-bottom: 0;
}

.bb-field-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.bb-passengers-list {
    margin-top: 20px;
}

.bb-passenger-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
}

.bb-passenger-item h4 {
    margin-top: 0;
    color: #2271b1;
}

.bb-passenger-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bb-remove-passenger {
    position: absolute;
    top: 10px;
    right: 10px;
}

.bb-summary-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.bb-fare-breakdown {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.bb-fare-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bb-fare-row:last-child {
    border-bottom: none;
}

.bb-fare-label {
    font-weight: 500;
    color: #555;
	font-size:16px;
}

.bb-fare-value {
    font-weight: 600;
    color: #333;
	font-size:16px;
	text-align:right;
}

.bb-fare-minimum {
    background: #fff9e6;
    padding: 8px 10px;
    margin: 0 -10px;
}

.bb-fare-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #2271b1;
    font-size: 18px;
}

.bb-payment-security {
    background: #e7f5e7;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    color: #2e7d32;
}

.bb-section-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.bb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bb-btn-next,
.bb-btn-submit {
    background: #2271b1;
    color: #fff;
}

.bb-btn-next:hover,
.bb-btn-submit:hover {
    background: #135e96;
}

.bb-btn-prev {
    background: #f0f0f1;
    color: #333;
}

.bb-btn-prev:hover {
    background: #dcdcde;
}

.bb-btn-secondary {
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.bb-btn-secondary:hover {
    background: #2271b1;
    color: #fff;
}

.bb-btn-small {
    padding: 6px 15px;
    font-size: 14px;
}

.bb-form-messages {
    margin-top: 20px;
}

.bb-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.bb-message-error {
    background: #fcebea;
    color: #d63638;
    border-left: 4px solid #d63638;
}

.bb-message-success {
    background: #e7f5e7;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.bb-form-loader {
    text-align: center;
    padding: 40px;
}

.bb-loader-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: bb-spin 1s linear infinite;
}

@keyframes bb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bb-loader-text {
    display: block;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

.bb-confirmation-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.bb-confirmation-icon {
    font-size: 80px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.bb-confirmation-details {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

.bb-confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.bb-confirmation-table th,
.bb-confirmation-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.bb-confirmation-table th {
    background: #f9f9f9;
    font-weight: 600;
    width: 40%;
}

.bb-no-buses {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .bb-bus-grid {
        grid-template-columns: 1fr;
    }
    
    .bb-form-row {
        grid-template-columns: 1fr;
    }
    
    .bb-passenger-fields {
        grid-template-columns: 1fr;
    }
    
    .bb-section-navigation {
        flex-direction: column;
    }
    
    .bb-btn {
        width: 100%;
    }
    
    .bb-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .bb-hours-selector {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
.bb-billing-wrapper {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.bb-billing-wrapper h3,
.bb-payment-wrapper h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2271b1;
}

.bb-summary-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.bb-summary-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.bb-summary-section .bb-fare-row {
    background: #fff;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 4px;
}
/* Add this to bus-bookings/assets/css/frontend.css */

.bb-fare-breakdown {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.bb-fare-breakdown > h3 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    font-size: 22px;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.bb-summary-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bb-summary-section {
    margin-bottom: 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.bb-summary-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.bb-summary-section .bb-fare-row {
    background: #fff;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 4px;
}

.bb-fare-total {
    grid-column: 1 / -1;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 3px solid #2271b1 !important;
    font-size: 20px !important;
    background: #f0f6fc !important;
    padding: 15px !important;
    border-radius: 6px !important;
}

@media screen and (max-width: 768px) {
    .bb-summary-sections-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 1024px) {
    .bb-summary-sections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Add this to bus-bookings/assets/css/frontend.css */

.bb-billing-wrapper .bb-form-row,
.bb-payment-wrapper .bb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.bb-billing-wrapper .bb-form-group,
.bb-payment-wrapper .bb-form-group {
    display: grid;
    grid-template-columns: 172px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.bb-billing-wrapper .bb-form-group label,
.bb-payment-wrapper .bb-form-group label {
    margin-bottom: 0;
    text-align: left;
    white-space: nowrap;
	font-size:16px;
	margin-left:10px;
}

.bb-billing-wrapper .bb-form-group input,
.bb-billing-wrapper .bb-form-group select,
.bb-payment-wrapper .bb-form-group input,
.bb-payment-wrapper .bb-form-group select {
    width: 100%;
}

.bb-billing-wrapper .bb-form-group textarea {
    grid-column: 1 / -1;
}

.bb-billing-wrapper .bb-form-group:has(textarea) {
    grid-template-columns: 1fr;
    gap: 8px;
}

.bb-billing-wrapper .bb-form-group:has(textarea) label {
    text-align: left;
}

.bb-billing-wrapper .bb-form-row .bb-form-group {
    grid-column: span 1;
}

.bb-payment-wrapper .bb-form-group.bb-form-group-half {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.bb-payment-wrapper .bb-form-group:has(input[type="checkbox"]) {
    grid-template-columns: 1fr;
    gap: 0;
}

.bb-payment-wrapper .bb-form-group:has(input[type="checkbox"]) label {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-field-note {
    grid-column: 2 / -1;
    margin-top: -10px;
}

@media screen and (max-width: 768px) {
    .bb-billing-wrapper .bb-form-row,
    .bb-payment-wrapper .bb-form-row {
        grid-template-columns: 1fr;
    }
    
    .bb-billing-wrapper .bb-form-group,
    .bb-payment-wrapper .bb-form-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .bb-billing-wrapper .bb-form-group label,
    .bb-payment-wrapper .bb-form-group label {
        text-align: left;
    }
    
    .bb-field-note {
        grid-column: 1 / -1;
    }
}
select#bb-card-exp-month {width:90%; margin-left:22px;}
input[type=checkbox]{width:auto!important;}
@media screen and (min-width: 1200px) {
input[type=checkbox]{margin-left:182px;}
}
.bb-time-slot {
    padding: 15px 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.bb-time-slot.available {
    background: #fff;
    color: #333;
    border-color: #4caf50;
}

.bb-time-slot.available:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.bb-time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #ddd;
}

.bb-time-slot.booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
    border-color: #ef5350;
    opacity: 0.7;
}

.bb-time-slot.buffer {
    background: #fff3e0;
    color: #e65100;
    cursor: not-allowed;
    border: 2px dashed #ff9800;
    opacity: 0.8;
}

.bb-time-slot.buffer::after {
    content: 'Buffer Time';
    display: block;
    font-size: 10px;
    font-weight: normal;
    margin-top: 2px;
    color: #f57c00;
}

.bb-time-slot.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.bb-buffer-indicator,
.bb-booked-indicator {
    display: block;
    font-size: 16px;
    margin-top: 4px;
}

.bb-time-slots-section {
    margin-bottom: 20px;
}

.bb-time-slots-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.bb-time-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.bb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.bb-legend-box {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid;
}

.bb-legend-box.available {
    background: #fff;
    border-color: #4caf50;
}

.bb-legend-box.booked {
    background: #ffebee;
    border-color: #ef5350;
}

.bb-legend-box.buffer {
    background: #fff3e0;
    border: 2px dashed #ff9800;
}

.bb-legend-box.unavailable {
    background: #f5f5f5;
    border-color: #ddd;
}

@media screen and (max-width: 768px) {
    .bb-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .bb-time-slot {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .bb-time-legend {
        flex-direction: column;
        gap: 10px;
    }
}
/* Time slot styles with buffer highlighting */
.bb-time-slot.booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
    border-color: #ef5350;
    opacity: 0.7;
}

.bb-time-slot.buffer {
    background: #fff3e0;
    color: #e65100;
    cursor: not-allowed;
    border: 2px dashed #ff9800;
    opacity: 0.85;
}

.bb-time-slot.buffer:hover {
    transform: none;
    box-shadow: none;
}
.bb-time-slot.insufficient {
    background: #e3f2fd;
    color: #1565c0;
    cursor: not-allowed;
    border: 2px dotted #42a5f5;
    opacity: 0.7;
}

.bb-time-slot.insufficient:hover {
    transform: none;
    box-shadow: none;
}
/* Booking Quick Summary */
.bb-booking-quick-summary {
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.bb-booking-quick-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.bb-quick-summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bb-summary-item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.bb-summary-item.bb-summary-total {
    background: #2271b1;
    color: #fff;
}

.bb-summary-label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.bb-summary-total .bb-summary-label {
    color: #fff;
}

.bb-summary-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

.bb-summary-total .bb-summary-value {
    color: #fff;
}

/* Passenger form improvements */
.bb-passengers-list h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.bb-passenger-item h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2271b1;
}

@media screen and (max-width: 768px) {
    .bb-quick-summary-content {
        grid-template-columns: 1fr;
    }
}