/*
 * whitepaper.css — whitepaper-template-only styles.
 *
 * Why this file exists: the blog single PurgeCSS bundle (blog-single.min.css)
 * is built from a content sample that contains no whitepaper-template post, and
 * these classes are not in assets/css/blog-safelist.txt, so PurgeCSS drops every
 * whitepaper-only rule (the `Find inside` gallery grid, the whitepaper hero
 * columns, and the thank-you popup). On the single whitepaper post that breaks
 * the layout (the SVG cards collapse to natural size).
 *
 * Rules below are copied verbatim from the theme source (css/general.css,
 * css/blog.css) and scoped to `.whitepaper-article` (or the whitepaper popup
 * ids). Enqueued ONLY on whitepaper posts and AFTER litslink-blog-bundle, so the
 * cascade matches the original source order. See inc/blog-perf.php
 * (blog_perf_consolidate_css).
 */

/* ---- hero ---- */
.whitepaper-article section.hero .hero-row .hero-text-col {
    max-width: 851px;
    padding-right: 0;
}

/* ---- "Find inside" gallery (the visible breakage) ---- */
.whitepaper-article section.find-inside .section-inner {
    max-width: 1312px;
    padding: 60px 0 70px;
}

.whitepaper-article section.find-inside .container {
    padding-left: 0;
    padding-right: 0;
}

.whitepaper-article section.find-inside h2 {
    font-size: 40px;
    font-weight: bold;
    line-height: 60px;
    margin-bottom: 30px;
}

.whitepaper-article section.find-inside .find-inside-block {
    height: 240px;
    width: 240px;
    border: 1px solid #C1CEDE;
    border-radius: 4px;
    margin: 8px;
    padding: 25px 20px 15px;
}

.whitepaper-article section.find-inside .find-inside-block .inside-image {
    height: 70px;
    width: 80px;
    margin: 0 auto 20px;
}

/* ---- contact form (whitepaper variant) ---- */
.whitepaper-article section.contact-form {
    /* Absolute theme path (this file lives in assets/css/, not css/, so the
       original `../blog-images/...` relative URL would not resolve). Matches the
       form blog-single.min.css already uses. */
    background: url(/wp-content/themes/litslink/blog-images/bg_whitepaper.svg);
    background-size: cover;
}

.whitepaper-article section.contact-form .contact-form-header {
    background: none;
}

.whitepaper-article section.contact-form .contact-form-header .section-inner {
    padding-bottom: 0;
}

.whitepaper-article section.contact-form .contact-form-header h2 {
    font-weight: bold;
    font-size: 45px;
    line-height: 60px;
}

.whitepaper-article section.contact-form .field-input input,
.whitepaper-article section.contact-form .field-input textarea,
.whitepaper-article section.contact-form .field-input input::placeholder,
.whitepaper-article section.contact-form .field-input textarea::placeholder,
.whitepaper-article section.contact-form .field-input select,
.whitepaper-article section.contact-form .iti__selected-dial-code {
    color: white;
}

.whitepaper-article section.contact-form .field-input select option {
    color: #000000;
}

/* The privacy-notice line below the fields (the surrounding text; the inline
   <a> keeps its own link colour) — white on the dark form. */
.whitepaper-article section.contact-form .text-center.p-0 {
    color: #fff;
}

/* Field spacing lives on the WRAPPER, not the field itself, so the validation
   tip (.wpcf7-not-valid-tip — absolutely positioned at the bottom of
   .field-input) sits directly under the field instead of being pushed far down
   by the field's own bottom margin. */
.whitepaper-article section.contact-form .field-input {
    position: relative;
    margin-bottom: 32px;
}
.whitepaper-article section.contact-form .field-input input,
.whitepaper-article section.contact-form .field-input .iti--separate-dial-code {
    margin-bottom: 0;
}
.whitepaper-article section.contact-form .field-input .wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    line-height: 18px;
    font-size: 0.8rem;
}

/* message textarea + menu-857 select.
   general.css styles `input, select, textarea` together (background:transparent,
   border-bottom underline, etc.) but PurgeCSS keeps only the `input` selector for
   the blog bundle — the sampled blog pages have <input> (search) but no <textarea>
   / <select> — so on the whitepaper form these two fall back to the default white
   box. Restore the base look (copied from css/general.css :304-341) here. */
.whitepaper-article section.contact-form .field-input textarea {
    background: transparent;
    border: 1px solid white;
    border-radius: 0;
    padding: 12px;
}

.whitepaper-article section.contact-form .field-input select {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #C1CEDE;
    border-radius: 0;
    padding: 4px 0;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(/wp-content/themes/litslink/main_images/arrow_dd_white.svg);
    background-repeat: no-repeat;
    background-position: 99% 50%;
}

@media screen and (max-width: 768px) {
    .whitepaper-article section.contact-form .contact-form-header h2 {
        font-size: 30px;
        line-height: 45px;
    }
}

/* ---- post-submit thank-you popup ---- */
.whitepaper-success {
    display: none;
}

.whitepaper_main_popup_background {
    z-index: 11;
    position: absolute;
    opacity: 0.6;
    background-color: #000000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

.whitepaper_main_popup {
    margin: 0 auto;
    max-width: 540px;
    padding: 59px;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 30px 40px 100px 20px rgba(0, 0, 0, 0.07);
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 0;
    right: 0;
    display: none;
    z-index: 12;
}

.whitepaper_main_popup .whitepaper_thanks_img {
    max-width: 160px;
}

.whitepaper_main_popup .close {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

.whitepaper_main_popup .close:before,
.whitepaper_main_popup .close:after {
    position: absolute;
    left: 9px;
    top: -2px;
    content: "";
    height: 25px;
    width: 2px;
    background-color: #657195;
}

.whitepaper_main_popup .close:before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.whitepaper_main_popup .close:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.whitepaper_thanks {
    text-align: center;
}

.whitepaper_thanks_img {
    margin-bottom: 25px;
}

.whitepaper_thanks_title {
    font-size: 30px;
    font-weight: bold;
    line-height: 37px;
    margin: 0 0 25px;
    color: #16172f;
}

.whitepaper_thanks_text {
    font-size: 18px;
    line-height: 30px;
    margin: 0;
    color: #303030;
}

.whitepaper_thanks_link {
    display: inline-block;
    margin-top: 50px;
    text-decoration: underline;
    color: #1690D3;
    font-size: 18px;
    line-height: 30px;
}
