/* 
 * Modern Widget Design
 * Clean, minimal UI with no labels and modern styling
 */

:root {
  --primary-color: #4a6cf7;
  --primary-hover: #3a5ce4;
  --text-color: #2d3748;
  --text-secondary: #718096;
  --border-color: #e2e8f0;
  --bg-color: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 10px;
  --radius-lg: 14px;
}

/******************************************************************************/
/* Modern Widget Base Styles                                                  */
/******************************************************************************/

/* Hide all labels */
.chbs-main.chbs-widget label,
.chbs-main.chbs-widget .chbs-form-field > span,
.chbs-main.chbs-widget .chbs-form-field > .chbs-form-field-label {
  display: none !important;
}

/* Form field wrapper */
.chbs-main.chbs-widget .chbs-form-field {
  margin-bottom: 16px;
  position: relative;
}

/* Remove any remaining visual labels */
.chbs-main.chbs-widget .chbs-form-field::before {
  display: none !important;
}

.chbs-main.chbs-widget {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.chbs-main.chbs-widget .chbs-tab.ui-tabs .ui-tabs-nav {
    background: transparent !important;
    border: none !important;
    margin-bottom: 20px !important;
}

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

.chbs-main.chbs-widget .chbs-tab.ui-tabs .ui-tabs-nav > li:hover {
    background: #4a8f5e !important;
    transform: translateY(-2px);
}

.chbs-main.chbs-widget .chbs-tab.ui-tabs .ui-tabs-nav > li.ui-tabs-active {
    background: #5a9f6e !important;
}

.chbs-main.chbs-widget .chbs-tab.ui-tabs .ui-tabs-nav > li > a {
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 12px 25px !important;
    text-decoration: none !important;
}

.chbs-main.chbs-widget .chbs-tab.ui-tabs .ui-tabs-panel {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

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

.chbs-main.chbs-widget .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: 18px 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.chbs-main.chbs-widget .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 {
    display: none !important;
}

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

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

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

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

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

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

/******************************************************************************/
/* Icons                                                                      */
/******************************************************************************/

.chbs-main.chbs-widget .chbs-meta-icon-2 {
    color: #5a9f6e !important;
    font-size: 20px !important;
    margin-right: 10px !important;
}

/******************************************************************************/
/* Passenger Popup                                                            */
/******************************************************************************/

.chbs-passenger-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.chbs-passenger-popup.chbs-active {
    display: block;
}

.chbs-passenger-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.chbs-passenger-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.chbs-passenger-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.chbs-passenger-popup-close:hover {
    color: #333333;
}

.chbs-passenger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.chbs-passenger-item:last-child {
    border-bottom: none;
}

.chbs-passenger-item-info {
    flex: 1;
}

.chbs-passenger-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 4px;
}

.chbs-passenger-item-subtitle {
    font-size: 13px;
    color: #999999;
}

.chbs-passenger-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chbs-passenger-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #5a9f6e;
    background: #ffffff;
    color: #5a9f6e;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chbs-passenger-control-btn:hover:not(:disabled) {
    background: #5a9f6e;
    color: #ffffff;
}

.chbs-passenger-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chbs-passenger-control-value {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.chbs-passenger-popup-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.chbs-passenger-popup-continue {
    width: 100%;
    background: #5a9f6e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chbs-passenger-popup-continue:hover {
    background: #4a8f5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 159, 110, 0.3);
}

/******************************************************************************/
/* Luggage Popup                                                              */
/******************************************************************************/

.chbs-luggage-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.chbs-luggage-popup.chbs-active {
    display: block;
}

.chbs-luggage-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.chbs-luggage-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.chbs-luggage-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.chbs-luggage-popup-close:hover {
    color: #333333;
}

.chbs-luggage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.chbs-luggage-item:last-child {
    border-bottom: none;
}

.chbs-luggage-item-info {
    flex: 1;
}

.chbs-luggage-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 4px;
}

.chbs-luggage-item-subtitle {
    font-size: 13px;
    color: #999999;
}

.chbs-luggage-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chbs-luggage-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #5a9f6e;
    background: #ffffff;
    color: #5a9f6e;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chbs-luggage-control-btn:hover:not(:disabled) {
    background: #5a9f6e;
    color: #ffffff;
}

.chbs-luggage-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chbs-luggage-control-value {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.chbs-luggage-popup-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.chbs-luggage-popup-continue {
    width: 100%;
    background: #5a9f6e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chbs-luggage-popup-continue:hover {
    background: #4a8f5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 159, 110, 0.3);
}

/******************************************************************************/
/* Passenger Field Display                                                    */
/******************************************************************************/

.chbs-form-field-passenger-display {
    position: relative;
    cursor: pointer;
}

.chbs-form-field-passenger-display input {
    cursor: pointer;
}

.chbs-form-field-luggage-display {
    position: relative;
    cursor: pointer;
}

.chbs-form-field-luggage-display input {
    cursor: pointer;
}

/******************************************************************************/
/* Search Button                                                              */
/******************************************************************************/

.chbs-main.chbs-widget .chbs-button-widget-submit {
    background: #5a9f6e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.chbs-main.chbs-widget .chbs-button-widget-submit:hover {
    background: #4a8f5e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(90, 159, 110, 0.4) !important;
}

/******************************************************************************/
/* Add Return Button                                                          */
/******************************************************************************/

.chbs-add-return-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.chbs-add-return-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/******************************************************************************/
/* Responsive Design                                                          */
/******************************************************************************/

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .chbs-main.chbs-widget {
        padding: 25px !important;
    }
    
    .chbs-main.chbs-widget .chbs-form-field {
        padding: 14px 15px !important;
    }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
    .chbs-main.chbs-widget {
        padding: 20px !important;
        border-radius: 15px !important;
    }
    
    .chbs-main.chbs-widget .chbs-tab.ui-tabs .ui-tabs-nav > li {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .chbs-main.chbs-widget .chbs-form-field {
        padding: 16px 15px !important;
        margin-bottom: 12px !important;
    }
    
    .chbs-passenger-popup,
    .chbs-luggage-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
        width: 90%;
        max-width: 400px;
    }
    
    .chbs-main.chbs-widget .chbs-button-widget-submit {
        padding: 14px 30px !important;
        font-size: 16px !important;
    }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .chbs-main.chbs-widget {
        padding: 15px !important;
    }
    
    .chbs-passenger-item,
    .chbs-luggage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chbs-passenger-item-controls,
    .chbs-luggage-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/******************************************************************************/
/* Date and Time Picker Fields                                                */
/******************************************************************************/

.chbs-main.chbs-widget .chbs-form-field-pickup-date-time {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

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

/* Ensure consistent height for date/time fields */
.chbs-main.chbs-widget .chbs-form-field-pickup-date-time .chbs-form-field input {
    min-height: 24px !important;
}

@media screen and (max-width: 767px) {
    .chbs-main.chbs-widget .chbs-form-field-pickup-date-time {
        grid-template-columns: 1fr !important;
    }
}

/******************************************************************************/
/* Location Fields                                                            */
/******************************************************************************/

.chbs-main.chbs-widget .chbs-form-field-pickup-location,
.chbs-main.chbs-widget .chbs-form-field-dropoff-location {
    position: relative;
    margin-bottom: 16px;
}

/* Location field icons removed for cleaner design */

/* Form field styling */
.chbs-main.chbs-widget .chbs-form-field {
    margin-bottom: 16px;
}

/* Input and select base styling */
.chbs-main.chbs-widget .chbs-form-field input[type="text"],
.chbs-main.chbs-widget .chbs-form-field select,
.chbs-main.chbs-widget .chbs-form-field input[type="text"][readonly] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
  font-weight: 500;
  height: auto;
  min-height: 54px;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' 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 16px center;
  background-size: 16px;
  padding-right: 48px;
}

/* Text input specific styles */
.chbs-main.chbs-widget .chbs-form-field input[type="text"] {
  background-image: none;
  padding-right: 20px;
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Readonly input styling */
.chbs-main.chbs-widget .chbs-form-field input[readonly] {
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  color: var(--text-color);
  font-weight: 500;
}

/* Focus states */
.chbs-main.chbs-widget .chbs-form-field input[type="text"]:focus,
.chbs-main.chbs-widget .chbs-form-field select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
  background-color: #fff;
}

/* Placeholder styling */
.chbs-main.chbs-widget .chbs-form-field input[type="text"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
  font-weight: 400;
}

.chbs-main.chbs-widget .chbs-form-field input[type="text"]:focus,
.chbs-main.chbs-widget .chbs-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.chbs-main.chbs-widget .chbs-form-field input[type="text"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Select dropdown options */
.chbs-main.chbs-widget .chbs-form-field select option:first-child {
    color: var(--text-secondary);
}

.chbs-main.chbs-widget .chbs-form-field select option {
    padding: 8px 16px;
    color: var(--text-color);
}

/* Button styles */
.chbs-main.chbs-widget .chbs-form-button-submit,
.chbs-main.chbs-widget .chbs-button-widget-submit {
  width: 100%;
  padding: 16px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 8px 0 0 0;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: auto;
  line-height: 1.5;
}

/* Add return button */
.chbs-main.chbs-widget .chbs-add-return-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px dashed rgba(255, 255, 255, 0.3) !important;
  border-radius: var(--radius-md) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  text-align: center;
  margin: 16px 0 0 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chbs-main.chbs-widget .chbs-add-return-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
}

.chbs-main.chbs-widget .chbs-add-return-btn:before {
  content: '+';
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  margin-top: -1px;
}

.chbs-main.chbs-widget .chbs-form-button-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.chbs-main.chbs-widget .chbs-form-button-submit:active {
    transform: translateY(0);
}

/* Tab styling - Simplified and modernized */
.chbs-main.chbs-widget .chbs-tab > ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.chbs-main.chbs-widget .chbs-tab > ul li {
  margin: 0 8px;
}

.chbs-main.chbs-widget .chbs-tab > ul li a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 4px;
}

.chbs-main.chbs-widget .chbs-tab > ul li a:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transition: var(--transition);
  opacity: 0.9;
}

.chbs-main.chbs-widget .chbs-tab > ul li.ui-tabs-active a,
.chbs-main.chbs-widget .chbs-tab > ul li a:hover {
  color: #fff;
}

.chbs-main.chbs-widget .chbs-tab > ul li.ui-tabs-active a:after {
  transform: scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .chbs-main.chbs-widget {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  
  .chbs-main.chbs-widget .chbs-form-field input[type="text"],
  .chbs-main.chbs-widget .chbs-form-field select,
  .chbs-main.chbs-widget .chbs-form-field input[type="text"][readonly] {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 52px;
  }
  
  .chbs-main.chbs-widget .chbs-tab > ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 16px;
  }
  
  .chbs-main.chbs-widget .chbs-tab > ul li {
    margin: 0 12px 8px 0;
  }
  
  .chbs-main.chbs-widget .chbs-tab > ul li a {
    font-size: 14px;
    padding: 8px 0;
  }
  
  .chbs-main.chbs-widget .chbs-form-button-submit,
  .chbs-main.chbs-widget .chbs-button-widget-submit {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .chbs-main.chbs-widget .chbs-add-return-btn {
    padding: 12px 16px;
    font-size: 13px !important;
  }
}

/* Ensure inputs with values show in dark text */
.chbs-main.chbs-widget .chbs-form-field input[type="text"]:not(:placeholder-shown) {
    color: #333333 !important;
    font-weight: 500 !important;
}

/* Readonly fields styling */
.chbs-main.chbs-widget .chbs-form-field input[readonly] {
    cursor: pointer !important;
}

/******************************************************************************/
/* Popup Overlay and Modals - Enhanced */
/******************************************************************************/

.chbs-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.chbs-popup-overlay.chbs-active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.chbs-popup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chbs-popup-overlay.chbs-active .chbs-popup {
    transform: translateY(0);
    opacity: 1;
}

.chbs-popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.chbs-popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  padding-right: 30px;
}

.chbs-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  line-height: 1;
  padding: 0;
  margin: 0;
}

.chbs-popup-close:hover {
  color: var(--text-color);
  transform: rotate(90deg);
  background: rgba(0, 0, 0, 0.08);
}

.chbs-popup-content {
  padding: 0 24px 24px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* Passenger and luggage counter styles */
.chbs-passenger-popup-item,
.chbs-luggage-popup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.chbs-passenger-popup-item:last-child,
.chbs-luggage-popup-item:last-child {
  border-bottom: none;
}

.chbs-passenger-popup-label,
.chbs-luggage-popup-label {
  font-weight: 500;
  color: var(--text-color);
}

.chbs-passenger-popup-description,
.chbs-luggage-popup-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.chbs-passenger-popup-counter,
.chbs-luggage-popup-counter {
  display: flex;
  align-items: center;
}

.chbs-passenger-popup-counter button,
.chbs-luggage-popup-counter button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f7fa;
  border: 1px solid var(--border-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 0;
  line-height: 1;
}

.chbs-passenger-popup-counter button:disabled,
.chbs-luggage-popup-counter button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chbs-passenger-popup-counter button:hover:not(:disabled),
.chbs-luggage-popup-counter button:hover:not(:disabled) {
  background: #edf0f5;
  color: var(--primary-color);
}

.chbs-passenger-popup-count,
.chbs-luggage-popup-count {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-color);
}

/* Popup footer buttons */
.chbs-popup-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

.chbs-popup-button {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
}

.chbs-popup-button-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.chbs-popup-button-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.chbs-popup-button-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.chbs-popup-button-secondary:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.chbs-popup-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Animation for modal content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.chbs-popup-content > * {
  animation: fadeIn 0.3s ease forwards;
  animation-delay: calc(var(--animation-order, 0) * 0.05s);
}

/* Date and time picker styling */
.ui-datepicker {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 300px;
}

.ui-timepicker-wrapper {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-height: 200px;
  overflow-y: auto;
}

.ui-timepicker-list li {
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.ui-timepicker-list li:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

/* Loading state for form submission */
.chbs-form-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.chbs-form-loading:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 10;
  border-radius: var(--radius-md);
}

/* Ripple effect for buttons */
.chbs-ripple {
  position: relative;
  overflow: hidden;
}

.chbs-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Tooltip for form fields */
.chbs-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chbs-form-field:hover .chbs-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Error states */
.chbs-form-field-error input,
.chbs-form-field-error select {
  border-color: #e53e3e !important;
  background-color: #fff5f5 !important;
}

.chbs-form-field-error-message {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.chbs-form-field-error .chbs-form-field-error-message {
  display: block;
}

/* Success message */
.chbs-form-success {
  text-align: center;
  padding: 20px;
  background: #f0fff4;
  border-radius: var(--radius-md);
  border: 1px solid #c6f6d5;
  margin-bottom: 20px;
  color: #2f855a;
  display: none;
}

.chbs-form-success.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Custom scrollbar for popups */
.chbs-popup-content::-webkit-scrollbar {
  width: 6px;
}

.chbs-popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chbs-popup-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chbs-popup-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
