/* =================================== */
/* === Combined and Optimized Styles === */
/* =================================== */

/* استایل‌های پایه برای نمایش و پنهان کردن قیف فروش */
#mte-funnel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mte-funnel-container:not(.mte-funnel-hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mte-funnel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* استایل‌های اصلی کادر modal با Glassmorphism و تنظیمات layout */
.mte-funnel-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    
    position: relative;
    z-index: 100000;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    width: 600px;
    /* این پدینگ برای جلوگیری از همپوشانی محتوا با نوار شناور پایین اضافه شده */
    padding-bottom: 70px;
}

@media (max-width: 768px) {
    .mte-funnel-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 15px;
        padding-bottom: 70px; /* این پدینگ هم برای موبایل لازم است */
    }
}

.mte-close-button {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    font-size: 2.5em;
    font-weight: 300;
    color: #f0f0f0; /* رنگ سفید برای حالت Glassmorphism */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* سایه برای خوانایی بهتر */
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 10;
}
.mte-close-button:hover {
    color: #fff;
}

/* استایل‌های عنوان و متن‌های داخل Modal */
.mte-funnel-stage h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.mte-pax-label span {
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.mte-age-notice {
    background-color: rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    font-size: 0.8em;
    text-align: center;
    margin-top: 15px;
    padding: 8px;
    border-radius: 4px;
}

/* استایل‌های نوار شناور پایین (floating bar) */
#mte-floating-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    z-index: 100001;
}

.mte-price-label,
.mte-total-price,
.mte-summary-item {
    color: #f0f0f0;
}

.mte-summary-preview { display: flex; gap: 15px; align-items: center; }
.mte-summary-item { display: flex; align-items: center; gap: 5px; font-size: 0.9em; }
.mte-summary-icon { color: #DAA520 !important; }
.mte-price-and-cta { display: flex; align-items: center; gap: 15px; }
.mte-total-price { display: flex; flex-direction: column; align-items: flex-end; }
.mte-price-label { font-size: 0.8em; }
#mte-total-price-display { font-size: 1.1em; font-weight: bold; color: #DAA520 !important; }


/* استایل‌های دکمه CTA */
.mte-cta-button {
    background-color: #DAA520;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
.mte-cta-button:hover { background-color: #c79f16; }
.mte-cta-button:disabled { background-color: #cccccc; cursor: not-allowed; opacity: 0.7; }

/* استایل‌های بخش انتخاب مسافرین */
#mte-pax-selector-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 5px;
    margin-top: 25px;
}
.mte-pax-row, .mte-child-age-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.mte-pax-label { display: flex; align-items: center; gap: 10px; font-size: 1.1em; }
.mte-pax-label .fa-user, .mte-pax-label .fa-child { color: #DAA520 !important; }
.mte-pax-counter { display: flex; align-items: center; gap: 15px; }

/* استایل‌های دکمه‌های شمارشگر */
.mte-counter-btn {
    color: #222;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.mte-counter-value { font-size: 1.2em; font-weight: 500; min-width: 20px; text-align: center; color: #f0f0f0; }

.mte-add-child-row { text-align: center; margin: 15px 0; }
.mte-add-child-button {
    background: none;
    border: none;
    color: #DAA520 !important;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
}
.mte-add-child-button .fa-plus-circle { margin-right: 5px; }
.mte-child-age-row .mte-age-input-wrapper { display: flex; align-items: center; gap: 10px; }
.mte-child-age-row input[type="text"] { width: 60px; padding: 5px; text-align: center; }
.mte-child-age-row .mte-remove-child-btn { background: none; border: none; color: #d9534f; cursor: pointer; font-size: 1.2em; }
.mte-input-error {
    /* رنگ بک‌گراند مشکی خالص */
    background-color: #000 !important; 
    
    /* رنگ متن داخل فیلد به قرمز */
    color: #d9534f !important;
    
    /* اگر می‌خواهید کادر دور آن هم باقی بماند، این خط را نگه دارید */
    border: 1px solid #d9534f !important;

    /* اگر می‌خواهید سایه هم داشته باشد، این خط را نگه دارید */
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.5);
}
.mte-child-age-input {
    color: #0A2342;
}