/* ===========================================================
   Web Ara — انیمیشن‌های افزوده: ظاهرشدن هنگام اسکرول + ریپل دکمه‌ها
   این فایل بعد از templatemo-prism-flux.css بارگذاری می‌شود.
   =========================================================== */

/* ---------- ظاهرشدن تدریجی هنگام اسکرول ---------- */
.wa-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1),
                transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.wa-reveal.wa-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* کسانی که حرکت را ترجیح نمی‌دهند: بدون انیمیشن، مستقیم نمایش داده شود */
@media (prefers-reduced-motion: reduce) {
    .wa-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- افکت ریپل روی کلیک دکمه‌ها ---------- */
.wa-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    animation: wa-ripple-anim 0.65s ease-out;
    z-index: 1;
}
@keyframes wa-ripple-anim {
    to {
        transform: scale(2.8);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .wa-ripple { display: none; }
}

/* ---------- دکمه انیمیشنی «مشاهده قرارداد» ---------- */
.contract-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(270deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    background-size: 300% 300%;
    animation: wa-contract-gradient 5s ease infinite;
    box-shadow: 0 4px 18px rgba(153, 69, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contract-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 26px rgba(153, 69, 255, 0.5);
}
.contract-btn:active {
    transform: translateY(0) scale(0.97);
}
.contract-btn-icon {
    display: inline-flex;
    font-size: 15px;
    animation: wa-contract-icon-bounce 2.2s ease-in-out infinite;
}
.contract-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: wa-contract-shine 3.2s ease-in-out infinite;
}
.contract-btn.contract-btn-disabled {
    opacity: 0.55;
    filter: grayscale(0.4);
    box-shadow: none;
    animation: none;
}
.contract-btn.contract-btn-disabled::after,
.contract-btn.contract-btn-disabled .contract-btn-icon {
    animation: none;
    display: none;
}
.contract-btn.contract-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

@keyframes wa-contract-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes wa-contract-shine {
    0% { left: -60%; }
    50%, 100% { left: 130%; }
}
@keyframes wa-contract-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .contract-btn { animation: none; }
    .contract-btn::after { display: none; }
    .contract-btn-icon { animation: none; }
}

/* ---------- یادداشت کیفیت زیر اسلایدر بودجه ---------- */
.budget-quality-note {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

/* ---------- سه رده قیمتی نوار بودجه: پایه / حرفه‌ای / VIP ---------- */
.budget-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.budget-tier {
    position: relative;
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--metal-dark);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.budget-tier:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.budget-tier-label {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-dim);
    transition: color 0.25s ease;
}

.budget-tier-range {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    color: var(--text-dim);
    opacity: 0.7;
    direction: ltr;
}

.budget-tier[data-tier="basic"].active {
    border-color: var(--accent-blue);
    background: rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}
.budget-tier[data-tier="basic"].active .budget-tier-label {
    color: var(--accent-blue);
}

.budget-tier[data-tier="pro"].active {
    border-color: var(--accent-purple);
    background: rgba(153, 69, 255, 0.12);
    transform: translateY(-2px);
}
.budget-tier[data-tier="pro"].active .budget-tier-label {
    color: var(--accent-purple);
}

.budget-tier[data-tier="vip"].active {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}
.budget-tier[data-tier="vip"].active .budget-tier-label {
    color: var(--accent-cyan);
}

.budget-tier.active .budget-tier-range {
    color: var(--text-primary);
    opacity: 0.9;
}

@media (max-width: 480px) {
    .budget-tier-range { display: none; }
}

/* ---------- قیمت نمایشی روی کارت نوع پروژه (خدمت) ---------- */
.type-card-price {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
}

/* ---------- چیپ بازه زمانی غیرمجاز برای خدمت انتخاب‌شده ---------- */
.chip.chip-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.6);
}
.chip.chip-disabled:hover {
    border-color: var(--metal-dark);
    color: var(--text-secondary);
}

/* ---------- راهنمای قیمت/بازه زمانی خدمت انتخاب‌شده در گام ۳ ---------- */
.service-hint {
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 18px;
}

/* ---------- پیام خالی بودن لیست خدمات ---------- */
.wa-empty-note {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dim);
    border: 1px dashed var(--metal-dark);
    border-radius: 14px;
    font-size: 13.5px;
    grid-column: 1 / -1;
}

/* ---------- قفل وضعیت سفارش در پروفایل تا تایید کد پیگیری ---------- */
.order-status-gate {
    margin: 10px 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--metal-dark);
    border-radius: 10px;
}
.order-status-locked {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.order-status-gate-row {
    display: flex;
    gap: 8px;
}
.order-status-gate-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    background: var(--carbon-dark);
    border: 1px solid var(--metal-dark);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12.5px;
    text-align: center;
}
.order-status-gate-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}
.order-status-gate-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--accent-purple);
    background: rgba(153, 69, 255, 0.14);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.order-status-gate-btn:hover {
    background: rgba(153, 69, 255, 0.28);
}
.order-status-gate-result {
    margin-top: 8px;
}
.order-status-gate-result .track-result-error {
    font-size: 12px;
    padding: 8px 12px;
}

/* ---------- یادآوری الزام مطالعه قوانین در گام تایید نهایی سفارش ---------- */
.terms-notice {
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 176, 32, 0.1);
    border: 1px solid rgba(255, 176, 32, 0.35);
    color: #ffcf70;
    font-size: 13.5px;
    text-align: center;
}

/* ---------- ردیف تیک «قوانین و مقررات» در گام تایید نهایی سفارش ---------- */
.terms-agree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding: 16px 18px;
    background: rgba(153, 69, 255, 0.06);
    border: 1px solid var(--metal-dark);
    border-radius: 12px;
}
.terms-agree-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--text-primary);
    user-select: none;
}
.terms-agree-label input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--accent-purple);
    cursor: pointer;
    flex-shrink: 0;
}
.terms-agree-row.shake {
    animation: termsShake 0.4s;
}
.terms-agree-row.error {
    border-color: #ff5c5c;
    background: rgba(255, 92, 92, 0.08);
}
@keyframes termsShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.terms-view-btn {
    white-space: nowrap;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--accent-purple);
    background: rgba(153, 69, 255, 0.14);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.terms-view-btn:hover {
    background: rgba(153, 69, 255, 0.28);
}

/* ---------- مودال قوانین و مقررات ---------- */
.terms-modal {
    max-width: 640px;
    text-align: right;
}
.terms-modal-body {
    max-height: 44vh;
    overflow-y: auto;
    margin-top: 10px;
    padding-inline-end: 6px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text-secondary);
    white-space: pre-wrap;
}
.terms-modal-body-empty {
    color: var(--text-secondary);
    font-size: 13.5px;
    text-align: center;
}
.terms-modal-close-btn {
    margin-top: 20px;
}
