/* New look for the customer quote pages that share /css/payment-plan.css:
   EvaluationResults.aspx (quote approval), PaymentPlan.aspx, ForensicsEDiscoverySOW.aspx.
   An overlay: it is linked last and only changes colours, type and spacing. No markup or script depends on it.
   Navy #1D3B58, gold #D5B053, crimson #C31331, Inter. (Claude 2026-11-10) */

body {
    background: #EEF1F5 !important;
    color: #22303F;
    -webkit-font-smoothing: antialiased;
}

body, span, p, td, th, label, input, select, textarea, button,
.app-font-size, .app-font-size label,
.legal-term, .legal-term *, .legal-term p, .legal-term p span {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Icons keep their icon font */
.material-icons, i.material-icons, span.material-icons { font-family: "Material Icons" !important; }

/* ---- the sheet ---- */
.main-card {
    max-width: 980px;
    min-height: 0;
    height: auto;
    margin: 28px auto 40px;
    padding: 0 44px 44px;
    background: #fff;
    border: 1px solid #DDE3EA;
    border-top: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(29, 59, 88, .10), 0 2px 6px rgba(29, 59, 88, .06);
    overflow: hidden;
}

/* gold line + header band: first row of the sheet (logo left, title and phone right) */
.main-card > div > .row:first-child,
.main-card > .row:first-child {
    margin: 0 -44px 28px;
    padding: 26px 44px 22px;
    background: #F7F9FB;
    border-top: 5px solid #D5B053;
    border-bottom: 1px solid #DDE3EA;
    align-items: center;
}

#imgTopLogo, #imgLogo { max-width: 300px; height: auto; }

.header-text {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #1D3B58;
}

/* "Questions? Call ..." (inline red in the page) */
.header-text-wrap span[style*="Red" i] {
    color: #C31331 !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.6;
}

/* ---- body copy ---- */
.frm-quote-table, .frm-quote-table td { color: #22303F; }
.frm-quote-table p, .frm-quote-table span, .frm-quote-table div { line-height: 1.6; }
.frm-quote-table strong, .frm-quote-table b { color: #1D3B58; }

.table-custom td { padding: 5px 0; vertical-align: top; }
.table-custom td:first-child { color: #5B6B7B; padding-right: 14px; }

/* highlighted notes written with a yellow marker in the proposal text */
.frm-quote-table [style*="background: yellow" i],
.frm-quote-table [style*="background-color: yellow" i],
.frm-quote-table [style*="background:yellow" i] {
    background: #FBF1D0 !important;
    color: #7A1626 !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 2px 0;
}

/* ---- service level table ---- */
[id$="pnService"] table {
    border: 1px solid #DDE3EA !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}
[id$="pnService"] .mobile-hide table tr:first-child td {
    background: #1D3B58;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 0 !important;
    padding: 12px 16px;
}
[id$="pnService"] .mobile-hide table tr { border-bottom: 0 !important; }
[id$="pnService"] .mobile-hide table tr + tr td {
    padding: 14px 16px;
    border-bottom: 1px solid #E6EBF0 !important;
    vertical-align: middle;
}
[id$="pnService"] .mobile-hide table tr:last-child td { border-bottom: 0 !important; }
[id$="pnService"] .mobile-hide table tr + tr td:first-child { font-weight: 600; color: #1D3B58; }
[id$="pnService"] .mobile-hide table tr + tr:nth-child(odd) td { background: #FAFBFC; }
.service-table > tbody > tr { border-bottom: 1px solid #E6EBF0; }
.service-table td { padding: 8px 12px; }

/* comments box (two stacked bordered divs) */
[id$="pnComments"] > div {
    border: 1px solid #DDE3EA !important;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px !important;
}
[id$="pnComments"] > div > div:first-child {
    background: #F7F9FB;
    border-bottom: 1px solid #DDE3EA !important;
    padding: 10px 16px !important;
    color: #1D3B58;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
[id$="pnComments"] > div > div + div { padding: 12px 16px !important; }

/* ---- choice card ("Please select an option below") ---- */
#pnFeedback > div,
.pn-CC {
    border: 1px solid #DDE3EA !important;
    border-radius: 12px;
    padding: 22px 24px 26px !important;
    background: #fff;
}
#pnFeedback > div > div:first-child > span:first-child {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1D3B58;
}
#chkFeedback td { padding: 3px 0; }
#chkFeedback label { color: #22303F; font-weight: 600; }
.options { margin-top: 6px; padding-top: 14px; border-top: 1px solid #E6EBF0; color: #22303F; }

#pnPP { border-top: 1px solid #DDE3EA; }

/* section bars of the card and payment plan forms */
.section-header {
    background: #1D3B58 !important;
    color: #fff;
    border-left: 5px solid #D5B053;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
}
.main-card h4, .main-card h5 { color: #1D3B58; font-weight: 700; }

/* ---- controls: teal -> navy ---- */
[type="radio"]:checked + label:after,
[type="radio"].with-gap:checked + label:after {
    background-color: #1D3B58 !important;
    border-color: #1D3B58 !important;
}
[type="radio"]:checked + label:before,
[type="radio"].with-gap:checked + label:before { border-color: #1D3B58 !important; }
[type="radio"]:not(:checked) + label:before,
[type="radio"]:not(:checked) + label:after { border-color: #8A97A5; }
input[type="radio"]:disabled:checked + label:before,
input[type="radio"]:disabled:checked + label:after {
    background-color: #1D3B58 !important;
    border-color: #1D3B58 !important;
}
[type="checkbox"]:checked + label:before {
    border-right-color: #1D3B58 !important;
    border-bottom-color: #1D3B58 !important;
}
[type="checkbox"].filled-in:checked + label:after {
    background-color: #1D3B58 !important;
    border-color: #1D3B58 !important;
}

input:not([type]):focus:not([readonly]),
input[type=text]:focus:not([readonly]),
input[type=password]:focus:not([readonly]),
input[type=email]:focus:not([readonly]),
input[type=tel]:focus:not([readonly]),
input[type=number]:focus:not([readonly]),
textarea.materialize-textarea:focus:not([readonly]),
textarea:focus:not([readonly]) {
    border-bottom-color: #1D3B58 !important;
    box-shadow: 0 1px 0 0 #1D3B58 !important;
}
input:focus:not([readonly]) + label,
textarea:focus:not([readonly]) + label { color: #1D3B58 !important; }
.select-wrapper input.select-dropdown {
    border-bottom: 1px solid #8A97A5;
    box-shadow: none;
}
.dropdown-content li > a, .dropdown-content li > span { color: #1D3B58 !important; }

textarea.height-initial {
    border: 1px solid #C9D2DC;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

/* ---- buttons ---- */
.submit-button, .ruBrowse,
.main-card .btn.btn-primary {
    background: #C31331 !important;
    border-color: #C31331 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(195, 19, 49, .22) !important;
}
.submit-button:hover, .submit-button:focus, .ruBrowse:hover,
.main-card .btn.btn-primary:hover, .main-card .btn.btn-primary:focus {
    background: #A30F28 !important;
    border-color: #A30F28 !important;
}
.submit-button { width: auto !important; min-width: 160px; padding: 0 28px !important; }
.main-card a:not(.btn) { color: #1D3B58; }

.signature-pads, #signature-pad, .attach-zone { border-color: #C9D2DC; border-radius: 10px; }
.error-message { color: #C31331; }
.payment-now-title { color: #1D3B58; }

/* ---- small screens ---- */
@media screen and (max-width: 767.98px) {
    .main-card { margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 0 16px 28px; }
    .main-card > div > .row:first-child,
    .main-card > .row:first-child { margin: 0 -16px 20px; padding: 18px 16px 16px; }
    .header-text { font-size: 19px !important; margin: 0; }
    .header-text-wrap .ml-auto { margin-left: 0 !important; }
    #imgTopLogo, #imgLogo { max-width: 230px; }
    #pnFeedback > div, .pn-CC { padding: 16px 14px 20px !important; }
}

/* ---- paper ---- */
@media print {
    body { background: #fff !important; }
    .main-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 12px; max-width: none; }
    .main-card > div > .row:first-child,
    .main-card > .row:first-child { margin: 0 0 16px; padding: 0 0 12px; background: #fff; }
}

/* secondary buttons (Clear under a signature box): outlined, so Next / Submit stay the one red action */
.main-card [id*="btnClear"].btn,
.main-card [id*="btnClear"].submit-button {
    background: #fff !important;
    border: 1px solid #1D3B58 !important;
    color: #1D3B58 !important;
    box-shadow: none !important;
    min-width: 110px;
}
.main-card [id*="btnClear"].btn:hover,
.main-card [id*="btnClear"].submit-button:hover { background: #F1F4F8 !important; }

/* phones: the quote table must not be wider than the sheet (long fee lines pushed it past the right edge) */
@media screen and (max-width: 767.98px) {
    .frm-quote-table { width: 100% !important; table-layout: fixed; }
    .frm-quote-table td, .service-table td { overflow-wrap: anywhere; word-break: normal; }
    .service-table { width: 100%; }
}
@media screen and (max-width: 767.98px) {
    .service-table td:first-child { overflow-wrap: normal; }
}
