/* =========================================================
   PKB ADDITIONS — add at the END of your existing pkb stylesheet
   Everything else on the page reuses your current pkb- classes.
========================================================= */


/* =====================================
   HERO VARIANT: FULL IMAGE BACKGROUND HERO
   (Advanced Manufacturing page)
   Future pages: reuse this file's pattern and
   create a new hero (pkb-hero-xxx) per page.
===================================== */

.pkb-hero-dark {
    position: relative;
    min-height: 710px;
    display: flex;
    align-items: center;
    padding: 110px 0;
    background: #071a43;
    overflow: hidden;
}

.pkb-hero-dark-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pkb-hero-dark-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pkb-hero-dark-bg::after {
    content: "";
    position: absolute;
    inset: 0;
background: linear-gradient(
    180deg,
    rgba(5,20,51,.65),
    rgba(5,20,51,.90) 100%
);
}

.pkb-hero-dark-container {
    width: 100%;
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
}

.pkb-hero-dark-content {
    max-width: 740px;
}

.pkb-page .pkb-hero-dark .pkb-eyebrow {
    color: #80e387 !important;
    font-size: 14px;
    margin-bottom: 22px;
    padding-left: 18px;
    border-left: 4px solid #80e387;
    line-height: 1;
}

.pkb-page .pkb-hero-dark h1 {
    color: #ffffff !important;
    font-size: 52px;
    line-height: 1.15;
    margin: 0 0 25px;
}

.pkb-page .pkb-hero-dark-content p {
    color: rgba(255,255,255,.85) !important;
    font-size: 18px;
    line-height: 1.85;
    margin: 0 0 35px;
}

@media (max-width: 991px) {
    .pkb-hero-dark { min-height: 540px; padding: 80px 0; }
    .pkb-page .pkb-hero-dark h1 { font-size: 40px; }
}

@media (max-width: 767px) {
    .pkb-hero-dark { min-height: 480px; padding: 60px 0; }
    .pkb-hero-dark-container { padding: 0 20px; }
    .pkb-page .pkb-hero-dark h1 { font-size: 32px; }
    .pkb-page .pkb-hero-dark-content p { font-size: 16px; }
}


/* =====================================
   SMALL HELPERS
===================================== */

/* Centered tags (materials & expertise) */
.pkb-tags-center { justify-content: center; gap: 12px; }
.pkb-tags-center li { font-size: 16px; padding: 11px 22px; }

.pkb-card-center { text-align: center; }

/* 4-column grid (stats) */
.pkb-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Big stat tile */
.pkb-stat { padding: 34px 20px; }
.pkb-stat strong { font-size: 46px; line-height: 1.1; }
.pkb-stat span { font-size: 15px; opacity: 1; }

.pkb-footnote { text-align: center; font-size: 14px !important; margin: 25px 0 0; opacity: .8; }

/* Facilities highlight (118 labs) */
.pkb-highlight {
    display: flex;
    align-items: center;
    gap: 45px;
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 45px;
    background: #f5faf4;
    border-left: 4px solid #80e387;
    border-radius: 12px;
}
.pkb-highlight-num {
    flex-shrink: 0;
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    color: #071a43;
}
.pkb-highlight-num small {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.4;
}
.pkb-highlight p { margin: 0 0 14px; font-size: 17px; line-height: 1.8; }
.pkb-highlight p:last-child { margin-bottom: 0; }

/* Numbered process cards: make room for the number circle */
@media (min-width: 601px) {
    .pkb-process .pkb-card-num { }
}


/* =====================================
   CONTACT / ENQUIRY FORM
===================================== */

.pkb-contact { background: #f5faf4; padding: 95px 0; }

.pkb-contact-layout {
    display: grid;
    gap: 40px;
    align-items: start;
}

.pkb-contact-intro h2 { margin: 0 0 20px; }
.pkb-contact-intro p { margin: 0; }

.pkb-form {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
}

.pkb-form #mf_placeholder {
    width: 100%;
}

@media (max-width: 991px) {
    .pkb-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pkb-contact { padding: 70px 0; }
    .pkb-contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .pkb-highlight { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; }
}

@media (max-width: 600px) {
    .pkb-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pkb-stat strong { font-size: 34px; }
    .pkb-contact { padding: 60px 0; }
    .pkb-form { grid-template-columns: 1fr; padding: 24px 18px; }
    .pkb-highlight { padding: 24px 20px; }
    .pkb-highlight-num { font-size: 60px; }
    .pkb-tags-center li { font-size: 14px; padding: 8px 16px; }
}



/* =========================================
   PKB CONTACT FORM POPUP
========================================= */

html body #pkb-contact-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Hide popup by default */
html body #pkb-contact-modal[aria-hidden="true"] {
    display: none !important;
}

/* Show popup when opened */
html body #pkb-contact-modal[aria-hidden="false"] {
    display: flex !important;
}

/* Background overlay */
#pkb-contact-modal .pkb-modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

/* Popup content */
#pkb-contact-modal .pkb-modal-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 850px !important;
    height: 90vh !important;
    max-height: 900px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: auto !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25) !important;
}

/* MachForm */
#pkb-contact-modal iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Close button */
#pkb-contact-modal .pkb-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    z-index: 10 !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #071a43 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    cursor: pointer !important;
    padding: 0 !important;
}

#pkb-contact-modal .pkb-modal-close:hover {
    background: #80e387 !important;
    color: #071a43 !important;
}

body.pkb-modal-open {
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 600px) {
    html body #pkb-contact-modal {
        padding: 8px !important;
    }

    #pkb-contact-modal .pkb-modal-content {
        height: 95vh !important;
        max-height: 95vh !important;
    }
}

/* Remove old form container styling */
.pkb-contact .pkb-form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Keep the button as a standalone button */
.pkb-contact .pkb-form .pkb-btn {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    margin: 0 !important;
}

/* =========================================
   PKB POPUP - INTERNAL PADDING
========================================= */

#pkb-contact-modal .pkb-modal-content {
    padding: 30px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

#pkb-contact-modal iframe {
    width: 100% !important;
    height: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 600px) {

    #pkb-contact-modal .pkb-modal-content {
        padding: 15px !important;
    }

}