/* =========================================================
GSE V3 — COMPONENTS CSS
File: gse-components.css

Purpose
-----------------------------------------------------------
Defines reusable UI components for the Garden Service Estimator.

This file controls visual styling for:
• Buttons (primary, secondary, stacked, inline)
• Step cards and headers
• Result card elements (pricing, summary, trust, CTA)
• Marketing components (offer cards, urgency, messaging)
• Conversion elements (saving, urgency, inline offer block)

Scope Rules
-----------------------------------------------------------
• Component-level styling only
• No layout/grid/container rules (handled in gse-layout.css)
• No resets or global typography (handled in gse-base.css)
• No utility classes (handled in gse-utilities.css)

Structure
-----------------------------------------------------------
1. Buttons
2. Step UI
3. Result Card
4. Marketing Components
5. Conversion Components

Notes
-----------------------------------------------------------
• All components use the `.gse-` namespace
• Designed mobile-first
• Optimised for clarity, trust, and conversion

Author: Just A Mowment
Version: GSE V3
========================================================= */

/* ======================================================
GSE V3 — BUTTON SYSTEM
Author: Just A Mowment

Purpose
------------------------------------------------------
Reusable, conflict-proof button system

• Supports stacked + inline layouts
• Icons are isolated (no global SVG bleed)
• No dependency on tick system
====================================================== */

/* ======================================================
GSE TYPOGRAPHY SYSTEM — CLEAN + CONVERSION FOCUSED
====================================================== */

.gse-calculator-v3{
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
HEADLINES (STRONG)
========================================= */

.gse-price-final{
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gse-deal-headline{
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* =========================================
SECONDARY EMPHASIS
========================================= */

.gse-deal-status{
    font-weight: 600;
}

.gse-slot-strong{
    font-weight: 600;
}

/* =========================================
BODY TEXT
========================================= */

.gse-result__summary{
    opacity: 0.85;
}

.gse-result__range{
    font-size:15px;
    margin-top:4px;
    opacity:0.9;
}

.gse-result__time{
    font-size:13px;
    opacity:0.7;
}

/* =========================================
BUTTONS (CRITICAL FOR CONVERSION)
========================================= */
.gse-price-row{
    align-items: center;
}

.gse-price-original{
    opacity: 0.7;
    transform: translateY(2px);
}

.gse-result__summary{
    opacity: 0.85;
}

.gse-deal-headline{
    margin-bottom: 6px;
}

.gse-deal-status{
    margin-bottom: 8px;
}

/* ======================================================
BASE BUTTON
====================================================== */

.gse-btn{

    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;

    padding:14px 16px;

    border:none;
    border-radius:16px;

    cursor:pointer;

    background:linear-gradient(
        180deg,
        #166534 0%,
        #14532d 100%
    );

    color:#ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 6px 0 #0f3d23,
        0 16px 28px rgba(20,83,45,0.45);

    transition:all .15s ease;

}


/* ======================================================
STACK LAYOUT (DEFAULT)
====================================================== */

.gse-btn--stack{

    flex-direction:column;
    text-align:center;

}


/* ======================================================
INLINE LAYOUT (ICON LEFT)
====================================================== */

.gse-btn--inline{

    justify-content:flex-start;
    text-align:left;

}


/* ======================================================
CONTENT WRAPPER
====================================================== */

.gse-btn__content{

    display:flex;
    align-items:center;
    gap:10px;

}


/* ======================================================
ICON (SAFE ZONE)
====================================================== */

.gse-btn__icon{

    width:18px;
    height:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

    color:#ffffff;

}

.gse-btn__icon svg{

    width:100%;
    height:100%;

    display:block;

    /* 🔑 CRITICAL: immune to global svg rules */
    opacity:1 !important;

}


/* ======================================================
TEXT BLOCK
====================================================== */

.gse-btn__text{

    display:flex;
    flex-direction:column;
    line-height:1.2;

}

.gse-btn__text strong{
    font-size:1.05rem;
    font-weight:800;
}

.gse-btn__text span{
    font-size:0.85rem;
    opacity:0.9;
}


/* ======================================================
ACTIVE STATE
====================================================== */

.gse-btn.is-active{
    background: linear-gradient(180deg,#22c55e,#15803d);
    transform: translateY(-2px);
}



/* ======================================================
PRESS
====================================================== */

.gse-btn:active{

    transform:translateY(2px);

}

/* ======================================================
GSE V3 — TICK SYSTEM (SAFE)
Author: Just A Mowment

Purpose
------------------------------------------------------
• Visual selection indicator
• Fully isolated from icon system
• No global SVG overrides

CRITICAL:
Only targets .gse-btn__tick
====================================================== */


/* ======================================================
TICK ELEMENT
====================================================== */

.gse-btn__tick{

    position:absolute;

    top:10px;
    right:10px;

    width:18px;
    height:18px;

    opacity:0;

    transition:opacity .15s ease;

    pointer-events:none;

}


/* ensure svg inside tick is visible */
.gse-btn__tick svg{

    width:100%;
    height:100%;

    display:block;

}


/* ======================================================
ACTIVE STATE
====================================================== */

.gse-btn.is-active .gse-btn__tick{
    opacity:1;
}

/* ======================================================
STEP SUMMARY
====================================================== */

.gse-step__summary{

    margin-top:4px;

    font-size:0.8rem;

    color:#166534;

    font-weight:600;

    opacity:0.9;

}

/* ======================================================
STEP HEADER CLICKABLE
====================================================== */

.gse-step__header--clickable{
    cursor:pointer;
    transition:opacity .2s ease;
}

.gse-step__header--clickable:hover{
    opacity:0.75;
}



.gse-result__trust{
    font-size:13px;
    margin-top:10px;
    line-height:1.4;
    color:#166534;
}





.gse-result__range{
    font-size:15px;
    margin-top:4px;
    opacity:0.9;
}

.gse-result__time{
    font-size:13px;
    opacity:0.7;
}

/* RESULT CTA TEXT */
.gse-result__cta{
    margin-top:16px;
    font-weight:600;
    font-size:14px;
    color:#166534;
}

/* TRUST BLOCK */
.gse-result__trust{
    margin-top:12px;
    font-size:13px;
    color:#374151;
    line-height:1.5;
}

/* ACTION SPACING */
.gse-result__actions{
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.gse-result__microtrust{
    font-size:12px;
    color:#6b7280;
    margin-top:8px;
}

.gse-result__price{
    font-size:42px;
    font-weight:800;
    color:#14532d;
}

/* ======================================================
COMPONENT: CONTACT MODAL
====================================================== */

.gse-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gse-modal.is-active {
    display: block;
}

/* overlay */
.gse-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* container */
.gse-modal__container {
    position: relative;
    margin: 40px auto;
    max-width: 420px;
    width: calc(100% - 20px);

    background: #fff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* header */
.gse-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 16px;
    background: #f0fdf4;
    border-bottom: 1px solid #e5e7eb;
}

.gse-modal__header h3 {
    font-size: 16px;
    margin: 0;
}

.gse-modal__close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

/* body */
.gse-modal__body {
    padding: 16px;
}

/* summary */
.gse-modal__summary {
    font-size: 13px;
    line-height: 1.5;
    color: #166534;
    margin-bottom: 14px;
}

/* fields */
.gse-field {
    margin-bottom: 12px;
}

.gse-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.gse-field input,
.gse-field textarea {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* button (reuse if exists) */
.gse-btn-primary {
    width: 100%;
}


/* ======================================================
STEP HIGHLIGHT (GUIDANCE, NOT FORCE)
====================================================== */

.gse-step--highlight {
    animation: gsePulse 1.2s ease;
}

@keyframes gsePulse {
    0%   { box-shadow: 0 0 0 rgba(34,197,94,0); }
    50%  { box-shadow: 0 0 0 6px rgba(34,197,94,0.15); }
    100% { box-shadow: 0 0 0 rgba(34,197,94,0); }
}

/* ======================================================
STEP COMPLETE STATE
====================================================== */

.gse-step__header.is-complete {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
    padding: 8px;
}

.gse-step__header.is-complete h3::after {
    content: "";
}

/* ======================================================
MAP CONTAINER
====================================================== */

#gse-map {
    width: 100%;
    height: 360px; /* balanced mobile/desktop */
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #e5e7eb;
    display: none;
}

#gse-map.is-visible {
    display: block;
}

/* ======================================================
MAP SEARCH BLOCK
====================================================== */





/* ======================================================
MAP ACTIONS (STATE-DRIVEN VISIBILITY)
====================================================== */

.gse-map-actions {
    display: none;
}

.gse-map-actions.is-visible {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* ======================================================
CONFIRM BUTTON (STATE-DRIVEN)
====================================================== */

#gse-confirm-map {
    flex: 1;

    opacity: 0.5;
    cursor: not-allowed;
}

/* ACTIVE STATE */
#gse-confirm-map:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

/* ======================================================
REDRAW BUTTON
====================================================== */

#gse-redraw-map {
    flex: 1;

    background: #fd8a00;
    color: #000000;
}

/* ======================================================
DRAW HINT (NEW POSITION UNDER MAP)
====================================================== */

.gse-map-draw-hint {
    font-size: 12px;
    background-color: #a7cef3;
    padding: 10px;
    text-align: center;
    color: #374151;
    
}

.gse-map-ui {
    display: none;
}

.gse-map-ui.is-active {
    display: block;
}

.gse-step__body {
    display: block;
}

.gse-step__body.is-hidden {
    display: none;
}

.gse-step.is-locked {
    opacity: 0.5;
    pointer-events: none;
}

.gse-step.is-active {
    border: 2px solid #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}



.gse-step__header {
    cursor: pointer;
}

.gse-step__header:hover {
    opacity: 0.85;
}

/* completed steps look interactive */
.gse-step__header.is-complete {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
}



/* slightly dim past steps */
.gse-step:not(.is-active) {
    opacity: 0.92;
}

.gse-step:not(.is-active) .gse-btn {
    opacity: 0.95;
}

.gse-btn[data-step-value="auto"].is-active {
    background: linear-gradient(180deg, #0ea5e9, #0369a1);
}

/* ======================================================
ICON SYSTEM (AUTHORITATIVE)
====================================================== */

.gse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    margin-right: 6px;

    flex-shrink: 0;
    line-height: 1;
}

/* SVG scales correctly */
.gse-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ======================================================
GSE V3 — AUTHORITATIVE UI BLOCK
Covers:
• Marketing Offer
• Result Pricing
• Conversion Block
• CTA Buttons
====================================================== */

/* ======================================================
MARKETING — FULL WIDTH SYSTEM (AUTHORITATIVE)
====================================================== */

/* OUTER FRAME (FULL WIDTH SECTION) */
.gse-step--marketing {
    width: 100%;
    margin: 0;
    background: rgb(234 249 239);
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 20px;
}

/* INNER PANEL */
.gse-step--marketing .gse-step__body{
    background: #f0fdf4;
    border-radius: 14px;
    

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 8px 18px rgba(0,0,0,0.08);
}

/* OFFER CARD (FULL WIDTH WITH MAX READ WIDTH) */
.gse-step--marketing .gse-offer-card{
    width: 100%;
    max-width: 1000px; /* controls readability, not layout */
    margin: 0 auto;

    padding: 26px 24px;
    border-radius: 16px;

    text-align: center;
    color: #fff;

    background: linear-gradient(135deg, #16a34a, #15803d);

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 12px 28px rgba(22,163,74,0.35);
}


/* TEXT */
.gse-offer-title{
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.gse-offer-headline{
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.gse-offer-description{
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

.gse-offer-urgency{
    margin-top: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fde68a;
}


/* CTA BUTTON (MARKETING) */
.gse-offer-cta{
    display: block;
    width: 100%;
    max-width: 320px;

    margin: 16px auto 0;
    padding: 14px 18px;

    border-radius: 12px;
    border: none;

    font-weight: 600;
    font-size: 15px;

    background: linear-gradient(180deg, #14532d, #166534);
    color: #fff;

    box-shadow:
        0 6px 0 #0f3d24,
        0 10px 18px rgba(0,0,0,0.2);

    cursor: pointer;
    transition: all 0.2s ease;
}

.gse-offer-cta:hover{
    transform: translateY(2px);
    box-shadow:
        0 3px 0 #0f3d24,
        0 6px 12px rgba(0,0,0,0.2);
}


/* ======================================================
GSE RESULT — AUTHORITATIVE CLEAN BUILD
Single source of truth
====================================================== */


/* =========================================
CONTAINER
========================================= */

#gse_results,
.gse-result-card{
    width:100%;
}


/* =========================================
PRICE (HERO)
========================================= */

.gse-price-row{
    display:flex;
    align-items:baseline;
    gap:10px;
}

.gse-price-final {
    font-size: 50px;
    font-weight: 900;
    color: #14532d;
    line-height: 1;
    letter-spacing: -0.5px;
}

.gse-price-original{
    font-size:20px;
    color:#9ca3af;
    text-decoration:line-through;
}

.gse-result__saving{
    display:inline-block;
    margin-top:6px;

    font-size:13px;
    font-weight:700;

    color:#166534;
    background:#dcfce7;

    padding:4px 8px;
    border-radius:6px;
}


/* =========================================
DEAL BLOCK (CONVERSION CORE)
========================================= */

.gse-result__conversion{
    margin-top:14px;
margin-bottom:20px;
    padding:18px;
    border-radius:14px;

    background:linear-gradient(180deg,#ecfdf5,#dcfce7);
    border:2px solid #22c55e;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 12px 28px rgba(22,163,74,0.25);
}


/* HEADLINE */

.gse-deal-headline{
    font-size:22px;
    font-weight:900;
    color:#065f46;

    display:flex;
    align-items:center;
    gap:8px;

    margin-bottom:8px;
}


/* STATUS */

.gse-deal-status{
    font-size:14px;
    font-weight:600;
    color:#15803d;

    display:flex;
    align-items:center;
    gap:6px;

    margin-bottom:10px;
}


/* URGENCY (CLOSER) */

.gse-deal-urgency {
    font-size: 14px;
    font-weight: 800;
    /* background: #e2ecfe; */
    /* border: 2px solid #22c55e; */
    /* padding: 12px 14px; */
    border-radius: 10px;
    /* color: #1c2d02; */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* TRUST */

.gse-deal-trust{
    font-size:13px;
    color:#374151;

    display:flex;
    flex-direction:column;
    gap:5px;
}

.gse-deal-trust div{
    display:flex;
    align-items:center;
    gap:6px;
}



/* =========================================
CTA ZONE (CONVERSION FOCUS)
========================================= */

.gse-cta-zone{
    margin-top:18px;
    padding:18px;
    border-radius:16px;

    background:#ffffff;
    border:2px solid #22c55e;

    text-align:center;

    box-shadow:
        0 12px 28px rgba(0,0,0,0.12);
}


/* SLOT MESSAGE */

#gse-slot-message{
      margin-top:10px;
    margin-bottom:10px;
    line-height:1.4;
}

.gse-slot-strong{
    font-size:15px;
    font-weight:700;
    color:#14532d;
}

.gse-slot-normal{
    font-size:14px;
    font-weight:500;
    color:#374151;
}


/* =========================================
CTA BUTTONS
========================================= */




/* PRIMARY (WHATSAPP) */

#gse-whatsapp{
    background:linear-gradient(180deg,#22c55e,#16a34a);
    letter-spacing:0.3px;

    font-size:17px;
    font-weight:800;

    box-shadow:
        0 8px 0 #14532d,
        0 16px 30px rgba(0,0,0,0.25);

    animation:gsePulse 2.5s infinite;
}

#gse-whatsapp:hover{
    transform:translateY(2px);
    box-shadow:
        0 3px 0 #14532d,
        0 8px 16px rgba(0,0,0,0.15);
}


/* SECONDARY (QUOTE) */

#gse-request-quote{
    background:transparent;
    border:2px solid #16a34a;
    color:#166534;
    font-weight:600;
}

#gse-request-quote:hover{
    background:#f0fdf4;
}


/* =========================================
ICON SYSTEM
========================================= */

.gse-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:16px;
    height:16px;

    flex-shrink:0;
}

.gse-icon svg{
    width:100%;
    height:100%;
}

.gse-icon--check{ color:#16a34a; }
.gse-icon--warning { color: #2985c9;
}.gse-icon--money{ color:#15803d; }
.gse-icon--location{ color:#6b7280; }
.gse-icon--thumbs{ color:#055523; }


/* =========================================
ANIMATION
========================================= */

@keyframes gsePulse{
    0%{ box-shadow:0 8px 0 #14532d,0 16px 30px rgba(0,0,0,0.25); }
    50%{ box-shadow:0 8px 0 #14532d,0 16px 35px rgba(34,197,94,0.4); }
    100%{ box-shadow:0 8px 0 #14532d,0 16px 30px rgba(0,0,0,0.25); }
}


/* =========================================
MOBILE
========================================= */

@media (max-width:640px){

    .gse-price-final{
        font-size:50px;
    }

    .gse-deal-headline{
        font-size:16px;
    }

.gse-deal-urgency{
font-size:11px;
}

}


#gse-request-quote{
    opacity:0.85;
}

#gse-request-quote:hover{
    opacity:1;
}

.gse-price-row{
    margin-bottom:6px;
}

.gse-cta-zone::before{
    content:"Limited discounted slots — act now";
    display:block;

    font-size:13px;
    font-weight:700;
    color:#dc2626;

    margin-bottom:10px;
}

#gse-whatsapp{
    font-size:18px;
}

.gse-result__summary{
    margin-bottom:6px;
}

/* ======================================================
AUTO BUTTON — FINAL CLEAN SYSTEM
====================================================== */

.gse-btn[data-step-value="auto"]{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* content layout */
.gse-btn[data-step-value="auto"] .gse-btn__content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    transform: translateX(-6px); /* 👈 MAGIC BALANCE FIX */
}


/* ======================================================
BADGE ICON
====================================================== */

.gse-badge-icon{
    position: absolute;
    top: 8px;
    right: 10px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.gse-badge-icon svg{
    width: 100%;
    height: 100%;
}

/* mobile */
@media (max-width: 640px){
    .gse-badge-icon{
        width: 16px;
        height: 16px;
        top: 6px;
        right: 8px;
    }
}

.gse-btn[data-step-value="auto"] .gse-btn__icon{
    width:20px;
    height:20px;
    opacity:0.9;
    transform:translateY(-2px);
}

.gse-price-context {
    margin-top: 10px;
    line-height: 1.5;
}

.gse-range {
    font-size: 14px;
    color: #053902;
    margin-bottom: 6px;
    font-weight: 800;
}

.gse-explanation {
    font-size: 14px;
    color: #1f2937;
}

.mapboxgl-canvas {
    cursor: crosshair !important;
}

/* ======================================================
GSE — CALCULATOR FOOTER
Matches fencing calculator footer style
====================================================== */

.gse-calculator-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.75rem;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gse-footer-logo{

  font-weight:700;

  font-size:0.9rem;

  opacity:.6;

}

.gse-calculator-footer p{

  max-width:600px;

  margin:0;

  line-height:1.4;

}

/* ======================================================
MAP AREA DISPLAY
====================================================== */

.gse-map-wrapper {
    position: relative;
    margin-top: 20px;
}



/* =========================================
MAP AREA DISPLAY — UPGRADE
========================================= */

.gse-map-instruction {
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

/* =========================================
MAPBOX SEARCH — SINGLE SOURCE OF TRUTH
========================================= */

.mapboxgl-ctrl-geocoder {
    width: 100%;
    position: relative;

    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;

    height: 48px;

    display: flex;
    align-items: center;
}

/* =========================================
MAPBOX INPUT — HARD OVERRIDE (FINAL FIX)
========================================= */

.gse-calculator-v3 .mapboxgl-ctrl-geocoder--input {

    width: 100% !important;
    height: 100% !important;

    padding-left: 44px !important; /* 🔥 THIS FIXES OVERLAP */

    border: none !important;
    outline: none !important;

    font-size: 14px;
    background: transparent;

}


/* clear button alignment */
.mapboxgl-ctrl-geocoder--button {
    top: 50%;
    transform: translateY(-50%);
}

/* =========================================
MAP AREA DISPLAY
========================================= */

.gse-map-area-display {
    position: absolute;
    top: 12px;
    right: 12px;

    padding: 8px 12px;

    background: rgba(17, 24, 39, 0.85);
    color: #fff;

    font-size: 16px;
    font-weight: 600;

    border-radius: 8px;

    backdrop-filter: blur(4px);

    z-index: 5;
    pointer-events: none;
}

/* =========================================
MAPBOX ICON — HARD OVERRIDE (FINAL FIX)
========================================= */

.gse-calculator-v3 .mapboxgl-ctrl-geocoder--icon,
.gse-calculator-v3 .mapboxgl-ctrl-geocoder--icon-search {

    position: absolute !important;

    top: 50% !important;
    left: 14px !important;

    transform: translateY(-50%) !important;

    width: 18px !important;
    height: 18px !important;

    opacity: 0.6;
    pointer-events: none;
}

.gse-offer-title {
    display: flex;
    align-items: center;
}

.gse-offer-title::before {
    content: "";
    width: 28px;
    height: 28px;
    margin-right: 10px;

    background-image: url('/wp-content/plugins/gse-v3-core/assets/images/grass-m.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    flex-shrink: 0;
}

#gse-result-conversion {
    position: relative;
    overflow: hidden;
}

#gse-result-conversion::after {
    content: "";
    position: absolute;

    right: -25px;
    bottom: -25px;

    width: 120px;
    height: 120px;

    background-image: url('/wp-content/plugins/gse-v3-core/assets/images/grass-m.png');
    background-size: contain;
    background-repeat: no-repeat;

    opacity: 0.08; /* slightly stronger than full card */
    pointer-events: none;
}

#gse-result-conversion > * {
    position: relative;
    z-index: 1;
}


/* ======================================================
BUTTON DISABLED STATE (AUTHORITATIVE)
====================================================== */

.gse-btn.is-disabled{

    background: linear-gradient(
        180deg,
        #9ca3af 0%,
        #6b7280 100%
    );

    cursor: not-allowed;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 4px 0 #4b5563,
        0 10px 18px rgba(0,0,0,0.2);

    opacity: 0.85;

}

/* Prevent hover/active lift */
.gse-btn.is-disabled:hover{
    transform: none;
}

.gse-btn.is-disabled:active{
    transform: none;
}
/* =========================================
TICK ICON (CONTROLLED VIA CSS)
========================================= */

.gse-btn__tick svg {
    width: 100%;
    height: 100%;
    color: #000000;
}


.gse-btn:not(.is-active):not(.is-disabled){
    background: #2f6b45;
    opacity: 0.9;
}

.gse-btn--smart{
    background: linear-gradient(180deg,#0ea5e9,#0369a1);
}

.gse-btn:not(.is-active):not(.is-disabled){
    background:linear-gradient(180deg,#1f3d2b,#183020);
    opacity:0.85;
}

/* =========================================
POSTCODE MODAL
========================================= */

.gse-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gse-modal.is-visible{
  display: flex;
}

.gse-modal__inner{
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* Base input system */
.gse-input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
  background: #fff;
}

/* Focus */
.gse-input:focus{
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

/* Error */
.gse-input.is-error{
  border-color: #dc2626;
}

/* Postcode styling hook */
.gse-input--postcode {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}