/*
 * Pagina unui credit = simulatorul lui (/<url companie>/simulator-credit/<id>-<slug>) - private/pages/simulator-credit/.
 * Se incarca dupa landing.css (tokens + co-*) si company.css (cp-*); aici stau doar regulile cp-sim-*.
 * Mobile-first; breakpoint-uri: 576 / 768 / 1024.
 */
.cp-sim-hero { padding-bottom: 40px; }
.cp .cp-sim-hero__lead { color: #CBD5E1; font-size: 17px; line-height: 1.5; margin-top: 14px; max-width: 720px; }
.cp a.cp-hero__logo { display: block; }

.cp-sim-main { padding-top: 32px; }
.cp-sim-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cp-sim-form { min-width: 0; }
.cp .cp-sim-form__title, .cp .cp-sim-summary__title { font-size: 20px; line-height: 1.25; font-weight: 800; margin-bottom: 18px; }

/* campurile care nu sunt acoperite de .co-form (number, date, select) */
.cp-sim-form input[type=number], .cp-sim-form input[type=date], .cp-sim-form select {
    width: 100%; height: auto; font: 500 16px var(--font); color: var(--text); padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--line); background-color: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s;
}
.cp-sim-form input:focus, .cp-sim-form select:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.cp-sim-form input[type=date] { min-height: 50px; }
.cp-sim-form input, .cp-sim-form select { min-width: 0; max-width: 100%; }
.cp-sim-form .co-form__row { min-width: 0; }
.cp .cp-sim-form .form-control.is-invalid { border-color: #DC2626; background-color: #FEF2F2; }
.cp .cp-sim-form .invalid-feedback { display: block; color: #B91C1C; font-size: 13px; font-weight: 600; }
.cp-sim-help { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cp-sim-check { flex-direction: row; align-items: center; gap: 10px; padding-left: 0; }
.cp-sim-check .form-check-input { position: static; margin: 0; width: 18px; height: 18px; flex: 0 0 18px; }
.cp .cp-sim-check label { font-weight: 600; margin: 0; }
.cp-sim-note { font-size: 13px; color: var(--muted); margin-top: 12px !important; }
.cp-sim-form .co-btn svg { width: 20px; height: 20px; }

.cp-sim-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.cp-sim-placeholder { color: var(--muted); font-size: 15px; }
#simulation-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
/* nu depindem de bootstrap.min.css pentru ascunderea randului de fond social / a rezultatului */
.cp-sim .d-none { display: none !important; }
.cp .cp-sim-table td { text-align: right; font-weight: 700; color: var(--navy); }
.cp .cp-sim-table__total th, .cp .cp-sim-table__total td { background: rgba(245, 158, 11, .12); color: var(--navy); font-weight: 800; font-size: 16px; }

.cp-sim-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cp-sim-share .co-btn svg { width: 18px; height: 18px; }
.cp-sim-share__status { font-size: 14px; font-weight: 600; color: #047857; }
.cp-sim-share__status:empty { display: none; }
.cp-sim-share__input { flex: 1 1 100%; font-size: 14px; border-radius: 10px; }

.cp-sim-schedule__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.cp-sim-payments { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cp-sim-payments th, .cp-sim-payments td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cp-sim-payments th:first-child, .cp-sim-payments td:first-child { text-align: left; color: var(--muted); }
.cp-sim-payments thead th { position: sticky; top: 0; background: var(--bg); color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cp-sim-payments tbody tr:nth-child(even) td { background: rgba(246, 248, 252, .7); }
.cp-sim-payments tfoot td { border-bottom: 0; border-top: 2px solid var(--line); font-weight: 800; color: var(--navy); }
.cp-sim-payments tfoot td:first-child { color: var(--navy); }

.cp-sim-links { display: flex; flex-direction: column; gap: 10px; }
.cp-sim-links .co-btn { white-space: normal; text-align: center; }

@media (min-width: 576px) {
    .cp-sim-links { flex-direction: row; flex-wrap: wrap; }
    .cp-sim-links .co-btn { flex: 1 1 200px; }
    .cp-sim-form .co-form__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cp-sim-payments { font-size: 15px; }
}
@media (min-width: 768px) {
    .cp-sim-main { padding-top: 48px; }
    .cp .cp-sim-hero__lead { font-size: 18px; }
}
@media (min-width: 1024px) {
    .cp-sim-layout { grid-template-columns: 400px minmax(0, 1fr); gap: 32px; }
    .cp-sim-form { position: sticky; top: 96px; }
}

/* pe telefon, rezumatul ramane pe randuri eticheta | valoare (company.css le pune una sub alta) */
@media (max-width: 575.98px) {
    .cp .cp-sim-table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
    .cp .cp-sim-table th, .cp .cp-sim-table td { display: block; width: auto; padding: 10px 12px; }
    .cp .cp-sim-table th { background: transparent; font-size: 14px; }
    .cp .cp-sim-table td { white-space: nowrap; }
    .cp .cp-sim-table tr.cp-sim-table__total { background: rgba(245, 158, 11, .12); }
}

/* antet: "Credit oferit de <CAR>" sub H1 */
.cp .cp-sim-hero__by { color: #E2E8F0; font-size: 16px; font-weight: 600; margin-top: 10px; }
.cp .cp-sim-hero__by a { color: #FCD34D; text-decoration: underline; }

/* Detalii credit + Alte credite */
.cp-sim-details__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cp .cp-sim-details__title { font-size: 20px; line-height: 1.25; font-weight: 800; margin-bottom: 14px; }
.cp .cp-sim-details__desc { color: var(--text); font-size: 15px; line-height: 1.6; margin-bottom: 18px; overflow-wrap: anywhere; }
.cp .cp-sim-details__note { font-size: 13px; color: var(--muted); margin: 0; }
.cp-sim-others { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.cp .cp-sim-others a { color: var(--blue); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.cp .cp-sim-others small { color: var(--muted); white-space: nowrap; }
.cp-sim-others__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-sim-others__links .co-btn { white-space: normal; text-align: center; }
@media (min-width: 1024px) {
    .cp-sim-details__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
}
