.ppc-container {
    max-width: 720px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 20px 22px;
    font-family: Vazirmatn, IRANSans, Tahoma, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.ppc-title {
    text-align: center;
    margin: 0 0 14px;
    font-weight: 700;
}

.ppc-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ppc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1da1f2, #0ea5e9);
    width: 0;
    transition: width .3s ease;
}

.ppc-step {
    display: none;
}

.ppc-step.is-active {
    display: block;
}

.ppc-field {
    margin: 12px 0;
}

/* Select – ارتفاع بیشتر و عدم بریدگی متن */
.ppc-container .ppc-field select {
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    min-height: 48px;
    /* کمی کوتاه‌تر */
    padding: 8px 12px;
    /* فضای داخلی کمتر */
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    direction: rtl;
    text-align: right;
}

/* آیتم‌های لیست دراپ‌داون */
.ppc-container .ppc-field select option {
    white-space: normal;
    line-height: 1.6;
    padding: 6px 8px;
}

/* موبایل */
@media (max-width: 480px) {
    .ppc-container .ppc-field select {
        font-size: 15px;
        min-height: 44px;
    }
}

.ppc-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-end: 16px;
    cursor: pointer;
}

/* ===== Buttons unified ===== */
.ppc-actions {
    margin-top: 14px;
    display: flex;
    gap: 4%;
    /* فاصله بین دکمه‌ها */
    flex-wrap: nowrap;
}

/* استایل پایه همه دکمه‌ها */
.ppc-btn,
.ppc-actions .ppc-btn,
#ppcReset,
.ppc-actions .ppc-btn.ppc-primary,
.ppc-actions .ppc-btn.ppc-secondary {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    /* کمی ظریف‌تر */
    padding: 8px 12px;
    /* ارتفاع کمتر */
    font-size: 14px;
    /* متن کوچک‌تر */
    font-weight: 500;
    /* ضخامت فونت کمتر */
    cursor: pointer;
    text-align: center;
    transition: background-color .2s ease, transform .05s ease;
}

/* هاور/اکتیو/فوکِس */
.ppc-btn:hover,
#ppcReset:hover {
    background-color: #1a1a1a !important;
}

.ppc-btn:active,
#ppcReset:active {
    transform: translateY(1px);
}

.ppc-btn:focus-visible,
#ppcReset:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* وقتی دو دکمه کنارهم هستند */
.ppc-actions .ppc-btn {
    flex: 0 0 48%;
    max-width: 48%;
}

/* اگر فقط یک دکمه باشد → تمام‌عرض */
.ppc-actions .ppc-btn:only-child {
    flex: 0 0 100%;
    max-width: 100%;
}

/* دکمه محاسبه جدید در باکس نتیجه */
#ppcReset {
    display: block;
    width: 100%;
    margin-top: 16px;
    /* فاصله از کادر سبز */
}

/* ===== Result box ===== */
.ppc-result {
    margin-top: 10px;
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.ppc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.ppc-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
}

.ppc-final {
    background: #dcfce7;
    color: #065f46;
    border: 1px solid #86efac;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
}

.ppc-hint {
    color: #6b7280;
    font-size: 12px;
}