/* ════════════════════════════════════════════════════════════════════
   Proforma RFP - "Work with us" landing page + form
   Matched to the Astra brand tokens used across the site:
     #fa5e10 primary orange   #fd6a21 orange hover
     #181f2f deep navy        #3c4553 slate body
     #f5f7f4 light section     #ecedef tinted page    #ffffff white
     #c5cbd3 / #d8dadf borders + signature offset shadow
     Lexend (headings)         Plus Jakarta Sans (body/labels/UI)
   No Elementor. Mirrors proforma-research/styles/academic.css conventions.
   ════════════════════════════════════════════════════════════════════ */

/* ── Form (scoped to .proforma-rfp so it is styled wherever the shortcode runs) ── */

.proforma-rfp {
    max-width: 100%;
}

.proforma-rfp-field {
    display: flex;
    flex-direction: column;
    margin: 0 0 1.25rem;
}

.proforma-rfp-field label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: #181f2f;
    margin-bottom: 0.45rem;
}

.proforma-rfp-req {
    color: #c0392b;
}

.proforma-rfp-hint {
    font-weight: 400;
    color: #6b7280;
}

.proforma-rfp-field input,
.proforma-rfp-field select,
.proforma-rfp-field textarea {
    width: 100%;
    padding: 0.8rem 0.85rem;
    border: 1px solid #c5cbd3;
    border-radius: 4px;
    font: inherit;
    line-height: 1.4;
    color: #3c4553;
    background: #ffffff;
}

/* Native selects clip the chosen option's text when they inherit a tall body
   line-height with custom padding. Pin the line-height, let the height be
   intrinsic, and trim the vertical padding so the control is shorter. */
.proforma-rfp-field select {
    height: auto;
    line-height: 1.3;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.proforma-rfp-field textarea {
    resize: vertical;
    min-height: 150px;
}

.proforma-rfp-field input:focus,
.proforma-rfp-field select:focus,
.proforma-rfp-field textarea:focus {
    outline: none;
    border-color: #fa5e10;
    box-shadow: 0 0 0 3px rgba(250, 94, 16, 0.15);
}

/* Primary CTA: filled variant of the site's sharp-cornered orange button */
.proforma-rfp-submit {
    margin: 0;
}

/* Matches the site button (.wp-block-file__button): 2px border, filled,
   16/32 padding, 14px Plus Jakarta Sans, uppercase, square corners. */
.proforma-rfp-submit button {
    display: inline-block;
    padding: 16px 32px;
    border: 2px solid #fa5e10;
    border-radius: 0;
    background: #fa5e10;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28em;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.proforma-rfp-submit button:hover {
    background: #fd6a21;
    border-color: #fd6a21;
}

.proforma-rfp-error {
    padding: 0.85rem 1rem;
    margin: 0 0 1.5rem;
    border-left: 4px solid #c0392b;
    background: #fcebea;
    color: #3c4553;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.proforma-rfp-thanks h3 {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    color: #181f2f;
    margin: 0 0 0.6rem;
}

.proforma-rfp-thanks p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #3c4553;
    line-height: 1.6;
    margin: 0;
}

.proforma-rfp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Page chrome (scoped to the landing page body class) ── */

/* Canvas = the site cream (--ast-global-color-4 / #f5f7f4), matching
   .ast-separate-container site-wide. (The research pages use a cooler #ecedef
   on purpose; this page matches the homepage instead.) Neutralise Astra's
   narrow content container so the full-bleed sections can break out cleanly. */
body.proforma-rfp-page {
    background-color: #f5f7f4;
}

body.proforma-rfp-page #content,
body.proforma-rfp-page #primary,
body.proforma-rfp-page .entry-content {
    background: transparent !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
}

/* Belt-and-suspenders with the ast-main-header-display meta. */
body.proforma-rfp-page .entry-header,
body.proforma-rfp-page .ast-page-title,
body.proforma-rfp-page .page-hero,
body.proforma-rfp-page .breadcrumbs-bar,
body.proforma-rfp-page .ast-breadcrumbs {
    display: none !important;
}

/* Header is transparent (site default, re-enabled via theme-transparent-header-meta)
   so it floats over the dark hero like the Elementor pages. Force white menu text so
   it reads over the black hero. Dropdown (Careers flyout) = dark-grey panel, white text. */
body.proforma-rfp-page .ast-primary-header-bar .menu-link {
    color: #ffffff !important;
}
body.proforma-rfp-page .ast-builder-menu-1 .sub-menu {
    background-color: #303640 !important;
}
body.proforma-rfp-page .ast-builder-menu-1 .sub-menu .menu-link {
    color: #ffffff !important;
}

/* Hero - full-bleed black with orange divider, 100vw break-out trick. */
body.proforma-rfp-page .prfp-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #000000;
    color: #ffffff;
    padding: 110px 24px 96px 24px;
    overflow: hidden;
}

body.proforma-rfp-page .prfp-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
}

body.proforma-rfp-page .prfp-wordmark {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border-bottom: none;
    margin-bottom: 22px;
}

body.proforma-rfp-page .prfp-wordmark:hover {
    color: #fa5e10;
}

body.proforma-rfp-page .prfp-divider {
    width: 56px;
    height: 2px;
    background-color: #fa5e10;
    border: 0;
    margin: 0 0 28px 0;
}

body.proforma-rfp-page .prfp-hero h1 {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding: 0;
    border: 0;
}

body.proforma-rfp-page .prfp-hero-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    margin: 0;
}

/* "What to expect" - white card pulled up over the hero (the research motif). */
body.proforma-rfp-page .prfp-expect {
    position: relative;
    max-width: 1000px;
    margin: -56px auto 0 auto;
    padding: 0 24px;
}

body.proforma-rfp-page .prfp-expect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border: 1px solid #d8dadf;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

body.proforma-rfp-page .prfp-expect-item {
    padding: 38px 34px;
    border-right: 1px solid #ececf0;
}

body.proforma-rfp-page .prfp-expect-item:last-child {
    border-right: 0;
}

body.proforma-rfp-page .prfp-num {
    display: block;
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fa5e10;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

body.proforma-rfp-page .prfp-expect-item h3 {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #181f2f;
    margin: 0 0 10px 0;
}

body.proforma-rfp-page .prfp-expect-item p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #3c4553;
    margin: 0;
}

/* Form section - white card on the tinted page surface. */
body.proforma-rfp-page .prfp-form {
    max-width: 760px;
    margin: 64px auto 0 auto;
    padding: 0 24px;
}

body.proforma-rfp-page .prfp-card {
    background: #ffffff;
    border: 1px solid #d8dadf;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 52px 56px;
}

body.proforma-rfp-page .prfp-card h2 {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: -0.5px;
    color: #181f2f;
    margin: 0 0 12px 0;
}

body.proforma-rfp-page .prfp-form-lead {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #3c4553;
    margin: 0 0 32px 0;
}

/* Credibility nudge - centered ghost buttons (the site's outline button). */
body.proforma-rfp-page .prfp-nudge {
    max-width: 1000px;
    margin: 56px auto 48px auto;
    padding: 0 24px;
    text-align: center;
}

body.proforma-rfp-page .prfp-nudge p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: #3c4553;
    margin: 0 0 22px 0;
}

body.proforma-rfp-page .prfp-btn-ghost {
    display: inline-block;
    margin: 0 8px;
    padding: 16px 32px;
    border: 2px solid #fa5e10;
    border-radius: 0;
    color: #fa5e10;
    background: transparent;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
}

body.proforma-rfp-page .prfp-btn-ghost:hover {
    background: #fa5e10;
    color: #ffffff;
}

/* Closing strip: brand tagline + office locations (migrated from the old
   contact page so they are not lost when it is retired). */
body.proforma-rfp-page .prfp-offices {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 90px 24px;
    text-align: center;
}

body.proforma-rfp-page .prfp-tagline {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #181f2f;
    margin: 0 0 8px 0;
}

body.proforma-rfp-page .prfp-offices-line {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ── Responsive ── */
/* Tablet portrait + large phones: stack the 3-up and scale the hero.
   iPad portrait is 768px, so the desktop 3-column band must end above it. */
@media (max-width: 980px) {
    body.proforma-rfp-page .prfp-hero {
        padding: 92px 24px 80px 24px;
    }
    body.proforma-rfp-page .prfp-hero h1 {
        font-size: 44px;
    }
    body.proforma-rfp-page .prfp-hero-sub {
        font-size: 17px;
    }
    body.proforma-rfp-page .prfp-expect {
        margin-top: -44px;
    }
    body.proforma-rfp-page .prfp-expect-grid {
        grid-template-columns: 1fr;
    }
    body.proforma-rfp-page .prfp-expect-item {
        border-right: 0;
        border-bottom: 1px solid #ececf0;
    }
    body.proforma-rfp-page .prfp-expect-item:last-child {
        border-bottom: 0;
    }
}

/* Phones: finer tuning on top of the tablet rules above. */
@media (max-width: 760px) {
    body.proforma-rfp-page .prfp-hero {
        padding: 72px 20px 58px 20px;
    }
    body.proforma-rfp-page .prfp-hero h1 {
        font-size: 34px;
    }
    body.proforma-rfp-page .prfp-hero-sub {
        font-size: 16px;
    }
    body.proforma-rfp-page .prfp-expect {
        margin-top: -34px;
        padding: 0 16px;
    }
    body.proforma-rfp-page .prfp-expect-item {
        padding: 28px 24px;
    }
    body.proforma-rfp-page .prfp-form {
        margin-top: 44px;
        padding: 0 16px;
    }
    body.proforma-rfp-page .prfp-card {
        padding: 34px 22px;
    }
    body.proforma-rfp-page .prfp-card h2 {
        font-size: 24px;
    }
    body.proforma-rfp-page .prfp-nudge .prfp-btn-ghost {
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }
}
