/**
 * Car Transfer Booking V2 - Enhanced Responsive Styles
 * IMPORTANT: All styles are scoped to prevent theme interference
 */

:root {
    --ctb-primary: #4B3D2A;
    --ctb-secondary: #F1B203;
    --ctb-success: #28A745;
    --ctb-error: #DC3545;
    --ctb-warning: #ff9800;
    --ctb-text: #333333;
    --ctb-text-light: #666666;
    --ctb-border: #DDDDDD;
    --ctb-bg: #FFFFFF;
    --ctb-bg-light: #F9F9F9;
    --ctb-radius: 8px;
    --ctb-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --ctb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   CRITICAL: Theme Override Protection
   ========================================== */

/* Reset box-sizing only within our plugin wrapper */
.ctb-booking-wrapper *,
.ctb-booking-wrapper *::before,
.ctb-booking-wrapper *::after {
    box-sizing: border-box !important;
}

.ctb-booking-wrapper {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.6 !important;
    color: var(--ctb-text) !important;
}

/* Protect all inputs from theme override */
.ctb-booking-wrapper input[type="text"],
.ctb-booking-wrapper input[type="email"],
.ctb-booking-wrapper input[type="tel"],
.ctb-booking-wrapper input[type="number"],
.ctb-booking-wrapper input[type="date"],
.ctb-booking-wrapper input[type="time"],
.ctb-booking-wrapper select,
.ctb-booking-wrapper textarea {
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--ctb-text) !important;
    background: var(--ctb-bg) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Protect all buttons from theme override */
.ctb-booking-wrapper button,
.ctb-booking-wrapper .ctb-btn {
    font-family: inherit !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
    outline: none !important;
}

/* Protect Dashicons from theme override */
.ctb-booking-wrapper .dashicons {
    font-family: dashicons !important;
    display: inline-block !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    font-style: normal !important;
    speak: never !important;
    text-decoration: inherit !important;
    text-transform: none !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ==========================================
   TABS & PROGRESS (Mobile Optimized)
   ========================================== */

.ctb-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
    gap: 8px;
}

.ctb-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    flex: 1;
    max-width: 120px;
}

.ctb-tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: none;
}

.ctb-tab-icon.dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.ctb-tab-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ctb-bg-light);
    border: 3px solid var(--ctb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--ctb-text-light);
    margin-bottom: 8px;
    transition: var(--ctb-transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.ctb-tab-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ctb-text-light);
    text-align: center;
    line-height: 1.3;
    transition: var(--ctb-transition);
}

.ctb-tab.ctb-active .ctb-tab-number {
    background: var(--ctb-primary);
    border-color: var(--ctb-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(75, 61, 42, 0.3);
}

.ctb-tab.ctb-active .ctb-tab-label {
    color: var(--ctb-primary);
    font-weight: 600;
}

.ctb-tab.ctb-completed .ctb-tab-number {
    background: var(--ctb-success);
    border-color: var(--ctb-success);
    color: white;
}

.ctb-tab.ctb-completed .ctb-tab-label {
    color: var(--ctb-success);
}

.ctb-progress-line {
    position: absolute;
    top: 22px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--ctb-border);
    z-index: 0;
    border-radius: 2px;
}

.ctb-progress-fill {
    height: 100%;
    background: var(--ctb-primary);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* ==========================================
   STEPS (Improved Spacing)
   ========================================== */

.ctb-step {
    display: none;
    background: var(--ctb-bg);
    border-radius: var(--ctb-radius);
    padding: 30px 25px;
    box-shadow: var(--ctb-shadow);
    animation: fadeIn 0.3s ease;
}

.ctb-step.ctb-step-active {
    display: block;
}

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

.ctb-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.ctb-step-header h2 {
    margin: 0 0 12px;
    color: var(--ctb-primary);
    font-size: 26px;
    font-weight: 700;
}

.ctb-step-header p {
    margin: 0;
    color: var(--ctb-text-light);
    font-size: 15px;
}

/* ==========================================
   SERVICE TYPES (Better Mobile Layout)
   ========================================== */

.ctb-service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ctb-service-type {
    padding: 20px 15px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--ctb-transition);
    background: var(--ctb-bg);
}

.ctb-service-type:hover {
    border-color: var(--ctb-primary);
    transform: translateY(-3px);
    box-shadow: var(--ctb-shadow);
}

.ctb-service-type.ctb-selected {
    border-color: var(--ctb-primary);
    background: linear-gradient(135deg, #f5f3f0 0%, #ebe7e0 100%);
    box-shadow: 0 4px 12px rgba(75, 61, 42, 0.15);
}

.ctb-service-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.ctb-service-icon .dashicons {
    width: 36px;
    height: 36px;
    font-size: 36px;
}

.ctb-service-type h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ctb-text);
}

.ctb-service-type p {
    margin: 0;
    font-size: 12px;
    color: var(--ctb-text-light);
    line-height: 1.4;
}

/* ==========================================
   LOCATION INPUTS (Optimized Spacing)
   ========================================== */

.ctb-locations-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: end;
    margin-bottom: 25px;
}

.ctb-location-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ctb-text);
    font-size: 14px;
}

.ctb-location-input {
    position: relative;
}

.ctb-location-input input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 15px;
    transition: var(--ctb-transition);
}

.ctb-location-input input:focus {
    outline: none;
    border-color: var(--ctb-primary);
    box-shadow: 0 0 0 3px rgba(75, 61, 42, 0.1);
}

.ctb-location-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.ctb-pickup-icon { color: var(--ctb-success); }
.ctb-dropoff-icon { color: var(--ctb-error); }

.ctb-swap-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 2px solid var(--ctb-border);
    border-radius: 50%;
    background: var(--ctb-bg);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ctb-transition);
}

.ctb-swap-btn:hover {
    background: var(--ctb-primary);
    color: white;
    border-color: var(--ctb-primary);
    transform: scale(1.1);
}

/* ==========================================
   MAP CONTAINER
   ========================================== */

.ctb-map-container {
    margin: 25px 0;
    border-radius: var(--ctb-radius);
    overflow: hidden;
    box-shadow: var(--ctb-shadow);
}

#ctb-route-map,
#ctb-route-map-step4 {
    height: 320px;
    width: 100%;
}

.ctb-route-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--ctb-bg-light);
}

.ctb-route-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctb-stat-icon {
    font-size: 24px;
}

.ctb-stat-icon.dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.ctb-stat-content {
    display: flex;
    flex-direction: column;
}

.ctb-stat-label {
    font-size: 12px;
    color: var(--ctb-text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.ctb-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ctb-primary);
}

/* ==========================================
   FORM SECTIONS (Better Spacing)
   ========================================== */

.ctb-datetime-section,
.ctb-return-datetime,
.ctb-passengers-section,
.ctb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.ctb-datetime-group label,
.ctb-counter-group label,
.ctb-form-group label,
.ctb-location-group label,
.ctb-transport-fields label,
.ctb-special-requests label,
.ctb-hourly-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--ctb-text);
}

.ctb-label-note {
    color: #999;
    font-size: 12px;
    font-weight: normal;
}

.ctb-description {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.ctb-hours-input {
    width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.ctb-datetime-group input,
.ctb-form-group input,
.ctb-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 15px;
    transition: var(--ctb-transition);
}

/* Date Input Styles */
.ctb-date-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 15px;
    background: var(--ctb-bg);
    cursor: pointer;
    transition: var(--ctb-transition);
}

.ctb-date-input:focus {
    outline: none;
    border-color: var(--ctb-primary);
    box-shadow: 0 0 0 3px rgba(75, 61, 42, 0.1);
}

.ctb-date-input:hover {
    border-color: var(--ctb-primary);
}

.ctb-datetime-group input:focus,
.ctb-form-group input:focus,
.ctb-form-group textarea:focus {
    outline: none;
    border-color: var(--ctb-primary);
    box-shadow: 0 0 0 3px rgba(75, 61, 42, 0.1);
}

/* ==========================================
   ROUND TRIP SECTION
   ========================================== */

.ctb-round-trip-section {
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: var(--ctb-radius);
    margin-bottom: 25px;
    border: 2px solid #ffeaa7;
}

.ctb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.ctb-checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.ctb-round-trip-badge {
    padding: 4px 12px;
    background: var(--ctb-secondary);
    color: var(--ctb-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* ==========================================
   COUNTERS
   ========================================== */

.ctb-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctb-counter-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    background: var(--ctb-bg);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ctb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctb-counter-btn:hover {
    background: var(--ctb-primary);
    color: white;
    border-color: var(--ctb-primary);
    transform: scale(1.05);
}

.ctb-counter input {
    width: 70px;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 18px;
    font-weight: 700;
    color: var(--ctb-primary);
}

/* ==========================================
   TRANSPORT FIELDS
   ========================================== */

.ctb-transport-fields,
.ctb-special-requests {
    margin-bottom: 25px;
}

.ctb-transport-fields label,
.ctb-special-requests label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.ctb-transport-fields input,
.ctb-special-requests textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 15px;
    transition: var(--ctb-transition);
}

.ctb-special-requests textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================
   VEHICLE CLASSES (Mobile Optimized)
   ========================================== */

.ctb-vehicle-classes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.ctb-vehicle-class {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    cursor: pointer;
    transition: var(--ctb-transition);
    background: var(--ctb-bg);
}

.ctb-vehicle-class:hover {
    border-color: var(--ctb-primary);
    transform: translateY(-2px);
    box-shadow: var(--ctb-shadow);
}

.ctb-vehicle-class.ctb-selected {
    border-color: var(--ctb-primary);
    background: linear-gradient(135deg, #f5f3f0 0%, #ebe7e0 100%);
    box-shadow: 0 4px 12px rgba(75, 61, 42, 0.2);
}

.ctb-vehicle-image img {
    width: 100%;
    height: 60px;
    object-fit: contain;
}

.ctb-vehicle-info h3 {
    margin: 0 0 6px;
    color: var(--ctb-text);
    font-size: 18px;
    font-weight: 600;
}

.ctb-vehicle-info p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ctb-text-light);
    line-height: 1.4;
}

.ctb-vehicle-specs {
    display: flex;
    gap: 15px;
}

.ctb-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ctb-text);
    font-weight: 500;
}

.ctb-spec-icon {
    font-size: 16px;
}

.ctb-spec-icon.dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.ctb-vehicle-price {
    text-align: right;
}

.ctb-price-currency {
    font-size: 14px;
    color: var(--ctb-text-light);
}

.ctb-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--ctb-primary);
    display: block;
    line-height: 1.3;
}

/* Discount price display styles */
.ctb-price-amount .ctb-original-price {
    color: #999;
    font-size: 0.9em;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.ctb-price-amount .ctb-discounted-price {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 4px;
}

.ctb-price-amount .ctb-discount-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctb-btn-select-vehicle {
    padding: 12px 24px;
    background: var(--ctb-primary);
    color: white;
    border: none;
    border-radius: var(--ctb-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ctb-transition);
    white-space: nowrap;
}

.ctb-btn-select-vehicle:hover {
    background: #3a2f21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 61, 42, 0.3);
}

/* ==========================================
   VEHICLE POLICIES
   ========================================== */

.ctb-vehicle-policies {
    background: var(--ctb-bg-light);
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    padding: 25px;
    margin-top: 30px;
}

.ctb-policies-header h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ctb-text);
}

.ctb-benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.ctb-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ctb-benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--ctb-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.ctb-policies-notes h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ctb-text);
}

.ctb-note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff3e0;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid var(--ctb-warning);
}

.ctb-note-icon {
    width: 24px;
    height: 24px;
    background: var(--ctb-warning);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* ==========================================
   TRIP SUMMARY
   ========================================== */

.ctb-trip-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 20px;
    background: var(--ctb-bg-light);
    border-radius: var(--ctb-radius);
    margin-bottom: 25px;
    border: 2px solid var(--ctb-border);
}

.ctb-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ctb-summary-icon {
    font-size: 20px;
}

.ctb-summary-icon.dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.ctb-trip-summary-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed var(--ctb-border);
}

.ctb-trip-summary-section h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: var(--ctb-primary);
}

.ctb-trip-details p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================
   PAYMENT LAYOUT
   ========================================== */

.ctb-payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ctb-booking-summary {
    background: var(--ctb-bg-light);
    padding: 25px;
    border-radius: var(--ctb-radius);
    border: 2px solid var(--ctb-border);
}

.ctb-booking-summary h3 {
    margin: 0 0 20px;
    color: var(--ctb-primary);
    font-size: 20px;
}

.ctb-price-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--ctb-border);
}

.ctb-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.ctb-price-row.ctb-total {
    border-top: 2px solid var(--ctb-primary);
    margin-top: 12px;
    padding-top: 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ctb-primary);
}

.ctb-discount-amount {
    color: var(--ctb-success);
    font-weight: 600;
}

/* Discount Code Section */
.ctb-discount-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--ctb-bg-light);
    border-radius: var(--ctb-radius);
    border: 1px solid var(--ctb-border);
}

.ctb-discount-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--ctb-text);
}

.ctb-discount-input {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ctb-discount-input input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 15px;
    transition: var(--ctb-transition);
}

.ctb-discount-input input[type="text"]:focus {
    border-color: var(--ctb-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 61, 42, 0.1);
}

.ctb-discount-input .ctb-btn {
    padding: 12px 24px;
    white-space: nowrap;
}

.ctb-discount-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--ctb-radius);
    font-size: 14px;
    font-weight: 500;
}

.ctb-discount-message.ctb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ctb-discount-message.ctb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ctb-discount-message.ctb-hidden {
    display: none;
}

/* ==========================================
   BUTTONS
   ========================================== */

.ctb-btn {
    padding: 14px 28px;
    border-radius: var(--ctb-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ctb-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ctb-btn-primary {
    background: var(--ctb-primary);
    color: white;
}

.ctb-btn-primary:hover {
    background: #3a2f21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 61, 42, 0.3);
}

.ctb-btn-secondary {
    background: var(--ctb-bg);
    color: var(--ctb-text);
    border: 2px solid var(--ctb-border);
}

.ctb-btn-secondary:hover {
    background: var(--ctb-bg-light);
    border-color: var(--ctb-primary);
}

.ctb-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed var(--ctb-border);
}

/* ==========================================
   LOADING & UTILITIES
   ========================================== */

.ctb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ctb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--ctb-border);
    border-top-color: var(--ctb-primary);
    border-radius: 50%;
    animation: ctb-spin 0.8s linear infinite;
}

@keyframes ctb-spin {
    to { transform: rotate(360deg); }
}

.ctb-hidden {
    display: none !important;
}

/* ==========================================
   RESPONSIVE - TABLET (768px - 1024px)
   ========================================== */

@media (max-width: 1024px) {
    .ctb-service-types {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ctb-vehicle-class {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .ctb-vehicle-price,
    .ctb-btn-select-vehicle {
        grid-column: 1 / -1;
        text-align: center;
        justify-self: center;
    }
    
    .ctb-btn-select-vehicle {
        width: 100%;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================== */

@media (max-width: 768px) {
    .ctb-booking-wrapper {
        padding: 15px;
    }
    
    /* TABS - MOBILE OPTIMIZED */
    .ctb-tabs {
        padding: 0 5px;
        gap: 4px;
        margin-bottom: 25px;
    }
    
    .ctb-tab {
        max-width: none;
    }
    
    .ctb-tab-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 2px;
        margin-bottom: 6px;
    }
    
    .ctb-tab-label {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .ctb-progress-line {
        top: 18px;
        left: 35px;
        right: 35px;
        height: 2px;
    }
    
    /* STEPS */
    .ctb-step {
        padding: 20px 15px;
    }
    
    .ctb-step-header h2 {
        font-size: 22px;
    }
    
    .ctb-step-header p {
        font-size: 14px;
    }
    
    /* SERVICE TYPES */
    .ctb-service-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ctb-service-type {
        padding: 16px 12px;
    }
    
    .ctb-service-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .ctb-service-type h3 {
        font-size: 13px;
    }
    
    .ctb-service-type p {
        font-size: 11px;
    }
    
    /* LOCATIONS */
    .ctb-locations-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ctb-swap-btn {
        justify-self: center;
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    /* MAP */
    #ctb-route-map,
    #ctb-route-map-step4 {
        height: 250px;
    }
    
    .ctb-route-info {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .ctb-route-stat {
        justify-content: center;
    }
    
    /* FORM SECTIONS */
    .ctb-datetime-section,
    .ctb-return-datetime,
    .ctb-passengers-section,
    .ctb-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    /* ROUND TRIP */
    .ctb-round-trip-section {
        padding: 15px;
    }
    
    .ctb-round-trip-badge {
        margin-left: 0;
        margin-top: 8px;
    }
    
    /* VEHICLE CLASSES */
    .ctb-vehicle-class {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }
    
    .ctb-vehicle-image {
        justify-self: center;
    }
    
    .ctb-vehicle-specs{
        justify-content: center;
    }
    
    .ctb-vehicle-price {
        text-align: center;
    }
    
    .ctb-payment-layout {
        grid-template-columns: 1fr;
    }
    
    .ctb-step-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .ctb-step-actions .ctb-btn {
        width: 100%;
    }
    
    #ctb-route-map {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .ctb-service-types {
        grid-template-columns: 1fr;
    }
    
    .ctb-booking-wrapper {
        padding: 10px;
    }
    
    .ctb-step {
        padding: 20px 15px;
    }
}

/* ==========================================
   FLIGHT INFORMATION DISPLAY STYLES
   Add these to public/css/public-style.css
   ========================================== */

/* Flight Info Card */
.ctb-flight-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 0;
    margin: 20px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    animation: slideDown 0.4s ease;
}

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

/* Flight Header */
.ctb-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ctb-flight-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ctb-flight-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Flight Details */
.ctb-flight-details {
    padding: 25px 20px;
}

.ctb-flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ctb-flight-point {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ctb-airport-code {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ctb-airport-name {
    font-size: 13px;
    opacity: 0.9;
}

.ctb-flight-time {
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0.85;
}

.ctb-flight-arrow {
    font-size: 30px;
    padding: 0 15px;
    opacity: 0.7;
}

/* Flight Meta Information */
.ctb-flight-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 13px;
}

.ctb-flight-meta span {
    display: flex;
    flex-direction: column;
}

.ctb-flight-meta strong {
    opacity: 0.7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* Flight Actions */
.ctb-flight-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ctb-btn-small {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ctb-btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.ctb-btn-use-flight {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.ctb-btn-use-flight:hover {
    background: rgba(76, 175, 80, 0.5);
}

.ctb-btn-use-flight:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ctb-btn-clear-flight {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
}

.ctb-btn-clear-flight:hover {
    background: rgba(244, 67, 54, 0.4);
}

/* Loading State */
.ctb-flight-info-loading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border: 2px dashed #2196f3;
    border-radius: 8px;
    margin: 20px 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ctb-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.ctb-flight-info-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 8px;
    margin: 20px 0;
    color: #e65100;
    font-size: 14px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.ctb-error-icon {
    font-size: 24px;
}

/* Success State */
.ctb-flight-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    margin: 20px 0;
    color: #2e7d32;
    font-size: 14px;
    animation: slideDown 0.4s ease;
}

.ctb-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

/* Input Success Animation */
.ctb-input-success {
    border-color: #4caf50 !important;
    background: #e8f5e9 !important;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ctb-flight-route {
        flex-direction: column;
        gap: 15px;
    }
    
    .ctb-flight-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .ctb-flight-point {
        align-items: center;
        text-align: center;
    }
    
    .ctb-flight-actions {
        flex-direction: column;
    }
    
    .ctb-flight-meta {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Transport Number Field for Airport */
#transport-number {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#transport-number:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Hide round trip section for airport transfers */
.ctb-round-trip-section.ctb-hidden {
    display: none !important;
}

/* Vehicle Policies Section */
.ctb-vehicle-policies {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.ctb-policies-header h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ctb-benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ctb-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ctb-benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--ctb-success, #4caf50);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.ctb-policies-notes h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.ctb-note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff3e0;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--ctb-warning, #ff9800);
}

.ctb-note-icon {
    width: 24px;
    height: 24px;
    background: var(--ctb-warning, #ff9800);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.ctb-note-item span:last-child {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

@media (max-width: 768px) {
    .ctb-benefits-list {
        grid-template-columns: 1fr;
    }
}

/* Disabled vehicle styles */
.ctb-vehicle-class.ctb-vehicle-disabled {
    opacity: 0.6;
    position: relative;
    pointer-events: none;
}

.ctb-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 200, 200, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 16px;
    border-radius: 8px;
    z-index: 10;
}

.ctb-vehicle-class.ctb-vehicle-disabled .ctb-btn-select-vehicle {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* ============================
   HOURLY RENTAL UI FIX
   ============================ */

/* Hide dropoff cleanly */
.ctb-hourly-active #dropoff-group {
    display: none !important;
}

/* Hide swap button */
.ctb-hourly-active #swap-locations {
    display: none !important;
}

/* Make pickup full width */
.ctb-hourly-active #pickup-group {
    width: 100% !important;
}

/* Inside pickup group, force input full width */
.ctb-hourly-active #pickup-group .ctb-location-input {
    width: 100% !important;
}

/* Move hourly fields (hours selector) above pickup */
.ctb-hourly-active #hourly-fields {
    display: block !important;
    order: -1; /* moves it above pickup group */
    margin-bottom: 15px;
}

/* Fix container in case it was a grid */
.ctb-hourly-active .ctb-locations-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}
/* Activate hourly layout */
body.ctb-hourly-active .ctb-locations-section {
    display: block !important;
}

/* Hours field section */
body.ctb-hourly-active #hourly-fields {
    width: 300px;               /* Adjust width as needed */
    margin: 0 auto 20px auto;   /* Center horizontally + gap below */
    text-align: center;
}

/* Pickup stays full-width under hours */
body.ctb-hourly-active #pickup-group {
    width: 100% !important;
    margin-top: 10px;
}

/* Hide dropoff & swap in hourly */
body.ctb-hourly-active #dropoff-group,
body.ctb-hourly-active #swap-locations {
    display: none !important;
}

/* Style hours input nicely */
#hourly-fields input {
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Date Dropdowns Styling */
.ctb-date-dropdowns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ctb-date-select {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--ctb-border);
    border-radius: var(--ctb-radius);
    font-size: 15px;
    background: var(--ctb-bg);
    transition: var(--ctb-transition);
    cursor: pointer;
}

.ctb-date-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.ctb-date-select:focus {
    outline: none;
    border-color: var(--ctb-primary);
    box-shadow: 0 0 0 3px rgba(75, 61, 42, 0.1);
}

.ctb-date-select option {
    padding: 10px;
}

/* Make date dropdowns responsive */
@media (max-width: 768px) {
    .ctb-date-dropdowns {
        flex-direction: column;
        gap: 8px;
    }
    
    .ctb-date-select {
        width: 100%;
    }
}