/*
 * Pagina de detalii a unui CAR (/<url companie>) - private/pages/company/.
 * Se incarca DUPA landing.css (tokens + clasele co-*); aici stau doar regulile cp-*.
 * Pagina e randata in .page-body din index.php, peste Bootstrap + style.css, deci
 * regulile sunt prefixate cu .cp ca sa castige in fata stilurilor vechi ale temei.
 * Mobile-first; breakpoint-uri: 576 / 768 / 992 / 1024.
 */
.cp {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.cp :is(h1, h2, h3, h4, p) { font-family: var(--font); }
.cp :is(h1, h2, h3, h4) { color: var(--navy); letter-spacing: -.02em; margin: 0; }
.cp p { margin: 0; }
.cp a:hover { color: inherit; }
.cp :focus-visible { outline: 3px solid var(--blue-light) !important; outline-offset: 2px; }
.cp .co-btn svg { flex: 0 0 18px; }
/* butoanele de simulator: header-ul vechi le pune float:right !important */
.cp .simulate-loan-modal { float: none !important; }
.cp-btn-outline { background: #fff; color: var(--blue) !important; border-color: rgba(37, 99, 235, .3); }
.cp-btn-outline:hover { background: rgba(37, 99, 235, .06); box-shadow: var(--shadow-sm); }

/* ---------- sectiuni ---------- */
.cp-section { padding: 56px 0; }
.cp-head { margin-bottom: 28px; }
.cp .cp-head h2 { font-size: 28px; line-height: 1.15; font-weight: 800; }
.cp .cp-head .co-lead { font-size: 17px; margin-top: 12px; }
.cp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px 18px; }
.cp-empty { text-align: center; color: var(--muted); }

/* ---------- antet ---------- */
.cp-hero { padding: 36px 0 48px; }
.cp-hero__inner { position: relative; display: grid; gap: 28px; }
.cp-hero__main { min-width: 0; }
.cp .cp-hero__logo { width: 168px; padding: 8px 12px; margin-bottom: 18px; border-radius: 14px; box-shadow: 0 8px 24px rgba(2, 8, 23, .25); }
.cp .cp-hero__logo .company-logo { height: 72px; }
.cp-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cp-hero__chips:empty { display: none; }
.cp-chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    font-size: 13px; font-weight: 700; line-height: 1.3; color: #DBEAFE;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
    padding: 5px 12px; border-radius: 999px;
}
.cp-chip svg { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
.cp-chip--type { color: #FDE68A; background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .35); }
.cp .cp-hero__title { color: #fff; font-size: 30px; line-height: 1.1; font-weight: 800; overflow-wrap: anywhere; }
.cp-hero__rating { margin-top: 14px !important; color: #CBD5E1; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cp .cp-hero__rating .stars { margin: 0; font-size: 22px; line-height: 1; }
.cp-hero__score { color: #fff; font-weight: 800; }
.cp-hero__rating small { font-size: 14px; color: #BFDBFE; cursor: pointer; text-decoration: underline; }
.cp .cp-hero__tagline { color: #BFDBFE; font-size: 18px; line-height: 1.35; font-weight: 600; margin-top: 10px; }
.cp-hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.cp-hero__ctas:empty { display: none; }
/* telefonul din antet: ascundem pastila alba a mecanismului vechi, butonul e chiar .co-btn */
.cp .cp-hero__phone .remove-me-on-press { background: none; padding: 0; border-radius: 0; color: inherit; display: inline; }
.cp .cp-hero__phone .hidden-phone-no { color: #1F1300; font-weight: 800; }
.cp-hero__more { margin-top: 26px; }
.cp-hero__more > b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #93C5FD; margin-bottom: 10px; }
.cp-hero__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cp .cp-link-chip {
    display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.3; color: #E2E8F0;
    padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04);
}
.cp .cp-link-chip:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.cp-hero__claim { margin-top: 22px !important; font-size: 14px; color: #CBD5E1; }
.cp-hero__claim strong { font-weight: 600; }
.cp .cp-hero__claim a { color: #FCD34D; text-decoration: underline; }
.cp-hero__social { align-self: start; padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.cp .cp-hero__social h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cp-hero__social ul { display: grid; gap: 6px; }
.cp .cp-hero__social a { color: #93C5FD; font-size: 15px; font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.cp .cp-hero__social a:hover { color: #fff; }
#only-on-dev-banner.cp-devbanner { position: relative; bottom: auto; height: auto; margin-top: 28px; color: #000; font-weight: 700; z-index: 1; }

/* ---------- despre noi ---------- */
.cp-about { padding-top: 40px; }
.cp-about__card { display: grid; gap: 28px; }
.cp .cp-about__text h4.co-eyebrow { font-size: 13px; line-height: 1.2; font-weight: 700; color: var(--blue); margin: 0 0 14px; letter-spacing: .08em; }
.cp .cp-about__text h2 { font-size: 28px; line-height: 1.15; font-weight: 800; margin-bottom: 14px; }
.cp-about__body { color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.cp .cp-about__idtitle { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.cp .cp-idtable { width: 100%; margin: 0 0 16px; font-size: 15px; line-height: 1.45; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--text); }
.cp .cp-idtable th, .cp .cp-idtable td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; vertical-align: top; overflow-wrap: anywhere; }
.cp .cp-idtable tr:last-child th, .cp .cp-idtable tr:last-child td { border-bottom: 0; }
.cp .cp-idtable th { width: 40%; text-align: left; background: var(--bg); color: var(--muted); font-weight: 600; font-size: 14px; }
.cp .cp-idtable a { color: var(--blue); }
.cp .cp-idtable .remove-me-on-press { background: rgba(37, 99, 235, .08); color: var(--blue); padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cp-about__claim { font-size: 14px; color: var(--muted); margin-bottom: 16px !important; }
.cp .cp-about__claim a { color: var(--blue); }
/* banda de cifre: ultimul rand din cardul "Despre noi" */
.cp-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.cp-stats--1 { grid-template-columns: minmax(0, 1fr); }
.cp-stat { min-width: 0; }
.cp .cp-stat h3 { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--blue); }
.cp-stat p { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px !important; }

/* ---------- credite si fond social ---------- */
.cp-products-sec { background: #fff; border-top: 1px solid var(--line); }
.cp-products { display: grid; gap: 18px; }
.cp-product {
    container-type: inline-size;
    display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px 18px;
}
.cp-product .co-pill { align-self: flex-start; margin-bottom: 10px; }
.cp .cp-product__title { font-size: 22px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.cp .cp-product__title a { color: var(--navy); text-decoration: none; }
.cp .cp-product__title a:hover { color: var(--blue); text-decoration: underline; }
.cp-product__desc { margin-top: 8px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.cp-specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px !important; }
.cp-spec { grid-column: span 3; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.cp-spec .label { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--muted); }
.cp-spec .value { display: block; margin-top: 2px; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.cp-spec--key { background: rgba(37, 99, 235, .06); border-color: rgba(37, 99, 235, .18); }
.cp-spec--key .value { color: var(--blue); font-size: 17px; }
.cp-product--loan .cp-spec--key { grid-column: span 6; }
@container (min-width: 440px) {
    .cp-product--loan .cp-spec--key { grid-column: span 2; }
}
.cp-product__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.cp-product__ctas .co-btn { flex: 1 1 160px; }

/* ---------- sectiunile din texts (acte necesare, conditii...) ---------- */
.cp-meta--tint { background: var(--bg); }
.cp-meta--white { background: #fff; }
.cp-section + .cp-section { border-top: 1px solid var(--line); }
.cp-meta__layout { display: grid; gap: 24px; }
.cp-meta__img { display: none; margin: 0; }
.cp-meta__img img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cp-meta__cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.cp-meta--white .cp-meta__card { background: var(--bg); box-shadow: none; }
.cp .cp-meta__card h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin-bottom: 12px; }
.cp .cp-meta__card > p { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.cp ul.cp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp ul.cp-checks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.cp ul.cp-checks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; margin: 0; border-radius: 50%;
    background: rgba(16, 185, 129, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2310B981' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") no-repeat center / 14px;
}

/* ---------- intrebari frecvente ---------- */
.cp-faq__layout { display: grid; gap: 32px; }
.cp-faq__main { min-width: 0; }
.cp .co-faq summary h4 { display: inline; font: inherit; color: inherit; letter-spacing: normal; margin: 0; }
.cp .co-faq summary { line-height: 1.4; }
.cp .co-faq details p { font-size: 16px; }
.cp-faq__img { display: none; margin: 0; }
.cp-faq__img img { width: 100%; height: auto; }

/* ---------- review-uri ---------- */
.cp-reviews { background: var(--bg); }
.cp-reviews__list {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 0 16px;
}
.cp-review {
    flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px;
}
.cp .cp-review .stars { text-align: left; font-size: 20px; margin: 0 0 10px; }
.cp-review__text { font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.cp .cp-review__text a { color: var(--blue); cursor: pointer; text-decoration: underline; }
.cp-review__author { margin-top: auto; padding-top: 14px; }
.cp-review__text + .cp-review__author { border-top: 1px solid var(--line); margin-top: 14px; }
.cp .cp-review__author h4 { font-size: 16px; line-height: 1.3; font-weight: 700; }
.cp-review__author p { font-size: 13px; color: var(--muted); }
.cp-review--invite { background: rgba(37, 99, 235, .04); border-style: dashed; box-shadow: none; }
.cp-reviews__list--empty .cp-review { flex-basis: 100%; max-width: 440px; margin: 0 auto; }
.cp-reviews .co-lead a { color: var(--blue); cursor: pointer; text-decoration: underline; }

/* ---------- contact ---------- */
.cp-contact .co-lead-sec__inner { align-items: start; }
.cp .cp-contact h2 { color: #fff; font-size: 28px; line-height: 1.15; font-weight: 800; }
.cp .cp-contact .co-lead { margin-top: 12px; font-size: 17px; }
.cp-contact__info { min-width: 0; }
.cp-contact__list { display: grid; gap: 12px; margin-top: 24px !important; color: #E2E8F0; }
.cp-contact__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.cp-contact__list svg { width: 20px; height: 20px; flex: 0 0 20px; fill: #93C5FD; margin-top: 2px; }
.cp .cp-contact .remove-me-on-press { white-space: normal; font-size: 14px; font-weight: 600; line-height: 1.4; }
.cp .cp-contact .hidden-phone-no { color: #fff; font-weight: 800; font-size: 18px; }
.cp-branches { gap: 8px; }
.cp-branches__title { font-weight: 700; color: #fff; font-size: 15px !important; }
.cp-branch { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); font-size: 15px !important; }
.cp-branch svg { width: 18px; height: 18px; flex-basis: 18px; }
.cp .cp-form { min-width: 0; }
.cp .cp-form select.form-control { height: auto; }
.cp .cp-form .form-control.is-invalid { border-color: #DC2626; background-color: #FEF2F2; }
.cp .cp-form .invalid-feedback { color: #B91C1C; font-size: 13px; font-weight: 600; }
.cp-form__submit { margin-top: 4px; }

/* ===================== >= 576px ===================== */
@media (min-width: 576px) {
    .cp-hero__ctas { flex-direction: row; flex-wrap: wrap; }
    .cp-card, .cp-product { padding: 26px 24px; }
    .cp-branches { grid-template-columns: 1fr 1fr; }
    .cp-branches__title { grid-column: 1 / -1; }
}
/* ===================== >= 768px ===================== */
@media (min-width: 768px) {
    .cp-section { padding: 80px 0; }
    .cp-about { padding-top: 56px; }
    .cp-hero { padding: 56px 0 64px; }
    .cp .cp-hero__title { font-size: 42px; }
    .cp .cp-head h2, .cp .cp-about__text h2, .cp .cp-contact h2 { font-size: 36px; }
    .cp-products { grid-template-columns: 1fr 1fr; gap: 22px; }
    .cp-stats { display: flex; flex-wrap: wrap; gap: 16px 56px; }
    .cp .cp-stat h3 { font-size: 38px; }
    .cp-reviews__list { display: block; columns: 2; column-gap: 18px; overflow: visible; margin: 0; padding: 0; }
    .cp-review { break-inside: avoid; margin-bottom: 18px; }
    .cp-reviews__list--empty { columns: 1; }
}
/* ===================== >= 992px ===================== */
@media (min-width: 992px) {
    .cp-about__card { grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 36px; }
    .cp-meta__layout--img-left, .cp-meta__layout--img-right { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
    .cp-meta__layout--img-right { grid-template-columns: 1fr 300px; }
    .cp-meta__layout--img-right .cp-meta__img { order: 2; }
    .cp-meta__img { display: block; }
}
/* ===================== >= 1024px ===================== */
@media (min-width: 1024px) {
    .cp-hero { padding: 64px 0 72px; }
    .cp .cp-hero__title { font-size: 50px; }
    .cp-hero__inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
    .cp-hero__inner > .cp-hero__main:only-child { grid-column: 1 / -1; max-width: 860px; }
    .cp-faq__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
    .cp-faq__img { display: block; }
    .cp-reviews__list { columns: 3; }
    .cp-reviews__list--empty { columns: 1; }
}

/* ---------- ajustari: tabel pe telefon, reclama, grila de contact ---------- */
@media (max-width: 575.98px) {
    /* pe telefon, eticheta deasupra valorii */
    .cp .cp-idtable tr { display: block; border-bottom: 1px solid var(--line); }
    .cp .cp-idtable tr:last-child { border-bottom: 0; }
    .cp .cp-idtable th, .cp .cp-idtable td { display: block; width: 100%; border-bottom: 0; }
    .cp .cp-idtable th { padding: 10px 12px 0; background: transparent; font-size: 13px; }
    .cp .cp-idtable td { padding: 2px 12px 10px; }
}
.cp #dynamic-mkt:not(:empty) { padding: 24px 0 40px; }
.cp-contact .co-lead-sec__inner { row-gap: 32px; }
.cp-contact__branches { min-width: 0; }
.cp-contact__branches .cp-branches { margin-top: 0 !important; }
@media (min-width: 1024px) {
    .cp-contact .co-lead-sec__inner { grid-template-columns: .95fr 1.05fr; grid-template-rows: auto 1fr; column-gap: 64px; }
    .cp-contact__info { grid-column: 1; grid-row: 1; }
    .cp-contact .cp-form { grid-column: 2; grid-row: 1 / span 2; }
    .cp-contact__branches { grid-column: 1; grid-row: 2; }
}

/* ---------- review-uri: restul, intr-un <details> sub primele 6 ---------- */
.cp-reviews__more { margin-top: 16px; }
.cp-reviews__more > summary { list-style: none; display: inline-flex; }
.cp-reviews__more > summary::-webkit-details-marker { display: none; }
.cp-reviews__more > summary::after {
    content: ""; width: 9px; height: 9px; margin-left: 4px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.cp-reviews__more[open] > summary { margin-bottom: 18px; }
.cp-reviews__more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
