/* =================================================================
   kiff-submit-tabs.css — تب‌بندی حرفه‌ای فرم ارسال
   ================================================================= */

/* ═══ کانتینر تب‌ها ═══ */
.kiff-form-tabs {
    margin-bottom: 24px;
    direction: inherit;
}

.kiff-tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    position: relative;
}

.kiff-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #9AA5B1;
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 62px;
}

.kiff-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #E8EDF2;
}

.kiff-tab-btn.active {
    background: linear-gradient(135deg, #D4AF37 0%, #C9A03D 100%);
    color: #0a121c;
    border-color: #FFE08A;
    box-shadow:
        0 4px 14px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-weight: 800;
}

.kiff-tab-btn.active .kiff-tab-num {
    background: rgba(10, 18, 28, 0.35);
    color: #FFE08A;
}

.kiff-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    font-size: .75rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.kiff-tab-txt {
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

/* ═══ انیمیشن بخش فعال ═══ */
.film-form-section.kiff-active-section {
    display: block !important;
    animation: kiffSectionIn 0.35s ease;
}

@keyframes kiffSectionIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ نوار ناوبری (پایین) ═══ */
.kiff-form-nav {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 237, 242, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* نوار پیشرفت */
.kiff-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kiff-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.kiff-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37, #FFE08A);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.3, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.kiff-progress-txt {
    font-size: .75rem;
    color: #9AA5B1;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* دکمه‌های قبلی/بعدی */
.kiff-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.kiff-nav-prev,
.kiff-nav-next {
    flex: 1;
    max-width: 180px;
    padding: 13px 26px;
    border-radius: 30px;
    border: 1.5px solid rgba(232, 237, 242, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: #E8EDF2;
    font-family: inherit;
    font-weight: 800;
    font-size: .92rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kiff-nav-prev:hover:not(:disabled),
.kiff-nav-next:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.14);
    border-color: #D4AF37;
    color: #FFE08A;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

.kiff-nav-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.kiff-nav-next {
    margin-right: auto;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(201, 160, 61, 0.95));
    color: #0a121c;
    border-color: #D4AF37;
}

.kiff-nav-next:hover:not(:disabled) {
    background: linear-gradient(135deg, #D4AF37, #FFE08A);
    color: #0a121c;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.5);
}

/* LTR override */
[dir="ltr"] .kiff-nav-next {
    margin-right: 0;
    margin-left: auto;
}

[dir="ltr"] .kiff-nav-next::after { content: none; }

/* ═══ دکمه ارسال در تب آخر ═══ */
.kiff-form-submit-wrap {
    display: none;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 237, 242, 0.15);
    flex-wrap: wrap;
}

.kiff-form-submit-wrap .film-btn-cancel,
.kiff-form-submit-wrap .film-btn-submit {
    /* استایل اصلی را نگه دار */
}

/* ═══ موبایل ═══ */
@media (max-width: 640px) {
    .kiff-tabs-nav {
        grid-template-columns: repeat(3, 1fr);
        padding: 4px;
        gap: 3px;
    }

    .kiff-tab-btn {
        padding: 8px 4px;
        min-height: 54px;
        font-size: .72rem;
    }

    .kiff-tab-num {
        width: 20px;
        height: 20px;
        font-size: .68rem;
    }

    .kiff-tab-txt {
        font-size: .72rem;
    }

    .kiff-nav-prev,
    .kiff-nav-next {
        padding: 11px 18px;
        font-size: .85rem;
    }
}

@media (max-width: 420px) {
    .kiff-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .kiff-tab-txt {
        font-size: .68rem;
    }
}

/* ═══ اگر سکشن‌ها در حالت مخفی بودند، خط پایین حذف شود ═══ */
.film-form-section:not(.kiff-active-section) {
    display: none !important;
}