/* 1st Criber – layer responsive. Load after bootstrap.css and quotes.css. */
:root{--cr-blue:#1c4e95;--cr-blue2:#285eaa;--cr-dark:#153b70;--cr-text:#23354a;--cr-muted:#6b7a8d;--cr-line:#e3ebf4;--cr-bg:#f4f8fc}
html{scroll-behavior:smooth}
body.cr-form-page{background:var(--cr-bg);font-family:Arial,Helvetica,sans-serif;color:var(--cr-text);font-size:15px;line-height:1.5;margin:0;overflow-x:hidden}
.cr-container{width:calc(100% - 40px);max-width:1080px;margin:0 auto}
.cr-header{background:var(--cr-blue);height:68px;display:flex;align-items:center}
.cr-header__inner{display:flex;justify-content:space-between;align-items:center;width:calc(100% - 40px);max-width:1080px;margin:auto;gap:12px}
.cr-brand{color:#fff!important;font-size:28px;font-weight:800;letter-spacing:-1.6px;text-decoration:none!important;line-height:1}
.cr-brand sup{font-size:12px;top:-.6em;letter-spacing:0}.cr-brand span{display:block;letter-spacing:1px;font-size:9px;font-weight:400;margin-top:5px}
.cr-back{font-size:13px;color:#e9f2ff!important;text-decoration:none!important}.cr-back:hover{color:#fff!important}.cr-back .fa{margin-right:5px}
.cr-hero{background:linear-gradient(115deg,#1c4e95,#306bb5);padding:36px 0 79px;color:#fff}
.cr-eyebrow{font-weight:700;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:#c7dffc;margin:0 0 8px}
.cr-hero h1{font-family:Arial,Helvetica,sans-serif;font-size:clamp(26px,3.5vw,39px);font-weight:700;line-height:1.2;margin:0 0 10px;color:#fff}
.cr-hero p:not(.cr-eyebrow){font-size:14px;color:#e8f1ff;margin:0;max-width:640px}
.cr-main{margin-top:-43px;position:relative;margin-bottom:40px}
.cr-card{background:#fff;border:1px solid #e4ebf4;border-radius:16px;padding:36px 44px;box-shadow:0 13px 38px rgba(28,78,149,.1)}
.cr-section-title{display:flex;align-items:flex-start;gap:14px;margin-bottom:23px}
.cr-step{background:#e6f0fc;color:var(--cr-blue);font-size:13px;font-weight:700;min-width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none}
.cr-section-title h2{font-family:Arial,Helvetica,sans-serif;margin:2px 0 4px;color:var(--cr-blue);font-size:21px;font-weight:700;line-height:1.2}
.cr-section-title p{color:var(--cr-muted);font-size:13px;margin:0}
.cr-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.cr-field label{display:block;color:#3c516b;font-weight:700;font-size:13px;margin-bottom:7px}
.cr-form-page .cr-field .form-control{height:44px;max-width:none;width:100%;font-size:14px;border-radius:8px;border:1px solid #d5e0ec;box-shadow:none;padding:10px 12px}
.cr-form-page .form-control:focus{border-color:#3471ba;box-shadow:0 0 0 3px rgba(52,113,186,.12)}
.cr-rule{height:1px;background:var(--cr-line);margin:31px 0}
.cr-section-title--product{margin-bottom:12px}
.cr-product-name{margin:4px 0 17px!important;font-size:17px!important;line-height:1.3!important;font-weight:700!important;color:var(--cr-blue)!important}
.cr-loading{font-size:54px;margin:32px auto 28px}
/* productPanel is injected by existing quotes.js; avoid changing selectors or values. */
.cr-form-page #productPanel{min-width:0}
.cr-form-page #productPanel .page-header{margin:12px 0 16px;padding:0 0 10px}
.cr-form-page #productPanel .page-header h3{font-size:18px;line-height:1.3;color:var(--cr-blue)}
.cr-form-page #productPanel table{width:100%;max-width:100%;margin:0 0 14px;border-collapse:separate;border-spacing:0 9px}
.cr-form-page #productPanel .table-quote>tbody>tr,.cr-form-page #productPanel .table-quote-lines>tbody>tr{background:#f7fafd}
.cr-form-page #productPanel table td{padding:12px 13px!important;border:0!important;vertical-align:middle!important;line-height:1.5;overflow-wrap:anywhere}
.cr-form-page #productPanel table td:first-child{font-weight:600;color:#2b435d}
.cr-form-page #productPanel table td:last-child{color:#7a8798;font-size:13px}
.cr-form-page #productPanel input[type=text],.cr-form-page #productPanel input[type=number],.cr-form-page #productPanel select{height:42px;border-radius:7px;border:1px solid #d2dfeb;background:#fff;padding:8px 10px;font-size:14px;max-width:100%}
.cr-form-page #productPanel .product-characteristic-value{max-width:95px}
.cr-form-page #productPanel .btn-group{display:inline-flex;flex-wrap:wrap;vertical-align:middle;gap:5px;max-width:100%}
.cr-form-page #productPanel .btn-group>.btn{float:none;margin-left:0;border-radius:6px!important}
.cr-form-page #productPanel .btn-default,.cr-form-page #productPanel .btn-group>.btn{border:1px solid #d4dfeb;background:#fff;color:#345579;min-height:37px;padding:8px 12px}
.cr-form-page #productPanel .btn-primary,.cr-form-page #productPanel .btn-group>.btn.active,.cr-form-page #productPanel .btn-group>.btn.btn-primary{background:var(--cr-blue)!important;color:#fff!important;border-color:var(--cr-blue)!important;box-shadow:none!important}
.cr-form-page #productPanel .btn-group>.btn:focus-visible,.cr-form-page #btnGetQuote:focus-visible{outline:3px solid #7dafef;outline-offset:2px}
.cr-submit{padding-top:26px;border-top:1px solid var(--cr-line);margin-top:23px;text-align:center}
.cr-form-page #btnGetQuote{margin:0;background:var(--cr-blue);border:1px solid var(--cr-blue);border-radius:9px;color:#fff;font-size:15px;font-weight:700;min-height:49px;padding:13px 26px}
.cr-form-page #btnGetQuote:hover{background:var(--cr-dark);border-color:var(--cr-dark)}
.cr-privacy-note{font-size:12px;color:var(--cr-muted);margin:12px 0 0}.cr-privacy-note a{color:var(--cr-blue)}
.cr-form-page #quoteRequestResponseSuccess,.cr-form-page #quoteRequestResponseError{line-height:1.5;font-size:16px;margin:15px auto}
.cr-benefits{display:flex;justify-content:center;gap:14px 30px;flex-wrap:wrap;color:#647991;font-size:12px;padding:22px 10px}.cr-benefits .fa{color:var(--cr-blue);margin-right:5px}
.cr-footer{text-align:center;color:#7b8ba0;font-size:12px;padding:4px 20px 30px}.cr-footer a{color:var(--cr-blue)}
@media(max-width:900px){.cr-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-card{padding:30px}}
@media(max-width:650px){.cr-container,.cr-header__inner{width:calc(100% - 28px)}.cr-header{height:62px}.cr-brand{font-size:25px}.cr-hero{padding:28px 0 75px}.cr-hero h1{font-size:27px}.cr-card{padding:22px 16px;border-radius:13px}.cr-fields{grid-template-columns:1fr;gap:14px}.cr-section-title h2{font-size:19px}.cr-section-title p{font-size:12px}.cr-step{min-width:34px;height:34px}.cr-form-page #productPanel table,.cr-form-page #productPanel table tbody{display:block;width:100%}.cr-form-page #productPanel table tr{display:flex;flex-direction:column;width:100%;background:#f7fafd;border:1px solid #e6edf6;border-radius:9px;margin:0 0 10px;padding:9px 8px}.cr-form-page #productPanel table td{display:block;width:100%!important;min-width:0!important;max-width:none!important;padding:5px 7px!important}.cr-form-page #productPanel .btn-group{display:flex;flex-wrap:wrap;gap:6px}.cr-form-page #productPanel .btn-group>.btn{flex:0 0 auto}.cr-form-page #btnGetQuote{width:100%;white-space:normal}.cr-benefits{gap:10px 18px}}
@media(max-width:360px){.cr-back{font-size:11px}.cr-brand{font-size:22px}.cr-card{padding:20px 12px}.cr-hero h1{font-size:24px}}

/* Official 1st Criber logo */
.cr-brand{display:inline-flex;align-items:center;flex:0 1 auto;min-width:0}
.cr-brand__logo{display:block;width:auto;height:auto;max-width:180px;max-height:47px;object-fit:contain}
@media(max-width:650px){.cr-brand__logo{max-width:145px;max-height:40px}}
@media(max-width:360px){.cr-brand__logo{max-width:125px;max-height:36px}}

/* Volum – unitatea m³ în partea dreaptă a câmpului */

.div-characteristic-value:has(.product-characteristic-value) {
    position: relative;
}

/* Câmpul numeric */
.product-characteristic-value {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    padding-right: 55px;
}

/* Unitatea de măsură m³ */
.div-characteristic-value:has(.product-characteristic-value) {
    font-size: 0;
}

.div-characteristic-value:has(.product-characteristic-value)::after {
    content: "m³";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #1c4e95;
    pointer-events: none;
}


/* FOOTER FORMULAR CRIBER */

.criber-footer {
    margin-top: 40px;
    padding: 28px 20px;
    background: #f3f7fc;
    border-top: 1px solid #dce6f3;
    text-align: center;
    color: #66758a;
    font-size: 13px;
}

.criber-footer p {
    margin: 0 0 14px;
}

.criber-footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.criber-footer a {
    color: #1c4e95;
    text-decoration: none;
    font-weight: 600;
}

.criber-footer a:hover {
    text-decoration: underline;
}

.criber-footer small {
    display: block;
    font-size: 12px;
    color: #8290a2;
}

@media (max-width: 600px) {
    .criber-footer {
        padding: 24px 15px;
    }

    .criber-footer nav {
        gap: 12px 18px;
    }

    .criber-footer a {
        font-size: 12px;
    }
}


/* AJUSTĂRI FINALE – FORMULAR 1st CRIBER */

/* Butoane configurator */
#productPanel .btn-group-selectvalues {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

#productPanel .btn-selectvalue {
    float: none;
    flex: 0 0 auto;
    min-width: 46px;
    min-height: 38px;
    margin: 0 !important;
    padding: 8px 10px;
    border-radius: 6px !important;
    font-size: 13px;
    line-height: 20px;
}

/* Evidențiere opțiune selectată */
#productPanel .btn-selectvalue.btn-primary {
    background: #1c4e95;
    border-color: #1c4e95;
    color: #fff;
}

/* Contrast explicații tehnice */
#productPanel .text-muted,
#productPanel .text-greyed {
    color: #596b80;
    font-size: 13px;
    line-height: 1.65;
}

/* Spațiere tabel caracteristici */
#productPanel .table-quote-lines > tbody > tr > td {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Adaptare pentru telefon */
@media (max-width: 767px) {
    #productPanel .btn-group-selectvalues {
        gap: 8px;
    }

    #productPanel .btn-selectvalue {
        min-width: 52px;
        min-height: 44px;
        font-size: 14px;
    }

    #productPanel .text-muted {
        font-size: 13px;
        line-height: 1.6;
    }
}


/* Text GDPR sub butonul de ofertare */

.quote-privacy-note {
    margin-top: 22px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #8a98aa;
    text-align: center;
}

.quote-privacy-note a {
    color: #627fa7;
    font-size: inherit;
    text-decoration: none;
}

.quote-privacy-note a:hover {
    color: #1c4e95;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .quote-privacy-note {
        margin-top: 20px;
        font-size: 11px;
        padding: 0 12px;
    }
}

