/* Process page — responsive timeline & tier comparison */

body.process-page {
    background: var(--pb-light, #f8faf9);
}

/* Step images */
.process-step-img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .process-step-img {
        height: 140px;
        max-height: none;
    }
}

/* Mobile step badge (timeline numbers hidden below 768px in style.css) */
.process-step-badge {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--pb-green);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
    .process-step-badge {
        display: inline-flex;
    }

    .process-step {
        padding: 1rem;
    }

    .process-step-title {
        font-size: 1.1rem;
    }
}

/* Tier comparison — row layout on mobile/tablet, columns on desktop */
.tier-compare-name {
    word-break: keep-all;
    overflow-wrap: normal;
}

.tier-compare-rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tier-compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background: #f8f9fa;
}

.tier-compare-row--probasi {
    background: #f0faf4;
}

.tier-compare-row--savings {
    background: #f8f9fa;
}

.tier-compare-label {
    flex: 0 0 auto;
    min-width: 5.5rem;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.tier-compare-values {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    flex-wrap: wrap;
}

.tier-compare-fee {
    white-space: nowrap;
}

.tier-compare-days {
    white-space: nowrap;
    min-width: 2.5rem;
}

/* Tier card grid min-widths */
.tier-compare-grid > [class*="col-"] {
    min-width: 0;
}

.tier-compare-card {
    min-width: 0;
}

.tier-compare-card .card-body {
    overflow: hidden;
}

/* Action buttons — full width on narrow screens */
@media (max-width: 575.98px) {
    .process-step-actions {
        flex-direction: column;
    }

    .process-step-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet: ensure tier cards have breathing room */
@media (min-width: 576px) and (max-width: 991.98px) {
    .tier-compare-grid {
        --bs-gutter-x: 0.75rem;
    }
}

/* Bengali text protection sitewide within process page */
body.process-page [lang="bn"] .tier-compare-label,
html[lang="bn"] .process-page .tier-compare-label,
html[lang="bn"] .tier-compare-label {
    word-break: keep-all;
    overflow-wrap: normal;
}
