/* =============================================================
   GFI Landing Page — Climate Jobs Portal
   Scoped: .gfi-lp-*
   ============================================================= */

/* ── Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --lp-accent:      #4ecca3;
    --lp-accent-dark: #3db892;
    --lp-accent-soft: rgba(78,204,163,.10);
    --lp-ink:         #0d1117;
    --lp-text:        #374151;
    --lp-muted:       #6b7280;
    --lp-line:        #e5e7eb;
    --lp-surface:     #ffffff;
    --lp-bg:          #ffffff;
}

/* ── Page wrapper ───────────────────────────────────────────── */
.page-template-template-job-seeker-landing-php .entry-title,
.page-template-template-job-seeker-landing-php .entry-header {
    display: none !important;
}

/* Prevent overlap with fixed header */
body[class*="job-seeker-landing"] #main {
    padding-top: var(--gfi-js-header-offset, 96px) !important;
}

.gfi-lp-page {
    font-family: 'Inter', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.gfi-lp-page *,
.gfi-lp-page *::before,
.gfi-lp-page *::after {
    box-sizing: border-box;
}

/* ── Hero section ───────────────────────────────────────────── */
.gfi-lp-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 72px;
    align-items: start;
}

/* ── Left column ────────────────────────────────────────────── */
.gfi-lp-left {}

.gfi-lp-headline {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--lp-ink);
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.gfi-lp-tagline {
    font-size: 16px;
    color: var(--lp-muted);
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 480px;
}

.gfi-lp-mobile-cta {
    display: none;
    width: fit-content;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #0d1117;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(78, 204, 163, .24);
}

/* ── Stat badges ────────────────────────────────────────────── */
.gfi-lp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.gfi-lp-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px;
    background: var(--lp-surface);
    border: 1.5px solid var(--lp-line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    min-width: 120px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gfi-lp-stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--lp-ink);
    line-height: 1;
    margin-bottom: 4px;
}

.gfi-lp-stat-label {
    font-size: 12px;
    color: var(--lp-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ── Sample jobs ────────────────────────────────────────────── */
.gfi-lp-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin: 0 0 16px;
}

.gfi-lp-jobs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 48px;
}

.gfi-lp-job-card {
    background: var(--lp-surface);
    border: 1.5px solid var(--lp-line);
    border-radius: 14px;
    padding: 18px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gfi-lp-job-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--lp-bg);
    border: 1px solid var(--lp-line);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-accent-dark);
    flex-shrink: 0;
}

.gfi-lp-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gfi-lp-job-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-ink);
    line-height: 1.3;
    margin: 0;
}

.gfi-lp-job-meta {
    font-size: 12px;
    color: var(--lp-muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gfi-lp-job-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: var(--lp-accent-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lp-accent-dark);
    width: fit-content;
}

/* ── Companies ──────────────────────────────────────────────── */
.gfi-lp-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gfi-lp-company-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--lp-surface);
    border: 1.5px solid var(--lp-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text);
    text-decoration: none;
    white-space: nowrap;
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gfi-lp-company-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--lp-line);
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--lp-accent-dark);
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.gfi-lp-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfi-lp-company-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--lp-muted);
    padding: 8px 4px;
}

/* ── Right column — Sticky form card ───────────────────────── */
.gfi-lp-right {
    position: sticky;
    top: 96px;
}

.gfi-lp-form-card {
    background: var(--lp-surface);
    border: 1.5px solid var(--lp-line);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
    scroll-margin-top: 120px;
}

.gfi-lp-form-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--lp-ink);
    margin: 0 0 24px;
    line-height: 1.3;
}

.gfi-lp-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.gfi-lp-form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-ink);
}

.gfi-lp-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--lp-line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--lp-ink);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    appearance: none;
    -webkit-appearance: none;
}

.gfi-lp-input::placeholder { color: #9ca3af; }

.gfi-lp-input:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px rgba(78,204,163,.18);
}

.gfi-lp-submit-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: #4ecca3 !important; /* Forced exact color */
    color: #000;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: background .18s, box-shadow .18s, transform .12s;
}

.gfi-lp-submit-btn:hover {
    background: #3db892 !important; /* Forced darker hover state */
    box-shadow: 0 6px 20px rgba(78,204,163,.35);
}

.gfi-lp-submit-btn:active { transform: scale(.98); }

.gfi-lp-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}

.gfi-lp-submit-btn svg { flex-shrink: 0; }

.gfi-lp-free-note {
    text-align: center;
    font-size: 12px;
    color: var(--lp-muted);
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gfi-lp-free-note svg { color: var(--lp-accent); }

/* ── Form notice ────────────────────────────────────────────── */
.gfi-lp-notice {
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: none;
}

.gfi-lp-notice.is-error {
    display: block;
    background: #fff6f6;
    border: 1px solid #efc3c3;
    color: #a33a3a;
}

.gfi-lp-notice.is-success {
    display: block;
    background: #f0fdf9;
    border: 1px solid rgba(78,204,163,.45);
    color: #17604a;
    text-align: center;
}

/* ── Success state ──────────────────────────────────────────── */
.gfi-lp-success-card {
    display: none;
    text-align: center;
    padding: 12px 0;
}

.gfi-lp-success-card.is-visible { display: block; }

.gfi-lp-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--lp-accent-soft);
    border: 2px solid rgba(78,204,163,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--lp-accent);
}

.gfi-lp-success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--lp-ink);
    margin: 0 0 12px;
}

.gfi-lp-success-sub {
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.7;
    margin: 0;
}

.gfi-lp-success-email {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--lp-accent-soft);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-accent-dark);
}

/* ── Loading spinner ────────────────────────────────────────── */
.gfi-lp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0,0,0,.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: lp-spin .7s linear infinite;
}

@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gfi-lp-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 60px;
    }

    .gfi-lp-right {
        position: static;
    }

    .gfi-lp-jobs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .gfi-lp-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 32px;
    }

    .gfi-lp-jobs {
        grid-template-columns: 1fr;
    }

    .gfi-lp-stats {
        gap: 8px;
    }

    .gfi-lp-stat {
        min-width: 100px;
        padding: 12px 16px;
    }

    .gfi-lp-company-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .gfi-lp-form-card {
        padding: 28px 22px 24px;
    }
}
