/* 
 * Modern Enhanced Design for Chauffeur Booking System
 * This file provides modern, eye-catching UI enhancements
 * while maintaining full plugin functionality
 */

/******************************************************************************/
/* Modern Form Fields                                                                */
/******************************************************************************/

.chbs-main .chbs-form-field,
.chbs-main.chbs-main .chbs-form-field {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.chbs-main .chbs-form-field:hover,
.chbs-main.chbs-main .chbs-form-field:hover {
    border-color: #5a9f6e !important;
    box-shadow: 0 4px 16px rgba(90, 159, 110, 0.12) !important;
    transform: translateY(-2px) !important;
}

.chbs-main .chbs-form-field:focus-within,
.chbs-main.chbs-main .chbs-form-field:focus-within {
    border-color: #5a9f6e !important;
    box-shadow: 0 4px 20px rgba(90, 159, 110, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Form Field Labels */
.chbs-main .chbs-form-field > label,
.chbs-main.chbs-main .chbs-form-field > label {
    color: #333333 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    margin-left: 0 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* Form Field Inputs */
.chbs-main .chbs-form-field input[type="text"],
.chbs-main .chbs-form-field textarea,
.chbs-main .chbs-form-field select,
.chbs-main.chbs-main .chbs-form-field input[type="text"],
.chbs-main.chbs-main .chbs-form-field textarea,
.chbs-main.chbs-main .chbs-form-field select {
    background: transparent !important;
    border: none !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 8px 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

.chbs-main .chbs-form-field input::placeholder,
.chbs-main.chbs-main .chbs-form-field input::placeholder {
    color: #999999 !important;
    font-weight: 400 !important;
}

/******************************************************************************/
/* Fix Form Field Width Issues                                                */
/******************************************************************************/

.chbs-main .chbs-form-field.chbs-form-field-width-50,
.chbs-main.chbs-main .chbs-form-field.chbs-form-field-width-50 {
    width: 50% !important;
    float: left !important;
}

.chbs-main .chbs-form-field.chbs-form-field-width-33,
.chbs-main.chbs-main .chbs-form-field.chbs-form-field-width-33 {
    width: 33.333333% !important;
    float: left !important;
}

.chbs-main .chbs-form-field.chbs-form-field-width-100,
.chbs-main.chbs-main .chbs-form-field.chbs-form-field-width-100 {
    width: 100% !important;
}

/* Fix adjacent field borders */
.chbs-main .chbs-form-field.chbs-form-field-width-50 + .chbs-form-field-width-50,
.chbs-main .chbs-form-field.chbs-form-field-width-33 + .chbs-form-field-width-33 {
    margin-left: 0 !important;
}

/******************************************************************************/
/* Tab Navigation Modern Design                                               */
/******************************************************************************/

.chbs-main .chbs-tab.ui-tabs,
.chbs-main.chbs-main .chbs-tab.ui-tabs {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: none !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding: 15px 15px 0 15px !important;
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-nav > li {
    background: transparent !important;
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-nav > li:hover {
    background: rgba(90, 159, 110, 0.08) !important;
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-nav > li.ui-tabs-active {
    background: #5a9f6e !important;
    box-shadow: 0 -2px 8px rgba(90, 159, 110, 0.2);
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-nav > li > a {
    color: #666666 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 14px 24px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-nav > li.ui-tabs-active > a {
    color: #ffffff !important;
}

.chbs-main .chbs-tab.ui-tabs .ui-tabs-panel,
.chbs-main.chbs-main .chbs-tab.ui-tabs .ui-tabs-panel {
    background: #ffffff !important;
    border: none !important;
    padding: 30px !important;
    border-top: 2px solid #f0f0f0 !important;
}

/******************************************************************************/
/* Button Enhancements                                                        */
/******************************************************************************/

.chbs-main .chbs-button.chbs-button-style-1,
.chbs-main .chbs-button.chbs-button-style-2 {
    background: linear-gradient(135deg, #5a9f6e 0%, #4a8f5e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 16px rgba(90, 159, 110, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.chbs-main .chbs-button.chbs-button-style-1:hover,
.chbs-main .chbs-button.chbs-button-style-2:hover {
    background: linear-gradient(135deg, #4a8f5e 0%, #3a7f4e 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(90, 159, 110, 0.4);
}

.chbs-main .chbs-button.chbs-button-style-1:active,
.chbs-main .chbs-button.chbs-button-style-2:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 159, 110, 0.3);
}

/******************************************************************************/
/* Date and Time Picker Enhancements                                          */
/******************************************************************************/

.chbs-main .chbs-form-field-pickup-date-time {
    display: flex;
    gap: 15px;
    margin-bottom: 0 !important;
}

.chbs-main .chbs-form-field-pickup-date-time .chbs-form-field {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Datepicker Icon Enhancement */
.chbs-main .chbs-form-field input.chbs-datepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%235a9f6e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px !important;
}

/* Timepicker Icon Enhancement */
.chbs-main .chbs-form-field input.chbs-timepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%235a9f6e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px !important;
}

/******************************************************************************/
/* Location Field Enhancements                                                */
/******************************************************************************/

.chbs-main .chbs-form-field-pickup-location,
.chbs-main .chbs-form-field-dropoff-location {
    position: relative;
}

.chbs-main .chbs-form-field-pickup-location input,
.chbs-main .chbs-form-field-dropoff-location input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%235a9f6e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px !important;
}

/******************************************************************************/
/* Selectmenu Modern Design                                                   */
/******************************************************************************/

.chbs-main .chbs-form-field .ui-selectmenu-button {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 30px 8px 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.chbs-main .chbs-form-field .ui-selectmenu-button .ui-selectmenu-text {
    color: #1a1a1a !important;
}

.chbs-main .chbs-form-field .ui-selectmenu-button .ui-selectmenu-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%235a9f6e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

/******************************************************************************/
/* Vehicle List Modern Design                                                 */
/******************************************************************************/

.chbs-main .chbs-vehicle-list > ul > li {
    background: #ffffff;
    border: 1px solid #e8e8e8 !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.chbs-main .chbs-vehicle-list > ul > li:hover {
    border-color: #5a9f6e !important;
    box-shadow: 0 8px 32px rgba(90, 159, 110, 0.15);
    transform: translateY(-4px);
}

.chbs-main .chbs-vehicle .chbs-vehicle-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chbs-main .chbs-vehicle .chbs-vehicle-content-header > span {
    color: #1a1a1a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.chbs-main .chbs-vehicle .chbs-vehicle-content-price > span > span {
    color: #5a9f6e !important;
    font-size: 36px !important;
    font-weight: 700 !important;
}

/******************************************************************************/
/* Summary Section Modern Design                                              */
/******************************************************************************/

.chbs-main .chbs-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e8e8e8 !important;
    border-radius: 16px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.chbs-main .chbs-summary-field > span:first-child {
    color: #666666 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chbs-main .chbs-summary-field > span:last-child {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.chbs-main .chbs-summary-price-element {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.chbs-main .chbs-summary-price-element-total {
    background: linear-gradient(135deg, #5a9f6e 0%, #4a8f5e 100%);
    color: #ffffff !important;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.chbs-main .chbs-summary-price-element-total > span {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/******************************************************************************/
/* Notice and Alert Enhancements                                              */
/******************************************************************************/

.chbs-main .chbs-notice {
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chbs-main .chbs-notice.chbs-notice-error {
    background: #fff5f5 !important;
    border: 1px solid #feb2b2 !important;
    color: #c53030 !important;
}

.chbs-main .chbs-notice.chbs-notice-success {
    background: #f0fff4 !important;
    border: 1px solid #9ae6b4 !important;
    color: #22543d !important;
}

.chbs-main .chbs-notice.chbs-notice-info {
    background: #ebf8ff !important;
    border: 1px solid #90cdf4 !important;
    color: #2c5282 !important;
}

/******************************************************************************/
/* Tooltip Modern Design                                                      */
/******************************************************************************/

.chbs-main .chbs-tooltip {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.chbs-main .chbs-tooltip:hover {
    opacity: 1;
    color: #5a9f6e !important;
}

/******************************************************************************/
/* Booking Extra Modern Design                                                */
/******************************************************************************/

.chbs-main .chbs-booking-extra-list > ul > li {
    background: #ffffff;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease;
}

.chbs-main .chbs-booking-extra-list > ul > li:hover {
    border-color: #5a9f6e !important;
    box-shadow: 0 4px 16px rgba(90, 159, 110, 0.12);
}

/******************************************************************************/
/* Payment Method Modern Design                                               */
/******************************************************************************/

.chbs-main .chbs-payment > li > a {
    background: #ffffff !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.3s ease;
}

.chbs-main .chbs-payment > li > a:hover,
.chbs-main .chbs-payment > li > a.chbs-state-selected {
    border-color: #5a9f6e !important;
    background: #f0f9f4 !important;
    box-shadow: 0 4px 16px rgba(90, 159, 110, 0.15) !important;
}

/******************************************************************************/
/* Main Navigation Modern Design                                              */
/******************************************************************************/

.chbs-main .chbs-main-navigation-default > ul > li > a > span:first-child {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8e8e8 100%);
    border: 3px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.chbs-main .chbs-main-navigation-default > ul > li.chbs-state-selected > a > span:first-child,
.chbs-main .chbs-main-navigation-default > ul > li.chbs-state-completed > a > span:first-child {
    background: linear-gradient(135deg, #5a9f6e 0%, #4a8f5e 100%) !important;
    border-color: #5a9f6e !important;
    box-shadow: 0 6px 20px rgba(90, 159, 110, 0.3);
}

/******************************************************************************/
/* Responsive Enhancements                                                    */
/******************************************************************************/

@media screen and (max-width: 1024px) {
    .chbs-main .chbs-form-field {
        padding: 18px !important;
    }
    
    .chbs-main .chbs-tab.ui-tabs .ui-tabs-panel {
        padding: 25px !important;
    }
}

@media screen and (max-width: 767px) {
    .chbs-main .chbs-form-field {
        padding: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .chbs-main .chbs-form-field-pickup-date-time {
        flex-direction: column;
        gap: 0;
    }
    
    .chbs-main .chbs-form-field-pickup-date-time .chbs-form-field {
        margin-bottom: 12px !important;
    }
    
    .chbs-main .chbs-tab.ui-tabs .ui-tabs-panel {
        padding: 20px !important;
    }
    
    .chbs-main .chbs-button.chbs-button-style-1,
    .chbs-main .chbs-button.chbs-button-style-2 {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
}

@media screen and (max-width: 480px) {
    .chbs-main .chbs-form-field {
        padding: 14px !important;
    }
    
    .chbs-main .chbs-vehicle .chbs-vehicle-content-header > span {
        font-size: 18px !important;
    }
    
    .chbs-main .chbs-vehicle .chbs-vehicle-content-price > span > span {
        font-size: 28px !important;
    }
}

/******************************************************************************/
/* Animation Enhancements                                                     */
/******************************************************************************/

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

.chbs-main .chbs-form-field,
.chbs-main .chbs-vehicle-list > ul > li {
    animation: fadeInUp 0.5s ease-out;
}

/******************************************************************************/
/* Focus States for Accessibility                                             */
/******************************************************************************/

.chbs-main .chbs-form-field input:focus,
.chbs-main .chbs-form-field select:focus,
.chbs-main .chbs-form-field textarea:focus {
    outline: 2px solid #5a9f6e;
    outline-offset: 2px;
}

.chbs-main .chbs-button:focus {
    outline: 3px solid rgba(90, 159, 110, 0.5);
    outline-offset: 2px;
}

/******************************************************************************/
/* Loading State Enhancements                                                 */
/******************************************************************************/

.chbs-main.chbs-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.chbs-main.chbs-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5a9f6e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/******************************************************************************/
/* Widget Specific Fixes                                                      */
/******************************************************************************/

/* Ensure widget form fields have proper styling */
.chbs-main.chbs-widget .chbs-form-field,
.chbs-main.chbs-widget.chbs-main .chbs-form-field {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.chbs-main.chbs-widget .chbs-form-field:hover,
.chbs-main.chbs-widget.chbs-main .chbs-form-field:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.chbs-main.chbs-widget .chbs-form-field label,
.chbs-main.chbs-widget.chbs-main .chbs-form-field label {
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.chbs-main.chbs-widget .chbs-form-field input[type="text"],
.chbs-main.chbs-widget .chbs-form-field select,
.chbs-main.chbs-widget.chbs-main .chbs-form-field input[type="text"],
.chbs-main.chbs-widget.chbs-main .chbs-form-field select {
    background: transparent !important;
    border: none !important;
    color: #333333 !important;
    font-size: 16px !important;
    width: 100% !important;
    padding: 5px 0 !important;
    outline: none !important;
}

/******************************************************************************/
/* Form Label Group Styling                                                   */
/******************************************************************************/

.chbs-main .chbs-form-label-group,
.chbs-main.chbs-main .chbs-form-label-group {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 14px 0 15px 0 !important;
    margin-bottom: 10px !important;
    color: #333333 !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/******************************************************************************/
/* Clear Fix for Field Rows                                                   */
/******************************************************************************/

.chbs-main .chbs-clear-fix:after,
.chbs-main.chbs-main .chbs-clear-fix:after {
    content: " " !important;
    display: block !important;
    clear: both !important;
    height: 0 !important;
    visibility: hidden !important;
}

.chbs-main .chbs-form-field-pickup-date-time,
.chbs-main.chbs-main .chbs-form-field-pickup-date-time {
    display: block !important;
    margin-bottom: 0 !important;
}

.chbs-main .chbs-form-field-pickup-date-time:after,
.chbs-main.chbs-main .chbs-form-field-pickup-date-time:after {
    content: " " !important;
    display: block !important;
    clear: both !important;
}

/******************************************************************************/
/* Ensure Proper Box Sizing                                                   */
/******************************************************************************/

.chbs-main *,
.chbs-main.chbs-main * {
    box-sizing: border-box !important;
}
