/**
 * Amadex Modern Search Bar Styles
 * Based on Adobe XD Design - Professional & Clean
 * Enhanced with Smooth Functionality & Modern UI
 */

/* ==================== Container ==================== */
input[type=text] {
    background: none!important;
    border:none!important;
    padding:none!important;
}
input#modern-destination {
    border: none;
    background: none;
}

.amadex-search-modern {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
    position: relative;
}

/* Subtle Background Pattern (Optional - uncomment to add wave pattern) */
/* .amadex-search-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 125, 63, 0.02) 0%, rgba(16, 185, 129, 0.01) 100%);
    pointer-events: none;
    z-index: 0;
} */

/* ==================== Main Search Card ==================== */
/* Clean, modern white card with rounded corners - matching image design */
.amadex-modern-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    position: relative;
    z-index: 1;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.06), 
                0px 2px 12px rgba(0, 0, 0, 0.04);
    max-width: 1200px;
    margin: 0 auto;
}

.amadex-modern-form:hover {
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.10), 
                0px 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

/* ==================== Trip Type Selector ==================== */
.amadex-trip-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #F5F5F5;
    border-radius: 24px;
    opacity: 1;
    width: fit-content;
    max-width: 400px;
    padding: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.amadex-search-modern .amadex-trip-option {
    position: relative;
}

.amadex-search-modern .amadex-trip-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.amadex-search-modern .amadex-trip-label {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px!important;
    font-weight: 500;
    color: #1e293b;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.amadex-trip-label:hover {
    color: #0E7D3F;
    background: rgba(14, 125, 63, 0.08);
}

.amadex-search-modern .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {
    color: #ffffff;
    font-weight: 600;
    background: #0E7D3F;
    box-shadow: 0 2px 8px rgba(14, 125, 63, 0.3), 0 4px 12px rgba(14, 125, 63, 0.15);
    transform: scale(1.02);
}

.amadex-trip-option input[type="radio"]:checked + .amadex-trip-label:hover {
    background: #0a5f30;
    color: #ffffff;
    transform: scale(1.02);
}

/* ==================== Search Fields Container ==================== */
/* Clean rounded container matching the image design */
.amadex-search-modern .amadex-search-fields {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    opacity: 1;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    width:  93%;
    max-width:  93%;
    min-height: 115px;
}

.amadex-search-fields:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Prevent layout breaking during loading */
.amadex-search-modern .amadex-modern-form.searching .amadex-search-fields {
    pointer-events: none;
    opacity: 0.8;
}

/* ==================== Field Base Styles ==================== */
/* Clean field design matching image - straight dividers, no individual corners */
.amadex-modern-field {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
    min-height: 115px;
    justify-content: center;
}

.amadex-modern-field:not(:last-child):not(.amadex-swap-button) {
    border-right: 1px solid #E8E8E8;
}

.amadex-modern-field:hover {
    background: #F0FFF7;
    border-radius: 15px;
}

.amadex-modern-field:focus-within {
    background: rgba(14, 125, 63, 0.03);
}

/* Active state with green border (matching Adobe XD design) */
.amadex-modern-field.field-active {
    background: rgba(14, 125, 63, 0.03);
    border: 2px solid #0E7D3F !important;
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* Active state for date fields when calendar is open */
.amadex-modern-field.amadex-date-field.field-active {
    background: rgba(14, 125, 63, 0.03);
    border: 2px solid #0E7D3F !important;
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* Active state for travellers field when dropdown is open */
.amadex-modern-field.amadex-travellers-field.field-active {
    background: rgba(14, 125, 63, 0.03);
    border: 2px solid #0E7D3F !important;
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* Disabled Field State - For One Way Return Date */
.amadex-modern-field.field-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

/* Override disabled styles for return-promo to look normal/active */
.amadex-modern-field.field-disabled.return-promo {
    opacity: 1 !important;
    cursor: default;
    pointer-events: none;
}

.field-disabled.return-promo::after {
    display: none !important;
}

.field-disabled.return-promo .amadex-field-label {
    color: #0E7D3F !important;
    opacity: 1 !important;
    font-size: 12px!important;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-value {
    color: #111827 !important;
    opacity: 1 !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

.field-disabled.return-promo .amadex-field-value strong {
    font-weight: 700;
    color: #111827;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-description {
    color: #6B7280 !important;
    opacity: 1 !important;
    display: none;
}

.amadex-modern-field.field-disabled.subtle-disabled {
    opacity: 1 !important;
    cursor: default;
    pointer-events: none;
}

.amadex-modern-field.field-disabled.subtle-disabled::after {
    display: none;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-label,
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value,
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-description {
    color: inherit;
    opacity: 1;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-label {
    color: #0E7D3F;
    font-weight: 600;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value {
    color: #111827;
    font-weight: 600;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-description {
    color: #6B7280;
}

.amadex-modern-field.field-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    z-index: 1;
}

.amadex-modern-field.field-disabled .amadex-field-label,
.amadex-modern-field.field-disabled .amadex-field-value,
.amadex-modern-field.field-disabled .amadex-field-description {
    color: #9CA3AF;
}

/* ==================== Results Page Search Bar ==================== */
.amadex-results-page .amadex-search-summary-modern {
    margin-bottom: 24px;
    width: 100%;
}

/* .amadex-search-summary-modern .amadex-search-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
} */


.amadex-search-summary-modern .amadex-modern-form {
    margin: 0;
    box-shadow: none;
    padding: 0;
}

.amadex-results-page #amadex-modify-search-btn .amadex-search-icon {
    display: none;
}

.amadex-results-page .amadex-search-summary-modern .amadex-field-label {
    color: #000000; 
}

.amadex-search-summary-modern .amadex-location-field .amadex-field-value {
        font-weight: 600;
 }

 .amadex-results-page .amadex-search-summary-modern div#destination-description{
  display:none;
}

.amadex-results-page .amadex-search-summary-modern div#origin-description{
display:none;
}
.amadex-search-summary-modern .amadex-field-description {
   padding: 10px 0;
   font-size:14px;
}
.amadex-search-summary-modern .amadex-field-input-wrap {
    flex-direction: row;
    gap: 4px;
    align-items:center; 
}

.amadex-search-summary-modern .amadex-date-field .amadex-field-value {

    width: 60%;
}

.amadex-results-page .amadex-search-summary-modern button.amadex-swap-button {
  margin-left:11.5rem;
}

.amadex-results-page .amadex-search-summary-modern .amadex-travellers-trigger {
 flex-direction: row;
}

.amadex-results-page .amadex-search-summary-modern .amadex-trip-selector {
  margin-bottom: 0;
  background: none;
  box-shadow:none;
}

.amadex-search-summary-modern button.amadex-search-btn {
           height: 80px;
           margin-bottom: 4px;
           left: 58.5rem;
}

.amadex-results-page .amadex-search-summary-modern .amadex-modern-field {
    justify-content:start;
     min-height: 80px;
}

.amadex-results-page .amadex-search-summary-modern .amadex-search-fields {
    min-height: 80px;
    width: 87%;
    grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1.2fr;
}

.amadex-results-page .amadex-search-summary-modern button.amadex-swap-button {
bottom: 0.6rem;
}
/* ==================== Multi-City Layout ==================== */
.amadex-search-container {
    position: relative;
}

.amadex-multi-city-flights {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.amadex-flight-segment {
    position: relative;
    margin-bottom: 0!important; 
    padding-bottom: 2px;
    border:none!important;
}

.amadex-flight-segment:last-child {
    margin-bottom: 0;
}

.amadex-modern-form:not(.amadex-multi-city-mode) .amadex-flight-segment:not([data-segment="1"]) {
    display: none;
}

.amadex-multi-city-mode .amadex-flight-segment + .amadex-flight-segment {
    border-top: 1px solid #E5E7EB;
    padding-top: 18px;
    margin-top: 8px;
}

/* Adjust search fields for multi-city mode */
.amadex-multi-city-mode .amadex-search-fields {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 0;
}

.amadex-modern-form.has-extra-segments .amadex-search-btn {
    grid-column: 1 / -1;
    justify-self: center;
    /* width: 220px; */
    margin: 16px auto 0;
    top: 3rem;
}

input[type=text] {
    background: none;
}

/* .amadex-flight-segment .amadex-swap-button[disabled] {
    opacity: 0.5;
    cursor: default;
} */



/* Add City Button - Green with White Border */
.amadex-add-city-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: #ffffff;
    border: 1px solid #0E7D3F;
    border-radius: 15px;
    color: #0E7D3F;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 24px 0 0;
}

.amadex-add-city-btn .amadex-add-city-icon {
    width: 26px;
    height: 26px;
    /* border-radius: 50%;
    border: 1px solid currentColor; */
   border:none;    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
}

.amadex-add-city-btn:hover {
    background: rgba(14, 125, 63, 0.05);
    border-color: #0a6835;
    color: #0a6835;
    transform: translateY(-1px);
}

.amadex-add-city-btn:active {
    transform: translateY(0);
}

.amadex-add-city-btn:disabled,
.amadex-add-city-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #93A38E;
    border-color: #C8D1C8;
    transform: none;
}

.amadex-modern-form.has-extra-segments .amadex-add-city-btn {
    margin-left: auto;
    margin-right: auto;
}

/* Remove Button - Grey with X Icon */
.amadex-remove-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.amadex-remove-field .amadex-field-label {
    visibility: hidden;
    height: 16px;
    display:none;
}

.amadex-remove-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}


.amadex-remove-segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #F3F4F6;
    /* border: 1px solid #D1D5DB; */
    border-radius: 999px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.amadex-remove-segment-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.amadex-remove-segment-btn:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
    color: #374151;
}

.amadex-remove-segment-btn:active {
    transform: scale(0.98);
}

/* Multi-City Return Field - Promotional Text */
.amadex-return-placeholder .amadex-field-value {
    color: #000;
    font-weight: 600;
    font-size: 13px;
}

.amadex-return-placeholder .amadex-field-input-wrap {
    /* min-height: 72px; */
    display: flex;
    align-items: center;
}

.amadex-return-promo {
    background: #ffffff;
    border: none;
    cursor: default;
    pointer-events: none;
}

.amadex-return-promo .amadex-field-value {
    color: #111827;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

/* Make "Save More" bold within the text */
.amadex-return-promo .amadex-field-value strong {
    font-weight: 700;
    color: #111827;
}

.amadex-return-promo .amadex-field-label {
    color: #0E7D3F;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    opacity: 1;
}

.amadex-return-promo .amadex-field-description {
    display: none;
}

.amadex-field-label {
    font-size: 12px!important;
    font-weight: 600;
    color: #0E7D3F!important;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    opacity: 1;
    /* margin-bottom: 4px; */
    transition: all 0.3s ease;
}

#modern-origin.amadex-field-value::placeholder,
#modern-destination.amadex-field-value::placeholder {
    font-weight: 600;
    color: #000000; /* Adjust placeholder color */
    opacity: 1; /* Ensures the placeholder color is fully visible */
}

/* Placeholder color for dynamically added origin/destination inputs */
input[id^="modern-origin"]::placeholder,
input[id^="modern-destination"]::placeholder {
    color: #000;
    font-weight: 600;
    opacity: 1;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="reset"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    color: inherit !important;
}

.amadex-modern-field:focus-within .amadex-field-label {
    color: #0a5f30;
    transform: translateY(-1px);
}

.amadex-field-input-wrap {
    display: flex;
    flex-direction: column;
    color: #202924;
    /* gap: 4px; */
}

.amadex-field-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    padding: 8px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.amadex-field-value::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.amadex-field-value:focus {
    outline: none;
    color: #0E7D3F;
}

.amadex-field-value:hover {
    color: #0E7D3F;
    background: #F0FFF7;
}

.amadex-field-description {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: 0px;
    color: #202924;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* ==================== Origin/Destination Fields ==================== */
.amadex-location-field .amadex-field-value {
    text-align: left;
    letter-spacing: 0px;
    color: #000000 !important;
    opacity: 1;
    height:40px;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 16px;
}

/**
 * Amadex Search Dropdown - Adobe XD Pixel Perfect Design
 * Based on: https://xd.adobe.com/view/45db8b2e-4563-42b9-83d2-627bd4b453d9-1088/screen/4a369078-35d8-4f41-ae64-51ba882a38b2/specs/
 */

/* ==================== Dropdown Container ==================== */
.amadex-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 420px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 14px;
    display: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-suggestions-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Search Input Inside Dropdown ==================== */
.amadex-dropdown-search {
    padding: 16px 18px 14px 18px;
    background: #ffffff;
    /* border-bottom: 1px solid #F3F4F6; */
    position: sticky;
    top: 0;
    z-index: 10;
}

.amadex-dropdown-search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    background: #F9FAFB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1F2937;
}

.amadex-dropdown-search-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.amadex-dropdown-search-input:focus {
    outline: none;
    border-color: #0E7D3F;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 125, 63, 0.1);
}

.amadex-dropdown-search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6B7280;
    pointer-events: none;
}

.amadex-dropdown-search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ==================== Scrollable Suggestions Area ==================== */
.amadex-suggestions-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Smooth scrolling */
.amadex-suggestions-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ==================== Custom Scrollbar (Adobe XD Match) ==================== */
.amadex-suggestions-scroll::-webkit-scrollbar {
    width: 6px;
}

.amadex-suggestions-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.amadex-suggestions-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.amadex-suggestions-scroll::-webkit-scrollbar-thumb:hover {
    background: #0E7D3F;
}

/* Firefox scrollbar */
.amadex-suggestions-scroll {
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

/* ==================== Section Headers ==================== */
.amadex-suggestions-section {
    padding: 14px 18px 10px 18px;
    background: transparent;
}

.amadex-suggestions-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==================== Suggestion Items (Adobe XD Exact) ==================== */
.amadex-suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #CFCFCF;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

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

.amadex-suggestion-item:hover {
    background: #F0FDF4;
}

/* Left arrow indicator on hover */
.amadex-suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0px;
    background: #0E7D3F;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-suggestion-item:hover::before {
    width: 4px;
}

/* ==================== Suggestion Content ==================== */
.amadex-suggestion-content {
    flex: 1;
    min-width: 0;
}

.amadex-suggestion-city {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.amadex-suggestion-item:hover .amadex-suggestion-city {
    color: #0E7D3F;
}

.amadex-suggestion-airport {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

/* ==================== Airport Code Pill (Adobe XD Green Tags) ==================== */
.amadex-suggestion-code {
    padding: 6px 14px;
    background: #fff;
    color: #0E7D3F;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #0E7D3F;
    box-shadow: 0 2px 6px rgba(14, 125, 63, 0.25);
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-suggestion-item:hover .amadex-suggestion-code {
    /* background: #0a5f30; */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(14, 125, 63, 0.35);
}

.amadex-suggestions-dropdown {
    width: 320px;
}

/* ==================== Empty State ==================== */
.amadex-suggestions-empty {
    padding: 32px 18px;
    text-align: center;
    color: #9CA3AF;
    font-size: 15px;
    font-weight: 400;
}

table.amadex-calendar-table {
    border: none !important;
    border-style: none !important;
}

.amadex-modern-field.amadex-date-field.field-active {
    background: rgba(14, 125, 63, 0.03);  /* Light green tint */
    border: 2px solid #0E7D3F !important;  /* Green border */
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* .amadex-modern-field.amadex-date-field.active {
    background: rgba(14, 125, 63, 0.03);
        border: 1px solid #0E7D3F !important;
        border-radius: 12px;
        margin: -2px;
        padding: 14px 22px;
    } */
/* ==================== Custom Calendar Widget (Pixel Perfect - From Screenshot) ==================== */
.amadex-calendar-widget {
    position: absolute;
    top: 212px;
    left: 540px;
    background: #ffffff;
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15),
                0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 18px;
    z-index: 1001;
    display: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 760px;
}

.amadex-calendar-widget.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Calendar Header - Two Dates Display */
.amadex-calendar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* margin-bottom: 24px; */
    padding-bottom: 18px;
    border-bottom: 2px solid #CFCFCF;
    gap: 40px;
}

.amadex-calendar-selected-date {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.amadex-calendar-date-item {
    position: relative;
    padding-bottom: 6px;
}

.amadex-calendar-date-item.active {
    color: #0E7D3F;
}

.amadex-calendar-date-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0E7D3F;
    border-radius: 2px;
}

.amadex-calendar-trip-type {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
    margin-left: auto;
}

/* Calendar Grid Container */
.amadex-calendar-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    padding-top:15px;
}

/* Vertical Center Border */
.amadex-calendar-months::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #CFCFCF;
    transform: translateX(-50%);
}

span.amadex-calendar-day.selected {
    background: #0E7D3F;
    color: #fff;
}

/* Single Month */
.amadex-calendar-month {
    min-width: 280px;
    position: relative;
}

.amadex-calendar-month-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
}

.amadex-calendar-month-title {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.2px;
    text-align: center;
}

.amadex-calendar-nav {
    position: absolute;
    display: flex;
    gap: 6px;
}

/* Position left arrow on the left side of November */
.amadex-calendar-month:first-child .amadex-calendar-nav {
    left: 0;
}

/* Position right arrow on the right side of December */
.amadex-calendar-month:last-child .amadex-calendar-nav {
    right: 0;
}

.amadex-calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    box-shadow: none;
    padding: 0;
}

.amadex-calendar-nav-btn:hover {
    background: #E8F5E9;
    color: #0E7D3F;
}

.amadex-calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
}

/* Calendar Table */
.amadex-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px 4px;
    border: none !important;
    border-style: none !important;
    margin-bottom: 0!important;
}

.amadex-calendar-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #707070;
    text-align: center;
    padding: 10px 4px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    border: none !important;
    border-style: none !important;
}

.amadex-calendar-table tbody td {
    text-align: center;
    padding: 2px;
    border: none !important;
    border-style: none !important;
}

/* Day Cell - Pixel Perfect from Screenshot */
.amadex-calendar-day {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: transparent;
}

.amadex-calendar-day:hover:not(.disabled):not(.selected) {
    background: #F0FDF4;
    color: #0E7D3F;
    border-color: #E8F5E9;
}

/* Selected Start/End Dates - Dark Green Square */
.amadex-calendar-day.selected {
    background: #0E7D3F;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(14, 125, 63, 0.25);
    border-color: #0E7D3F;
}

/* In-Range Dates - Light Green Background */
.amadex-calendar-day.in-range {
    background: #E8F5E9;
    color: #0E7D3F;
    font-weight: 500;
}

.amadex-calendar-day.disabled {
    color: #B9B9B9;
    cursor: not-allowed;
    opacity: 1;
}

.amadex-calendar-day.other-month {
    color: #E5E7EB;
    font-weight: 400;
}

.amadex-calendar-day.today:not(.selected) {
    border-color: #0E7D3F;
    font-weight: 600;
    color: #0E7D3F;
}

/* Mobile Responsive for Calendar */
@media (max-width: 768px) {
    .amadex-calendar-widget {
        min-width: auto;
        width: calc(100vw - 40px);
        padding: 24px 20px;
        left: 50%;
        transform: translateX(-50%) translateY(-12px);
    }

    .amadex-calendar-widget.active {
        transform: translateX(-50%) translateY(0);
    }

    .amadex-calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .amadex-calendar-months {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Hide vertical border on mobile */
    .amadex-calendar-months::before {
        display: none;
    }

    .amadex-calendar-month {
        min-width: auto;
    }

    .amadex-calendar-selected-date {
        font-size: 17px;
    }

    .amadex-calendar-day {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .amadex-calendar-date-item {
        font-size: 16px;
    }

    /* Mobile layout for main search card */
    .amadex-search-modern {
        padding: 0 16px 24px;
    }

    .amadex-modern-form {
        padding: 18px 20px 26px;
        border-radius: 28px;
        box-shadow: 0 25px 65px rgba(12, 97, 54, 0.18);
        border: 1px solid rgba(8, 65, 32, 0.08);
        background: linear-gradient(180deg, #F8FFFA 0%, #FFFFFF 60%);
    }

    .amadex-trip-selector {
        width: fit-content;
        margin-bottom: 18px;
        border-radius: 24px;
        padding: 4px;
        background: #ffffff;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    }

    .amadex-search-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .amadex-modern-field {
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        padding: 14px 16px;
        background: #fff;
        min-height: auto;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    }

    .amadex-modern-field + .amadex-modern-field {
        margin-top: 8px;
    }

    .amadex-modern-field.amadex-travellers-field {
        border: 1.5px solid #0E7D3F;
        box-shadow: 0 4px 18px rgba(14, 125, 63, 0.12);
    }

    .amadex-modern-field.amadex-date-field .amadex-field-value {
        font-weight: 600;
        font-size: 16px;
    }

    .amadex-modern-field.amadex-date-field .amadex-field-description {
        color: #6B7280;
        font-size: 13px;
    }

    .amadex-flight-segment + .amadex-flight-segment {
        border-top: 1px solid transparent;
        padding-top: 0;
        margin-top: 0;
    }

    .amadex-swap-button {
        position: static !important;
        margin: 10px auto 8px;
    }

    button.amadex-search-btn {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 16px;
        border-radius: 18px;
        font-size: 18px;
    }

    .amadex-add-city-btn {
        width: 100%;
        justify-content: center;
        margin: 20px 0 0;
    }

    .amadex-travellers-dropdown {
        width: 100%;
        left: 0;
        right: 0;
        position: relative;
        margin-top: 12px;
        box-shadow: 0 16px 45px rgba(0,0,0,0.15);
        border-radius: 26px;
        border: none;
        padding: 22px 18px 26px;
    }

    .amadex-travellers-dropdown::before {
        left: 40px;
    }

    .amadex-travellers-dropdown .amadex-traveller-row {
        padding: 14px 0;
    }

    .amadex-travellers-dropdown .amadex-counter-btn {
        width: 42px;
        height: 42px;
    }

    .amadex-travellers-dropdown .amadex-traveller-counter {
        gap: 14px;
    }

    .amadex-travellers-dropdown .amadex-travellers-apply-btn {
        margin-top: 22px;
        border-radius: 18px;
        font-size: 18px;
    }
}

/* ==================== Swap Button ==================== */
.amadex-swap-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50% !important;
    background: #0E7D3F;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    flex-shrink: 0;
    opacity: 1;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(14, 125, 63, 0.25);
    overflow: visible;
}

/* .amadex-swap-button:hover {
    background: #0a5f30;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(14, 125, 63, 0.4);
} */

.amadex-swap-button:active {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 3px 12px rgba(14, 125, 63, 0.35);
}

.amadex-swap-button svg {
    width: 48px;
    height: 48px;
    fill: #ffffff;
    /* stroke: #ffffff; */
    stroke-width: 0.5;
    display: block;
    transition: all 0.3s ease;
}

.amadex-swap-button:hover svg {
    filter: brightness(1.1);
}
input.amadex-dropdown-search-input {
    padding-left: 20px;
    box-shadow:none;
    border: none;
}

/* input#modern-origin:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: inherit !important;
  border-style: none;
  background:none!important;
} */
input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
    border-style: none;
  background:none!important;
  }


/* ==================== Date Fields ==================== */
.amadex-date-field .amadex-field-value {
    cursor: pointer;
}

.amadex-date-field input[type="date"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ==================== Travellers & Cabin Dropdown ==================== */
.amadex-travellers-field {
    position: relative;
}

.amadex-travellers-trigger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
}

.amadex-travellers-trigger::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.3s ease;
}

.amadex-travellers-field.active .amadex-travellers-trigger::after {
    transform: translateY(-40%) rotate(-135deg);
}

.amadex-travellers-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.amadex-cabin-value {
    font-size: 13px;
    letter-spacing: 0px;
    color: #202924;
}

/* ==================== Search Button ==================== */
.amadex-search-btn {
    background: linear-gradient(135deg, #0E7D3F 0%, #0a6835 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-height: 60px;
    margin-bottom: 8px;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(14, 125, 63, 0.25), 0 2px 6px rgba(14, 125, 63, 0.15);
    position: relative;
    overflow: hidden;
}

.amadex-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.amadex-search-btn:hover::before {
    left: 100%;
}

button.amadex-swap-button {
    background: none;
    box-shadow: none;
    padding: 0;
    min-height: auto;
    position: absolute;
    margin-left: 24.7rem;
    bottom: 2.2rem;
    z-index: 2;
}

button.amadex-swap-button::before {
    display: none;
}
.amadex-travellers-field {
    border: none !important;
}
button.amadex-search-btn {
    position: absolute;
    left: 110.5rem!important;
    width: 146px;
    height: 115px;
    background: #0E7D3F 0% 0% no-repeat padding-box;
    border-radius: 15px;
    opacity: 1;
    bottom: 0;
    margin-bottom: 0;
    font-size: 20px;
    flex-shrink: 0;
}
/* .amadex-modern-field.amadex-date-field .amadex-field-input-wrap {
    flex-direction: row;
    align-items: center;
    gap: 10px;
} */

/* .amadex-search-btn:hover:not(.loading) {
    background: linear-gradient(135deg, #0a6835 0%, #085428 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.35), 0 4px 12px rgba(14, 125, 63, 0.2);
    color: #ffffff;
} */

.amadex-search-btn:active:not(.loading) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 125, 63, 0.3);
}

/* .amadex-search-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
} */

/* Search Icon - SVG with perfect alignment */
.amadex-search-btn .amadex-search-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2px;
    transition: all 0.3s ease;
}

.amadex-search-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.amadex-search-btn .search-icon-svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

/* Ensure text and icon are perfectly aligned */
.amadex-search-btn {
    line-height: 1;
}

.amadex-search-btn:hover .amadex-search-icon {
    transform: scale(1.1) rotate(15deg);
}

/* ==================== Passengers Modal ==================== */
.amadex-travellers-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 15px;
    z-index: 1000;
    margin-top: 12px;
    min-width: 360px;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-travellers-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.amadex-travellers-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    transform: rotate(45deg);
}

.amadex-traveller-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    /* border-bottom: 1px solid #F3F4F6; */
}

.amadex-traveller-row:last-child {
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 4px;
}

.amadex-traveller-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amadex-traveller-type {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.2px;
}

.amadex-traveller-age {
    font-size: 12px;
    color: #202924;
    font-weight: 400;
}

.amadex-traveller-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amadex-counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1;
    padding: 0;
}

/* Grey Minus Button */
.amadex-counter-btn.amadex-counter-minus {
    background: #F1F1F1;
    color: #000;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
}

.amadex-counter-btn.amadex-counter-minus:hover:not(:disabled) {
    background: #D1D5DB;
    transform: scale(1.05);
}

.amadex-counter-btn.amadex-counter-minus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Green Plus Button */
.amadex-counter-btn.amadex-counter-plus {
    background: #0E7D3F;
    color: #ffffff;
    border: 1px solid #0E7D3F;border-radius:5px;
}

.amadex-counter-btn.amadex-counter-plus:hover:not(:disabled) {
    background: #0a6835;
    border-color: #0a6835;
    transform: scale(1.05);
}

.amadex-counter-btn.amadex-counter-plus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.amadex-counter-value {
    min-width: 32px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #202924;
}

.amadex-cabin-selector {
    /* margin-top: 20px; */
    padding-top: 10px;
    border-top: none;
    border-top: 1px solid #E6E6E6;
}

.amadex-cabin-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.amadex-cabin-options {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; */
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amadex-cabin-btn {
    padding: 11px 16px;
    border: 1px solid #CFCFCF;
    border-radius: 15px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.amadex-cabin-btn:hover:not(.active) {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.amadex-cabin-btn.active {
    border-color: #0E7D3F;
    background: rgba(14, 125, 63, 0.08);
    color: #0E7D3F;
    font-weight: 600;
}

.amadex-cabin-btn.active:hover {
    background: rgba(14, 125, 63, 0.12);
    border-color: #0a6835;
}

/* Apply Button - Pixel Perfect from Screenshot */
.amadex-travellers-apply-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 20px;
    background: #0E7D3F;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.3px;
}

.amadex-travellers-apply-btn:hover {
    background: #0a6835;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 125, 63, 0.3);
}

.amadex-travellers-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 125, 63, 0.2);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .amadex-search-fields {
        grid-template-columns: 1.5fr auto 1.5fr 1.3fr 1.3fr 1.5fr auto;
        gap: 12px;
    }
    
    .amadex-field-value {
        font-size: 14px;
    }
    
    .amadex-search-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .amadex-modern-form {
        padding: 24px 20px;
    }
    
    .amadex-search-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .amadex-modern-field {
        padding: 16px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .amadex-modern-field:last-child {
        border-bottom: none;
    }
    
    .amadex-swap-button {
        display: none;
    }
    
    .amadex-search-btn {
        width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
    }
    
    .amadex-field-description {
        white-space: normal;
    }
    
    .amadex-travellers-dropdown {
        right: 0;
        left: 0;
        min-width: unset;
    }
}

@media (max-width: 640px) {
    .amadex-modern-form {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .amadex-trip-selector {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .amadex-trip-label {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .amadex-cabin-options {
        grid-template-columns: 1fr;
    }
}

/* ==================== Loading State ==================== */
.amadex-search-btn.loading {
    position: absolute;
    left: 61.5rem;
    width: 146px;
    height: 115px;
    color: transparent;
    pointer-events: none;
    background: #0E7D3F;
    border-radius: 15px;
    bottom: 0;
    margin-bottom: 0;
    transform: none !important;
    box-shadow: none;
}

.amadex-search-btn.loading .amadex-search-icon {
    display: none;
}

.amadex-search-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.amadex-suggestions-dropdown.active,
.amadex-travellers-dropdown.active {
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Focus States ==================== */
/* .amadex-modern-field:focus-within {
    position: relative;
    background: rgba(14, 125, 63, 0.04);
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(14, 125, 63, 0.1);
}

.amadex-modern-field:focus-within::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, #0E7D3F 0%, #10b981 100%);
    border-radius: 2px;
    animation: slideInFocus 0.3s ease;
} */

@keyframes slideInFocus {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Form Entrance Animation */
@keyframes formEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-modern-form {
    animation: formEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transition for field borders */
.amadex-modern-field {
    will-change: background, box-shadow;
    background: none;
}

/* Add ripple effect on click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ==================== Additional Polish & Enhancements ==================== */

/* Smooth scrollbar for dropdowns */
.amadex-travellers-dropdown::-webkit-scrollbar {
    width: 6px;
}

.amadex-travellers-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 16px 16px 0;
}

.amadex-travellers-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.amadex-travellers-dropdown::-webkit-scrollbar-thumb:hover {
    background: #0E7D3F;
}

/* Prevent text selection on interactive elements */
.amadex-trip-label,
.amadex-counter-btn,
.amadex-cabin-btn,
.amadex-swap-button,
.amadex-search-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Add hardware acceleration for smooth animations */
.amadex-modern-form,
.amadex-swap-button,
.amadex-search-btn,
.amadex-trip-label,
.amadex-suggestions-dropdown,
.amadex-travellers-dropdown {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Enhanced focus ring for accessibility */
.amadex-field-value:focus-visible,
.amadex-counter-btn:focus-visible,
.amadex-cabin-btn:focus-visible {
    outline: 2px solid #0E7D3F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .amadex-search-modern {
        box-shadow: none;
    }
    
    .amadex-modern-form {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .amadex-modern-form {
        border: 2px solid currentColor;
    }
    
    .amadex-search-btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (optional - uncomment if needed) */
/*
@media (prefers-color-scheme: dark) {
    .amadex-modern-form {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .amadex-search-fields {
        border-color: #334155;
        background: #1e293b;
    }
    
    .amadex-field-value {
        color: #f1f5f9;
    }
    
    .amadex-field-description {
        color: #94a3b8;
    }
}
*/

