:root {
    --fg-green: #103b17;
    --fg-bright: #2c8735;
    --fg-black: #070807;
    --fg-line: #1f8b2a;
}

* {
    box-sizing: border-box;
}

body.fastglide-page {
    margin: 0;
    background: var(--fg-black);
    color: #fff;
    font: 16px Arial, sans-serif;
}

/* =========================
   Header
========================= */

.fg-header {
    height: 115px;
    padding: 0 max(4vw, 30px);
    background: #000;
    border-bottom: 2px solid var(--fg-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fg-header img:first-child {
    max-width: 220px;
    max-height: 75px;
}

.fg-header img:last-child {
    max-width: 230px;
    max-height: 72px;
    object-fit: contain;
}

/* =========================
   Main Layout
========================= */

.fg-shell {
    position: relative;
    max-width: 1400px;
    min-height: calc(100vh - 115px);
    margin: auto;
    padding: 58px 330px 115px 60px;
    background: var(--fg-green);
}

/* =========================
   Wizard Steps
========================= */

.fg-wizard-step {
    display: none;
    min-height: 460px;
    max-width: 1000px;
}

.fg-wizard-step.active {
    display: block;
}

.fg-wizard-step h1 {
    margin: 0 0 14px;
    font-size: 29px;
}

.fg-wizard-step > p {
    max-width: 820px;
    margin: 0 0 28px;
    color: #d4ddcf;
    line-height: 1.55;
}

/* =========================
   Card Grids
========================= */

.fg-card-grid {
    display: grid;
    gap: 25px;
}

.fg-config-grid {
    grid-template-columns: repeat(3, 1fr);
}

.fg-colour-grid {
    grid-template-columns: repeat(4, 1fr);
}

.fg-glass-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* =========================
   General Cards
========================= */

.fg-card {
    min-height: 150px;
    padding: 18px;
    background: #f6f4ef;
    color: #161616;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.fg-card:hover,
.fg-card:has(input:checked) {
    border-color: var(--fg-bright);
    box-shadow: 0 0 0 1px #fff;
}

.fg-card input {
    accent-color: var(--fg-bright);
}

.fg-card b {
    font-size: 16px;
}

.fg-card small {
    color: #5c5c5c;
}

/* Colour-card radio slightly higher */

.fg-card.colour {
    position: relative;
}

.fg-card.colour input[type="radio"] {
    position: absolute;
    top: 6px;
    left: 50%;
    z-index: 5;
    margin: 0;
    transform: translateX(-50%);
}

/* =========================
   Door Artwork
========================= */

.fg-door-art {
    position: relative;
    display: block;
    height: 125px;
    background: #0b0e10;
    border: 10px solid #697277;
}

.fg-door-art.two::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 100%;
    background: #697277;
}

.fg-door-art.four::after {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    width: 7px;
    height: 100%;
    background: #697277;
    box-shadow:
        calc(100% * 2) 0 #697277,
        calc(100% * 4) 0 #697277;
}

/* =========================
   Colour Cards
========================= */

.colour i {
    display: block;
    height: 100px;
    margin: -18px -18px 6px;
}

.anthracite i {
    background: #3b4246;
}

.black i {
    background: #080808;
}

.white i {
    background: #fff;
}

.dual i {
    background: linear-gradient(
        90deg,
        #3b4246 0 50%,
        #fff 50% 100%
    );
}

.rainbow i {
    background: linear-gradient(
        45deg,
        #ff3464 0 25%,
        #39bdea 25% 50%,
        #34ed9c 50% 75%,
        #ffca09 75%
    );
}

/* =========================
   Inputs
========================= */

#fg-ral {
    width: min(480px, 100%);
    margin-top: 24px;
}

.fg-fields {
    display: flex;
    gap: 25px;
}

.fg-fields label,
#fg-delivery label,
#fg-photo label {
    flex: 1;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fg-fields input,
#fg-ral,
#fg-postcode {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 17px;
    border: 0;
    border-radius: 4px;
    font-size: 17px;
}

.fg-error {
    color: #ff8c8c;
}

/* =========================
   Installation Options
========================= */

.fg-install-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fg-choice {
    padding: 22px;
    background: #f6f4ef;
    color: #171717;
    border: 2px solid transparent;
    cursor: pointer;
}

.fg-choice:has(input:checked) {
    border-color: var(--fg-bright);
}

/* =========================
   Delivery and Photo Sections
========================= */

#fg-delivery,
#fg-photo {
    display: none;
    margin-top: 25px;
    padding: 18px;
    background: #0c2c11;
}

/* Keep photo section permanently hidden */

#fg-photo {
    display: none !important;
}

#fg-check-delivery,
.fg-submit {
    margin-top: 12px;
    padding: 14px 20px;
    background: var(--fg-bright);
    color: #fff;
    border: 0;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

#fg-delivery-result {
    display: block;
    margin-top: 12px;
    color: #d6e9d5;
}

/* =========================
   Bottom Navigation
========================= */

.fg-nav {
    position: fixed;
    z-index: 3;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 82px;
    padding: 0 max(
        calc((100vw - 1400px) / 2 + 60px),
        30px
    );
    background: #000;
    border-top: 2px solid var(--fg-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fg-nav button {
    padding: 14px 27px;
    background: #2d8635;
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.fg-nav button:disabled {
    background: #526156;
}

.fg-nav span {
    color: #c4d2c3;
}

/* =========================
   Configuration Drawer
========================= */

.fg-drawer {
    position: fixed;
    z-index: 2;
    top: 165px;
    right: max(
        calc((100vw - 1400px) / 2),
        25px
    );
    width: 300px;
    background: #121212;
    border-radius: 8px;
    box-shadow: 0 8px 24px #0008;
    overflow: hidden;
}

.fg-drawer h2 {
    margin: 0;
    padding: 17px;
    border-bottom: 1px solid #373737;
    font-size: 18px;
}

.fg-drawer-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: start;
    padding: 12px 15px;
    border-bottom: 1px solid #2b2b2b;
    font-size: 12px;
}

.fg-drawer-row i {
    padding: 3px 0;
    background: var(--fg-bright);
    border-radius: 50%;
    font-size: 11px;
    font-style: normal;
    text-align: center;
}

.fg-drawer-row span {
    color: #ddd;
}

.fg-drawer-row em {
    color: #fff;
    font-style: normal;
    text-align: right;
}

.fg-drawer-total {
    display: flex;
    justify-content: space-between;
    padding: 17px;
    font-weight: bold;
    text-transform: uppercase;
}

.fg-drawer-total strong,
.fg-final-total strong {
    color: #54bd5f;
    font-size: 22px;
}

/* =========================
   Final Summary
========================= */

.fg-final-summary {
    max-width: 880px;
    padding: 25px;
    background: #f7f5f0;
    color: #161616;
    line-height: 1.8;
}

.fg-final-total {
    display: flex;
    justify-content: space-between;
    max-width: 880px;
    margin: 20px 0;
    padding: 18px;
    background: #0b2f10;
    font-weight: bold;
    text-transform: uppercase;
}

.fg-submit {
    margin-right: 12px;
}

.fg-submit.buy {
    background: #f29b13;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1000px) {
    .fg-shell {
        padding: 35px 25px 105px;
        display: flex;
        flex-direction: column;
    }

    .fg-shell form {
        order: 1;
    }

    .fg-drawer {
        position: static;
        order: 0;
        width: auto;
        margin: 0 25px 25px;
    }

    .fg-config-grid,
    .fg-colour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 600px) {
    .fg-header {
        height: 80px;
        padding: 8px 15px;
    }

    .fg-header img:last-child {
        display: none;
    }

    .fg-shell {
        min-height: calc(100vh - 80px);
    }

    .fg-wizard-step h1 {
        font-size: 24px;
    }

    .fg-config-grid,
    .fg-colour-grid,
    .fg-glass-grid,
    .fg-install-options,
    .fg-fields {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fg-nav {
        height: 70px;
        padding: 0 16px;
    }

    .fg-nav span {
        display: none;
    }

    .fg-drawer {
        margin: 0 15px 20px;
    }

    .fg-card {
        min-height: auto;
    }

    .fg-door-art {
        height: 100px;
    }
}