/* CAIZUN V12.2 / modal-only skin. Loaded AFTER common_modal.css.
   Scoped to the homepage modal only: all other pages and inquiry forms are unchanged. */
body.cz-home-2026 #md_feedback {
    --cz-modal-ink: #141414;
    --cz-modal-muted: #717171;
    font-family: var(--cz-font-sans, "Poppins", Arial, sans-serif);
    color: var(--cz-modal-ink);
}
body.cz-home-2026 #md_feedback .modal-dialog {
    max-width: 1040px;
    width: calc(100% - 2rem);
    margin: 1rem auto;
}
body.cz-home-2026 #md_feedback .modal-content {
    position: relative;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2rem 6rem rgba(0,0,0,.34);
}
body.cz-home-2026 #md_feedback .modal-body {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__layout { min-height: 580px; }
body.cz-home-2026 #md_feedback .cz-quote-modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.15rem;
    left: auto;
    z-index: 20;
    box-sizing: border-box;
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    padding: .75rem;
    border: 1px solid #dedede;
    border-radius: 0;
    background-color: #fff;
    background-size: 35%;
    filter: none;
    opacity: 1;
    transition: background-color .2s, opacity .2s;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__close::before { display: none; }
body.cz-home-2026 #md_feedback .cz-quote-modal__close:hover { background-color: #f0f0f0; opacity: 1; }
body.cz-home-2026 #md_feedback .cz-quote-modal__close:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    background:
      radial-gradient(ellipse 80% 45% at 90% 100%, rgba(183,158,124,.16), transparent 72%),
      linear-gradient(125deg, #262626 0%, #101010 70%);
    color: #fff;
    position: relative;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__brand { min-height: 3rem; }
body.cz-home-2026 #md_feedback .cz-quote-modal__brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 9.5rem;
    max-height: 3.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
body.cz-home-2026 #md_feedback .cz-quote-modal__brand strong {
    font-size: 1.375rem;
    letter-spacing: .05em;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body { margin-top: auto; }
body.cz-home-2026 #md_feedback .cz-quote-modal__eyebrow {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .15em;
    line-height: 1.5;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside .cz-quote-modal__eyebrow { color: #c9bbaa; }
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-title {
    margin: 1.4rem 0 1.2rem;
    max-width: 17rem;
    color: #fff;
    font-family: var(--cz-font-serif, Georgia, serif);
    font-size: clamp(2.125rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.035em;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body > p {
    max-width: 18rem;
    margin: 0;
    color: #c3c3c3;
    font-size: .8125rem;
    line-height: 1.9;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact {
    display: grid;
    gap: .8rem;
    padding-top: 1.4rem;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.18);
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact > div { display: flex; flex-direction: column; gap: .15rem; }
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact span {
    color: #a8a8a8;
    font-size: .625rem;
    letter-spacing: .12em;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact a {
    color: #eee;
    font-size: .8125rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact a:hover { color: #c9bbaa; }
body.cz-home-2026 #md_feedback .cz-quote-modal__panel {
    padding: clamp(2rem, 3.8vw, 3.5rem);
    padding-top: clamp(3.5rem, 5vw, 4.1rem);
    background: #fff;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__heading { margin: 0 0 1.4rem; }
body.cz-home-2026 #md_feedback .cz-quote-modal__heading .cz-quote-modal__eyebrow { color: #8c8c8c; }
body.cz-home-2026 #md_feedback .cz-quote-modal__heading h2 {
    margin: .65rem 0 .5rem;
    color: #141414;
    font-family: var(--cz-font-serif, Georgia, serif);
    font-size: clamp(1.875rem, 2.8vw, 2.625rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.2;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__heading p {
    margin: 0;
    color: var(--cz-modal-muted);
    font-size: .8125rem;
    line-height: 1.6;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__iframe {
    display: none;
    width: 1px;
    height: 1px;
    border: 0;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__form .row { margin-top: 0; }
body.cz-home-2026 #md_feedback .cz-quote-modal__form label {
    display: block;
    margin: 0 0 .45rem;
    color: #303030;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__form label span { color: #a15448; }
body.cz-home-2026 #md_feedback .cz-quote-modal__form .form-control {
    min-height: 2.75rem;
    padding: .6875rem .85rem;
    border: 1px solid #dedede;
    border-radius: 0;
    background: #f9f9f8;
    box-shadow: none;
    color: #202020;
    font-family: var(--cz-font-sans, Arial, sans-serif);
    font-size: .8125rem;
    line-height: 1.5;
    transition: border-color .2s, background-color .2s;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__form .form-control::placeholder { color: #999; opacity: 1; }
body.cz-home-2026 #md_feedback .cz-quote-modal__form .form-control:focus {
    outline: none;
    border-color: #191919;
    background: #fff;
    box-shadow: 0 0 0 1px #191919;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__form textarea.form-control {
    min-height: 7.25rem;
    resize: vertical;
}
/* Neutral valid controls: legacy common_modal.css adds green icons on valid input. */
body.cz-home-2026 #md_feedback .was-validated .form-control:valid {
    border-color: #dedede;
    padding-right: .85rem;
    background-image: none;
    box-shadow: none;
}
body.cz-home-2026 #md_feedback .was-validated .form-control:invalid {
    border-color: #b14747;
    background-image: none;
    padding-right: .85rem;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__form .invalid-feedback {
    display: none;
    visibility: visible;
    margin: .35rem 0 0;
    padding: 0;
    font-size: .6875rem;
    color: #ae3737;
}
body.cz-home-2026 #md_feedback .was-validated .form-control:invalid ~ .invalid-feedback { display: block; }
body.cz-home-2026 #md_feedback .cz-quote-modal__product {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .65rem;
    margin: 0 0 1.15rem;
    border: 1px solid #dedede;
    background: #f8f8f7;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__product[hidden] { display: none !important; }
body.cz-home-2026 #md_feedback .cz-quote-modal__product img {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0;
    object-fit: contain;
    background: #fff;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__product-kicker {
    display: block;
    margin-bottom: .25rem;
    color: #797979;
    font-size: .625rem;
    letter-spacing: .1em;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__product .fb-p-name {
    color: #202020;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.5;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__server-errors {
    margin: .5rem 0 0;
    padding: 0;
    color: #b14747;
    font-size: .75rem;
    line-height: 1.65;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__server-errors > div:empty { display: none; }
body.cz-home-2026 #md_feedback .cz-quote-modal__submit {
    display: inline-flex;
    width: 100%;
    min-height: 3rem;
    margin: 1.25rem 0 0;
    padding: .85rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-family: var(--cz-font-sans, Arial, sans-serif);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}
body.cz-home-2026 #md_feedback .cz-quote-modal__submit:hover { background: #333; }
body.cz-home-2026 #md_feedback .cz-quote-modal__submit:disabled { opacity: .65; cursor: wait; }
body.cz-home-2026 #md_feedback .cz-quote-modal__submit:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
body.cz-home-2026 #md_feedback .cz-quote-modal__submit-arrow { font-size: 1rem; line-height: 1; }
body.cz-home-2026 #md_feedback .cz-quote-modal__footnote {
    margin: .65rem 0 0;
    color: #858585;
    font-size: .6875rem;
    line-height: 1.4;
}
@media (max-width: 991.98px) {
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside { gap: 1.25rem; padding: 1.5rem 2rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body { margin: 0; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-title { margin: .65rem 0; max-width: 100%; font-size: 2rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body > p { max-width: 37rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact { display: none; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__panel { padding: 1.75rem 2rem 2rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__layout { min-height: 0; }
}
@media (max-width: 575.98px) {
    body.cz-home-2026 #md_feedback .modal-dialog { width: auto; margin: .5rem; }
    body.cz-home-2026 #md_feedback .modal-content { max-height: calc(100dvh - 1rem); }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside { padding: 1.2rem 1.25rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__brand { min-height: 0; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__brand img { max-height: 2rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-title { font-size: 1.625rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body > p { font-size: .75rem; line-height: 1.6; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__panel { padding: 1.35rem 1.15rem 1.6rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__heading h2 { font-size: 1.75rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__close { top: .75rem; right: .75rem; width: 2.15rem; height: 2.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.cz-home-2026 #md_feedback * { transition: none !important; }
}


/* ====================================================================
   V12.3 / Compact desktop & laptop modal
   Fix 1: Header/toolbar were above the Bootstrap modal overlay.
   Fix 2: Reduce vertical space for 14–16 inch laptops.
   Fix 3: Keep the entire form scrollable on genuinely short screens.
   Scoped to the homepage quote modal only; CMS form behavior unchanged.
   ==================================================================== */
/* Bootstrap modal/backdrop must cover the homepage header (z-index:1200). */
body.cz-home-2026 #md_feedback { z-index: 1400; }
body.cz-home-2026:has(#md_feedback.show) > .modal-backdrop { z-index: 1390; }
/* Compatibility fallback if :has() is unsupported: lower header only during modal-open. */
body.cz-home-2026.modal-open .cz-home-header { z-index: 1040; }

/* The modal itself never extends beyond the visible screen. */
body.cz-home-2026 #md_feedback .modal-dialog {
    --bs-modal-margin: .75rem;
}
body.cz-home-2026 #md_feedback .modal-content {
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
}
body.cz-home-2026 #md_feedback .modal-body {
    min-height: 0;
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
}
/* Reduce excess height on desktop even when the user has a tall screen. */
@media (min-width: 992px) {
    body.cz-home-2026 #md_feedback .modal-dialog { max-width: 980px; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__layout { min-height: 0; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside {
        padding: 2rem 2.25rem;
        gap: 1.25rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__brand {
        min-height: 2.5rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__brand img {
        max-height: 2.75rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-title {
        margin: .9rem 0 .8rem;
        font-size: clamp(2rem, 2.7vw, 2.5rem);
        line-height: 1.13;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body > p {
        font-size: .8125rem;
        line-height: 1.65;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact {
        gap: .55rem;
        padding-top: .9rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__panel {
        padding: 2.25rem 2.5rem 2rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__heading {
        margin-bottom: 1rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__heading h2 {
        margin: .35rem 0 .3rem;
        font-size: 2.125rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form .row.g-3 {
        --bs-gutter-y: .875rem;
        --bs-gutter-x: 1rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form label {
        margin-bottom: .3rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form .form-control {
        min-height: 2.5rem;
        padding: .55rem .75rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form textarea.form-control {
        min-height: 5.25rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__submit {
        min-height: 2.75rem;
        margin-top: .875rem;
        padding: .65rem 1rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__footnote {
        margin-top: .4rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__close {
        top: .75rem;
        right: .75rem;
        width: 2.15rem;
        height: 2.15rem;
    }
}

/* Short laptop displays, e.g. 1366×768, 1440×800. */
@media (min-width: 992px) and (max-height: 850px) {
    body.cz-home-2026 #md_feedback .modal-dialog {
        --bs-modal-margin: .6rem;
        max-width: 960px;
        margin-top: .6rem;
        margin-bottom: .6rem;
    }
    body.cz-home-2026 #md_feedback .modal-content {
        max-height: calc(100vh - 1.2rem);
        max-height: calc(100dvh - 1.2rem);
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside {
        padding: 1.45rem 1.9rem;
        gap: .75rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__brand {
        min-height: 2rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__brand img { max-height: 2.15rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-title {
        margin: .55rem 0 .5rem;
        font-size: 1.9rem;
        line-height: 1.11;
        max-width: 15rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-body > p {
        font-size: .75rem;
        line-height: 1.5;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact {
        gap: .4rem;
        padding-top: .65rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact > div { gap: 0; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact a { font-size: .75rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__panel {
        padding: 1.45rem 1.9rem 1.25rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__heading {
        margin-bottom: .75rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__heading h2 {
        font-size: 1.875rem;
        margin: .2rem 0 .2rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__heading p { font-size: .75rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form .row.g-3 { --bs-gutter-y: .65rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form label {
        font-size: .71875rem;
        margin-bottom: .2rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form .form-control {
        min-height: 2.375rem;
        padding: .45rem .65rem;
        font-size: .75rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__form textarea.form-control {
        min-height: 4.75rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__product {
        padding: .45rem;
        margin-bottom: .55rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__product img {
        width: 3rem;
        height: 3rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__submit {
        min-height: 2.5rem;
        margin-top: .65rem;
        padding: .55rem .9rem;
    }
    body.cz-home-2026 #md_feedback .cz-quote-modal__footnote {
        margin-top: .25rem;
        font-size: .625rem;
    }
}
/* Extra-short windows keep scrolling rather than hiding errors / submission. */
@media (min-width: 992px) and (max-height: 620px) {
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-title { font-size: 1.65rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__aside-contact { gap: .2rem; }
    body.cz-home-2026 #md_feedback .cz-quote-modal__panel { padding-top: 1.1rem; }
}
/* On small devices preserve V12.2 mobile layout while matching viewport height. */
@media (max-width: 991.98px) {
    body.cz-home-2026 #md_feedback .cz-quote-modal__layout { min-height: 0; }
    body.cz-home-2026 #md_feedback .modal-content {
        max-height: calc(100dvh - 1.5rem);
    }
}
@media (max-width: 575.98px) {
    body.cz-home-2026 #md_feedback .modal-content { max-height: calc(100dvh - 1rem); }
}
