/* Modern Booking Form Styles */
#tbp-form-wrapper,
#tbp-form-wrapper.tbp-modern {
    background: #fff;
    padding: 12px 24px 24px 24px;
    border-radius: 18px;
    color: #22223b;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    /*max-width: 460px;*/
    margin: 32px auto;
    box-shadow: 0 8px 32px rgba(34,34,59,0.10), 0 1.5px 6px rgba(34,34,59,0.06);
    border: none;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.tbp-form-title {
    /*margin: 0 0 20px 0;*/
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #22223b;
    letter-spacing: 0.01em;
}

#tbp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    min-height: auto;
    flex-shrink: 0;
}

.tbp-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}

.tbp-icon-field {
    flex-direction: row;
    align-items: center;
    background: #f7f7fa;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(34,34,59,0.03);
    padding: 0 10px;
    margin-bottom: 0;
    border: 1.5px solid #f0f0f5;
    min-height: 64px;
    position: relative;
    gap: 12px;
}

.tbp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    color: #8B8B8B;
    opacity: 0.85;
}

/* Location button styling */
.tbp-location-btn {
    background: transparent !important;
    border: none !important;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: 36px;
    height: 36px;
    outline: none;
}



.tbp-location-btn:active {
    transform: scale(0.95);
    background: rgba(63, 25, 130, 0.12);
}

.tbp-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tbp-location-btn.loading {
    animation: pulse 1.5s infinite;
}

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

.tbp-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tbp-input-group label {
    font-size: 0.98rem;
    font-weight: 500;
    color: #8B8B8B;
    margin-top: 5px;
    letter-spacing: 0.01em;
}

.tbp-icon-field input,
.tbp-icon-field select {
    background: transparent;
    border: none !important;
    outline: none;
    font-size: 1.08rem;
    color: #22223b;
    padding: 0rem 0rem !important;
    margin: 0;
    height: 40px;
    font-family: inherit;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.tbp-icon-field input::placeholder {
    color: #bdbdbd;
    opacity: 1;
    font-size: 1.02rem;
}

.tbp-icon-field select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    font-size: 1.08rem;
    color: #22223b;
    padding-right: 24px;
}

.tbp-icon-field select:focus {
    outline: none;
}

.tbp-icon-field input:focus,
.tbp-icon-field select:focus {
    background: #f0f0f5;
}

.tbp-submit {
    margin-top: 10px;
    width: 100%;
    align-self: stretch;
}

.tbp-gradient-btn {
    width: 100%;
    background: linear-gradient(90deg, #21084b 0%, #3F1982 100%);
    color: #fff !important;
    padding: 16px 0 !important;
    border: none !important;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(255,95,109,0.08);
    transition: background 0.2s, transform 0.1s;
}
.tbp-gradient-btn:hover {
    background: linear-gradient(90deg, #3F1982 0%, #6B34C9 100%);
    transform: translateY(-1px) scale(1.01);
}
.tbp-gradient-btn:active {
    transform: scale(0.99);
}

.tbp-note {
    font-size: 0.98rem;
    margin-top: 18px;
    color: #bdbdbd;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hidden {
    display: none !important;
}


/* Modern Blacklane-style Flatpickr customization */
.flatpickr-calendar {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.1);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

.flatpickr-day {
    border-radius: 8px;
    margin: 2px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: none;
}

.flatpickr-day:hover {
    background: #f8f9fa;
    border-color: transparent;
    transform: scale(1.05);
}

.flatpickr-day.selected {
    background: #0d5cff;
    border-color: transparent;
    color: white;
    font-weight: 600;
    transform: scale(1.05);
}

.flatpickr-day.selected:hover {
    background: #0a4fd6;
    transform: scale(1.08);
}

.flatpickr-day.today {
    background: rgba(13, 92, 255, 0.12);
    border: 1px solid rgba(13, 92, 255, 0.35);
    color: #0d5cff;
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background: rgba(13, 92, 255, 0.2);
    transform: scale(1.05);
}

.flatpickr-day.disabled {
    color: #ccc;
    background: transparent;
    cursor: not-allowed;
}

.flatpickr-day.disabled:hover {
    background: transparent;
    transform: none;
}

.flatpickr-months {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.flatpickr-month {
    background: transparent;
}

.flatpickr-current-month {
    font-weight: 600;
    color: #1a1a1a;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #0d5cff;
    transition: all 0.2s ease;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #0a4fd6;
    transform: scale(1.1);
}

.flatpickr-weekdays {
    background: rgba(13, 92, 255, 0.06);
}

.flatpickr-weekday {
    color: #0d5cff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Google Places Autocomplete styling */
.pac-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px -3px rgba(34,34,59,0.10);
    font-family: inherit;
    box-sizing: border-box;
    min-width: min(96vw, 520px);
}
.pac-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f5;
    cursor: pointer;
}
.pac-item:hover {
    background: #f7f7fa;
}
.pac-item-selected {
    background: #ff5f6d;
    color: white;
}

/* Responsive design */
@media (max-width: 600px) {
    #tbp-form-wrapper,
    #tbp-form-wrapper.tbp-modern {
        padding: 12px 8px 16px 8px;
        max-width: 100%;
        margin: 16px auto;
        border-radius: 12px;
    }
    
    #tbp-form {
        width: 100%;
        gap: 16px;
    }
    
    .tbp-form-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    .tbp-icon-field {
        min-height: 72px;
        padding: 0 12px;
        border-radius: 10px;
    }
    
    .tbp-icon {
        min-width: 28px;
    }
    
    .tbp-input-group label {
        font-size: 0.9rem;
        margin-top: 4px;
    }
    
    .tbp-icon-field input,
    .tbp-icon-field select {
        font-size: 16px; /* Prevents zoom on iOS */
        height: 44px;
        padding: 0;
    }
    
    .tbp-gradient-btn {
        padding: 16px 0;
        font-size: 1.1rem;
        border-radius: 8px;
        min-height: 52px;
    }
    
    /* Mobile validation error styling */
    .time-error-message {
        font-size: 13px !important;
        padding: 12px 16px !important;
        margin: 12px 0 !important;
        border-radius: 8px !important;
        box-shadow: 0 3px 6px rgba(231, 76, 60, 0.15) !important;
        line-height: 1.4 !important;
    }
    
    /* Mobile input validation styling */
    .tbp-icon-field input[style*="border-color: #e74c3c"] {
        border: 2px solid #e74c3c !important;
        background: rgba(231, 76, 60, 0.05) !important;
        box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.2) !important;
    }
    
    /* iPhone/iOS specific fixes for date and time inputs */
    .tbp-icon-field input[type="date"],
    .tbp-icon-field input[type="time"] {
        text-align: left !important;
        -webkit-text-align: left !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background: transparent !important;
        color: #22223b !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        height: 40px !important;
        line-height: 40px !important;
        vertical-align: middle !important;
        direction: ltr !important;
        text-align-last: left !important;
        -webkit-text-align-last: left !important;
    }
    
    /* Remove default iOS styling for date/time inputs */
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit {
        text-align: left !important;
        -webkit-text-align: left !important;
        color: #22223b !important;
        background: transparent !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-fields-wrapper {
        text-align: left !important;
        -webkit-text-align: left !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-text,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-text {
        text-align: left !important;
        -webkit-text-align: left !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-month-field,
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-day-field,
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-year-field,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-hour-field,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-minute-field {
        text-align: left !important;
        -webkit-text-align: left !important;
    }
    
    /* Additional iOS Safari specific fixes */
    .tbp-icon-field input[type="date"]::-webkit-inner-spin-button,
    .tbp-icon-field input[type="time"]::-webkit-inner-spin-button {
        display: none !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-calendar-picker-indicator,
    .tbp-icon-field input[type="time"]::-webkit-calendar-picker-indicator {
        display: none !important;
    }
    
    /* Force left alignment for all date/time input elements */
    .tbp-icon-field input[type="date"] *,
    .tbp-icon-field input[type="time"] * {
        text-align: left !important;
        -webkit-text-align: left !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    #tbp-form-wrapper,
    #tbp-form-wrapper.tbp-modern {
        padding: 10px 6px 14px 6px;
        margin: 12px auto;
    }
    
    #tbp-form {
        gap: 14px;
    }
    
    .tbp-form-title {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }
    
    .tbp-icon-field {
        min-height: 68px;
        padding: 0 10px;
    }
    
    .tbp-icon {
        min-width: 24px;
    }
    
    .tbp-input-group label {
        font-size: 0.85rem;
    }
    
    .tbp-icon-field input,
    .tbp-icon-field select {
        font-size: 15px;
        height: 40px;
    }
    
    .tbp-gradient-btn {
        padding: 14px 0;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .time-error-message {
        font-size: 12px !important;
        padding: 10px 14px !important;
        margin: 10px 0 !important;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 900px) and (orientation: landscape) {
    #tbp-form-wrapper,
    #tbp-form-wrapper.tbp-modern {
        max-width: 500px;
        margin: 8px auto;
    }
    
    #tbp-form {
        gap: 12px;
    }
    
    .tbp-icon-field {
        min-height: 60px;
    }
    
    .tbp-form-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    #tbp-form-wrapper,
    #tbp-form-wrapper.tbp-modern {
        padding: 8px 4px 12px 4px;
        margin: 8px auto;
    }
    
    #tbp-form {
        gap: 12px;
    }
    
    .tbp-icon-field {
        min-height: 64px;
        padding: 0 8px;
    }
    
    .tbp-icon {
        min-width: 20px;
    }
    
    .tbp-input-group label {
        font-size: 0.8rem;
    }
    
    .tbp-icon-field input,
    .tbp-icon-field select {
        font-size: 14px;
        height: 36px;
    }
    
    .tbp-gradient-btn {
        padding: 12px 0;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .time-error-message {
        font-size: 11px !important;
        padding: 8px 12px !important;
        margin: 8px 0 !important;
    }
}

/* Additional mobile optimizations for flatpickr */
@media (max-width: 600px) {
    .flatpickr-calendar {
        font-size: 16px;
        width: 100% !important;
        max-width: 320px;
    }
    
    .flatpickr-time {
        font-size: 16px;
    }
    
    .flatpickr-time input {
        font-size: 16px !important;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 600px) {
    .tbp-icon-field {
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .tbp-icon-field:active {
        transform: scale(0.98);
        background: #f0f0f5;
    }
    
    .tbp-gradient-btn {
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .tbp-gradient-btn:active {
        transform: scale(0.98);
    }
    
    /* Improve touch targets */
    .tbp-icon-field input,
    .tbp-icon-field select {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better focus states for mobile */
    .tbp-icon-field input:focus,
    .tbp-icon-field select:focus {
        outline: none;
        background: #f0f0f5;
        border-color: #3F1982;
    }
    
    /* Mobile location button styling */
    .tbp-location-btn {
        min-width: 44px;
        height: 44px;
        padding: 10px;
        margin-left: 6px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .tbp-location-btn:active {
        transform: scale(0.9);
        background: rgba(63, 25, 130, 0.12);
    }
    
    .tbp-location-btn.loading {
        animation: pulse 1s infinite;
    }
}

/* iOS Safari specific fixes for date/time inputs */
@supports (-webkit-touch-callout: none) {
    .tbp-icon-field input[type="date"],
    .tbp-icon-field input[type="time"] {
        text-align: left !important;
        -webkit-text-align: left !important;
        text-align-last: left !important;
        -webkit-text-align-last: left !important;
        direction: ltr !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        background: transparent !important;
        color: #22223b !important;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        height: 40px !important;
        line-height: 40px !important;
        vertical-align: middle !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit {
        text-align: left !important;
        -webkit-text-align: left !important;
        color: #22223b !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-fields-wrapper {
        text-align: left !important;
        -webkit-text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-text,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-text {
        text-align: left !important;
        -webkit-text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-month-field,
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-day-field,
    .tbp-icon-field input[type="date"]::-webkit-datetime-edit-year-field,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-hour-field,
    .tbp-icon-field input[type="time"]::-webkit-datetime-edit-minute-field {
        text-align: left !important;
        -webkit-text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Hide placeholder when input has value */
.tbp-icon-field input[data-has-value="1"]::placeholder {
    color: transparent !important;
}

/* Date picker styling */
.tbp-date-field {
    position: relative;
}

.tbp-date-field input[type="text"] {
    cursor: pointer;
    background: transparent;
    border: none !important;
    outline: none;
    font-size: 1.08rem;
    color: #1a1a1a;
    padding: 0 !important;
    margin: 0;
    height: 40px;
    font-family: inherit;
    font-weight: 500;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.tbp-date-field input[type="text"]:focus {
    background: #f8f9fa;
    transform: scale(1.01);
}

.tbp-date-field input[type="text"]::placeholder {
    color: #bdbdbd;
    opacity: 1;
    font-size: 1.02rem;
}

/* Mobile date picker optimizations */
@media (max-width: 767px) {
    .tbp-date-field input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
        height: 44px;
    }
}

/* Hover effects for desktop date picker */
@media (min-width: 768px) {
    .tbp-date-field input[type="text"]:hover {
        background-color: #f8f9fa;
        transform: scale(1.01);
        transition: all 0.2s ease;
    }
    
    .tbp-date-field input[type="text"]:focus {
        background-color: #f8f9fa;
        transform: scale(1.01);
        transition: all 0.2s ease;
    }
}

/* Time picker styling */
.tbp-time-field {
    position: relative;
}

.tbp-time-mobile {
    display: block;
}

.tbp-time-desktop {
    display: none;
}

.tbp-time-dropdowns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbp-time-hour,
.tbp-time-minute,
.tbp-time-ampm {
    background: transparent;
    border: 1px solid transparent;
    outline: none;
    font-size: 1.08rem;
    color: #1a1a1a;
    padding: 8px 24px 8px 12px;
    margin: 0;
    height: 40px;
    font-family: inherit;
    box-shadow: none;
    border-radius: 8px;
    min-width: 60px !important;
    text-align: center;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

.tbp-time-ampm {
    min-width: 50px !important;
    font-weight: 600;
    color: #667eea;
}

.tbp-time-hour:focus,
.tbp-time-minute:focus,
.tbp-time-ampm:focus {
    background-color: #f8f9fa;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.tbp-time-hour:hover,
.tbp-time-minute:hover,
.tbp-time-ampm:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    transform: scale(1.02);
}

.tbp-time-divider {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    user-select: none;
    margin: 0 4px;
}

.tbp-time-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    font-size: 0.8rem;
    color: #8B8B8B;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Desktop styles */
@media (min-width: 768px) {
    .tbp-time-mobile {
        display: none;
    }
    
    .tbp-time-desktop {
        display: block;
    }
    
    .tbp-time-field {
  
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .tbp-time-desktop {
        display: none;
    }
    
    .tbp-time-mobile {
        display: block;
    }
    
    .tbp-time-hint {
        position: static;
        margin-top: 8px;
        font-size: 0.75rem;
        color: #8B8B8B;
        text-align: center;
    }
    
    /* Ensure mobile time input is properly styled */
    .tbp-time-mobile input[type="time"] {
        width: 100%;
        height: 40px;
        font-size: 16px;
        text-align: left;
        padding: 0;
        margin: 0;
        border: none;
        outline: none;
        background: transparent;
        color: #22223b;
    }
}

/* Hover effects for desktop time picker */
@media (min-width: 768px) {
    .tbp-time-hour:hover,
    .tbp-time-minute:hover,
    .tbp-time-ampm:hover {
        background-color: #f8f9fa;
        border-color: #e9ecef;
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    .tbp-time-dropdowns {
        gap: 16px;
    }
    
    .tbp-time-hour,
    .tbp-time-minute {
        min-width: 70px;
        font-size: 1.1rem;
        padding: 10px 28px 10px 14px;
    }
    
    .tbp-time-ampm {
        min-width: 60px;
        font-size: 1.1rem;
        padding: 10px 28px 10px 14px;
    }
    
    .tbp-time-divider {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0 6px;
    }
}

/* Time validation error styling */
.time-error-message {
    color: #e74c3c !important;
    font-size: 12px !important;
    margin: 10px 0 !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    background: rgba(231, 76, 60, 0.1) !important;
    border-radius: 6px !important;
    border-left: 3px solid #e74c3c !important;
    animation: fadeIn 0.3s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.1) !important;
    z-index: 1000 !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

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

/* Add visual feedback for invalid time input */
.tbp-icon-field input[type="time"]:invalid {
    border-color: #e74c3c !important;
    /*background: rgba(231, 76, 60, 0.05) !important;*/
}

/* ─── Blacklane-style hero horizontal bar ───────────────────────────────── */
#tbp-form-wrapper.tbp-blacklane.tbp-modern {
    background: transparent;
    padding: 0;
    margin: clamp(24px, 4vw, 48px) auto;
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-width: min(1180px, 100%);
    box-sizing: border-box;
    overflow: visible;
}

#tbp-form-wrapper.tbp-blacklane #tbp-form.tbp-blacklane-form {
    display: block;
    max-width: none;
    gap: 0;
    flex-direction: initial;
    overflow: visible;
}

#tbp-form-wrapper.tbp-blacklane .tbp-form-title {
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    margin: 0 0 14px;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

#tbp-form-wrapper.tbp-blacklane:not(:has(.tbp-form-title)) .tbp-service-toggle-wrap {
    margin-top: 0;
}

.tbp-blacklane .tbp-service-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.tbp-blacklane .tbp-service-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(12, 16, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.tbp-blacklane .tbp-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 999px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease;
    white-space: nowrap;
}

.tbp-blacklane .tbp-toggle-btn:hover {
    color: #fff;
}

.tbp-blacklane .tbp-toggle-btn.is-active {
    background: #0d5cff;
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 92, 255, 0.45);
}

.tbp-blacklane .tbp-toggle-btn:active:not(.is-active) {
    transform: scale(0.98);
}

.tbp-blacklane .tbp-booking-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    overflow: visible;
    min-height: 78px;
    padding: 12px 8px 12px 14px;
    border-radius: 14px;
    background: rgba(18, 22, 32, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(160%) blur(22px);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    box-sizing: border-box;
}

.tbp-blacklane .tbp-bar-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 10px 4px;
    box-sizing: border-box;
    overflow: visible;
}

.tbp-blacklane .tbp-bar-submit-cell {
    flex: 0 0 auto;
    align-items: stretch;
    justify-content: center;
    padding: 0 12px 4px 8px;
}

.tbp-blacklane .tbp-submit-spacer {
    display: none;
}

.tbp-blacklane .tbp-bar-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.94);
}

.tbp-blacklane .tbp-bar-underline-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    min-height: 36px;
    padding-bottom: 2px;
    margin-top: 2px;
}

.tbp-blacklane .tbp-bar-input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.98);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    padding: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.tbp-blacklane input.tbp-bar-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    opacity: 1;
    font-weight: 400;
}

/* Pickup / drop-off placeholders — theme defaults often force grey; lock to white */
#tbp-form-wrapper.tbp-blacklane input#from.tbp-bar-input::placeholder,
#tbp-form-wrapper.tbp-blacklane input#to.tbp-bar-input::placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

.tbp-blacklane .tbp-bar-select {
    flex: 0 1 auto;
    padding: 0 18px 0 0 !important;
    margin: 0;
    cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right center;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: #fff !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.98);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    min-height: auto;
}

.tbp-blacklane .tbp-bar-select:focus {
    outline: none;
}

/* Native <option> lists ignore parent color on many browsers — keep readable on dark bar */
#tbp-form-wrapper.tbp-blacklane .tbp-bar-select option {
    background-color: #1e2430;
    color: rgba(255, 255, 255, 0.96) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
}

.tbp-blacklane .tbp-time-dropdowns.tbp-time-dropdowns--bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    flex: 1;
    padding-right: 4px;
    background-position: right 2px center;
}

.tbp-blacklane .tbp-time-dropdowns--bar .tbp-bar-select:last-of-type {
    padding-right: 18px !important;
}

.tbp-blacklane .tbp-bar-duration .tbp-bar-select-duration {
    width: 100%;
    flex: 1 1 auto;
}

#tbp-form-wrapper.tbp-blacklane.is-hourly .tbp-bar-duration .tbp-bar-underline-row {
    min-height: 36px;
}

.tbp-blacklane .tbp-time-dropdowns--bar .tbp-time-divider {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    font-weight: 600;
}

.tbp-blacklane .tbp-bar-trigger {
    position: relative;
}

.tbp-blacklane input.tbp-bar-input.has-chevron {
    flex: 1;
    padding-right: 22px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
}

.tbp-blacklane input.tbp-bar-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
}

.tbp-blacklane .tbp-bar-rule {
    flex: 0 0 auto;
    width: 1px;
    align-self: stretch;
    margin: 6px 0 10px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.5) 20%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.36) 80%,
        rgba(255, 255, 255, 0));
}

.tbp-blacklane .tbp-blacklane-btn {
    align-self: center;
    padding: 14px 24px min(18px, 4vw);
    border: none;
    border-radius: 999px;
    background: #0d5cff;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.015em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 14px 32px rgba(13, 92, 255, 0.4);
    transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.tbp-blacklane .tbp-blacklane-btn:hover {
    background: #0f66ff;
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(13, 92, 255, 0.48);
}

.tbp-blacklane .tbp-blacklane-btn:active {
    transform: translateY(0);
}

.tbp-blacklane .tbp-location-btn.tbp-location-btn--bar {
    flex: 0 0 auto;
    margin: 0 0 0 2px;
    padding: 6px;
    min-width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.9);
}

.tbp-blacklane .tbp-location-btn.tbp-location-btn--bar:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 991px) {
    .tbp-blacklane .tbp-booking-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 12px;
        gap: 0;
    }

    .tbp-blacklane .tbp-bar-cell {
        flex: none;
        width: 100%;
        padding: 10px 4px;
    }

    .tbp-blacklane .tbp-bar-rule:not(.tbp-bar-rule--before-btn) {
        display: none;
    }

    .tbp-blacklane .tbp-bar-rule.tbp-bar-rule--before-btn {
        display: none;
    }

    .tbp-blacklane .tbp-bar-submit-cell {
        padding-top: 8px;
    }

    .tbp-blacklane .tbp-blacklane-btn {
        width: 100%;
    }
}

@supports not (backdrop-filter: blur(1px)) {
    #tbp-form-wrapper.tbp-blacklane .tbp-booking-bar,
    #tbp-form-wrapper.tbp-blacklane .tbp-service-toggle {
        background: rgba(26, 30, 40, 0.92);
    }
}

#tbp-form-wrapper.tbp-blacklane .tbp-date-field input[type="text"],
#tbp-form-wrapper.tbp-blacklane .tbp-date-field input[type="text"]:focus,
#tbp-form-wrapper.tbp-blacklane .tbp-date-field input[type="text"]:hover {
    color: rgba(255, 255, 255, 0.98);
    background: transparent;
    transform: none;
}

/* Date field under dark bar — themes/read-only/autofill often force dark text */
#tbp-form-wrapper.tbp-blacklane input#pickup_date.tbp-bar-input,
#tbp-form-wrapper.tbp-blacklane input#pickup_date.tbp-bar-input[readonly],
#tbp-form-wrapper.tbp-blacklane input#pickup_date[readonly] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    caret-color: #ffffff;
}

#tbp-form-wrapper.tbp-blacklane input#pickup_date:-webkit-autofill,
#tbp-form-wrapper.tbp-blacklane input#pickup_date:-webkit-autofill:hover,
#tbp-form-wrapper.tbp-blacklane input#pickup_date:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 99999s ease-out;
    box-shadow: 0 0 0 1000px transparent inset !important;
}

/* Blacklane: dropdown-only time (no native time row); show on all breakpoints */
#tbp-form-wrapper.tbp-blacklane .tbp-time-desktop,
#tbp-form-wrapper.tbp-blacklane .tbp-time-desktop--blacklane {
    display: block !important;
}

/* Themes ignoring [hidden]: sync bar rows with trip type */
#tbp-form-wrapper.tbp-blacklane #tbp-duration-cell[hidden],
#tbp-form-wrapper.tbp-blacklane #tbp-dropoff-cell[hidden] {
    display: none !important;
}

#tbp-form-wrapper.tbp-blacklane.is-hourly #tbp-duration-cell:not([hidden]) {
    display: flex !important;
}

#tbp-form-wrapper.tbp-blacklane:not(.is-hourly) #tbp-dropoff-cell:not([hidden]) {
    display: flex !important;
}

/*
 * Portal layer: calendar mounts here via Flatpickr appendTo — avoids hero/Elementor overflow + stacking traps.
 * No transform/filter so position:fixed children stay viewport-relative.
 */
#tbp-fp-root {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
    z-index: 2147483646 !important;
    overflow: visible !important;
    background: transparent !important;
}

#tbp-fp-root .flatpickr-calendar {
    pointer-events: auto !important;
    overflow: visible !important;
}

/* Calendar mounted on body — full popover above page sections / WP admin chrome */
body .flatpickr-calendar {
    z-index: 2147483647 !important;
    overflow: visible !important;
}

/* While open: themes cannot clip or flatten stacking (JS adds this class on body) */
body.tbp-flatpickr-open .flatpickr-calendar {
    position: fixed !important;
    z-index: 2147483647 !important;
    overflow: visible !important;
    clip-path: none !important;
    contain: none !important;
    max-height: none !important;
}

#tbp-form-wrapper.tbp-blacklane .flatpickr-calendar,
body .flatpickr-calendar {
    min-width: min(96vw, 340px);
}

.tbp-blacklane .tbp-form-messages {
    margin-top: 12px;
}

.tbp-blacklane .tbp-form-messages .time-error-message {
    background: rgba(255, 255, 255, 0.12) !important;
    border-left-color: #ff8a80 !important;
    color: #ffe8e8 !important;
}
