﻿/* ====== Timeline مشاوره ====== */

.consult-timeline-wrapper {
    position: relative;
    padding: 40px 0;
    margin-bottom: 30px;
}

.timeline-line {
    position: absolute;
    top: 65px;
    left: 11%;
    right: 11%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-align: center;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    transition: all 0.3s ease;
    font-size: 18px;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.step.active .step-icon {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.step.active .step-label {
    color: #4f46e5;
}
/* ساختار عمومی دایره‌ها و لیبل‌ها */
.timeline-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff; /* رنگ آیکون */
    margin-bottom: 8px;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
}

/* رنگ ثابت هر مرحله (دایره) */
.step-blue .step-icon {
    background: #3b82f6; /* آبی */
}

.step-orange .step-icon {
    background: #f59e0b; /* نارنجی */
}

.step-purple .step-icon {
    background: #8b5cf6; /* بنفش */
}

.step-green .step-icon {
    background: #10b981; /* سبز */
}
@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }

    .timeline-steps {
        flex-direction: column;
        /* برای اینکه در موبایل کلاً وسط‌چین شوند: */
        align-items: center;
        gap: 20px;
    }

    .step {
        /* این باعث می‌شود آیکون و متن در یک ردیف باشند */
        flex-direction: row;
        align-items: center;
        /* این باعث می‌شود کل ردیف در وسط کانتینر قرار بگیرد */
        justify-content: flex-start;
        width: 100%;
        max-width: 300px; /* یک عرض محدود بدهید تا کج و کوله نشود */
    }

    .step-label {
        margin-right: 15px;
        white-space: normal;
    }

    .step-icon {
        margin-bottom: 0;
        /* حذف margin-left اضافه اگر لازم است */
        margin-left: 0;
    }
}

/* فرم */

.consult-container-form {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.consult-form input,
.consult-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.consult-form button.btn-default {
    padding: 8px 24px;
    border-radius: 999px;
    border: none;
    background: #2a9d8f;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .consult-form button.btn-default:hover {
        background: #4338ca;
    }
