/* FluidPro website styles. Most content, images and logos should be changed in content.py, not here. */

/* =========================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    --navy: #0b1f2a;
    --deep: #07151d;
    --navy2: #123247;
    --blue: #19a9ed;
    --blue2: #0878b9;
    --ink: #15232d;
    --text: #40525c;
    --muted: #6d7c84;
    --paper: #f4f7f8;
    --white: #fff;
    --border: #dce5e9;
    --max: 1280px;
    --pad: clamp(22px, 5vw, 70px);
    --ease: 220ms ease;
}

/* =========================================
   2. GLOBAL RESET & BASE TYPOGRAPHY
   ========================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px; /* [CONTROLS] Base body text size for professional readability */
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h2 {
    font-size: clamp(34px, 4vw, 58px); /* [CONTROLS] Responsive size for all <h2> section headings */
    line-height: 1.05;
    letter-spacing: -2px;
}
h3 {
    font-size: 22px; /* [CONTROLS] Standard size for <h3> subheadings and card titles */
    line-height: 1.2;
}

/* =========================================
   3. UTILITIES & HEADERS
   ========================================= */
.eyebrow {
    font-size: 15px; /* [CONTROLS] Small uppercase labels (e.g., "FLUIDS + GASES", "APPLICATION SUPPORT") */
    font-weight: 900;
    letter-spacing: 2.2px;
    color: var(--blue);
    text-transform: uppercase;
}

/* =========================================
   4. SITE HEADER & NAVIGATION (AUTO-CENTERING SYSTEM)
   ========================================= */
.site-header {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* [CONTROLS] Pushes left logo to far-left, right logo to far-right */
    padding: 0 var(--pad);
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    flex: 1; /* [CONTROLS] Takes all available horizontal space between the two logos */
    display: flex;
    align-items: center;
    justify-content: center; /* [CONTROLS] Centers navigation items horizontally */
    gap: clamp(16px, 2vw, 28px);
}
.main-nav a {
    font-size: 16px; /* [CONTROLS] Navigation link text size (Home, Dosing, etc.) */
    font-weight: 900;
    padding: 29px 0;
    position: relative;
}
.main-nav a:after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 2px;
    background: var(--blue); transform: scaleX(0); transition: transform var(--ease);
}
.main-nav a:hover:after { transform: scaleX(1); }

/* [CONTROLS] Left toolbar logo positioning */
.brand-left {
    flex: 0 0 auto; /* [CONTROLS] Prevents logo from shrinking when nav grows */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.brand-left img {
    width: 280px;       /* [EDIT] Left logo width */
    max-height: 220px;  /* [EDIT] Left logo max height */
    object-fit: contain;
}

/* [CONTROLS] Right toolbar logo positioning */
.brand {
    flex: 0 0 auto; /* [CONTROLS] Prevents logo from shrinking when nav grows */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 275px;
    margin-right: calc(-1.5 * var(--pad)); /* Control header distance padding on right */
}
.brand img { width: 540px; max-height: 1554px; object-fit: contain; }
.brand-fallback {
    font-size: 24px; /* [CONTROLS] Fallback text logo size (when image fails to load) */
    text-align: right;
    font-weight: 900;
}
.brand-fallback small {
    display: block;
    font-size: 14px; /* [CONTROLS] Fallback tagline size (minimum 14px for readability) */
    letter-spacing: 1.7px;
    color: var(--muted);
}

/* =========================================
   5. BUTTONS & ACTION LINKS
   ========================================= */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn, .ghost, .dark-btn, .outline-btn, .text-link {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; /* [CONTROLS] Primary button and link text size */
    font-weight: 900;
    letter-spacing: .4px;
    transition: .2s ease;
}
.btn { min-height: 49px; background: var(--blue); color: var(--deep); border: 0; padding: 0 22px; }
.btn:hover { background: #4ac2f6; transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; }
.ghost { min-height: 49px; padding: 0 22px; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.ghost:hover { background: rgba(255, 255, 255, .08); }
.text-link { color: var(--blue2); justify-content: flex-start; }
.dark-btn, .outline-btn { min-height: 48px; padding: 0 20px; }
.dark-btn { background: var(--deep); color: #fff; }
.outline-btn { border: 1px solid rgba(7, 21, 29, .4); color: var(--deep); }

/* =========================================
   6. HERO & DIVISION SECTIONS
   ========================================= */
.hero, .division-hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1.05fr .95fr; background: var(--navy); color: #fff; }
.hero-copy, .division-copy { padding: clamp(70px, 8vw, 125px) clamp(35px, 6.5vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.hero h1, .division-hero h1 {
    font-size: clamp(48px, 5.7vw, 84px); /* [CONTROLS] Large hero/main section headline size */
    line-height: .96;
    letter-spacing: -4px;
    margin: 17px 0 28px;
}
.hero h1 span { color: var(--blue); }
.hero-copy > p:last-of-type, .division-copy > p:last-of-type {
    max-width: 700px;
    color: #c5d3da;
    font-size: 18px; /* [CONTROLS] Hero descriptive paragraph size */
}

/* =========================================
   [MODIFIED] HERO MEDIA & IMAGE CONTROL
   ========================================= */
.hero-media, .division-media {
    position: relative;
    min-height: calc(100vh - 82px); /* [FIXED] Restored to match hero height (was 100px) */
    overflow: hidden;
    background: var(--blue);
    /* [ADD] Center-relative control variables */
    --hero-scale: 1;        /* Zoom level (1 = 100%, 1.1 = 110%) */
    --hero-x: 0px;          /* Horizontal shift from exact center */
    --hero-y: 0px;          /* Vertical shift from exact center */
}

.hero-media > img, .division-media > img {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    min-height: calc(100vh - 82px);
    object-fit: cover;
    object-position: center center;
    /* [ADD] Apply center-relative transform */
    transform: translate(calc(-50% + var(--hero-x)), calc(-50% + var(--hero-y))) scale(var(--hero-scale));
    transition: transform 0.4s ease;
}

.equation { position: absolute; left: 35px; bottom: 35px; width: min(380px, calc(100% - 70px)); padding: 26px 30px; background: rgba(7, 21, 29, .9); border: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; gap: 8px; }
.equation i { font-style: normal; color: var(--blue); font-weight: 900; }

.equation strong {
    font-size: 28px; /* [CONTROLS] "FLUIDPRO" text inside the equation box */
    color: var(--blue);
}
.crumb {
    font-size: 15px; /* [CONTROLS] Breadcrumb text size (e.g., "FluidPro / Dosing") */
    color: #8fa4ae !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 35px;
}
.division-media > div { position: absolute; left: 30px; bottom: 30px; background: rgba(7, 21, 29, .9); border-left: 3px solid var(--blue); padding: 20px 24px; }
.division-media small {
    display: block;
    color: var(--blue);
    font-weight: 900;
    letter-spacing: 1.8px;
    font-size: 14px; /* [CONTROLS] Category label in division media overlay */
}
.division-media strong {
    display: block;
    margin-top: 5px;
    font-size: 22px; /* [CONTROLS] Bold headline in division media overlay */
}

/* =========================================
   7. INTRO & GRID LAYOUTS
   ========================================= */
.intro { max-width: var(--max); margin: auto; padding: 105px var(--pad) 70px; }
.intro > p:last-child { max-width: 700px; color: var(--text); font-size: 17px; }
.intro.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.home-grid { max-width: var(--max); margin: auto; padding: 10px var(--pad) 115px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.home-grid article { background: #fff; border: 1px solid var(--border); padding: 30px; }
.home-photo { height: 360px; margin: -30px -30px 28px; overflow: hidden; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-grid article > span {
    font-size: 14px; /* [CONTROLS] Card category labels (e.g., "01 / FLUIDS") */
    font-weight: 900;
    color: var(--blue2);
    letter-spacing: 1.5px;
}
.home-grid article h2 {
    font-size: 36px; /* [CONTROLS] Home card heading size */
    margin: 12px 0;
}
.home-grid article p {
    color: var(--muted);
    font-size: 16px; /* [CONTROLS] Home card descriptive paragraph size */
}
.products { background: #fff; padding: 100px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 120px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 55px; }
.section-head > p { max-width: 430px; color: var(--muted); font-size: 16px; } /* [CONTROLS] Section subtitle size */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-grid article { background: var(--paper); border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-image { height: 300px; padding: 22px; background: #fff; border-bottom: 1px solid var(--border); }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-copy { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product-copy small {
    font-size: 14px; /* [CONTROLS] Product tag/label size (minimum 14px) */
    font-weight: 900;
    color: var(--blue2);
    letter-spacing: 1.5px;
}
.product-copy h3 {
    margin: 12px 0;
    font-size: 20px; /* [CONTROLS] Product title size */
}
.product-copy p {
    color: var(--muted);
    font-size: 16px; /* [CONTROLS] Product description size */
}
.product-copy .text-link { margin-top: auto; }

/* =========================================
   8. ENGINEERING, HISTORY & PARTNER
   ========================================= */
.engineering { padding: 110px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); background: var(--paper); }
.engineering > div:first-child { max-width: 750px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid var(--border); }
.steps article { padding: 30px; min-height: 240px; border-right: 1px solid var(--border); background: rgba(255, 255, 255, .35); }
.steps article:first-child { border-left: 1px solid var(--border); }
.steps span {
    font-size: 14px; /* [CONTROLS] Step number labels (e.g., "01") */
    color: var(--blue2);
    font-weight: 900;
}
.steps h3 {
    margin-top: 45px;
    font-size: 20px; /* [CONTROLS] Step title size */
}
.steps p {
    color: var(--muted);
    font-size: 16px; /* [CONTROLS] Step description size */
}
.since { display: grid; grid-template-columns: .75fr 1.25fr; background: var(--navy); color: #fff; align-items: center; }
.since > div:last-child { padding: 80px; max-width: 800px; }
.since > div:last-child > p:last-child { color: #bdccd3; font-size: 16px; } /* [CONTROLS] Since section paragraph */
.year {
    display: flex; align-items: center; justify-content: center; align-self: stretch;
    background: var(--deep); color: var(--blue);
    font-size: clamp(90px, 13vw, 205px); font-weight: 900; letter-spacing: -9px;
    padding: 50px 20px;
}
.partner { max-width: var(--max); margin: auto; padding: 110px var(--pad); display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.partner > div:first-child { max-width: 680px; }
.partner > div:first-child > p:not(.eyebrow) { color: var(--text); font-size: 16px; } /* [CONTROLS] Partner description text */
.partner-logo { min-height: 300px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 45px; }
.partner-logo img { max-width: 230px; max-height: 100px; }

/* =========================================
   9. APPLICATION & RFQ FORMS
   ========================================= */
.application { padding: 90px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); background: var(--navy); color: #fff; }
.application > p:not(.eyebrow) { max-width: 750px; color: #bfd0d8; font-size: 18px; } /* [CONTROLS] Application section paragraph */
.application .btn { margin-top: 20px; }
.rfq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 105px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); background: var(--navy2); color: #fff; }
.rfq > div > p:not(.eyebrow) { color: #c2d0d7; font-size: 18px; } /* [CONTROLS] RFQ section paragraph */
.rfq form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rfq label {
    font-size: 14px; /* [CONTROLS] Form label size (minimum 14px) */
    font-weight: 800;
    color: #b9cad2;
    text-transform: uppercase;
}
.rfq input, .rfq textarea { display: block; width: 100%; margin-top: 7px; padding: 14px; border: 1px solid #6b818c; background: #fff; color: #111; outline: 0; font-size: 16px; } /* [CONTROLS] Form input/textarea text size */
.rfq textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }
.rfq #status {
    font-size: 14px; /* [CONTROLS] Form submission success/error message size */
    color: #d4edf8;
}

/* =========================================
   10. CONTACT & FOOTER
   ========================================= */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; background: var(--blue); padding: 75px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.contact .eyebrow { color: #0b3e56; font-size: 15px; } /* [CONTROLS] Contact section eyebrow label */
.contact > div:first-child > p:last-child { max-width: 680px; font-size: 17px; } /* [CONTROLS] Contact paragraph size */
.contact > div:last-child { display: flex; flex-direction: column; gap: 10px; min-width: 250px; }
.dark-btn, .outline-btn { min-height: 48px; padding: 0 20px; }
.dark-btn { background: var(--deep); color: #fff; }
.outline-btn { border: 1px solid rgba(7, 21, 29, .4); color: var(--deep); }

.site-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 65px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 0; background: var(--deep); color: #91a5af; }
.footer-logo { width: 170px; max-height: 55px; object-fit: contain; margin-bottom: 18px; }
.site-footer h3 {
    font-size: 14px; /* [CONTROLS] Footer column heading size (minimum 14px) */
    color: #fff;
}
.site-footer > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer p, .site-footer a {
    font-size: 15px; /* [CONTROLS] Footer text and link size */
    margin: 0;
}
.site-footer b {
    color: var(--blue);
    font-size: 14px; /* [CONTROLS] Footer bold/accent text size */
}
.footer-bottom {
    grid-column: 1 / -1 !important;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px; /* [CONTROLS] Copyright bar text size */
}

/* =========================================
   11. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1000px) {
    .main-nav { display: none; }
    .hero, .division-hero { grid-template-columns: 1fr; }
    .hero-media, .division-media { min-height: 500px; }
    .hero-media > img, .division-media > img { min-height: 500px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .intro.two-col, .partner, .rfq { grid-template-columns: 1fr; }
    .home-grid { grid-template-columns: 1fr; }
    .since { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .site-header { height: 70px; padding: 0 5px; }
    /* [CONTROLS] Mobile header: nav is hidden, logos stay at edges via space-between */
    .brand-left { margin-right: 12px; } /* [EDIT] Adjust left logo spacing on mobile */
    .brand-left img { width: 100px; }   /* [EDIT] Scale left logo down on mobile */
    .brand { min-width: 130px; }
    .brand img { width: 130px; }
    .brand-fallback { font-size: 22px; } /* [CONTROLS] Mobile fallback logo size */
    .brand-fallback small { font-size: 14px; } /* [CONTROLS] Mobile fallback tagline size */
    .hero-copy, .division-copy { padding: 65px 22px; }
    .hero h1, .division-hero h1 {
        font-size: clamp(36px, 10vw, 56px); /* [CONTROLS] Scaled down mobile headline size */
        letter-spacing: -2px;
    }
    .hero-copy > p:last-of-type, .division-copy > p:last-of-type { font-size: 16px; } /* [CONTROLS] Mobile hero paragraph */
    .actions { flex-direction: column; }
    .hero-media, .division-media, .hero-media > img, .division-media > img { min-height: 410px; }
    .equation { left: 18px; bottom: 18px; width: calc(100% - 36px); }
    .equation strong { font-size: 24px; } /* [CONTROLS] Mobile equation strong text */
    .intro, .products, .engineering, .application, .rfq, .partner { padding-left: 22px; padding-right: 22px; }
    .product-grid, .steps, .rfq form { grid-template-columns: 1fr; }
    .wide { grid-column: 1; }
    .product-image { height: 260px; }
    .product-copy h3 { font-size: 18px; } /* [CONTROLS] Mobile product title */
    .product-copy p { font-size: 15px; } /* [CONTROLS] Mobile product description */
    .since > div:last-child { padding: 65px 22px; }
    .since > div:last-child > p:last-child { font-size: 15px; } /* [CONTROLS] Mobile since paragraph */
    .home-grid { padding-left: 22px; padding-right: 22px; }
    .home-grid article h2 { font-size: 32px; } /* [CONTROLS] Mobile home card heading */
    .home-grid article p { font-size: 15px; } /* [CONTROLS] Mobile home card paragraph */
    .contact { padding: 65px 22px; }
    .contact > div:first-child > p:last-child { font-size: 16px; } /* [CONTROLS] Mobile contact paragraph */
    .site-footer { grid-template-columns: 1fr; padding: 55px 22px 0; }
    .site-footer h3 { font-size: 14px; }
    .site-footer p, .site-footer a { font-size: 14px; }
    .footer-bottom { grid-column: 1 !important; font-size: 14px; }
    .section-head { align-items: start; flex-direction: column; }
    .main-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* =========================================
   12. WIZARD FORM STYLING
   ========================================= */
.rfq-intro { max-width: 680px; color: #c2d0d7; }
.rfq-intro h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin: 12px 0; }
.rfq-intro p { font-size: 16px; line-height: 1.6; }

.wizard-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
}

.wizard-progress { margin-bottom: 32px; }
.progress-track { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; margin-bottom: 16px; overflow: hidden; }
.progress-fill { height: 100%; width: 25%; background: var(--blue); transition: width 0.4s ease; }
.progress-steps { display: flex; justify-content: space-between; gap: 12px; }
.progress-steps span {
    font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}
.progress-steps span.active { color: var(--blue); }

.wizard-form { position: relative; min-height: 320px; }
.wizard-step {
    display: none; opacity: 0; transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.wizard-step.active { display: block; opacity: 1; transform: translateX(0); }
.wizard-step h3 { color: #fff; font-size: 20px; margin: 0 0 24px; font-weight: 700; }

/* Override inherited .wizard-step rules for success state */
.wizard-step.success-state {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 320px;
    transform: none !important;
    opacity: 1 !important;
    padding: 48px 0 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* When inactive, hide it (overrides the display:flex !important when not active) */
.wizard-step.success-state:not(.active) {
    display: none !important;
}

.option-grid, .checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-card, .checkbox-card {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 10px;
}
.option-card:hover, .checkbox-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.option-card input, .checkbox-card input { accent-color: var(--blue); width: 18px; height: 18px; cursor: pointer; }
.option-card span, .checkbox-card span { color: #e2e8f0; font-size: 14px; font-weight: 600; }

.slider-group { margin-bottom: 24px; }
.slider-group label { display: flex; justify-content: space-between; color: #c2d0d7; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.slider-group input[type="range"] { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; outline: none; -webkit-appearance: none; }
.slider-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--blue); border-radius: 50%; cursor: pointer; border: 2px solid #fff; }
.slider-group output { color: var(--blue); font-weight: 800; font-size: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.wizard-form input, .wizard-form textarea {
    width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px; color: #fff; font-size: 15px; outline: none; transition: border-color 0.2s ease;
}
.wizard-form input:focus, .wizard-form textarea:focus { border-color: var(--blue); background: rgba(255, 255, 255, 0.08); }
.wizard-form textarea { resize: vertical; min-height: 100px; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.wizard-nav .btn { min-width: 140px; justify-content: center; }


/* =========================================
   [REPLACED] SUCCESS STATE STYLING (Matches Reference Image)
   ========================================= */
.success-state {
    text-align: center;
    padding: 48px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.success-state > * {
    margin-left: auto;
    margin-right: auto;
}

.success-icon-box {
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(25, 169, 237, 0.25);
}

.success-state h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 auto 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.success-state p {
    color: #c2d0d7;
    font-size: 15px;
    margin: 0 auto 24px;
    line-height: 1.6;
    max-width: 420px;
    text-align: center;
}

.blue-link {
    display: inline-block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto;
    transition: opacity 0.2s ease;
}
.blue-link:hover { opacity: 0.8; text-decoration: underline; }


/* =========================================
   [ADD] HERO IMAGE SIZE & POSITION CONTROL
   ========================================= */
/* Base media container with CSS variables for precise control */
.hero-media, .division-media {
    position: relative;
    min-height: 100px;
    overflow: hidden;
    background: var(--blue);
    /* [EDIT] Default image control values */
    --img-scale: 1;           /* 0.5 = 50% size, 1.0 = 100%, 1.5 = 150% */
    --img-center-x: 50%;      /* Horizontal anchor point (0% = left edge, 50% = center, 100% = right edge) */
    --img-center-y: 50%;      /* Vertical anchor point (0% = top edge, 50% = center, 100% = bottom edge) */
}

/* Image positioning & scaling logic */
.hero-media > img, .division-media > img {
    width: 80%; height: 50%;
    min-height: calc(20vh - 82px);
    object-fit: cover;
    position: absolute;
    top: var(--img-center-y);
    left: var(--img-center-x);
    transform: translate(-50%, -50%) scale(var(--img-scale));
    transform-origin: center center;
    transition: transform 0.4s ease, width 0.4s ease, height 0.4s ease;
}

/* [EDIT] Specific image overrides - adjust these values to fit your assets */
.hero-media img[alt*="fluidpro-hero"] {
    --img-scale: 0.2;
    --img-center-x: 55%;
    --img-center-y: 45%;
}
.division-media img[alt*="dosing-hero"] {
    --img-scale: 0.2;
    --img-center-x: 50%;
    --img-center-y: 50%;
}
.division-media img[alt*="gas-compression-hero"] {
    --img-scale: 0.2;
    --img-center-x: 45%;
    --img-center-y: 55%;
}


@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 768px) {
    .option-grid, .checkbox-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .progress-steps span { font-size: 9px; letter-spacing: 1px; }
    .wizard-container { padding: 20px; }
}

/* =========================================
   [FIX] WIZARD FORM — force single column, centered
   ========================================= */
.rfq #wizard-form,
.rfq form.wizard-form {
    display: block !important;
    grid-template-columns: none !important;
    width: 100%;
    margin: 0 auto;
}

.wizard-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wizard-form {
    width: 100%;
    margin: 0 auto;
}

/* Every wizard step is full-width and block by default */
.wizard-step {
    width: 100%;
    margin: 0 auto;
}

/* Success state — flex column, fully centered */
.wizard-step.success-state.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    width: 100% !important;
    min-height: 320px;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 auto !important;
    padding: 48px 0 24px;
}

/* Also center the tick, heading, paragraph, link */
.success-state .success-icon-box,
.success-state h3,
.success-state p,
.success-state .blue-link {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.success-state h3 { width: 100%; }
.success-state p  { max-width: 420px; }


/* =========================================
   [ADD] ABOUT PAGE STYLING (PDF-ALIGNED)
   ========================================= */
.about-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 22px;
    background: var(--blue);
    color: #fff;
}
.about-hero h1 { font-size: clamp(36px, 5vw, 64px); margin: 0 0 24px; font-weight: 800; letter-spacing: -1px; }
.about-hero p { max-width: 700px; color: #c5d3da; font-size: 18px; line-height: 1.6; }

.about-overview, .about-capabilities, .about-mission-vision, .about-values, .about-ceo, .about-projects, .about-cta {
    padding: 90px var(--pad);
    max-width: var(--max);
    margin: 0 auto;
}
.about-overview h2, .about-capabilities h2, .about-mission-vision h2, .about-values h2, .about-ceo h2, .about-projects h2, .about-cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 0 24px;
    font-weight: 700;
}
.about-overview p, .about-cta p { max-width: 750px; color: var(--text); font-size: 17px; line-height: 1.6; }

.capabilities-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px;
}
.capability-card {
    background: var(--paper); border: 1px solid var(--border); padding: 28px; border-radius: 8px;
}
.capability-card h3 { font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.capability-card p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 40px; }
.mv-card {
    background: var(--navy); color: #fff; padding: 36px; border-radius: 8px; border-left: 4px solid var(--blue);
}
.mv-card h3 { font-size: 22px; margin: 0 0 16px; color: var(--blue); }
.mv-card p { color: #c5d3da; font-size: 16px; line-height: 1.6; margin: 0; }

.objectives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.objective-card { background: var(--paper); border: 1px solid var(--border); padding: 28px; border-radius: 8px; }
.objective-card h3 { font-size: 18px; margin: 0 0 12px; color: var(--ink); }
.objective-card p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }
.value-item { text-align: center; padding: 24px; background: var(--paper); border: 1px solid var(--border); border-radius: 8px; }
.value-item strong { display: block; font-size: 18px; color: var(--blue); margin-bottom: 8px; font-weight: 800; }
.value-item span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.ceo-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; margin-top: 40px; }
.ceo-photo { width: 100%; max-width: 400px; height: auto; border-radius: 8px; object-fit: cover; }
.ceo-title { display: inline-block; background: var(--blue); color: var(--deep); padding: 4px 12px; font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 16px; }
.ceo-content h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 20px; }
.ceo-content p { color: var(--text); font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.leadership-team { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.leadership-team span { background: var(--paper); padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border); }

.about-projects p { margin-bottom: 24px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.project-card { background: var(--paper); border: 1px solid var(--border); padding: 28px; border-radius: 8px; }
.project-card h4 { font-size: 18px; margin: 0 0 12px; color: var(--ink); }
.project-card p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.clients-list { margin-top: 32px; background: var(--navy); color: #fff; padding: 28px; border-radius: 8px; }
.clients-list h4 { margin: 0 0 12px; color: var(--blue); }
.clients-list p { color: #c5d3da; font-size: 15px; line-height: 1.6; margin: 0; }

.about-cta {
    background: var(--blue); color: #fff; text-align: center; padding: 80px var(--pad); margin-top: 60px;
}
.about-cta h2 { color: #fff; margin-bottom: 16px; }
.about-cta p { color: rgba(0,0,0,0.7); margin-bottom: 32px; }

@media (max-width: 768px) {
    .ceo-grid { grid-template-columns: 1fr; text-align: center; }
    .ceo-photo { max-width: 300px; margin: 0 auto; }
    .leadership-team { justify-content: center; }
}
