/* =========================================================
   PRINCE KHALID ALFAISAL CENTER — CONTACT PAGE
   Optimized stylesheet (prefix: pkf-)
========================================================= */

/* ---------- 1. BASE ---------- */
.pkf-page {
    color: #071a43;
    font-family: inherit;
    overflow: hidden;
}

.pkf-page * {
    box-sizing: border-box;
}

.pkf-container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- 2. TYPOGRAPHY ---------- */
.pkf-page h1,
.pkf-page h2 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #071a43 !important;
    margin-top: 0;
}

.pkf-page h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #071a43 !important;
    margin-top: 0;
}

.pkf-page p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.85;
    color: #071a43 !important;
}

.pkf-page .pkf-eyebrow {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #071a43 !important;
    margin-bottom: 16px;
}

/* ---------- 3. SECTIONS ---------- */
.pkf-section {
    padding: 95px 0;
}

.pkf-heading {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.pkf-heading h2 {
    margin-bottom: 20px;
}

/* ---------- 4. BUTTONS ---------- */
.pkf-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 53px;
    padding: 15px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.pkf-btn-primary {
    background: #80e387;
    border: 2px solid #80e387;
    color: #071a43 !important;
}

.pkf-btn-primary:hover {
    background: transparent;
    border-color: #071a43;
}

.pkf-btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

.pkf-btn-outline:hover {
    background: #ffffff;
    color: #071a43 !important;
}

/* ---------- 5. HERO ---------- */
.pkf-hero {
    min-height: 710px;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.pkf-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.pkf-hero h1 {
    color: #ffffff !important;
    margin-bottom: 24px;
}

.pkf-hero p {
    color: #ffffff !important;
    max-width: 700px;
}

.pkf-hero .pkf-eyebrow {
    color: #80e387 !important;
}

.pkf-hero-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 40px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    border-top: 4px solid #80e387;
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.pkf-page .pkf-hero-card h3 {
    color: #ffffff !important;
    margin-bottom: 10px;
    font-size: 28px;
}

/* ---------- 6. INQUIRY / MACHFORM ---------- */
.pkf-inquiry {
    background: #f5faf4;
}

.pkf-machform {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
   
}

.pkf-machform iframe {
    display: block;
    width: 100%;
    min-height: 1600px;
    border: none;
    margin: 0;
    padding: 0;
}

/* ---------- 7. REACH (EMAIL + PHONE) ---------- */
.pkf-reach {
    background: #ffffff;
}

.pkf-grid {
    display: grid;
    gap: 24px;
}

.pkf-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pkf-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 45px;
    background: #f5faf4;
    border: 1px solid #e7ece9;
    border-top: 4px solid #80e387;
    border-radius: 14px;
    transition: all .3s ease;
}

.pkf-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(7,26,67,.09);
}

.pkf-card h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.pkf-card p {
    margin: 0 0 28px;
}

.pkf-contact-line {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 700;
    word-break: break-word;
}

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 991px) {

    .pkf-page h1,
    .pkf-page h2 {
        font-size: 42px;
    }

    .pkf-section {
        padding: 70px 0;
    }

    .pkf-hero {
        min-height: auto;
        padding: 80px 0;
    }

    .pkf-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pkf-card h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {

    .pkf-page h1,
    .pkf-page h2 {
        font-size: 32px;
    }

    .pkf-page h3 {
        font-size: 22px;
    }

    .pkf-section {
        padding: 60px 0;
    }

    .pkf-hero {
        padding: 70px 0;
    }

    .pkf-hero-card {
        padding: 28px 22px;
    }

    .pkf-grid-2 {
        grid-template-columns: 1fr;
    }

    .pkf-card {
        padding: 30px 22px;
    }

    .pkf-card h2 {
        font-size: 28px;
    }
}

/* ---------- 9. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {

    .pkf-btn,
    .pkf-card {
        transition: none;
    }
}






/* =========================================
   PKF INQUIRY POPUP
========================================= */

#pkf-inquiry-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#pkf-inquiry-modal.active {
    display: flex !important;
}

/* Background overlay */
#pkf-inquiry-modal .pkf-modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

/* Popup container */
#pkf-inquiry-modal .pkf-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;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25) !important;

    /* Internal padding */
    padding: 30px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
}

/* MachForm iframe */
#pkf-inquiry-modal iframe {
    display: block !important;
    width: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Close button */
#pkf-inquiry-modal .pkf-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    z-index: 10 !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 50% !important;
    background: #071a43 !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

#pkf-inquiry-modal .pkf-modal-close:hover {
    background: #80e387 !important;
    color: #071a43 !important;
}

/* Prevent background scrolling */
body.pkf-modal-open {
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 600px) {

    #pkf-inquiry-modal {
        padding: 8px !important;
    }

    #pkf-inquiry-modal .pkf-modal-content {
        width: 100% !important;
        height: 95vh !important;
        padding: 15px !important;
        border-radius: 8px !important;
    }

    #pkf-inquiry-modal .pkf-modal-close {
        top: 8px !important;
        right: 8px !important;
    }
}