/* ======================================================
GSE V4 — BASE + COMPONENT SYSTEM (REFINED STABLE)
====================================================== */

/* ======================================================
TOKENS
====================================================== */

:root{
    --gse-green-900:#14532d;
    --gse-green-700:#15803d;
    --gse-green-500:#22c55e;

    --gse-bg-soft:#ecfdf5;
    --gse-border:#e5e7eb;
    --gse-text:#334155;

    --gse-radius-md:14px;
    --gse-radius-lg:16px;

    --gse-shadow-soft:
        0 6px 18px rgba(15,23,42,0.06);
}

/* ======================================================
RESET
====================================================== */

.gse-calculator *{
    box-sizing:border-box;
}

.gse-calculator button{
    outline:none;
    border:none;
    font:inherit;
}

/* ======================================================
TYPOGRAPHY
====================================================== */

.gse-calculator{
    font-family:'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:var(--gse-text);
    line-height:1.4;
}

.gse-calculator h3,
.gse-calculator h4,
.gse-calculator strong{
    font-family:'Roboto', sans-serif;
}

.gse-calculator h3{
    margin:0;
}

/* ======================================================
LAYOUT — SHELL
====================================================== */

.gse-calculator {
    max-width: 1100px;
    width: 100%;
    margin: 30px auto;
    padding: 20px;
    background: #a4cfb4;
    border-radius: var(--gse-radius-lg);
    border: 1px solid #023516;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6),
        0 12px 28px rgba(22,163,74,0.25);
}

/* ======================================================
STEP SYSTEM
====================================================== */

.gse-step{
    margin-bottom:16px;
    padding:18px;

    border-radius:var(--gse-radius-md);

    background:#ffffff;
    border:1px solid var(--gse-border);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 10px 22px rgba(0,0,0,0.08);

    transition:all .2s ease;
}

/* ACTIVE */

.gse-step.is-active{
    border:2px solid var(--gse-green-500);
    box-shadow:
        0 0 0 4px rgba(34,197,94,0.15),
        0 16px 32px rgba(22,163,74,0.25);
}

/* ======================================================
STEP HEADER
====================================================== */

.gse-step__header{
    margin-bottom:12px;
    padding:10px 12px;

    border-radius:10px;
    background:#f0fdf4;

    cursor:pointer;
}

.gse-step__header:hover{
    opacity:0.9;
}

.gse-step__header h3{
    font-size:0.75rem;
    letter-spacing:0.08em;
    opacity:0.8;
    font-weight:700;
    text-transform:uppercase;
}

/* COMPLETE */

.gse-step__header.is-complete{
    border-left:4px solid var(--gse-green-500);
}

/* SUMMARY */

.gse-step__summary{
    margin-top:4px;
    font-size:0.8rem;
    color:var(--gse-green-700);
    font-weight:600;
}

/* ======================================================
STEP BODY
====================================================== */

.gse-step__body{
    margin-top:12px;
}

/* ======================================================
CHOICE GROUP
====================================================== */

.gse-choice-group{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.gse-choice-group .gse-btn{
    flex:1 1 calc(50% - 12px);
}

.gse-btn--inline{
    flex:1 1 100%;
}

/* ======================================================
BUTTON SYSTEM
====================================================== */

.gse-btn{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    padding:16px 18px;

    border-radius:16px;
    cursor:pointer;

    background:linear-gradient(180deg,#166534,#14532d);
    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 .18s ease;
}

/* DEFAULT */

.gse-btn:not(.is-active):not(.is-disabled){
    background:linear-gradient(180deg,#1b4332,#132d24);
    opacity:0.85;
}

/* ACTIVE */

.gse-btn.is-active{
    background:linear-gradient(180deg,#22c55e,#15803d);
    transform:translateY(-2px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 8px 0 #14532d,
        0 20px 34px rgba(22,163,74,0.45);
}

/* HOVER */

.gse-btn:hover{
    transform:translateY(-3px);
}

/* PRESS */

.gse-btn:active{
    transform:translateY(2px) scale(0.98);
}

/* CONTENT */

.gse-btn__content{
    display:flex;
    align-items:center;
    gap:12px;
}

/* ICON */

.gse-btn__icon{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.gse-btn__icon svg{
    width:100%;
    height:100%;
}

/* TEXT */

.gse-btn__text{
    display:flex;
    flex-direction:column;
    text-align:left;
    line-height:1.2;
}

.gse-btn__text strong{
    font-size:1rem;
    font-weight:800;
    line-height:1.1;
}

.gse-btn__text span{
    font-size:0.78rem;
    opacity:0.8;
    line-height:1.2;
}

/* TICK */

.gse-btn__tick{
    position:absolute;
    top:10px;
    right:10px;

    width:18px;
    height:18px;

    opacity:0;
    transition:opacity .15s ease;
}

.gse-btn.is-active .gse-btn__tick{
    opacity:1;
}

/* DISABLED */

.gse-btn.is-disabled{
    background:linear-gradient(180deg,#9ca3af,#6b7280);
    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;
}

.gse-btn.is-disabled:hover,
.gse-btn.is-disabled:active{
    transform:none;
}

/* ======================================================
RESULT CARD
====================================================== */

.gse-result__card{
    margin-top:16px;
}

.gse-price-row{
    display:flex;
    align-items:baseline;
    gap:10px;
    margin-bottom:6px;
}

.gse-price-final{
    font-size:48px;
    font-weight:900;
    color:#14532d;
}

.gse-price-original{
    font-size:20px;
    color:#9ca3af;
    text-decoration:line-through;
}

.gse-result__saving{
    margin-top:6px;
    font-size:13px;
    font-weight:700;
    color:#166534;
    background:#dcfce7;
    padding:4px 8px;
    border-radius:6px;
}

/* CONVERSION */

.gse-result__conversion{
    margin-top:14px;
    margin-bottom:18px;

    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);
}

.gse-deal-headline{
    font-size:20px;
    font-weight:900;
    color:#065f46;
    margin-bottom:8px;
}

.gse-deal-urgency{
    font-size:14px;
    font-weight:700;
    color:#166534;
    margin-bottom:10px;
}

.gse-deal-trust{
    font-size:13px;
    color:#374151;
    display:flex;
    flex-direction:column;
    gap:5px;
}

/* RANGE */

.gse-result__range{
    margin-top:10px;
}

.gse-range{
    font-size:14px;
    font-weight:800;
    color:#14532d;
}

.gse-explanation{
    font-size:14px;
    color:#374151;
}

/* SUMMARY */

.gse-result__summary{
    margin-top:6px;
    font-size:14px;
}

/* CTA TEXT */

.gse-result__cta{
    margin-top:16px;
    font-weight:600;
    font-size:13px;
    color:#166534;
    text-align:center;
    opacity:0.85;
}

/* ACTIONS */

.gse-result__actions{
    margin-top:22px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* PRIMARY CTA */

.gse-result__actions .gse-btn--primary{
    background:linear-gradient(180deg,#22c55e,#16a34a);
    font-weight:800;
    font-size:16px;

    box-shadow:
        0 8px 0 #14532d,
        0 16px 30px rgba(0,0,0,0.25);
}

.gse-result__actions .gse-btn--primary:hover{
    transform:translateY(2px);
    box-shadow:
        0 3px 0 #14532d,
        0 8px 16px rgba(0,0,0,0.15);
}

/* ======================================================
MOBILE
====================================================== */

@media (max-width:640px){

    .gse-choice-group .gse-btn{
        flex:1 1 100%;
    }

    .gse-calculator{
        padding:12px;
    }

    .gse-price-final{
        font-size:42px;
    }

    .gse-deal-headline{
        font-size:16px;
    }
}

/* ======================================================
STEP HEADERS
====================================================== */

.gse-step__helper {
    margin-top: 6px;
    font-size: 12px;
    color: #012b12;
    line-height: 1.2;
    
}

.gse-step.is-active .gse-step__helper{
    color:#475569;
}

.gse-step__feedback {
    margin-top: 12px;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #01230e;
}

.gse-summary-note{
    margin-top:8px;
    font-size:13px;
    opacity:0.7;
}

/* ======================================================
SUMMARY — UPGRADE (HIGH IMPACT)
====================================================== */

.gse-result__summary{
    margin-top:10px;
    font-size:14px;
    line-height:1.4;
}

.gse-result__summary strong{
    display:block;
    font-size:16px;
    font-weight:900;
    color:#14532d;
    margin-bottom:4px;
}

/* ======================================================
BADGE — MOST POPULAR
====================================================== */

.gse-btn__badge{
    position:absolute;
    top:-8px;
    left:12px;

    display:flex;
    align-items:center;
    gap:4px;

    background:#22c55e;
    color:#fff;

    font-size:10px;
    font-weight:800;
    padding:4px 6px;

    border-radius:6px;

    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.gse-btn__badge svg{
    width:10px;
    height:10px;
}

.gse-summary-meta{
    margin-top:4px;
    font-size:13px;
}

/* ======================================================
POSTCODE GATE
====================================================== */

.gse-postcode-gate{
    display:flex;
    justify-content:center;
    padding:40px 20px;
}

.gse-postcode-card{
    max-width:420px;
    width:100%;
    background:#fff;
    border-radius:16px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    text-align:center;
}

.gse-input{
    width:100%;
    padding:12px;
    margin:15px 0;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
}

.gse-error{
    color:#dc2626;
    font-size:14px;
    margin-bottom:10px;
}