/**
 * Pflex Solutions Theme - Main Stylesheet
 * Faithfully reproduces the Replit React/Tailwind design in vanilla CSS
 *
 * @package Pflex_Theme
 */

/* =========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================= */
:root {
    /* Brand Colors */
    --navy: #072A42;
    --navy-light: #0a3654;
    --navy-darker: #051c2e;
    --navy-darkest: #041825;
    --primary: hsl(200, 63%, 57%);
    --primary-rgb: 78, 166, 214;
    --primary-dark: hsl(200, 63%, 47%);
    --slate: #5F6B7B;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-400: #38bdf8;
    --orange-accent: rgba(245, 158, 66, 0.18);

    /* Semantic */
    --background: hsl(204, 45%, 97%);
    --foreground: var(--navy);
    --card-bg: #ffffff;
    --card-border: hsl(210, 23%, 88%);
    --muted: hsl(210, 23%, 94%);
    --muted-fg: hsl(213, 12%, 43%);
    --border: hsl(210, 23%, 88%);

    /* Typography */
    --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1700px;
    --section-px: clamp(1.5rem, 4vw, 5rem);
    --section-py: clamp(6rem, 10vw, 12rem);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 200ms var(--ease-out);
    --transition: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);
}

/* =========================================================================
   Reset & Base
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

body.pflex-no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.pflex-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================================
   Utility Classes
   ========================================================================= */
.pflex-text--primary {
    color: var(--primary);
}

.pflex-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pflex-eyebrow--centered {
    justify-content: center;
    width: 100%;
}

.pflex-eyebrow--light {
    color: var(--sky-400);
}

.pflex-eyebrow__line {
    width: 2rem;
    height: 1px;
    background: var(--primary);
}

.pflex-eyebrow__dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
}

/* =========================================================================
   Animation System
   ========================================================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate="slide-right"] {
    transform: translateX(-40px);
}

[data-animate="slide-left"] {
    transform: translateX(50px);
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate="fade-up-delay"] {
    transition-delay: 0.5s;
}

[data-animate].pflex-animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Spinner */
@keyframes pflex-spin {
    to {
        transform: rotate(360deg);
    }
}

.pflex-spin {
    animation: pflex-spin 1s linear infinite;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.pflex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.5;
}

.pflex-btn--primary {
    background: var(--primary);
    color: #fff;
}

.pflex-btn--primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
}

.pflex-btn--white {
    background: #fff;
    color: var(--navy);
}

.pflex-btn--white:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.pflex-btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.pflex-btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pflex-btn--rounded {
    border-radius: var(--radius-full);
}

.pflex-btn--full {
    width: 100%;
}

.pflex-btn--lg {
    padding: 1rem 2rem;
    font-size: 18px;
}

#button-cta-careers {
    font-size: 16px;
}

.pflex-btn--xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    height: 3.5rem;
}

.pflex-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.pflex-icon {
    flex-shrink: 0;
}

/* =========================================================================
   Cards
   ========================================================================= */
.pflex-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.pflex-card--muted {
    background: var(--muted);
    border-color: transparent;
}

.pflex-card__header {
    padding: 1.5rem 1.5rem 0.75rem;
}

.pflex-card__title {
    font-size: 0.875rem;
    font-weight: 600;
}

.pflex-card__subtitle {
    font-size: 0.75rem;
    color: var(--muted-fg);
    margin-top: 0.25rem;
}

.pflex-card__body {
    padding: 0 1.5rem 1.5rem;
}

/* =========================================================================
   Forms
   ========================================================================= */
.pflex-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pflex-form-grid {
    display: grid;
    gap: 1rem;
}

.pflex-form-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .pflex-form-grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.pflex-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pflex-form-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--foreground);
}

.pflex-form-input,
.pflex-form-textarea,
.pflex-form-select {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--foreground);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.pflex-form-input:focus,
.pflex-form-textarea:focus,
.pflex-form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.pflex-form-input::placeholder,
.pflex-form-textarea::placeholder {
    color: hsl(213, 12%, 65%);
}

.pflex-form-select-wrap {
    position: relative;
}

.pflex-form-select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.pflex-form-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(213, 12%, 55%);
    pointer-events: none;
}

.pflex-form-actions {
    padding-top: 0.5rem;
}

.pflex-form-actions--end {
    display: flex;
    justify-content: flex-end;
}

.pflex-form-feedback {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
}

.pflex-form-feedback--success {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.pflex-form-feedback--error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pflex-form-error {
    font-size: 0.875rem;
    color: #dc2626;
    text-align: center;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.pflex-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all var(--transition);
}

.pflex-header--partner {
    position: relative;
    top: auto;
}

.pflex-header--transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
}

.pflex-header--solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pflex-header--scrolled.pflex-header--transparent {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pflex-header--careers.pflex-header--scrolled.pflex-header--transparent {
    background: rgba(7, 42, 66, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pflex-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pflex-header__inner {
        padding: 20px 80px;
    }

    .pflex-header--careers .pflex-header__inner {
        padding: 20px 48px;
    }
}

.pflex-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pflex-header__logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    transition: all var(--transition);
}

/* Logo invert when transparent (homepage) */
.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__logo-img,
.pflex-header--careers.pflex-header--transparent .pflex-header__logo-img {
    filter: brightness(0) invert(1);
}

.pflex-header__right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.pflex-header__nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .pflex-header__nav {
        display: flex;
    }
}

.pflex-header__nav-link {
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition);
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__nav-link {
    color: #fff;
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__nav-link:hover {
    color: var(--primary);
}

.pflex-header--solid .pflex-header__nav-link,
.pflex-header--scrolled .pflex-header__nav-link {
    color: var(--foreground);
}

.pflex-header--solid .pflex-header__nav-link:hover,
.pflex-header--scrolled .pflex-header__nav-link:hover {
    color: var(--primary);
}

.pflex-header--careers .pflex-header__nav-link,
.pflex-header--careers .pflex-header__mobile-link {
    font-weight: 400;
}

.pflex-header--careers.pflex-header--transparent .pflex-header__nav-link {
    color: #fff;
}

.pflex-header--careers.pflex-header--transparent .pflex-header__nav-link:hover {
    color: var(--primary);
}

.pflex-header__cta-wrap {
    display: none;
}

@media (min-width: 768px) {
    .pflex-header__cta-wrap {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Transparent header CTA */
.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__cta-wrap .pflex-btn {
    background: #fff;
    color: var(--navy);
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__cta-wrap .pflex-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.pflex-header--careers.pflex-header--transparent .pflex-header__cta-wrap .pflex-btn {
    background: var(--primary);
    color: #fff;
}

.pflex-header--careers.pflex-header--transparent .pflex-header__cta-wrap .pflex-btn:hover {
    background: var(--primary-dark);
}

@media (min-width: 768px) {
    .pflex-header--careers .pflex-header__cta-wrap .pflex-btn {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile Toggle */
.pflex-header__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius);
    color: var(--foreground);
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .pflex-header__mobile-toggle {
        display: none;
    }
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__mobile-toggle {
    color: #fff;
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pflex-header--careers.pflex-header--transparent .pflex-header__mobile-toggle {
    color: #fff;
}

.pflex-header--careers.pflex-header--transparent .pflex-header__mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pflex-header__mobile-toggle .pflex-icon--close {
    display: none;
}

.pflex-header__mobile-toggle--active .pflex-icon--menu {
    display: none;
}

.pflex-header__mobile-toggle--active .pflex-icon--close {
    display: block;
}

/* Mobile Menu */
.pflex-header__mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease;
    opacity: 0;
    border-top: 1px solid transparent;
}

.pflex-header__mobile-menu--open {
    max-height: 20rem;
    opacity: 1;
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__mobile-menu--open {
    background: rgba(7, 42, 66, 0.98);
    backdrop-filter: blur(12px);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.pflex-header--solid .pflex-header__mobile-menu--open,
.pflex-header--scrolled .pflex-header__mobile-menu--open {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top-color: rgba(0, 0, 0, 0.04);
}

.pflex-header--careers.pflex-header--transparent .pflex-header__mobile-menu--open {
    background: rgba(7, 42, 66, 0.98);
    backdrop-filter: blur(12px);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.pflex-header__mobile-menu-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pflex-header__mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition);
}

.pflex-header--transparent:not(.pflex-header--scrolled) .pflex-header__mobile-link {
    color: rgba(255, 255, 255, 0.9);
}

.pflex-header--solid .pflex-header__mobile-link,
.pflex-header--scrolled .pflex-header__mobile-link {
    color: var(--foreground);
}

.pflex-header--careers.pflex-header--transparent .pflex-header__mobile-link {
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .pflex-header__mobile-menu {
        display: none;
    }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.pflex-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .pflex-hero {
        min-height: clamp(680px, 90vh, 820px);
    }
}

/* Background Layers */
.pflex-hero__bg {
    position: absolute;
    inset: 0;
}

.pflex-hero__bg-base {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy) 25%, var(--navy-light) 50%, var(--navy) 75%, var(--navy-darker) 100%);
}

.pflex-hero__bg-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.pflex-hero__bg-mesh--1 {
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%);
    opacity: 0.6;
    animation: meshFloat1 15s ease-in-out infinite;
}

.pflex-hero__bg-mesh--2 {
    top: 10%;
    left: 30%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.1) 30%, transparent 60%);
    opacity: 0.4;
    filter: blur(80px);
    animation: meshPulse 8s ease-in-out infinite;
}

.pflex-hero__bg-mesh--3 {
    bottom: -10%;
    right: -5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12) 0%, rgba(20, 184, 166, 0.06) 40%, transparent 70%);
    opacity: 0.5;
    filter: blur(100px);
    animation: meshFloat2 12s ease-in-out infinite 2s;
}

.pflex-hero__bg-orb {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.2;
    animation: orbFloat 10s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .pflex-hero__bg-mesh,
    .pflex-hero__bg-orb,
    .pflex-about__bg-blob,
    .pflex-services__bg-blob {
        display: none;
    }

    .pflex-header,
    .pflex-header--scrolled.pflex-header--transparent,
    .pflex-header__mobile-menu--open,
    .pflex-service-card,
    .pflex-value-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.pflex-hero__bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px);
    background-size: 6px 6px, 10px 10px;
}

.pflex-hero__bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes meshFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

@keyframes meshFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, -20px);
    }
}

@keyframes meshPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-40px);
        opacity: 0.25;
    }
}

/* Arcs */
.pflex-hero__arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Container */
.pflex-hero__container {
    position: relative;
    z-index: 10;
    min-height: 680px;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .pflex-hero__container {
        min-height: clamp(680px, 90vh, 820px);
    }
}

/* Text */
.pflex-hero__text {
    position: relative;
    z-index: 20;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px var(--section-px) 2rem;
    color: #fff;
    max-width: 42rem;
}

@media (min-width: 1024px) {
    .pflex-hero__text {
        justify-content: center;
        width: 55%;
        max-width: none;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 80px;
        padding-right: var(--section-px);
    }
}

@media (min-width: 1280px) {
    .pflex-hero__text {
        width: 50%;
        padding-top: calc(clamp(5rem, 11vh, 7rem) + 32px);
    }
}

.pflex-hero__heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .pflex-hero__heading {
        font-size: clamp(3rem, 5.5vw, 5rem);
    }
}

.pflex-hero__heading-line {
    display: block;
}

.pflex-hero__heading-line--white {
    color: #fff;
}

.pflex-hero__heading-line--accent {
    color: var(--sky-400);
}

.pflex-hero__subtext {
    font-size: 1rem;
    color: rgba(224, 242, 254, 0.8);
    max-width: 32rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .pflex-hero__subtext {
        font-size: 1.125rem;
    }
}

.pflex-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.pflex-hero__cta-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sky-200);
    transition: color var(--transition);
}

.pflex-hero__cta-link:hover {
    color: #fff;
}

.pflex-hero__cta-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(186, 230, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

.pflex-hero__cta-link:hover .pflex-hero__cta-circle {
    border-color: rgba(186, 230, 253, 0.6);
}

.pflex-hero__cta-circle svg {
    transform: rotate(90deg);
}

/* Mobile Agent */
.pflex-hero__agent-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: -30px;
    top: calc(55% + 15px);
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 1024px) {
    .pflex-hero__agent-mobile {
        display: none;
    }
}

.pflex-hero__agent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% top;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 8%, rgba(0, 0, 0, 0.7) 15%, black 25%, black 100%),
        linear-gradient(to bottom, transparent 0%, black 5%, black 80%, rgba(0, 0, 0, 0.3) 95%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 8%, rgba(0, 0, 0, 0.7) 15%, black 25%, black 100%),
        linear-gradient(to bottom, transparent 0%, black 5%, black 80%, rgba(0, 0, 0, 0.3) 95%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* Desktop Media */
.pflex-hero__media {
    display: none;
}

@media (min-width: 1024px) {
    .pflex-hero__media {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 55%;
        overflow: hidden;
    }
}

@media (min-width: 1280px) {
    .pflex-hero__media {
        width: 60%;
    }
}

.pflex-hero__media-clipped {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pflex-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.pflex-hero__agent-desktop {
    position: absolute;
    bottom: 0;
    left: 8px;
    width: 100%;
    height: 100%;
    z-index: 30;
}

.pflex-hero__agent-img--desktop {
    position: absolute;
    bottom: 0;
    left: 1rem;
    height: 95%;
    width: auto;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 0 50px rgba(7, 42, 66, 0.8));
}

@media (min-width: 1280px) {
    .pflex-hero__agent-img--desktop {
        height: 95%;
    }
}

@media (min-width: 1536px) {
    .pflex-hero__agent-img--desktop {
        height: 90%;
    }
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.pflex-about {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}

.pflex-about__bg {
    position: absolute;
    inset: 0;
}

.pflex-about__bg-base {
    position: absolute;
    inset: 0;
    background: #F7FAFB;
}

.pflex-about__bg-blob {
    position: absolute;
    border-radius: 50%;
}

.pflex-about__bg-blob--1 {
    top: 0;
    left: 0;
    width: 60%;
    height: 70%;
    filter: blur(120px);
    opacity: 0.3;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.pflex-about__bg-blob--2 {
    bottom: 0;
    right: 0;
    width: 50%;
    height: 60%;
    filter: blur(100px);
    opacity: 0.25;
    background: radial-gradient(circle, var(--navy) 0%, transparent 70%);
}

.pflex-about__bg-blob--3 {
    top: 50%;
    left: 33%;
    width: 40%;
    height: 50%;
    filter: blur(80px);
    opacity: 0.15;
    background: radial-gradient(circle, var(--slate) 0%, transparent 70%);
}

.pflex-about__inner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8rem var(--section-px) 8rem;
}

@media (min-width: 768px) {
    .pflex-about__inner {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pflex-about {
        min-height: auto;
    }

    .pflex-about__inner {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }
}

.pflex-about__header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .pflex-about__header {
        margin-bottom: 6rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pflex-about__header {
        margin-bottom: 4.5rem;
    }
}

.pflex-about__heading {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--navy);
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pflex-about__heading {
        font-size: 72px;
    }
}

.pflex-about__body {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    color: #45556c;
    line-height: 1.7;
    font-weight: 300;
    font-family: 'Segoe UI Light', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (min-width: 768px) {
    .pflex-about__body {
        font-size: 1.25rem;
    }
}

.pflex-about__body p+p {
    margin-top: 1.5rem;
}

/* =========================================================================
   VALUES SECTION
   ========================================================================= */
.pflex-values {
    position: relative;
    background: var(--navy);
}

.pflex-values__inner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 96px 24px;
}

@media (min-width: 768px) {
    .pflex-values__inner {
        padding: 8rem 80px;
    }
}

@media (min-width: 1024px) {
    .pflex-values__inner {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

.pflex-values__header {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .pflex-values__header {
        margin-bottom: 6rem;
    }
}

.pflex-values__heading {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.pflex-values__intro {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(224, 242, 254, 0.7);
    line-height: 1.6;
    max-width: 48rem;
}

.pflex-values__grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .pflex-values__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: start;
    }
}

/* Image Column */
.pflex-values__image-col {
    position: relative;
}

@media (min-width: 1024px) {
    .pflex-values__image-col {
        position: sticky;
        top: 5rem;
        height: calc(100vh - 5rem);
        display: flex;
        align-items: center;
    }
}

.pflex-values__image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    border-radius: 0 50% 50% 0;
}

@media (min-width: 1024px) {
    .pflex-values__image-wrap {
        height: 80%;
        max-height: 600px;
    }
}

.pflex-values__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pflex-values__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 42, 66, 0.3), transparent);
}

/* Value Cards */
.pflex-values__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pflex-value-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.pflex-value-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.1);
    transform: scale(1.02);
}

.pflex-value-card__inner {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.pflex-value-card__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(56, 189, 248, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-slow);
}

.pflex-value-card:hover .pflex-value-card__icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.4), rgba(56, 189, 248, 0.25));
}

.pflex-value-card__content {
    flex: 1;
    min-width: 0;
}

.pflex-value-card__title {
    font-size: clamp(1.25rem, 2vw, 1.875rem);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.pflex-value-card:hover .pflex-value-card__title {
    color: var(--primary);
}

.pflex-value-card__body {
    font-size: 1rem;
    color: rgba(224, 242, 254, 0.55);
    line-height: 1.6;
    transition: color var(--transition);
}

@media (min-width: 768px) {
    .pflex-value-card__body {
        font-size: 1.125rem;
    }
}

.pflex-value-card:hover .pflex-value-card__body {
    color: rgba(224, 242, 254, 0.75);
}

.pflex-value-card__number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: rgba(var(--primary-rgb), 0.5);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateX(0.5rem);
    transition: all var(--transition);
}

.pflex-value-card:hover .pflex-value-card__number {
    opacity: 1;
    transform: translateX(0);
}

.pflex-value-card__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(var(--primary-rgb), 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 1s ease-in-out;
}

.pflex-value-card:hover .pflex-value-card__shimmer {
    transform: translateX(100%);
}

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */
.pflex-services {
    position: relative;
    overflow: hidden;
}

.pflex-services__bg {
    position: absolute;
    inset: 0;
}

.pflex-services__bg-base {
    position: absolute;
    inset: 0;
    background: #F7FAFB;
}

.pflex-services__bg-blob {
    position: absolute;
    border-radius: 50%;
}

.pflex-services__bg-blob--1 {
    top: 0;
    left: 0;
    width: 60%;
    height: 70%;
    filter: blur(120px);
    opacity: 0.3;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.pflex-services__bg-blob--2 {
    bottom: 0;
    right: 0;
    width: 50%;
    height: 60%;
    filter: blur(100px);
    opacity: 0.25;
    background: radial-gradient(circle, var(--navy) 0%, transparent 70%);
}

.pflex-services__bg-blob--3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 50%;
    filter: blur(80px);
    opacity: 0.2;
    background: radial-gradient(circle, var(--slate) 0%, transparent 70%);
}

.pflex-services__inner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 6rem var(--section-px);
}

@media (min-width: 768px) {
    .pflex-services__inner {
        padding: 8rem 80px;
    }
}

.pflex-services__header {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .pflex-services__header {
        margin-bottom: 4rem;
    }
}

.pflex-services__heading {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--navy);
}

.pflex-services__heading em {
    font-style: italic;
    color: #4ca8d6;
    font-weight: 400;
}

/* Service Card Grid */
.pflex-services__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pflex-services__row {
    display: grid;
    gap: 1rem;
}

.pflex-services__row--top {
    grid-template-columns: 1fr;
}

.pflex-services__row--bottom {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .pflex-services__row--top {
        grid-template-columns: repeat(3, 1fr);
    }

    .pflex-services__row--bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Service Card: Base --- */
.pflex-service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pflex-service-card:hover {
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.25),
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--primary-rgb), 0.05);
}

/* --- Expanded State: navy background --- */
.pflex-service-card.is-expanded {
    background: rgba(7, 42, 66, 0.9);
    border-color: rgba(7, 42, 66, 0.5);
    box-shadow: 0 25px 60px rgba(7, 42, 66, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.12);
}

/* --- Card Content (title + subtitle area) --- */
.pflex-service-card__content {
    flex: 1;
}

/* --- Title --- */
.pflex-service-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    padding-right: 2.5rem;
}

@media (min-width: 768px) {
    .pflex-service-card__title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .pflex-service-card__title {
        font-size: 1.5rem;
    }
}

.pflex-service-card.is-expanded .pflex-service-card__title {
    color: #fff;
}

/* --- Subtitle (shown when collapsed) --- */
.pflex-service-card__subtitle {
    font-size: 0.9375rem;
    color: hsl(213, 12%, 55%);
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.pflex-service-card.is-expanded .pflex-service-card__subtitle {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* --- Description Wrapper (hidden by default, animated on expand) --- */
.pflex-service-card__desc-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease 0.1s;
}

.pflex-service-card.is-expanded .pflex-service-card__desc-wrap {
    max-height: 300px;
    opacity: 1;
}

.pflex-service-card__desc {
    font-size: 0.9375rem;
    color: rgba(186, 230, 253, 0.8);
    line-height: 1.65;
    padding-top: 1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .pflex-service-card__desc {
        font-size: 1rem;
    }
}

/* --- Toggle Button: bottom-right +/× --- */
.pflex-service-card__toggle {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(7, 42, 66, 0.15);
    color: var(--navy);
    padding: 0;
    z-index: 2;
}

.pflex-service-card__toggle:hover {
    background: var(--navy);
    color: #fff;
    transform: scale(1.1);
}

.pflex-service-card.is-expanded .pflex-service-card__toggle {
    background: var(--primary);
    color: #fff;
}

.pflex-service-card.is-expanded .pflex-service-card__toggle:hover {
    background: rgba(var(--primary-rgb), 0.8);
}

/* Toggle icon visibility */
.pflex-service-card__toggle-plus {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflex-service-card__toggle-close {
    display: none;
    align-items: center;
    justify-content: center;
}

.pflex-service-card.is-expanded .pflex-service-card__toggle-plus {
    display: none;
}

.pflex-service-card.is-expanded .pflex-service-card__toggle-close {
    display: flex;
}

/* =========================================================================
   JOIN TEAM CTA
   ========================================================================= */
.pflex-join {
    position: relative;
    background: var(--navy);
    overflow: hidden;
}

.pflex-join__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pflex-join__orb {
    position: absolute;
    border-radius: 50%;
}

.pflex-join__orb--1 {
    top: -10%;
    right: 5%;
    width: 45%;
    height: 70%;
    filter: blur(100px);
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 65%);
    animation: meshFloat1 25s ease-in-out infinite;
}

.pflex-join__orb--2 {
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 80%;
    filter: blur(120px);
    background: radial-gradient(circle, rgba(95, 107, 123, 0.25) 0%, transparent 65%);
    animation: meshFloat2 30s ease-in-out infinite;
}

.pflex-join__inner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8rem var(--section-px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .pflex-join__inner {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }
}

.pflex-join__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.pflex-join__eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--sky-400);
}

.pflex-join__heading {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.05;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.pflex-footer {
    position: relative;
    background: var(--navy);
    color: var(--sky-100);
    margin-top: -1px;
}

.pflex-footer__decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

.pflex-footer__decoration-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, transparent 70%);
}

.pflex-footer__decoration-img {
    position: relative;
    height: 6rem;
    width: auto;
    opacity: 0.5;
    transform: scaleX(-1);
}

@media (min-width: 768px) {
    .pflex-footer__decoration-img {
        height: 8rem;
    }
}

@media (min-width: 1024px) {
    .pflex-footer__decoration-img {
        height: 9rem;
    }
}

.pflex-footer__inner {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem var(--section-px) 3rem;
}

@media (min-width: 768px) {
    .pflex-footer__inner {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
}

.pflex-footer__top {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .pflex-footer__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 4rem;
    }
}

.pflex-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 25rem;
}

.pflex-footer__logo {
    height: 2rem;
    width: auto;
    max-width: min(100%, 18rem);
    object-fit: contain;
    align-self: flex-start;
    filter: brightness(0) invert(1);
}

.pflex-footer__tagline {
    font-size: 0.875rem;
    color: rgba(186, 230, 253, 0.7);
    line-height: 1.6;
}

.pflex-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.pflex-footer__nav-link {
    font-size: 0.875rem;
    color: rgba(186, 230, 253, 0.7);
    transition: color var(--transition);
}

.pflex-footer__nav-link:hover {
    color: var(--sky-200);
}

.pflex-footer__nav-link--cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.pflex-footer__nav-link--cta span {
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.pflex-footer__nav-link--cta:hover span {
    border-bottom-color: rgba(186, 230, 253, 0.7);
}

.pflex-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(186, 230, 253, 0.1);
    max-width: 60%;
}

.pflex-footer__copyright {
    font-size: 0.875rem;
    color: rgba(186, 230, 253, 0.7);
}

/* =========================================================================
   PAGE TEMPLATES
   ========================================================================= */
.pflex-page {
    padding-top: 0px;
}

.pflex-page__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem var(--section-px);
}

.pflex-page__title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.pflex-page__content {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(213, 12%, 43%);
}

.pflex-page--contact-header .pflex-page__inner {
    max-width: none;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.pflex-page--contact-header .pflex-page__content>*:not(.pflex-contact-hero):not(.pflex-contact-highlights):not(.pflex-contact-form-section):not(.pflex-contact-footer) {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Gutenberg Alignment: Allow blocks to break out of content container */
.pflex-page__content .alignwide {
    max-width: var(--container-max);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    width: 100vw;
}

.pflex-page__content .alignfull,
.pflex-page__content .wp-block-pflex-core-values {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* 404 */
.pflex-404 {
    padding-top: 100px;
}

.pflex-404__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8rem var(--section-px);
    text-align: center;
}

.pflex-404__heading {
    font-size: 8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1rem;
}

.pflex-404__text {
    font-size: 1.5rem;
    color: var(--muted-fg);
    margin-bottom: 2rem;
}

/* =========================================================================
   CAREERS PAGE
   ========================================================================= */
.pflex-careers-page {
    background: var(--navy);
    min-height: 100vh;
}

/* Remove block gaps in editor for full-width careers sections */
[data-type="pflex/careers-hero"],
[data-type="pflex/careers-why-work"],
[data-type="pflex/careers-application"],
div:has(> .wp-block-pflex-careers-hero),
div:has(> .wp-block-pflex-careers-why-work),
div:has(> .wp-block-pflex-careers-application) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Careers Hero */
.pflex-careers-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.pflex-careers-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pflex-careers-hero__circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.pflex-careers-hero__circle--1 {
    left: -560px;
    top: -280px;
    width: 1240px;
    height: 1240px;
}

.pflex-careers-hero__circle--2 {
    left: -480px;
    top: -200px;
    width: 1080px;
    height: 1080px;
    border-color: rgba(56, 189, 248, 0.1);
}

@media (min-width: 1024px) {
    .pflex-careers-hero__circle--1 {
        left: -535px;
        top: -300px;
        width: 1240px;
        height: 1240px;
    }

    .pflex-careers-hero__circle--2 {
        left: -420px;
        top: -220px;
        width: 1080px;
        height: 1080px;
    }
}

.pflex-careers-hero__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
    position: relative;
    z-index: 10;
    width: 100%;
}

@media (min-width: 768px) {
    .pflex-careers-hero__container {
        padding: 20px 48px;
    }
}

.pflex-careers-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .pflex-careers-hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pflex-careers-hero__text {
    position: relative;
    z-index: 10;
}

.pflex-careers-hero__heading {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .pflex-careers-hero__heading {
        font-size: 72px;
    }
}

.pflex-careers-hero__subtext {
    font-size: 1.125rem;
    color: rgba(224, 242, 254, 0.7);
    line-height: 1.7;
    max-width: 32rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .pflex-careers-hero__subtext {
        font-size: 1.25rem;
    }
}

.pflex-careers-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
    transition: background 0.2s;
}

.pflex-careers-hero__button:hover {
    background: hsl(200, 63%, 50%);
}

.pflex-careers-hero__button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pflex-careers-hero__image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .pflex-careers-hero__image-wrap {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        width: 50%;
    }
}

.pflex-careers-hero__image-layer {
    position: relative;
    width: 100%;
    height: 100%;
}

.pflex-careers-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pflex-careers-hero__image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 42, 66, 0.4);
}

@media (min-width: 1024px) {
    .pflex-careers-hero__image-overlay {
        background: rgba(7, 42, 66, 0.1);
    }
}

.pflex-careers-hero__image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--navy), rgba(7, 42, 66, 0.7), transparent);
}

@media (min-width: 1024px) {
    .pflex-careers-hero__image-gradient {
        width: 33%;
        background: linear-gradient(to right, var(--navy), rgba(7, 42, 66, 0.5), transparent);
    }
}

.pflex-careers-hero--editor {
    min-height: 34rem;
}

.editor-styles-wrapper .pflex-careers-hero--editor,
.block-editor-block-list__block .pflex-careers-hero--editor {
    max-width: none;
}

/* Careers Why – editor full-width */
.editor-styles-wrapper .pflex-careers-why,
.block-editor-block-list__block .pflex-careers-why {
    max-width: none;
}

/* Careers Why */
.pflex-careers-why {
    padding: 6rem 0;
    background: #051c2e;
}

@media (min-width: 768px) {
    .pflex-careers-why {
        padding: 7.5rem 0;
    }
}

.pflex-benefit-card {
    animation: pflex-fadeUp 0.5s ease-out both;
}

.pflex-benefit-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pflex-benefit-card:nth-child(3) {
    animation-delay: 0.2s;
}

.pflex-benefit-card:nth-child(4) {
    animation-delay: 0.3s;
}

.pflex-careers-why__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .pflex-careers-why__inner {
        padding: 0 48px;
    }
}

.pflex-careers-why__header {
    text-align: center;
    margin-bottom: 3rem;
}

.pflex-careers-why__heading {
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.6rem;
}

@media (min-width: 1024px) {
    .pflex-careers-why__heading {
        font-size: 60px;
    }
}

.pflex-careers-why__subtext {
    font-size: 1.125rem;
    color: rgba(224, 242, 254, 0.7);
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pflex-careers-why__subtext {
        font-size: 1.25rem;
    }
}

.pflex-careers-why__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .pflex-careers-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pflex-careers-why__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pflex-benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: background 0.3s;
}

.pflex-benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pflex-benefit-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: hsla(200, 63%, 57%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pflex-benefit-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.pflex-benefit-card__desc {
    font-size: 1rem;
    color: rgba(224, 242, 254, 0.6);
    line-height: 1.6;
}

/* Careers Application Form */
.pflex-careers-form {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--navy), rgba(7, 42, 66, 0.95));
}

@media (min-width: 768px) {
    .pflex-careers-form {
        padding: 8rem 0;
    }
}

.pflex-careers-form__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
}

.pflex-careers-form__header {
    text-align: center;
    margin-bottom: 3rem;
}

.pflex-careers-form__heading {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

.pflex-careers-form__subtext {
    font-size: 1.125rem;
    color: rgba(224, 242, 254, 0.7);
    max-width: 32rem;
    margin: 0 auto;
}

.pflex-careers-form__card {
    max-width: 42rem;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-3xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.pflex-careers-form__form {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pflex-careers-form__form {
        padding: 1.5rem 2.5rem 2.5rem;
    }
}

.pflex-careers-form__form-header {
    margin-bottom: 0.5rem;
}

.pflex-careers-form__form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .pflex-careers-form__form-header h3 {
        font-size: 1.875rem;
    }
}

.pflex-careers-form__form-header p {
    font-size: 1rem;
    color: hsl(213, 12%, 55%);
}

/* Careers form inputs - larger */
.pflex-careers-form__form .pflex-form-input,
.pflex-careers-form__form .pflex-form-select {
    height: 3rem;
    border-radius: var(--radius-xl);
    border-color: hsl(210, 23%, 88%);
    font-size: 1rem;
}

.pflex-careers-form__form .pflex-form-input:focus,
.pflex-careers-form__form .pflex-form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.pflex-careers-form__form .pflex-form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
}

/* Resume Upload Area */
.pflex-careers-form__upload {
    background: hsl(210, 23%, 97%);
    margin: 0 -2rem 0.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid hsl(210, 23%, 94%);
}

@media (min-width: 768px) {
    .pflex-careers-form__upload {
        margin: 0 -2.5rem 0.5rem;
        padding: 1.5rem 2.5rem;
    }
}

.pflex-careers-form__upload-empty {
    width: 100%;
    padding: 1.5rem;
    border: 2px dashed hsl(210, 23%, 80%);
    border-radius: var(--radius-xl);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    color: var(--navy);
}

.pflex-careers-form__upload-empty:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}

.pflex-careers-form__upload-empty svg {
    color: rgba(var(--primary-rgb), 0.6);
}

.pflex-careers-form__upload-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--sky-100);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pflex-careers-form__upload-label {
    font-size: 1rem;
    font-weight: 600;
}

.pflex-careers-form__upload-hint {
    font-size: 0.75rem;
    color: hsl(213, 12%, 55%);
}

.pflex-careers-form__upload-filled {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: var(--radius-xl);
}

.pflex-careers-form__upload-check {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    flex-shrink: 0;
}

.pflex-careers-form__upload-info {
    flex: 1;
    min-width: 0;
}

.pflex-careers-form__upload-filename {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pflex-careers-form__upload-size {
    font-size: 0.75rem;
    color: #16a34a;
}

.pflex-careers-form__upload-remove {
    color: hsl(213, 12%, 55%);
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.pflex-careers-form__upload-remove:hover {
    color: #dc2626;
}

.pflex-careers-form__upload-tip {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: hsl(213, 12%, 55%);
}

/* Success State */
.pflex-careers-form__success {
    padding: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .pflex-careers-form__success {
        padding: 3rem;
    }
}

.pflex-careers-form__success-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    margin: 0 auto 1.5rem;
}

.pflex-careers-form__success-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .pflex-careers-form__success-heading {
        font-size: 1.875rem;
    }
}

.pflex-careers-form__success-message {
    color: hsl(213, 12%, 43%);
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.pflex-careers-form__success-list {
    list-style: none;
    background: hsl(210, 23%, 97%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: left;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pflex-careers-form__success-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: hsl(213, 12%, 43%);
}

.pflex-careers-form__success-list svg {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Careers Footer */
.pflex-careers-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--navy);
}

.pflex-careers-footer__inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pflex-careers-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.pflex-careers-footer__brand {
    display: inline-flex;
    align-items: center;
}

.pflex-careers-footer__logo {
    height: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.pflex-careers-footer__copy {
    font-size: 0.875rem;
    color: rgba(224, 242, 254, 0.5);
}

/* Careers Application Wizard */
.pflex-careers-application {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 6rem 1.5rem;
    background: linear-gradient(to bottom, var(--navy), rgba(7, 42, 66, 0.95));
    color: #fff;
}

@media (min-width: 768px) {
    .pflex-careers-application {
        padding: 8rem 1.5rem;
    }
}

.pflex-careers-application.is-confirmation {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.pflex-careers-application__inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.pflex-careers-application__header {
    max-width: 42rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.pflex-careers-application__heading {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pflex-careers-application__subtext {
    margin: 0;
    color: rgba(224, 242, 254, 0.7);
    font-size: 1.125rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.pflex-careers-application__card,
.pflex-careers-application__success {
    max-width: 42rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pflex-careers-application__form {
    display: block;
}



.pflex-careers-application__progress-track {
    height: 0.5rem;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
}

.pflex-careers-application__progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width var(--transition);
}

.pflex-careers-application__step {
    display: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pflex-careers-application__step:not(.is-active) {
    display: none;
}

.pflex-careers-application [hidden] {
    display: none !important;
}

.pflex-careers-application__step.is-active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pflex-careers-application__form-header {
    margin-bottom: 0;
}

.pflex-careers-application__form-header h3 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--navy);
}

.pflex-careers-application__form-header p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.pflex-careers-application__upload {
    margin: 0 -1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

@media (min-width: 768px) {
    .pflex-careers-application__step {
        padding: 2rem;
    }

    .pflex-careers-application__upload {
        margin: 0 -2rem;
        padding: 1.5rem 2rem;
    }
}

.pflex-careers-application__upload-empty {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--navy);
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pflex-careers-application__upload-empty:hover {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
}

.pflex-careers-application__upload-empty svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: var(--primary);
    opacity: 0.6;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pflex-careers-application__upload-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 9999px;
    background: #e0f2fe;
    color: var(--primary);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pflex-careers-application__upload-label {
    font-size: 1rem;
    font-weight: 600;
}

.pflex-careers-application__upload-hint,
.pflex-careers-application__upload-tip {
    color: #94a3b8;
    font-size: 0.75rem;
}

.pflex-careers-application__upload-tip {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.pflex-careers-application__upload-tip span {
    color: #16a34a;
    font-weight: 600;
}

.pflex-careers-application__upload-tip strong {
    color: #4ca8d6;
    font-weight: 500;
}

.pflex-careers-application__upload-filled {
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #bbf7d0;
    border-radius: 0.75rem;
    background: #f0fdf4;
}

.pflex-careers-application__upload-filled:not([hidden]) {
    display: flex;
}

.pflex-careers-application__upload-check {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    background: #dcfce7;
    color: #16a34a;
}

.pflex-careers-application__upload-check svg,
.pflex-careers-application__upload-remove svg,
.pflex-careers-application__success-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pflex-careers-application__upload-info {
    flex: 1 1 auto;
    min-width: 0;
}

.pflex-careers-application__upload-info p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pflex-careers-application__upload-info p:first-child {
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
}

.pflex-careers-application__upload-info p:last-child {
    color: #16a34a;
    font-size: 0.75rem;
}

.pflex-careers-application__upload-remove {
    color: #94a3b8;
    background: transparent;
    padding: 0.25rem;
    transition: color 0.2s;
}

.pflex-careers-application__upload-remove:hover {
    color: #ef4444;
}

.pflex-careers-application__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pflex-careers-application__field,
.pflex-careers-application__choice-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pflex-careers-application__field label,
.pflex-careers-application__choice-group p,
.pflex-careers-application__pill-label,
.pflex-careers-application__conditional label,
.pflex-careers-application__checkbox {
    margin: 0;
    color: var(--navy);
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 14px;
    font-weight: 500;
}

.pflex-careers-application__field input,
.pflex-careers-application__field select,
.pflex-careers-application__field textarea,
.pflex-careers-application__conditional input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pflex-careers-application__field textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.pflex-careers-application__field select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

.pflex-careers-application__field input:focus,
.pflex-careers-application__field select:focus,
.pflex-careers-application__field textarea:focus,
.pflex-careers-application__conditional input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.pflex-careers-application__field input::placeholder,
.pflex-careers-application__field textarea::placeholder,
.pflex-careers-application__conditional input::placeholder,
.pflex-careers-application__field select option:first-child {
    color: #94a3b8;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 14px;
}

.pflex-careers-application__field .has-error,
.pflex-careers-application__conditional .has-error {
    border-color: #dc2626;
}

.pflex-careers-application__error {
    font-size: 0.875rem;
    color: #ef4444;
    display: none;
}

.pflex-careers-application__error:not(:empty) {
    display: block;
}

.pflex-careers-application__choice-group {
    padding: 0.875rem;
    border: 1px solid hsl(210, 23%, 91%);
    border-radius: var(--radius);
    background: hsl(210, 23%, 98%);
}

.pflex-careers-application__choice-group label,
.pflex-careers-application__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-fg);
    font-size: 0.875rem;
    cursor: pointer;
}

.pflex-careers-application__choice-group input,
.pflex-careers-application__checkbox input {
    accent-color: var(--primary);
}

.pflex-careers-application__choice-group--full {
    margin: 1rem 0;
}

.pflex-careers-application__day-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.pflex-careers-application__conditional {
    margin-top: 0.5rem;
}

.pflex-careers-application__group-label {
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(210, 23%, 90%);
    color: hsl(213, 12%, 48%);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Progress bar outside card */
.pflex-careers-application__progress {
    padding: 1.5rem 0 0;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

.pflex-careers-application__progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: rgba(224, 242, 254, 0.78);
    font-size: 0.8125rem;
    font-weight: 600;
}

.pflex-careers-application__employer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pflex-careers-application__employer-top h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
}

.pflex-careers-application__employer-remove {
    background: transparent;
    border: none;
    padding: 0.25rem;
    color: #ff6467;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflex-careers-application__employer-remove svg {
    width: 16px;
    height: 16px;
}

.pflex-careers-application__employer-remove:hover {
    transform: scale(1.1);
}

/* Address row (City / State / ZIP) */
.pflex-careers-application__field--row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.pflex-careers-application__field--grow {
    flex: 2;
}

.pflex-careers-application__field--small {
    flex: 0 0 5rem;
}

/* Pill-style button selectors */
.pflex-careers-application__pill-group {
    margin: 1.25rem 0 0;
}

.pflex-careers-application__pill-label {
    margin: 0 0 0.625rem;
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 700;
}

.pflex-careers-application__pill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pflex-careers-application__pill-options--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.pflex-careers-application__pill-options--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pflex-careers-application__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.pflex-careers-application__pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pflex-careers-application__pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(2, 16, 27, 0.06);
}

.pflex-careers-application__pill:hover span {
    border-color: var(--primary);
}

.pflex-careers-application__pill input:checked+span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.pflex-careers-application__pill--sm span {
    min-height: 2.25rem;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-full);
}

.pflex-careers-application__pill-hint {
    margin: 0.5rem 0 0;
    color: hsl(213, 12%, 55%);
    font-size: 0.75rem;
    font-style: italic;
}


.pflex-careers-application__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pflex-careers-application__actions--split {
    justify-content: space-between;
}

.pflex-careers-application__button,
.pflex-careers-application__add-employer {
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2rem;
    border-radius: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
    transition: background 0.2s;
    border: none;
}

.pflex-careers-application__button:hover,
.pflex-careers-application__add-employer:hover {
    background: hsl(200, 63%, 50%);
}

.pflex-careers-application__button:disabled,
.pflex-careers-application__button[aria-disabled="true"] {
    cursor: not-allowed;
    pointer-events: none;
}

.pflex-careers-application__button--ghost {
    background: transparent;
    color: var(--muted-fg);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.pflex-careers-application__button--ghost:hover {
    background: hsl(210, 23%, 94%);
    color: var(--navy);
    box-shadow: none;
}

.pflex-careers-application__button svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.pflex-careers-application__button--full {
    width: 100%;
    height: 3.5rem;
}

.pflex-careers-application__button--inline {
    width: auto;
}

.pflex-careers-application__button.is-submitting .pflex-btn__spinner {
    display: inline-flex;
    animation: pflex-careers-spinner-spin 0.65s linear infinite !important;
    animation-duration: 0.65s !important;
    animation-iteration-count: infinite !important;
}

.pflex-careers-application__button .pflex-btn__spinner {
    display: none;
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 1.125rem;
    border: 2.5px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-right-color: transparent;
    border-radius: 50%;
}

@keyframes pflex-careers-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

.pflex-careers-application.is-step-two {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.pflex-careers-application.is-step-two .pflex-careers-application__progress {
    max-width: 42rem;
    margin-bottom: 2rem;
    padding-top: 0;
}

.pflex-careers-application.is-step-two .pflex-careers-application__progress-top {
    margin-bottom: 1rem;
}

.pflex-careers-application.is-step-two .pflex-careers-application__progress-top span:first-child {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

.pflex-careers-application.is-step-two .pflex-careers-application__progress-top span:last-child {
    color: rgba(224, 242, 254, 0.6);
    font-size: 0.875rem;
    font-weight: 400;
}

.pflex-careers-application.is-step-two .pflex-careers-application__progress-track {
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.pflex-careers-application.is-step-two .pflex-careers-application__card {
    max-width: 42rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pflex-careers-application.is-step-two [data-careers-step="2"] {
    display: none;
    gap: 1.5rem;
    padding: 1.5rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"].is-active {
    display: flex;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__form-header {
    margin-bottom: 0.5rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__form-header h3 {
    margin-bottom: 0.25rem;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__form-header p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__group-label {
    margin: 1rem 0 0;
    padding-bottom: 0.5rem;
    border-bottom-color: #e2e8f0;
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__grid {
    gap: 1rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field label,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-label,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__conditional label {
    margin: 0;
    color: var(--navy);
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field input,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field select,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field textarea,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__conditional input {
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #fff;
    color: #0f172a;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Select chevron applied inline (see render.php) to avoid Gutenberg transformStyles crash */
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field select {
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field input::placeholder,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field textarea::placeholder,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__conditional input::placeholder {
    color: #526984;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 14px;
    opacity: 1;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field textarea {
    height: auto;
    min-height: 5.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    resize: none;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field input:focus,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field select:focus,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field textarea:focus,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__conditional input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--grow {
    grid-column: auto;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--quarter,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--small {
    grid-column: auto;
    flex: initial;
    min-width: 0;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--quarter {
    position: relative;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--quarter select {
    padding-right: 2.5rem;
    background-image: none !important;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--quarter::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options {
    gap: 0.5rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--half {
    gap: 0.75rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill span {
    min-height: 3rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: none;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--half .pflex-careers-application__pill span {
    border-radius: 0.75rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--inline .pflex-careers-application__pill span {
    min-height: 2.75rem;
    border-radius: 9999px;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--days .pflex-careers-application__pill span {
    min-height: 2.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill:hover span {
    border-color: rgba(var(--primary-rgb), 0.5);
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill input:checked+span {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--inline .pflex-careers-application__pill input:checked+span,
.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--days .pflex-careers-application__pill input:checked+span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-hint {
    margin: 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-style: normal;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__conditional {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__conditional[hidden] {
    display: none !important;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__actions {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__button {
    height: 3rem;
    min-height: 0;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: none;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] [data-step-two-submit][hidden] {
    display: none !important;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__button:not(.pflex-careers-application__button--ghost) {
    padding: 0 2rem;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__button--ghost {
    padding: 0 1.5rem;
    color: #475569;
}

.pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__button--ghost:hover {
    background: #f1f5f9;
    color: var(--navy);
}

@media (min-width: 768px) {
    .pflex-careers-application.is-step-two [data-careers-step="2"] {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .pflex-careers-application.is-step-two {
        padding-top: 6rem;
    }

    .pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--row,
    .pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__pill-options--days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pflex-careers-application.is-step-two [data-careers-step="2"] .pflex-careers-application__field--grow {
        grid-column: 1 / -1;
    }
}

.pflex-careers-application__employers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pflex-careers-application__employer {
    padding: 1rem;
    border: 1px solid hsl(210, 23%, 90%);
    border-radius: var(--radius);
    background: hsl(210, 23%, 98%);
}

.pflex-careers-application__employer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pflex-careers-application__employer-top h4 {
    margin: 0;
    color: var(--navy);
    font-size: 0.9375rem;
    font-weight: 800;
}

.pflex-careers-application__employer-top button {
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 700;
}

.pflex-careers-application__add-employer {
    width: 100%;
    margin-top: 1rem;
    border: 2px dashed hsl(210, 23%, 78%);
    background: #fff;
    color: var(--primary-dark);
}

.pflex-careers-application__certification,
.pflex-careers-application__captcha {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid hsl(210, 23%, 90%);
    border-radius: var(--radius);
    background: hsl(210, 23%, 98%);
}

.pflex-careers-application__certification-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pflex-careers-application__certification-row input[type="checkbox"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex: 0 0 auto;
    border: 2px solid #7a7a7a;
    border-radius: 0.1875rem;
    background-color: #fff;
    cursor: pointer;
}

.pflex-careers-application__certification-row input[type="checkbox"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.pflex-careers-application__certification-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.3125rem;
    height: 0.5625rem;
    border: solid #fff;
    border-width: 0 0.125rem 0.125rem 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.pflex-careers-application__certification label {
    display: inline;
    color: var(--navy);
    font-size: 0.875rem;
}

.pflex-careers-application__certification button {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.pflex-careers-application__certification button:hover {
    text-decoration: underline;
}

.pflex-careers-application.is-step-three {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.pflex-careers-application.is-step-three .pflex-careers-application__progress {
    max-width: 42rem;
    margin-bottom: 2rem;
    padding-top: 0;
}

.pflex-careers-application.is-step-three .pflex-careers-application__progress-top {
    margin-bottom: 1rem;
}

.pflex-careers-application.is-step-three .pflex-careers-application__progress-top span:first-child {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

.pflex-careers-application.is-step-three .pflex-careers-application__progress-top span:last-child {
    color: rgba(224, 242, 254, 0.6);
    font-size: 0.875rem;
    font-weight: 400;
}

.pflex-careers-application.is-step-three .pflex-careers-application__progress-track {
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.pflex-careers-application.is-step-three .pflex-careers-application__card {
    max-width: 42rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] {
    gap: 1.75rem;
    padding: 2rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__form-header h3 {
    margin-bottom: 0.25rem;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__form-header p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__employers {
    gap: 1rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__employer {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__employer-top {
    margin-bottom: 1.25rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__employer-top h4 {
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__employer-top button {
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 700;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__grid {
    gap: 1.25rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field label,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group p,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__checkbox {
    margin: 0;
    color: #475569;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field input,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field select,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field textarea {
    height: 2.75rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: transparent;
    color: #0f172a;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field select {
    background-color: #fff;
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field textarea {
    height: auto;
    min-height: 5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    resize: none;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field input::placeholder,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field textarea::placeholder {
    color: #64748b;
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 0.875rem;
    opacity: 1;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field input:focus,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field select:focus,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group label {
    flex: 1 1 0;
    height: 2.5rem;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group label:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group:has(input[value="Yes"]:checked) label:has(input[value="Yes"]),
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group:has(input[value="No"]:checked) label:has(input[value="No"]) {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group p+label {
    margin-top: 0;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group p {
    width: 100%;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__choice-group p {
    grid-column: 1 / -1;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__add-employer {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding: 0.75rem 1rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #fff;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: none;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__add-employer:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__add-employer:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #cbd5e1;
    background: #fff;
    color: #64748b;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__step-divider {
    margin-top: -0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification,
.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__captcha {
    margin-top: 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification-copy {
    flex: 1 1 auto;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification-copy label {
    color: var(--navy);
    font-family: "Brandon Grotesque", var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification button {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 0.5rem;
    padding: 0;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__certification button:hover {
    text-decoration: underline;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__actions {
    justify-content: space-between;
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__button {
    height: 3rem;
    min-height: 0;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: none;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__button:not(.pflex-careers-application__button--ghost) {
    padding: 0 2rem;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__button--ghost {
    padding: 0 1.5rem;
    color: #475569;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__button--ghost:hover {
    background: #f1f5f9;
    color: var(--navy);
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field label.pflex-careers-application__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field label.pflex-careers-application__checkbox input[type="checkbox"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 2px solid #7a7a7a;
    border-radius: 0.1875rem;
    background-color: #fff;
    accent-color: #0078D4;
    box-shadow: none;
    cursor: pointer;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field label.pflex-careers-application__checkbox input[type="checkbox"]:checked {
    border-color: #0078D4;
    background-color: #0078D4;
}

.pflex-careers-application.is-step-three [data-careers-step="3"] .pflex-careers-application__field label.pflex-careers-application__checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.3125rem;
    height: 0.5625rem;
    border: solid #fff;
    border-width: 0 0.125rem 0.125rem 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.pflex-careers-application__error {
    min-height: 0;
    color: #dc2626;
    font-size: 0.75rem;
    line-height: 1.3;
}

.pflex-careers-application__modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 24, 37, 0.72);
}

.pflex-careers-application__modal[hidden] {
    display: none;
}

.pflex-careers-application__modal-dialog {
    position: relative;
    width: min(42rem, 100%);
    max-height: 82vh;
    overflow: auto;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.pflex-careers-application__modal-dialog h3 {
    font-family: 'Segoe UI Semibold';
    margin: 0 2rem 1rem 0;
    color: var(--navy);
    font-size: 18px;
}

.pflex-careers-application__modal-x {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--muted-fg);
    cursor: pointer;
}

.pflex-careers-application__modal-x:hover {
    background: hsl(210, 23%, 94%);
    color: var(--navy);
}

.pflex-careers-application__modal-dialog>.pflex-careers-application__button--inline {
    float: right;
    border-radius: var(--radius-full);
    padding: 0 2.5rem;
    height: 2.75rem;
    margin-top: 0.5rem;
}

.pflex-careers-application__terms {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.pflex-careers-application__terms p {
    margin: 0;
    color: #45556c;
    font-size: 0.875rem;
    line-height: 1.6;
}

.pflex-careers-application__terms p:nth-last-child(2) {
    font-weight: 500;
}

.pflex-careers-application__success {
    padding: 2rem;
    text-align: center;
}

.pflex-careers-application__success-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    background: #dcfce7;
    color: #16a34a;
}

.pflex-careers-application__success-title {
    margin: 0 0 0.75rem;
    color: var(--navy);
    font-size: 1.75rem;
    font-weight: 800;
}

.pflex-careers-application__success-message {
    max-width: 32rem;
    margin: 0 auto 1rem;
    color: var(--muted-fg);
}

.pflex-careers-application__success-list {
    max-width: 30rem;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: hsl(210, 23%, 97%);
    color: var(--muted-fg);
    text-align: left;
}

.pflex-careers-application__success-list li+li {
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .pflex-careers-application__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pflex-careers-application__field {
        grid-column: 1 / -1;
    }

    .pflex-careers-application__field--half {
        grid-column: span 1;
    }

    .pflex-careers-application__field--quarter {
        grid-column: span 1;
    }

    .pflex-careers-application__day-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* Fade-up animation for careers page */
@keyframes pflex-fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .pflex-careers-application {
        padding: 3rem 1rem 4rem;
    }

    .pflex-careers-application__step {
        padding: 1.5rem 1rem;
    }

    .pflex-careers-application__progress {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pflex-careers-application__upload {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pflex-careers-application__actions {
        flex-direction: column-reverse;
    }

    .pflex-careers-application__button {
        width: 100%;
    }

    .pflex-careers-application__card,
    .pflex-careers-application__success,
    .pflex-careers-application__progress {
        width: 100%;
    }

    .pflex-careers-application__field--row {
        flex-direction: column;
    }
}

/* =========================================================================
   PARTNER PAGE
   ========================================================================= */
.pflex-partner-page {
    padding-top: 0;
}

.pflex-partner-hero {
    background: var(--navy);
    color: #fff;
    padding: 3.5rem 0 5rem;
}

@media (min-width: 768px) {
    .pflex-partner-hero {
        padding: 3.5rem 0 5rem;
    }
}

.pflex-partner-hero__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 var(--section-px);
    text-align: center;
}

.pflex-partner-hero__heading {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.pflex-partner-hero__subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pflex-partner-hero__subtext {
        font-size: 1rem;
    }
}

.pflex-partner-highlights {
    padding: 2.5rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
}

.pflex-partner-highlights__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 var(--section-px);
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .pflex-partner-highlights__inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pflex-partner-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.pflex-partner-highlight__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.pflex-partner-highlight__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.pflex-partner-highlight__desc {
    font-size: 0.75rem;
    color: var(--muted-fg);
}

.pflex-partner-form-section {
    padding: 2.5rem 0 3.5rem;
}

.pflex-partner-form-section__inner {
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 var(--section-px);
}

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.pflex-contact-page {
    padding-top: 80px;
}

/* Contact Hero */
.pflex-contact-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 3.5rem 1.5rem;
    background: var(--navy);
    color: #fff;
    text-align: center;
}

@media (min-width: 768px) {
    .pflex-contact-hero {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.pflex-contact-hero__container {
    max-width: 72rem;
    margin: 0 auto;
}

.pflex-contact-hero__eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sky-400);
    margin-bottom: 0.75rem;
}

.pflex-contact-hero__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .pflex-contact-hero__title {
        font-size: 2.25rem;
    }
}

.pflex-contact-hero__description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pflex-contact-hero__description {
        font-size: 1rem;
    }
}

.pflex-contact-hero--editor {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    background: var(--navy) !important;
    color: #fff !important;
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.editor-styles-wrapper .pflex-contact-hero--editor,
.block-editor-block-list__block .pflex-contact-hero--editor {
    background: var(--navy) !important;
    color: #fff !important;
    max-width: none;
    text-align: center;
}

.editor-styles-wrapper .pflex-contact-hero--editor .pflex-contact-hero__title,
.block-editor-block-list__block .pflex-contact-hero--editor .pflex-contact-hero__title {
    color: #fff !important;
}

.editor-styles-wrapper .pflex-contact-hero--editor .pflex-contact-hero__description,
.block-editor-block-list__block .pflex-contact-hero--editor .pflex-contact-hero__description {
    color: rgba(255, 255, 255, 0.7) !important;
}

.editor-styles-wrapper .pflex-contact-hero--editor .pflex-contact-hero__eyebrow,
.block-editor-block-list__block .pflex-contact-hero--editor .pflex-contact-hero__eyebrow {
    color: var(--sky-400) !important;
}

.pflex-contact-highlights {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(217, 226, 236, 0.6);
    background: #f4f8fb;
}

@media (min-width: 768px) {
    .pflex-contact-highlights {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.pflex-contact-highlights__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pflex-contact-highlights__inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pflex-contact-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.pflex-contact-highlight__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.pflex-contact-highlight__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pflex-contact-highlight__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.35;
    margin: 0;
}

.pflex-contact-highlight__description {
    font-size: 0.75rem;
    color: var(--muted-fg);
    line-height: 1.45;
    margin: 0;
    max-width: 14rem;
}

.pflex-contact-highlights--editor {
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

.editor-styles-wrapper .pflex-contact-highlights--editor,
.block-editor-block-list__block .pflex-contact-highlights--editor {
    max-width: none;
}

.pflex-contact-form-section {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 2.5rem 1.5rem;
    background: var(--background);
}

@media (min-width: 768px) {
    .pflex-contact-form-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.pflex-contact-form-card {
    width: 100%;
    max-width: 42rem !important;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid rgba(217, 226, 236, 0.7);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(15, 35, 52, 0.1), 0 1px 2px -1px rgba(15, 35, 52, 0.1);
    backdrop-filter: blur(8px);
    font-family: "Brandon Grotesque", var(--font-sans) !important;
    letter-spacing: 0 !important;
}

@media (min-width: 768px) {
    .pflex-contact-form-card {
        width: 50%;
    }
}

.pflex-contact-form-card__header {
    margin-bottom: 0.75rem;
}

.pflex-contact-form-card__title {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1 !important;
    letter-spacing: 0 !important;
    margin: 0;
    font-family: "Brandon Grotesque", var(--font-sans) !important;
}

.pflex-contact-form-card__subtitle {
    font-size: 0.75rem !important;
    color: var(--muted-fg);
    line-height: 1rem !important;
    letter-spacing: 0 !important;
    margin: 14px 0 0;
    font-family: "Brandon Grotesque", var(--font-sans) !important;
}

.pflex-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pflex-contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .pflex-contact-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pflex-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pflex-contact-form__field--full {
    grid-column: 1 / -1;
}

.pflex-contact-form__field--half {
    grid-column: span 1;
}

.pflex-contact-form__label {
    font-size: 0.75rem !important;
    font-weight: 500;
    color: var(--foreground);
    line-height: 1rem !important;
    letter-spacing: 0 !important;
    font-family: "Brandon Grotesque", var(--font-sans) !important;
}

.pflex-contact-form__input {
    width: 100%;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--foreground);
    font-family: "Brandon Grotesque", var(--font-sans) !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    letter-spacing: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 35, 52, 0.08);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pflex-contact-form__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1), 0 1px 3px rgba(15, 35, 52, 0.08);
}

.pflex-contact-form__input.has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.pflex-contact-form__input::placeholder {
    color: hsl(213, 12%, 48%);
}

.pflex-contact-form__textarea {
    height: auto;
    min-height: 3.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    resize: vertical;
}

.pflex-contact-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.pflex-contact-form__captcha {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.pflex-contact-form__captcha-note {
    margin: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--muted-fg);
    font-size: 0.75rem;
}

.pflex-contact-form__error {
    display: none;
    font-size: 0.75rem;
    color: #dc2626;
    line-height: 1rem;
    letter-spacing: 0;
}

.pflex-contact-form__error:not(:empty) {
    display: block;
}

.pflex-contact-form__button {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 2rem;
    border: 1px solid rgba(var(--primary-rgb), 0.95);
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-family: "Brandon Grotesque", var(--font-sans) !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    line-height: 1.25rem !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.pflex-contact-form__button:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
}

.pflex-contact-form__button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pflex-contact-form__button:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    pointer-events: none;
}

.pflex-btn__spinner {
    display: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pflex-btn-spin 0.6s linear infinite;
}

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

.pflex-contact-form-section--editor {
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

.pflex-contact-form-section.is-success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28rem;
}

.pflex-contact-success-modal {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
}

.pflex-contact-success-modal__dialog {
    padding: 2rem;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(15, 35, 52, 0.12);
    text-align: center;
}

.pflex-contact-success-modal__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflex-contact-success-modal__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pflex-contact-success-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 0.75rem;
}

.pflex-contact-success-modal__message {
    font-size: 0.9375rem;
    color: var(--muted-fg);
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 26rem;
}

.pflex-contact-success-modal__cta {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 2rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.pflex-contact-success-modal__cta:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
}

.pflex-editor-field-group {
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.pflex-contact-footer {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 1.5rem;
    border-top: 1px solid rgba(217, 226, 236, 0.75);
    background: #f3f8fc;
}

.pflex-page__content .pflex-contact-footer.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.pflex-contact-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pflex-contact-footer__inner {
        flex-direction: row;
    }
}

.pflex-contact-footer__copy {
    font-size: 0.75rem;
    color: var(--muted-fg);
    line-height: 1.5;
    margin: 0;
}

.pflex-contact-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pflex-contact-footer__link {
    font-size: 0.75rem;
    color: var(--muted-fg);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pflex-contact-footer__link:hover {
    color: var(--primary);
}

.pflex-contact-footer--editor {
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

.pflex-contact-section {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.pflex-contact-section__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem var(--section-px) 3.5rem;
}

.pflex-contact-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .pflex-contact-grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
    }
}

.pflex-contact-main__heading {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .pflex-contact-main__heading {
        font-size: 1.875rem;
    }
}

.pflex-contact-main__subtext {
    font-size: 0.875rem;
    color: var(--muted-fg);
    max-width: 32rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .pflex-contact-main__subtext {
        font-size: 1rem;
    }
}

.pflex-contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pflex-contact-aside__text {
    font-size: 0.75rem;
    color: var(--muted-fg);
    margin-top: 0.5rem;
}

/* =========================================================================
   WordPress Admin Bar Spacing
   ========================================================================= */
body.admin-bar .pflex-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .pflex-header {
        top: 46px;
    }
}
