/* Cost Calculator — clean focused layout */
body.cost-calculator-page {
    background: var(--pb-light, #f8faf9);
}

.cost-calc-intro .section-title {
    margin-bottom: 0.5rem;
}

.cost-calc-card,
.cost-result-panel,
.cost-result-placeholder {
    border-radius: 16px;
}

.cost-flag-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #f0f7f4;
    border-radius: 10px;
    min-height: 48px;
}

.cost-flag-preview.is-empty {
    color: #888;
    font-size: 0.9rem;
}

.cost-flag-preview-name {
    font-weight: 600;
    color: var(--pb-green-dark);
}

.cost-calc-submit {
    padding: 0.75rem;
    font-weight: 600;
}

.cost-result-wrap {
    min-height: 200px;
}

.cost-result-placeholder i {
    font-size: 2rem;
    color: var(--pb-green);
    opacity: 0.45;
    display: block;
    margin-bottom: 0.75rem;
}

.cost-result-panel {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cost-result-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cost-result-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cost-result-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.cost-result-total {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--pb-green);
    line-height: 1.25;
}

.cost-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #eef2f0;
    border-radius: 10px;
    overflow: hidden;
}

.cost-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #eef2f0;
    background: #fff;
}

.cost-breakdown-item:last-child {
    border-bottom: none;
}

.cost-breakdown-item.is-optional {
    background: #fffbf5;
}

.cost-breakdown-label {
    flex: 1;
    min-width: 0;
    color: #333;
}

.cost-breakdown-amount {
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    font-size: 0.85rem;
}

.cost-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.cost-meta-item {
    padding: 0.75rem 1rem;
    background: #f8faf9;
    border-radius: 10px;
}

.cost-meta-label {
    display: block;
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.cost-meta-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
}

.cost-result-actions {
    margin-top: 1.25rem;
}

.cost-disclaimer {
    font-size: 0.75rem;
    color: #888;
    margin-top: 1rem;
}

.cost-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pb-green);
}

.cost-loading .spinner-border {
    width: 2.25rem;
    height: 2.25rem;
}

@media (max-width: 575.98px) {
    .cost-meta-row {
        grid-template-columns: 1fr;
    }

    .cost-breakdown-amount {
        font-size: 0.8rem;
    }

    .cost-result-actions .btn {
        width: 100%;
    }
}
