.form-container input[type=checkbox] {
    width: max-content !important;
}

/* Container */
.form-container {
    min-width: 100%;
    margin: 5% auto;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(220, 53, 69, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Header */
.form-header {
    background: var(--color-primary);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.form-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.form-header p {
    font-size: 1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Optional body padding section */
.form-body {
    padding: 25px;
}

/* Tabs */
.tab-navigation {
    background: linear-gradient(145deg, #333333, #2a2a2a);
    display: flex;
    border-bottom: 2px solid rgba(220, 53, 69, 0.3);
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    min-width: 120px;
}

.tab-button:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.tab-button.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.tab-content {
    display: none;
    padding: 25px;
}

.tab-content.active {
    display: block;
}

/* Grid & sections */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-section {
    background: var(--color-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(220, 53, 69, 0.1);
}

.form-section:focus-within {
    animation: glow 2s infinite;
}

.section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 20px;
    height: 15px;
    /*background:  url('../images/search-in-list.png') center center no-repeat;*/
    background: var(--color-primary);
    background-size: contain;
    border-radius: 0% 100% 100% 0% / 72% 50% 50% 28%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* merged */
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(145deg, #4040401a, #35353561);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: var(--color-primary);
    background: linear-gradient(145deg, #4040401a, #35353561);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2); /* از استایل دوم */
}

.checkbox-item input[type="checkbox"], .checkbox-item input[type="radio"] {
    accent-color: #dc3545;
    width: 16px;
    height: 16px;
}

.checkbox-item label {
    cursor: pointer;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--color-white) !important;
    font-size: 0.9em;
    min-width: 35%;
    margin: 4px 0;
}
.checkbox-item select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: var(--border-width) solid var(--color-border);
}

.checkbox-item select:active,.checkbox-item select:focus-visible,.checkbox-item select:focus{
    border: var(--border-width) solid var(--color-border);
}

.checkbox-item select option,.checkbox-item select option:hover,.input-group select option {
    background: #000;
    cursor: pointer;
}

.checkbox-item input {
    padding: 5px;
}

.services-grid {
    display: grid;
    gap: 12px;
    max-height: 350px;
    overflow: auto;
    content-visibility: auto;
}

.service-item {
    background: linear-gradient(145deg, #4040401a, #35353561);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.service-item:hover {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.service-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-white);
    font-size: 0.9em;
}

.service-options {
    display: flex;
    gap: 15px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.service-option label {
    font-size: 0.85em;
    color: #e0e0e0;
}

.like-option input {
    accent-color: #28a745;
    width: auto;
}

.dislike-option input {
    accent-color: #dc3545;
    width: auto;
}

/* Inputs */
.age-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.input-group label {
    font-weight: 600;
    /* color: var(--color-primary); */
    font-size: 0.9em;
}

.input-group input, .input-group select {
    padding: 10px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px !important;
    j: 0.9em;
    background: linear-gradient(145deg, #4040401a, #35353561);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.input-group input::placeholder {
    color: #888;
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #4040401a, #35353561);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9em;
    padding: 0px;
    color: #e0e0e0;
}

.search-box input[type="text"]:focus {
    outline: none;
}

.search-box input[type="text"]::placeholder {
    color: #888;
}

/* Exclude option */
.exclude-option {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.exclude-option label {
    font-size: 0.85em;
    color: #e0e0e0;
}

.exclude-option input {
    accent-color: #dc3545;
}

/* Price */
.price-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-range {
    display: grid; /* از استایل اول */
    grid-template-columns: 1fr 1fr; /* از استایل اول */
    gap: 12px; /* از استایل اول */
    position: relative; /* از استایل دوم */
}

.range-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #333, #555);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #dc3545, #a02834);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    border: 2px solid #fff;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.85em;
}

/* Nationality / location selects */
.nationality-section {
    display: grid;
    gap: 10px;
}

.location-level {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-select {
    padding: 10px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    font-size: 0.9em;
    background: linear-gradient(145deg, #4040401a, #35353561);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.location-select:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.location-select option {
    background: #353535;
    color: #e0e0e0;
}

/* Powered by */
.powered-by-section {
    text-align: center;
}

.powered-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #4040401a, #35353561);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.powered-checkbox:hover {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.powered-checkbox label {
    color: #e0e0e0;
    font-size: 0.9em;
}

.powered-checkbox input {
    accent-color: #dc3545;
    width: auto;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Submit */
.submit-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
    max-width: max-content;
    font-size: 16px;
    margin: auto;
}

.submit-btn {
    background: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 8px 2px rgba(220, 53, 69, 0.3); */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.4);
    background: var(--color-primary);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Layout helpers */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc3545, #a02834);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .two-column, .price-range {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-content {
        padding: 10px;
    }

    .tab-button:first-child {
        flex: none;
        width: 100% !important;
    %;
    }

    .tab-button {
        flex: none;
        width: 50%;
    }

    .age-inputs {
        grid-template-columns: 1fr;
    }

    .form-body {
        padding: 15px;
    }

    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }

    .service-options {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}


.select2-selection__choice {
    background: #eb3237 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
    padding: 10px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
    font-size: 12px;
}

.select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-right: 1px solid #fff !important;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: #fff !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: bold;
    padding: 0 4px;
    position: absolute;
    left: 0;
    top: 14% !important;
    width: 15px;
    height: 15px;
}

.select2-search__field {
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    font-size: 100%;
    margin: 0 !important;
    padding: 8px !important;
    max-width: 100%;
    resize: none;
    height: 35px !important;
    overflow: hidden;
    word-break: keep-all;
    border-radius: 4px;
    background: #0e0e0e;
}

.select2-selection {
    background: linear-gradient(145deg, #4040401a, #35353561) !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    transition: all 0.3s
    ease;
    cursor: pointer;
    height: 45px !important;
}
.select2-selection:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2) !important;
}
.select2-selection__clear {
    position: absolute; !important;
    width: max-content;
    left: 0;
}
.select2-selection__rendered {
    color:#e0e0e0 !important;
}
.select2-results__option {
    font-size: 14px !important;
    background: #000 !important;
}

.select2-results__option--selectable {
    margin: 0 !important;
}

.select2-dropdown {
    border: none !important;
    background: #000 !important;
}

.select2-container:focus-visible {
    border: none !important;
    outline: 0 !important;

}

/*-------------------------*/
/* Location Tabs Specific Styles */
.location-tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, #4040401a, #35353561) !important;
    border-radius: 8px;
    padding: 5px;
}

.location-tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.location-tab-button:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.location-tab-button.active {
    color: white;
    background: var(--color-primary);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.location-tabs-container {
    position: relative;
}

.location-tab-content {
    display: none;
}

.location-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for location tabs */
@media (max-width: 768px) {
    .location-tab-navigation {
        flex-direction: column;
        gap: 5px;
    }

    .location-tab-button {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .form-container {
        padding: 0;
        margin-top: 50px;
        margin-bottom: 50px;
    }
}
#countryWrapper .area_country_item { display: inline; }



.range-container {
    position: relative;
    /* padding: 10px 0; */
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right,
    #ff5555 0%,
    #ff5555 var(--value),
    #3a3a3a var(--value),
    #3a3a3a 100%);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    padding:0!important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 3px solid #ff5555;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(255, 85, 85, 0.5);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 3px solid #ff5555;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(255, 85, 85, 0.5);
}

/* Firefox track */
input[type="range"]::-moz-range-track {
    background: #3a3a3a;
    border-radius: 10px;
    height: 6px;
}

input[type="range"]::-moz-range-progress {
    background: #ff5555;
    height: 6px;
    border-radius: 10px;
}

.range-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    color: #999999;
    font-size: 13px;
}

.current-value {
    color: #ff5555;
    font-weight: 600;
    font-size: 16px;
}
