/**
 * Camppass Country/City Select Fields Styles for Elementor Forms
 * IMPORTANT: All styles scoped to .elementor-form to avoid conflicts with configurator
 */

/* ============================================
   Native Select
   ============================================ */

.elementor-form .elementor-field-group .camppass-country-select,
.elementor-form .elementor-field-group .camppass-city-select {
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.elementor-form .elementor-field-group .camppass-city-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* ============================================
   Select2 Styles - Scoped to Elementor Forms
   ============================================ */

.elementor-form .elementor-field-group .select2-container {
    width: 100% !important;
}

.elementor-form .elementor-field-group .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #69727d;
    border-radius: 0;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.elementor-form .elementor-field-group .select2-container--default .select2-selection--single:hover {
    border-color: #999;
}

.elementor-form .elementor-field-group .select2-container--default.select2-container--focus .select2-selection--single,
.elementor-form .elementor-field-group .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--e-global-color-primary, #6ec1e4);
    outline: none;
}

.elementor-form .elementor-field-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding: 0;
    padding-right: 30px;
}

.elementor-form .elementor-field-group .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #69727d;
}

.elementor-form .elementor-field-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}

/* Hide clear button (X) */
.elementor-form .elementor-field-group .select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

/* Disabled state */
.elementor-form .elementor-field-group .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f5f5f5;
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Size Variations
   ============================================ */

.elementor-form .elementor-field-group.elementor-size-xs .select2-container--default .select2-selection--single {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px;
}

.elementor-form .elementor-field-group.elementor-size-sm .select2-container--default .select2-selection--single {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
}

.elementor-form .elementor-field-group.elementor-size-md .select2-container--default .select2-selection--single {
    min-height: 50px;
    padding: 10px 14px;
    font-size: 15px;
}

.elementor-form .elementor-field-group.elementor-size-lg .select2-container--default .select2-selection--single {
    min-height: 56px;
    padding: 12px 16px;
    font-size: 16px;
}

.elementor-form .elementor-field-group.elementor-size-xl .select2-container--default .select2-selection--single {
    min-height: 64px;
    padding: 14px 18px;
    font-size: 17px;
}

/* ============================================
   Dropdown
   ============================================ */

/* Ensure field group can contain dropdown properly */
.elementor-field-group {
    position: relative;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #69727d;
    border-radius: 0;
    z-index: 999999;
}

/* Dropdown opens above - move down to close gap */
.select2-dropdown.select2-dropdown--above {
    margin-top: 30px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #69727d;
    border-radius: 0;
    padding: 10px 14px;
    color: #444;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--e-global-color-primary, #6ec1e4);
    outline: none;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px;
    color: #444;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--e-global-color-primary, #6ec1e4);
    color: #fff;
}

.select2-container--default .select2-results__option--selected {
    background-color: rgba(0, 0, 0, 0.05);
    color: #444;
}

/* Selected text in input */
.elementor-form .elementor-field-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding: 0;
    padding-right: 30px;
    color: #444;
}

