/* ---------------------------------------------------------
   ZGSP FORM WIZARD — PREMIUM LIGHT THEME
   Cleaned + Refactored + Unified
--------------------------------------------------------- */

/* PAGE BACKGROUND */
body.page-template-zgsp-form-clean {
    background: #F5F5F5 !important;
}

/* WRAPPER */
.zgsp-form-wrapper {
    max-width: 1040px;
    margin: 60px auto 100px auto;
    padding: 0 20px;
}

/* HERO TITLE */
.zgsp-hero-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #0F172A;
    margin: 40px 0 32px 0;
    letter-spacing: 0.04em;
}

/* FORM BASE */
#zgspForm {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 32px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: #0F172A;
}

/* STEP CONTAINERS */
.zgsp-step {
    display: none;
    padding: 24px 20px 28px;
    margin-bottom: 32px;
}

.zgsp-step.active {
    display: block;
}

/* STEP HEADERS (institutional bar) */
.zgsp-step-header {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: #FFFFFF;
    color: #0F172A;
    padding: 14px 18px;
    margin: -24px -20px 20px -20px;
    border-bottom: 2px solid #C6A667;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* MINI PROGRESS BAR */
.zgsp-mini-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 20px auto;
    padding: 10px 0 12px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.zgsp-mini-progress-step {
    flex: 1;
    height: 6px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.zgsp-mini-progress-step::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #C6A667, #FACC15);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity .25s ease, transform .25s ease;
}

.zgsp-mini-progress-step.active::after,
.zgsp-mini-progress-step.completed::after {
    opacity: 1;
    transform: scaleX(1);
}

/* PREMIUM INTRO BLOCK */
.zgsp-investor-intro {
    background: #F8F9FC;
    color: #475569;
    padding: 20px 22px;
    border-radius: 10px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    border-left: 3px solid #C6A667;
}

/* SUBSTEPS (white cards) */
.zgsp-substep {
    display: none;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 22px;
    border: 1px solid #E5E7EB;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .22s ease-out, transform .22s ease-out;
}

.zgsp-substep.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Substep headings + icons */
.zgsp-substep h3 {
    position: relative;
    padding-left: 40px;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 16px;
}

.zgsp-substep[data-substep="1"] h3::before { background-image: url('/wp-content/uploads/icons/market.svg'); }
.zgsp-substep[data-substep="2"] h3::before { background-image: url('/wp-content/uploads/icons/solution.svg'); }
.zgsp-substep[data-substep="3"] h3::before { background-image: url('/wp-content/uploads/icons/business.svg'); }
.zgsp-substep[data-substep="4"] h3::before { background-image: url('/wp-content/uploads/icons/operations.svg'); }
.zgsp-substep[data-substep="5"] h3::before { background-image: url('/wp-content/uploads/icons/finance.svg'); }
.zgsp-substep[data-substep="6"] h3::before { background-image: url('/wp-content/uploads/icons/risk.svg'); }

.zgsp-substep h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Guidance text */
.zgsp-guidance {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 16px;
}

/* ACF FIELDS */
.acf-label label {
    font-weight: 600;
    color: #0F172A;
    font-size: 14px;
    margin-bottom: 6px;
}

.acf-input input,
.acf-input textarea,
.acf-input select {
    border: 1px solid #CBD5E1;
    padding: 10px 12px;
    border-radius: 8px;
    width: 100%;
    font-size: 14px;
    background: #FFFFFF;
    color: #0F172A;
}

.acf-input input:focus,
.acf-input textarea:focus,
.acf-input select:focus {
    border-color: #C6A667;
    box-shadow: 0 0 0 1px #C6A667;
    outline: none;
}

/* NAVIGATION BUTTONS (gold) */
#zgspPrev,
#zgspNext,
.zgsp-submit {
    background: #C6A667;
    color: #0F1A2B;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: 14px;
}

#zgspPrev:hover,
#zgspNext:hover,
.zgsp-submit:hover {
    background: #E8C77A;
    transform: translateY(-1px);
}

/* PREVIEW STEP */
#zgspPreview {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #zgspForm { padding: 24px 16px; }
    .zgsp-step { padding: 20px 14px; }
    .zgsp-step-header { margin: -20px -14px 18px -14px; }
    .zgsp-substep { padding: 18px; }
    #zgspPrev, #zgspNext, .zgsp-submit { width: 100%; }
}

/* ZIMGerm BRAND COLORS PATCH */
.zgsp-hero {
    background-color: #ffffff !important;
    padding: 60px 20px !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.zgsp-hero-title {
    font-size: 3em !important;
    color: #0F1A2B !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.zgsp-hero-desc {
    font-size: 1.2em !important;
    color: #2A2F36 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* ACF MESSAGE BLOCK FINAL FIX */
body.page-id-778 .acf-field-message {
    background-color: #F4F1E8 !important;
    border-left: 0px solid #C6A667 !important;
    color: #0F1A2B !important;
    padding: 24px 28px !important;
    border-radius: 8px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

body.page-id-778 .acf-field-message p {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: #0F1A2B !important;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
}

/* Remove decorative arrows on Next */
#zgspNext::before,
#zgspNext::after,
button#zgspNext::after,
.zgsp-next-btn::after {
    content: none !important;
}

/* PREVIEW TWO-COLUMN LAYOUT */
#zgspPreview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 20px;
}

#zgspPreview dt,
#zgspPreview dd {
    display: block;
}

#zgspPreview dt {
    font-weight: 600;
    margin-bottom: 4px;
    color: #0F1A2B;
}

#zgspPreview dd {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
    color: #2A2F36;
}

/* HERO IMAGE / OVERLAY */
.zgsp-form-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.zgsp-form-hero img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.zgsp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(15, 26, 43, 0.35),
        rgba(15, 26, 43, 0.45)
    );
    border-radius: 14px;
    pointer-events: none;
}

.zgsp-hero-text {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: #FFFFF0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* SUBSTEP NAV PREV/NEXT (INVESTOR) */
.zgsp-subnav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.zgsp-subnav button {
    background: #C6A667;
    color: #0F1A2B;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 18px;
    font-weight: 600;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s ease;
}

.zgsp-subnav button:hover {
    background: #E8C77A;
}

/* MAIN STEP NAV BUTTONS (Next/Prev at bottom) */
.zgsp-nav button {
    background: #C6A667;
    color: #0F1A2B;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.zgsp-nav button:hover {
    background: #E8C77A;
}

/* INVESTOR SUBSTEP NUMBERED NAV (small, non-dominant) */
.zgsp-substep-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 16px 0 24px;
}

.zgsp-substep-nav button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F4F1E8;      /* soft ivory */
    color: #2A2F36;           /* slate text */
    border: none;
    font-weight: 600;
    font-size: 11px;
    opacity: 0.6;             /* non-dominant */
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.zgsp-substep-nav button.active {
    background: #C6A667;      /* gold highlight */
    color: #0F1A2B;
    opacity: 1;
}

.zgsp-substep-nav button:hover {
    background: #E8C77A;
    color: #0F1A2B;
}

/* MAIN STEP DIGITS — TIGHT, NON-DOMINANT */
.zgsp-step-jump {
    display: flex;
    justify-content: center;  /* cluster, no wide gaps */
    gap: 4px;                 /* tight spacing */
    margin: 18px 0;
}

.zgsp-step-jump button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F4F1E8;      /* soft ivory */
    color: #2A2F36;           /* slate text */
    border: none;
    font-weight: 600;
    font-size: 11px;
    opacity: 0.6;             /* non-dominant */
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.zgsp-step-jump button.active {
    background: #C6A667;      /* gold highlight */
    color: #0F1A2B;
    opacity: 1;
}

.zgsp-step-jump button:hover {
    background: #E8C77A;
    color: #0F1A2B;
}





/* ============================================================
   HERO — BOXED, SHORTER, ALWAYS READABLE
   ============================================================ */

/* Boxed hero container */
.zgsp-form-hero {
    max-width: 1200px !important;   /* boxed */
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    height: 240px !important;       /* shorter hero */
    overflow: hidden !important;
}

/* Hero image */
.zgsp-form-hero img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;   /* no stretching */
    border-radius: 14px !important; /* premium corners */
}

/* Overlay (keeps text readable) */
.zgsp-form-hero::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        rgba(15, 26, 43, 0.45),
        rgba(15, 26, 43, 0.55)
    ) !important;
    border-radius: 14px !important;
    pointer-events: none !important;
}

/* HERO TEXT — FORCE IVORY + PREMIUM */
.zgsp-hero-text {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 40px !important;
    color: #FAFAF2 !important;      /* forced ivory */
    text-shadow: 0 2px 6px rgba(0,0,0,0.45) !important;
}

/* Title */
.zgsp-hero-text h1 {
    font-size: 34px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #FAFAF2 !important;      /* forced ivory */
}

/* Subtitle */
.zgsp-hero-text p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 520px !important;
    color: #FAFAF2 !important;      /* forced ivory */
}




/* ============================================================
   HERO IMAGE POSITION — SHOW TABLE + HANDS + MACHINE COMPONENT
   ============================================================ */

/* Force hero image to crop lower (not centered) */
.zgsp-form-hero img {
    object-position: center center !important; 
    /* This shifts the visible area DOWN so the table + hands show */
}

/* If sticky hero is used */
.zgsp-sticky-bg {
    background-position: center center !important;
    /* Same logic: show lower part of image */
}



/* ============================================================
   HERO OVERLAY — REDUCED DARKNESS (more image visible)
   ============================================================ */

.zgsp-form-hero::after,
.zgsp-hero-overlay,
.zgsp-sticky-bg::after {
    background: linear-gradient(
        rgba(15, 26, 43, 0.20),   /* was 0.45 */
        rgba(15, 26, 43, 0.30)    /* was 0.55 */
    ) !important;
}


/* ============================================================
   HERO HEIGHT — SHOW PAPER IN HAND
   ============================================================ */

.zgsp-form-hero,
.zgsp-sticky-hero {
    height: 400px !important;     /* was 220–240, now slightly taller */
    max-height: 400px !important;
    overflow: hidden !important;
}

/* Keep image centered again (you said you re-centered it) */
.zgsp-form-hero img {
    object-position: center center !important;
}

/* Reduced overlay stays intact */
.zgsp-form-hero::after,
.zgsp-hero-overlay,
.zgsp-sticky-bg::after {
    background: linear-gradient(
        rgba(15, 26, 43, 0.20),
        rgba(15, 26, 43, 0.30)
    ) !important;
}


/* ============================================================
   MAIN STEP NUMBERS — LIGHT THEME
   ============================================================ */
.zgsp-step-jump button {
    background: #F4F1E8 !important;   /* light ivory */
    color: #2A2F36 !important;        /* slate */
}

.zgsp-step-jump button.active {
    background: #C6A667 !important;   /* gold */
    color: #0F1A2B !important;        /* midnight */
}


/* ============================================================
   INVESTOR STEP NUMBERS — DARK THEME
   ============================================================ */
.zgsp-substep-nav button {
    background: #0F1A2B !important;   /* midnight */
    color: #F8F7F4 !important;        /* ivory */
}

.zgsp-substep-nav button.active {
    background: #C6A667 !important;   /* gold */
    color: #0F1A2B !important;        /* midnight */
}


/* ============================================================
   PREMIUM PREVIEW — GROUPS, COLOR BLOCKS, SPACING
   ============================================================ */

/* Main preview container */
#zgspPreview {
    padding: 32px !important;
    background: #FFFFFF !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04) !important;
}

/* Group wrapper (Step 1, Step 2, Investor sections, etc.) */
.zgsp-preview-group {
    margin-bottom: 36px !important;
    padding: 24px !important;
    background: #F7F8FA !important;        /* soft sovereign block */
    border-radius: 12px !important;
}

/* Group title */
.zgsp-preview-group h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0F1A2B !important;
    margin-bottom: 18px !important;
}

/* Individual preview items */
.zgsp-preview-item {
    margin-bottom: 16px !important;
    padding: 14px 18px !important;
    background: #FFFFFF !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
}

/* Label inside preview item */
.zgsp-preview-item strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0F1A2B !important;
    margin-bottom: 4px !important;
}



/* ============================================================
   FORCE AMBER TITLES IN PREVIEW (OVERRIDES GLOBAL h1,h2,h3)
   ============================================================ */

#zgspPreview .zgsp-preview-group h3 {
    color: #C6A667 !important;   /* sovereign amber */
}


.zgsp-milestone-block {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f8f8f8;
    border: 1px solid #e2e2e2;
}

.zgsp-milestone-block h4 {
    margin-bottom: 12px;
    color: #0F1A2B; /* midnight */
}

.zgsp-milestone-block .zgsp-preview-item strong {
    color: #C6A667; /* amber */
}



/* Premium unified preview card layout */
.zgsp-preview-section,
.zgsp-preview-subgroup {
    padding: 20px;
    margin-bottom: 24px;
    background: #F8F9FC;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.zgsp-preview-section h3,
.zgsp-preview-subgroup h4 {
    margin-bottom: 16px;
    color: #0F1A2B; /* midnight */
}

.zgsp-preview-item {
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #FFFFFF;
    border-radius: 8px;
    border-left: 0px solid #C6A667; /* amber accent */
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}


.zgsp-preview-guidance {
    text-align: center;
    font-size: 1.05rem;
    color: #0F1A2B; /* midnight */
    margin: 20px 0 30px;
    font-weight: 500;
    letter-spacing: 0.2px;
}


.zgsp-preview-guidance {
    text-align: center;
    font-size: 1.05rem;
    color: #0F1A2B; /* midnight */
    margin: 20px 0 30px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.zgsp-preview-assurance {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #4A5568; /* soft slate */
    font-weight: 400;
    max-width: 700px;
}


.zgsp-preview-assurance-final {
    text-align: center;
    font-size: 0.95rem;
    color: #4A5568; /* soft slate */
    margin: 25px 0 20px;
    font-weight: 400;
    line-height: 1.55;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.zgsp-submit-wrapper {
    text-align: center;
    margin-top: 25px;
}

#zgspSubmit {
    padding: 12px 28px;
    font-size: 1.05rem;
    border-radius: 6px;
    background-color: #0F1A2B; /* Midnight */
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

#zgspSubmit:hover {
    background-color: #2A2F36; /* Precision Slate */
}


/* Force visibility */
#zgspPrev,
#zgspNext {
    display: inline-block !important;
    background-color: #E5E7EB; /* soft grey */
    color: #4A5568; /* slate */
    border: 1px solid #D1D5DB;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect – subtle */
#zgspPrev:hover,
#zgspNext:hover {
    background-color: #D8DBE0;
    color: #2D3748;
}

/* Add arrow before Previous */
#zgspPrev::before {
    content: "← ";
    font-weight: 600;
    margin-right: 4px;
    color: #2D3748;
}

/* Disabled state */
#zgspPrev:disabled,
#zgspNext:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Dimmed Previous/Next buttons */
#zgspPrev,
#zgspNext {
    background-color: #E5E7EB; /* soft grey */
    color: #4A5568; /* slate */
    border: 1px solid #D1D5DB;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect */
#zgspPrev:hover,
#zgspNext:hover {
    background-color: #D8DBE0;
    color: #2D3748;
}

/* Add arrow before Previous */
#zgspPrev::before {
    content: "← ";
    font-weight: 600;
    margin-right: 4px;
    color: #2D3748;
}

/* Disabled state */
#zgspPrev:disabled,
#zgspNext:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Layout: Prev left, Next right */
.zgsp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

/* Base style for Prev/Next */
#zgspPrev,
#zgspNext {
    background-color: #E5E7EB;
    color: #4A5568;
    border: 1px solid #D1D5DB;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* Hover for Prev/Next (dim, not gold) */
#zgspPrev:hover,
#zgspNext:hover {
    background-color: #D8DBE0;
    color: #2D3748;
    transform: translateY(-1px);
}

/* Arrows */
#zgspPrev::before {
    content: "← ";
    font-weight: 600;
    margin-right: 4px;
    color: #2D3748;
}

#zgspNext::after {
    content: " →";
    font-weight: 600;
    margin-left: 4px;
    color: #2D3748;
}

/* Submit stays gold */
#zgspSubmit {
    background-color: #C6A667;
    color: #0F1A2B;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#zgspSubmit:hover {
    background: #E8C77A;
    background-color: rgb(232, 199, 122);
    transform: translateY(-1px);
}


/* Layout: Prev left, Next right */
.zgsp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

/* Base style for Prev/Next */
#zgspPrev,
#zgspNext {
    background-color: #E5E7EB;
    color: #4A5568;
    border: 1px solid #D1D5DB;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* Hover for Prev/Next */
#zgspPrev:hover,
#zgspNext:hover {
    background-color: #D8DBE0;
    color: #2D3748;
    transform: translateY(-1px);
}

/* Arrows */
#zgspPrev::before {
    content: "← ";
    font-weight: 600;
    margin-right: 4px;
    color: #2D3748;
}

#zgspNext::after {
    content: " →";
    font-weight: 600;
    margin-left: 4px;
    color: #2D3748;
}


button#zgspNext::after {
    content: " →";
    font-weight: 600;
    margin-left: 4px;
    color: #2D3748;
}


.zgsp-step-jump button.active {
    background-color: #C6A667 !important;
    color: #0F1A2B !important;
    border-color: #C6A667 !important;
    font-weight: 600;
}
