.flight-search-container {
    max-width: 1100px;
    margin: 10px auto;
    font-family: 'YekanBakhFaNum2', sans-serif;
}

.trip-type-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.trip-type label {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.trip-type input {
    display: none;
}

.trip-type input:checked+span {
    background-color: #ff3b30;
    color: #fff;
    font-weight: bold;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}


.input-group input:focus {
    border-color: #28a745;
    box-shadow: 0px 0px 5px rgba(255, 59, 48, 0.4);
    outline: none;
}

.swap-btn {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swap-btn:hover {
    background: #28a745;
    color: #fff;
}

.date-passenger-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.date-passenger-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 15px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #cc2b20;
}

@media (max-width: 768px) {
    .flight-search-container {
        width: 100%;
    }

    .input-group {
        position: relative;
        flex-direction: column;
        gap: 5px;
    }

    .input-group input {
        width: 100%;
        box-sizing: border-box;
    }

    .swap-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        background: #f8f8f8;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .date-passenger-container {
        flex-direction: column;
        gap: 5px;
    }

    /* تاریخ و مسافران با عرض 100% */
    .date-passenger-container input,
    .search-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .search-btn {
        margin-top: 10px;
    }
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.results-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.airpodcode {
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    padding: 5px;
    color: white;
    font-size: small;
}

.mda {
    background-color: #9e1c05;
}

.mgh {
    background-color: #28a745;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    text-align: right;
    /* متن داخل اینپوت را راست‌چین می‌کند */
}

.input-wrapper label {
    position: absolute;
    right: 10px;
    /* تغییر مکان لیبل به سمت راست */
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    color: #999;
    font-size: 14px;
    transition: 0.3s;
    text-align: right;
    /* متن لیبل را راست‌چین می‌کند */
    pointer-events: none;
}

.input-wrapper input:focus+label,
.input-wrapper input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: #007bff;
    right: 15px;
    /* تنظیم موقعیت هنگام فوکوس */
}


.input-wrapper2 {
    position: relative;

}

.input-wrapper2 input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    text-align: right;
    /* متن داخل اینپوت را راست‌چین می‌کند */
}

.input-wrapper2 label {
    position: absolute;
    right: 10px;
    /* تغییر مکان لیبل به سمت راست */
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    color: #999;
    font-size: 14px;
    transition: 0.3s;
    text-align: right;
    /* متن لیبل را راست‌چین می‌کند */
    pointer-events: none;
}

.input-wrapper2 input:focus+label,
.input-wrapper2 input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: #007bff;
    right: 15px;
    /* تنظیم موقعیت هنگام فوکوس */
}

.passenger-container {
    color: black;
    font-size: small;
    font-weight: 400;
}

@media (max-width: 768px) {
    .passenger-container {
        width: 100%;
    }

    .input-wrapper2 {
        width: 100%;

    }
}


/* تنظیمات فیلد ورودی */
.passenger-container input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* نمایش پنل در وسط صفحه */
.passenger-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* استایل برای هر نوع مسافر */
.passenger-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* تنظیمات دکمه‌های + و - */
.passenger-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    /* فاصله بین دکمه‌ها */
}

.passenger-controls button {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.passenger-controls span {
    width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.passenger-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
