.search-box-container {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1600px;
    width: 98%;
    margin: 0 auto;
    color: white;
    overflow: visible;
}

/* Booking Preview Modal Styles */
.booking-preview-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.preview-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-preview {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-preview:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.preview-body {
    padding: 25px;
}

.preview-section {
    margin-bottom: 25px;
}

.preview-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-section h3 i {
    color: #667eea;
}

.preview-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.preview-row span {
    color: #666;
    font-size: 14px;
}

.preview-row strong {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.traveller-preview-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.traveller-preview-item:last-child {
    margin-bottom: 0;
}

.traveller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.traveller-header strong {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.traveller-type {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.traveller-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.detail-item {
    font-size: 13px;
}

.detail-item span {
    color: #666;
    margin-right: 5px;
}

.detail-item strong {
    color: #333;
    font-weight: 500;
}

.fare-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.fare-breakdown-row.addon-row {
    color: #667eea;
}

.fare-breakdown-row.total-row {
    border-top: 2px solid #667eea;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 5px;
    font-size: 16px;
}

.fare-breakdown-row span {
    color: #666;
    font-size: 14px;
}

.fare-breakdown-row strong {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.fare-breakdown-row.total-row strong {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

.addon-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.addon-summary-item:last-child {
    margin-bottom: 0;
}

.addon-summary-item i {
    color: #667eea;
    font-size: 20px;
    margin-top: 2px;
}

.addon-summary-item strong {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.addon-summary-item div {
    font-size: 13px;
    color: #666;
}

.addon-summary-item div > div {
    padding: 3px 0;
}

.preview-footer {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
}

.preview-footer .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preview-footer .btn i {
    margin-right: 8px;
}

.preview-footer .btn-secondary {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.preview-footer .btn-secondary:hover {
    background: #667eea;
    color: white;
}

.preview-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.preview-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive styles for preview modal */
@media (max-width: 768px) {
    .booking-preview-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .preview-header {
        padding: 15px 20px;
    }
    
    .preview-header h2 {
        font-size: 20px;
    }
    
    .preview-body {
        padding: 20px;
    }
    
    .preview-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .preview-footer .btn {
        width: 100%;
    }
    
    .traveller-details {
        grid-template-columns: 1fr;
    }
    
    .preview-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Policy Modal Styles */
.policy-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.policy-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.policy-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-policy-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-policy-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.policy-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.policy-modal-body h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.policy-modal-body h4:first-child {
    margin-top: 0;
}

.policy-modal-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.policy-modal-body ul {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 10px 0;
    padding-left: 20px;
}

.policy-modal-body li {
    margin-bottom: 8px;
}

.policy-modal-body strong {
    color: #333;
    font-weight: 600;
}

.policy-modal-footer {
    background: #f8f9fa;
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
}

.policy-modal-footer .btn {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.policy-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Terms link styling */
.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terms-link:hover {
    color: #764ba2;
    border-bottom-style: solid;
    text-decoration: none;
}

/* Fare rules link styling */
.fare-rules-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fare-rules-link:hover {
    color: #764ba2;
    border-bottom-style: solid;
    text-decoration: none;
}

.fare-rules-link i {
    font-size: 14px;
}

/* Responsive styles for policy modal */
@media (max-width: 768px) {
    .policy-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .policy-modal-header {
        padding: 15px 20px;
    }
    
    .policy-modal-header h3 {
        font-size: 18px;
    }
    
    .policy-modal-body {
        padding: 20px;
    }
    
    .policy-modal-footer {
        padding: 15px 20px;
    }
    
    .policy-modal-footer .btn {
        width: 100%;
    }
}

.search-type-selector {
    text-align: left;
    margin-bottom: 15px;
}

/* Fix oversized radio circles on mobile.
   Bootstrap's .form-check-input sizes itself at 1em, so any device-level
   text zoom / accessibility font scaling blows the circles up into huge
   ovals on some phones. Fixed px dimensions keep the circles consistent. */
.search-type-selector .form-check-input {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    margin-top: 2px;
    vertical-align: middle;
    flex-shrink: 0;
}

.search-fields-row {
    background-color: white;
    border-radius: 8px;
    overflow: visible;
    color: #333;
    text-align: left;
}

.search-field {
    padding: 15px 20px;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-field label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.field-main {
    font-size: 20px;
    font-weight: 700;
}

.field-sub {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-search {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
    width: 200px;
    transition: 0.3s;
}

.btn-search:hover {
    background-color: #c4193a;
    transform: translateY(-2px);
}

/* Date Input Styling */
.search-field input[type="date"] {
    width: 100%;
    height: 45px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 180px;
}

.search-field input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Date input placeholder styling for browsers that support it */
.search-field input[type="date"]::placeholder {
    color: #999;
    font-size: 14px;
}

.search-field input[type="date"]::-webkit-input-placeholder {
    color: #999;
    font-size: 14px;
}

.search-field input[type="date"]::-moz-placeholder {
    color: #999;
    font-size: 14px;
}

/* Ensure equal height for all search fields */
.search-field {
    min-height: 85px;
}

/* Traveler & Class Selector */
.traveler-class-selector {
    cursor: pointer;
    transition: 0.3s;
}

.traveler-class-selector:hover {
    opacity: 0.8;
}

/* Traveler Popup */
.traveler-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.traveler-popup.active {
    display: flex;
}

.traveler-popup-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

.traveler-popup-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-blue);
}

.close-popup {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-popup:hover {
    color: var(--red);
}

.traveler-popup-body {
    padding: 25px;
}

.traveler-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.traveler-type:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.traveler-info {
    flex: 1;
}

.traveler-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.traveler-desc {
    color: var(--text-light);
    font-size: 13px;
}

.traveler-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: var(--text-dark);
}

.counter-btn:hover {
    background-color: var(--light-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-value {
    font-weight: 600;
    font-size: 18px;
    min-width: 30px;
    text-align: center;
}

.traveler-class-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.traveler-class-section .traveler-label {
    margin-bottom: 15px;
}

.class-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.class-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.class-option:hover {
    border-color: var(--primary-blue);
    background-color: var(--light-blue);
}

.class-option input {
    margin-right: 10px;
    accent-color: var(--primary-blue);
}

.class-option span {
    font-size: 14px;
    color: var(--text-dark);
}

.traveler-popup-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.btn-apply {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-apply:hover {
    background-color: var(--dark-blue);
}

/* Responsive */
@media (max-width: 780px) {
    .search-box-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .search-fields-row {
        border-radius: 0;
    }

    .traveler-popup-content {
        width: 95%;
        max-width: 95%;
    }

    .class-options {
        grid-template-columns: 1fr;
    }

    .search-field {
        min-height: auto;
        padding: 12px 15px;
    }

    .search-field input[type="date"] {
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .search-field {
        min-height: 75px;
    }

    .search-field input[type="date"] {
        height: 40px;
        font-size: 15px;
    }
}

/* Airport Autocomplete */
.airport-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    margin-top: 2px;
}

.suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: var(--light-blue);
}

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

.suggestion-code {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 14px;
}

.suggestion-city {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    margin-top: 2px;
}

.suggestion-name {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 2px;
}

/* Multicity Fields — MakeMyTrip-style chained segment cards */
.multicity-fields {
    margin-top: 12px;
}

.mc-chain {
    position: relative;
}

.mc-segment-card {
    position: relative;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 22px 20px 14px;
    margin-bottom: 0;
}

.mc-badge {
    position: absolute;
    top: -11px;
    left: 16px;
    background-color: #eaf1fb;
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.mc-badge i {
    margin-right: 4px;
    font-size: 10px;
}

.mc-remove-btn {
    position: absolute;
    top: -11px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background-color: #fdecee;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.mc-remove-btn:hover {
    background-color: #dc3545;
    color: white;
}

.mc-connector {
    height: 26px;
    width: 2px;
    background: linear-gradient(to bottom, #d5dbe3 40%, #0056b3 100%);
    margin: 0 auto;
    position: relative;
}

.mc-connector::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #0056b3;
}

.mc-add-btn {
    margin-top: 14px;
    border: 1px dashed var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mc-add-btn i {
    margin-right: 5px;
}

.mc-add-btn:hover {
    background-color: #f0f6ff;
}

.mc-add-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mc-error {
    font-size: 12px;
    color: #dc3545;
    min-height: 14px;
    margin-top: 2px;
}

/* Segment card date input should not force 180px width */
.mc-segment-card .search-field input[type="date"] {
    min-width: 0;
    width: 100%;
}

.btn-outline-primary {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Group Booking Fields */
.group-booking-fields {
    margin-top: 15px;
}

.group-booking-fields .search-fields-row {
    background-color: white;
    border-radius: 8px;
}

.group-booking-fields input[type="number"] {
    width: 100%;
    height: 45px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.group-booking-fields input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Responsive adjustments for new fields */
@media (max-width: 768px) {
    .multicity-fields .search-field {
        min-height: auto;
        padding: 8px 10px;
    }
    
    .group-booking-fields .search-field {
        min-height: auto;
        padding: 10px 12px;
    }

    /* Segment 1: fields stacked for comfortable typing on phones.
       Segment 2+: compact rows handled below. */
    .mc-segment-card:first-of-type .search-field {
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .mc-segment-card:first-of-type .search-field:last-of-type {
        border-bottom: none;
    }

    /* Segment 2+ : 2x2 compact layout (From+To side by side, Date + remove row) */
    .mc-chain .mc-segment-card + .mc-connector + .mc-segment-card .search-field,
    .mc-chain .mc-segment-card ~ .mc-segment-card ~ .mc-segment-card .search-field {
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .mc-chain .mc-segment-card + .mc-connector + .mc-segment-card .search-field:last-of-type,
    .mc-chain .mc-segment-card ~ .mc-segment-card ~ .mc-segment-card .search-field:last-of-type {
        border-bottom: none;
    }

    /* Horizontal connector on mobile: short left-aligned arrow instead of center vertical line */
    .mc-connector {
        height: auto;
        width: auto;
        background: none;
        margin: 0;
        padding: 4px 0 0 16px;
    }
    .mc-connector::before {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        border-left: 2px solid #d5dbe3;
        border-bottom: 2px solid #0056b3;
        transform: rotate(-45deg);
    }
    .mc-connector::after {
        display: none;
    }
}

/* Fare Type Section */
.fare-type-section {
    background-color: #f8f4ff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fare-type-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
    margin: 0;
    white-space: nowrap;
    min-width: 80px;
}

.fare-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.fare-type-option {
    margin: 0;
}

.fare-type-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.fare-type-radio:checked {
    border-color: #007bff;
    background-color: #007bff;
}

.fare-type-radio:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.fare-type-radio:hover {
    border-color: #007bff;
}

.fare-type-label-text {
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    user-select: none;
}

.fare-type-label-text:hover {
    color: #007bff;
}

/* Responsive for Fare Type — keep chips on a single scrollable row so
   the form does not grow vertically when multicity segments are shown */
@media (max-width: 768px) {
    .fare-type-section {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .fare-type-label {
        min-width: auto;
    }
    
    .fare-type-options {
        gap: 12px;
        width: auto;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .fare-type-options::-webkit-scrollbar {
        display: none;
    }
    
    .fare-type-option {
        flex: 0 0 auto;
    }
    
    .fare-type-label-text {
        font-size: 13px;
    }
}