/* FastXtrance configurator styles (from the original FastXtrance builder). */
:root {
            --fx-bg-black: #0b0d0c;
            --fx-card-bg: #141715;
            --fx-card-hover: #1a1e1b;
            --fx-card-border: #232a25;
            --fx-green: #2e7d32;
            --fx-green-bright: #38a83e;
            --fx-green-glow: rgba(56, 168, 62, 0.25);
            --fx-green-accent: #0CBB07;
            --fx-text-primary: #ffffff;
            --fx-text-secondary: #9ea8a1;
            --fx-text-muted: #6b776f;
            --fx-border-subtle: #1e2420;
            --fx-font-heading: 'Outfit', sans-serif;
            --fx-font-body: 'Plus Jakarta Sans', sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body.fastxtrance-page {
            background-color: var(--fx-bg-black) !important;
            color: var(--fx-text-primary) !important;
            font-family: var(--fx-font-body) !important;
            line-height: 1.5;
            min-height: 100vh;
            padding-bottom: 100px;
            overflow-x: hidden;
        }

        /* Top Header */
        .fx-header {
            background: #000000;
            border-bottom: 1px solid #1c211e;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .fx-header-inner {
            max-width: 1540px;
            margin: 0 auto;
            padding: 14px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .fx-brand-wrap {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .fx-logo-link img {
            height: 38px;
            width: auto;
            display: block;
        }

        .fx-product-badge {
            display: flex;
            flex-direction: column;
            border-left: 1px solid #28302a;
            padding-left: 14px;
        }

        .fx-product-badge .fx-title {
            font-family: var(--fx-font-heading);
            font-size: 20px;
            font-weight: 800;
            letter-spacing: 0.5px;
            color: #ffffff;
            line-height: 1.1;
        }

        .fx-product-badge .fx-title span {
            color: var(--fx-green-bright);
        }

        .fx-product-badge .fx-subtitle {
            font-size: 11px;
            color: var(--fx-text-muted);
            letter-spacing: 1.5px;
            text-transform: uppercase;
            font-weight: 600;
        }

        .fx-trust-badge img {
            height: 32px;
            width: auto;
            opacity: 0.9;
        }

        /* Steps Navigation Bar */
        .fx-step-bar-wrap {
            background: #0d100e;
            border-bottom: 1px solid #19201b;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .fx-step-bar-wrap::-webkit-scrollbar { display: none; }

        .fx-step-nav {
            max-width: 1540px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0 24px;
            list-style: none;
        }

        .fx-step-nav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 16px;
            font-size: 13px;
            font-weight: 600;
            color: var(--fx-text-muted);
            cursor: pointer;
            white-space: nowrap;
            border-bottom: 2px solid transparent;
            transition: all 0.25s ease;
        }

        .fx-step-nav-item:hover {
            color: #d1d9d3;
        }

        .fx-step-nav-item.active {
            color: #ffffff;
            border-bottom-color: var(--fx-green-bright);
            background: rgba(46, 125, 50, 0.08);
        }

        .fx-step-nav-item.completed {
            color: var(--fx-text-secondary);
        }

        .fx-step-nav-item .fx-step-circle {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 1px solid var(--fx-card-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
        }

        .fx-step-nav-item.active .fx-step-circle {
            background: var(--fx-green-bright);
            border-color: var(--fx-green-bright);
            color: #ffffff;
        }

        .fx-step-nav-item.completed .fx-step-circle {
            background: #1c3520;
            border-color: var(--fx-green);
            color: var(--fx-green-bright);
        }

        /* Trust Bar */
        .fx-trust-strip {
            background: #080a09;
            border-bottom: 1px solid #141a16;
            padding: 8px 24px;
            font-size: 11.5px;
            color: var(--fx-text-muted);
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        .fx-trust-strip span { display: flex; align-items: center; gap: 6px; }

        /* Main Builder Layout */
        .fx-shell {
            max-width: 1540px;
            margin: 0 auto;
            padding: 28px 24px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 380px;
            gap: 32px;
            align-items: start;
        }

        @media (max-width: 1120px) {
            .fx-shell {
                grid-template-columns: 1fr;
            }
        }

        /* Step Section & Headers */
        .fx-step-section {
            display: none;
            animation: fxFadeIn 0.3s ease;
        }

        .fx-step-section.active {
            display: block;
        }

        @keyframes fxFadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fx-step-title-block {
            margin-bottom: 24px;
        }

        .fx-step-title-block .fx-step-tag {
            display: inline-block;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--fx-green-bright);
            background: rgba(46, 125, 50, 0.15);
            padding: 4px 10px;
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .fx-step-title-block h2 {
            font-family: var(--fx-font-heading);
            font-size: 26px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 6px;
        }

        .fx-step-title-block p {
            color: var(--fx-text-secondary);
            font-size: 14px;
        }

        /* Step 1 Two-Column Grid (Config Cards + Hinge/Opening) */
        .fx-step1-container {
            display: grid;
            grid-template-columns: 280px minmax(0, 1fr);
            gap: 24px;
            align-items: start;
        }

        @media (max-width: 860px) {
            .fx-step1-container {
                grid-template-columns: 1fr;
            }
        }

        /* Configuration Side Selection Cards */
        .fx-config-column {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .fx-column-heading {
            font-family: var(--fx-font-heading);
            font-size: 13px;
            font-weight: 700;
            color: var(--fx-text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }

        .fx-config-card {
            position: relative;
            background: var(--fx-card-bg);
            border: 2px solid var(--fx-card-border);
            border-radius: 10px;
            padding: 16px 14px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 14px;
            user-select: none;
        }

        .fx-config-card:hover {
            border-color: #314436;
            background: var(--fx-card-hover);
            transform: translateX(2px);
        }

        .fx-config-card.selected {
            background: #142818;
            border-color: var(--fx-green-bright);
            box-shadow: 0 0 20px var(--fx-green-glow);
        }

        .fx-config-card input[type="radio"] {
            display: none;
        }

        .fx-config-icon {
            width: 48px;
            height: 70px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fx-config-icon svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .fx-config-info {
            flex: 1;
            min-width: 0;
        }

        .fx-config-title {
            font-family: var(--fx-font-heading);
            font-size: 14px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.25;
            margin-bottom: 3px;
        }

        .fx-config-size {
            font-size: 11px;
            color: var(--fx-text-muted);
            line-height: 1.3;
            margin-bottom: 5px;
        }

        .fx-config-price {
            font-size: 15px;
            font-weight: 800;
            color: var(--fx-green-bright);
        }

        /* Hinge & Opening Column */
        .fx-interactive-column {
            background: #101311;
            border: 1px solid var(--fx-card-border);
            border-radius: 12px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .fx-subgroup-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 12px;
        }

        .fx-info-icon {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #232a25;
            color: #9ea8a1;
            font-size: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: help;
        }

        /* Tile Grid for Hinge & Opening */
        .fx-tile-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
        }

        .fx-visual-tile {
            position: relative;
            background: var(--fx-card-bg);
            border: 2px solid var(--fx-card-border);
            border-radius: 10px;
            padding: 20px 16px;
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 14px;
            user-select: none;
        }

        .fx-visual-tile:hover {
            border-color: #314436;
            background: var(--fx-card-hover);
        }

        .fx-visual-tile.selected {
            background: #132416;
            border-color: var(--fx-green-bright);
            box-shadow: 0 0 20px var(--fx-green-glow);
        }

        .fx-visual-tile input[type="radio"] {
            display: none;
        }

        .fx-tile-graphic {
            width: 110px;
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #0b0d0c;
            border: 1px solid #1a201c;
            border-radius: 8px;
            padding: 10px;
            position: relative;
        }

        .fx-tile-graphic svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .fx-tile-name {
            font-family: var(--fx-font-heading);
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
        }

        .fx-tile-check {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 1.5px solid var(--fx-card-border);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .fx-visual-tile.selected .fx-tile-check {
            background: var(--fx-green-bright);
            border-color: var(--fx-green-bright);
            color: #ffffff;
        }

        /* Generic Card Grids for Design, Colour, Cill, etc. */
        .fx-grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 18px;
        }

        .fx-grid-4 {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 16px;
        }

        .fx-select-card {
            position: relative;
            background: var(--fx-card-bg);
            border: 2px solid var(--fx-card-border);
            border-radius: 10px;
            padding: 18px 16px;
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            flex-direction: column;
            gap: 12px;
            user-select: none;
        }

        .fx-select-card:hover {
            border-color: #314436;
            background: var(--fx-card-hover);
        }

        .fx-select-card.selected {
            background: #142818;
            border-color: var(--fx-green-bright);
            box-shadow: 0 0 20px var(--fx-green-glow);
        }

        .fx-select-card input[type="radio"] {
            display: none;
        }

        .fx-card-img-wrap {
            width: 100%;
            height: 180px;
            background: #0b0e0c;
            border: 1px solid #1c221e;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            padding: 10px;
        }

        .fx-card-img-wrap svg,
        .fx-card-img-wrap img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .fx-card-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            font-size: 10px;
            font-weight: 700;
            background: rgba(0, 0, 0, 0.75);
            color: #c4d0c7;
            padding: 3px 8px;
            border-radius: 4px;
            border: 1px solid #28322b;
            text-transform: uppercase;
        }

        .fx-card-details {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .fx-card-title {
            font-family: var(--fx-font-heading);
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
        }

        .fx-card-desc {
            font-size: 12px;
            color: var(--fx-text-muted);
            line-height: 1.35;
        }

        .fx-card-price-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 4px;
            padding-top: 8px;
            border-top: 1px solid #1c241e;
        }

        .fx-card-price-tag {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--fx-green-bright);
        }

        /* Dimension Step Box */
        .fx-dimension-box {
            background: #111412;
            border: 1px solid var(--fx-card-border);
            border-radius: 12px;
            padding: 28px;
            max-width: 680px;
        }

        .fx-range-notice {
            background: #16261a;
            border: 1px solid #234d28;
            border-radius: 8px;
            padding: 14px 18px;
            font-size: 13.5px;
            color: #cdecd2;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .fx-dimension-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        @media (max-width: 540px) {
            .fx-dimension-inputs {
                grid-template-columns: 1fr;
            }
        }

        .fx-field-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .fx-field-group label {
            font-size: 13.5px;
            font-weight: 600;
            color: #ffffff;
        }

        .fx-field-group label span.req {
            color: #f44336;
        }

        .fx-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        .fx-input-wrap input {
            width: 100%;
            background: #0b0d0c;
            border: 1.5px solid var(--fx-card-border);
            border-radius: 8px;
            padding: 14px 44px 14px 16px;
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .fx-input-wrap input:focus {
            border-color: var(--fx-green-bright);
            box-shadow: 0 0 10px var(--fx-green-glow);
        }

        .fx-input-wrap .fx-unit {
            position: absolute;
            right: 14px;
            font-size: 13px;
            font-weight: 700;
            color: var(--fx-text-muted);
            pointer-events: none;
        }

        .fx-dim-helper {
            font-size: 11.5px;
            color: var(--fx-text-muted);
        }

        .fx-error-msg {
            color: #ff6b6b;
            font-size: 12px;
            font-weight: 600;
            margin-top: 4px;
            display: none;
        }

        /* Color Swatches */
        .fx-swatch-box {
            width: 100%;
            height: 90px;
            border-radius: 6px;
            border: 1px solid #252e28;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fx-swatch-box.dual {
            background: linear-gradient(90deg, #3b4246 0%, #3b4246 50%, #ffffff 50%, #ffffff 100%);
        }

        .fx-swatch-box.ral-rainbow {
            background: linear-gradient(135deg, #e53935, #fb8c00, #43a047, #1e88e5, #8e24aa);
        }

        /* Right Sticky Summary Sidebar */
        .fx-sidebar {
            position: sticky;
            top: 90px;
            background: #111412;
            border: 1px solid var(--fx-card-border);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .fx-sidebar-header {
            background: #161b17;
            padding: 16px 20px;
            border-bottom: 1px solid #202722;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .fx-sidebar-header h3 {
            font-family: var(--fx-font-heading);
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
        }

        .fx-sidebar-badge {
            font-size: 10.5px;
            font-weight: 700;
            color: var(--fx-green-bright);
            background: rgba(46, 125, 50, 0.2);
            padding: 3px 8px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        .fx-sidebar-preview {
            background: #0a0c0b;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid #1a201c;
            min-height: 180px;
        }

        .fx-live-door-visual {
            width: 140px;
            height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fx-live-door-visual svg {
            width: 100%;
            height: 100%;
        }

        .fx-sidebar-specs {
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 280px;
            overflow-y: auto;
            border-bottom: 1px solid #1a201c;
        }

        .fx-spec-line {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            font-size: 12.5px;
            gap: 12px;
        }

        .fx-spec-line .lbl {
            color: var(--fx-text-muted);
            flex-shrink: 0;
        }

        .fx-spec-line .val {
            color: #ffffff;
            font-weight: 600;
            text-align: right;
        }

        .fx-sidebar-pricing {
            padding: 18px 20px;
            background: #141815;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .fx-price-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            color: var(--fx-text-secondary);
        }

        .fx-total-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            margin-top: 8px;
            padding-top: 10px;
            border-top: 1px solid #232c25;
        }

        .fx-total-row span.lbl {
            font-family: var(--fx-font-heading);
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
        }

        .fx-total-row span.val {
            font-family: var(--fx-font-heading);
            font-size: 26px;
            font-weight: 800;
            color: var(--fx-green-bright);
        }

        .fx-sidebar-notice {
            padding: 12px 20px;
            background: #0d100e;
            font-size: 11px;
            color: var(--fx-text-muted);
            line-height: 1.4;
            border-top: 1px solid #1a201c;
        }

        /* Bottom Fixed Navigation Bar */
        .fx-nav-bottom {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #000000;
            border-top: 2px solid var(--fx-green);
            padding: 14px 24px;
            z-index: 99;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.7);
        }

        .fx-nav-inner {
            max-width: 1540px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .fx-nav-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .fx-btn-back {
            background: #1a1e1b;
            color: #ffffff;
            border: 1px solid #2b352e;
            border-radius: 6px;
            padding: 12px 22px;
            font-family: var(--fx-font-heading);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fx-btn-back:hover {
            background: #242b26;
            border-color: #3a473f;
        }

        .fx-btn-back:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .fx-nav-price-preview {
            display: flex;
            flex-direction: column;
        }

        .fx-nav-price-preview .lbl {
            font-size: 11px;
            color: var(--fx-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .fx-nav-price-preview .val {
            font-family: var(--fx-font-heading);
            font-size: 20px;
            font-weight: 800;
            color: var(--fx-green-bright);
        }

        .fx-nav-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .fx-btn-next {
            background: var(--fx-green);
            color: #ffffff;
            border: none;
            border-radius: 6px;
            padding: 12px 28px;
            font-family: var(--fx-font-heading);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fx-btn-next:hover {
            background: var(--fx-green-bright);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px var(--fx-green-glow);
        }

        .fx-btn-submit {
            background: #0CBB07;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            padding: 12px 28px;
            font-family: var(--fx-font-heading);
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s ease;
            display: none;
            align-items: center;
            gap: 8px;
        }

        .fx-btn-submit:hover {
            background: #10d40b;
            box-shadow: 0 4px 20px rgba(12, 187, 7, 0.4);
        }

        .fx-btn-submit:disabled,
        .fx-btn-next:disabled {
            opacity: 0.6;
            cursor: wait;
        }

        /* Postcode box */
        .fx-postcode-box {
            display: flex;
            gap: 10px;
            margin-top: 14px;
            max-width: 400px;
        }

        .fx-postcode-box input {
            flex: 1;
            background: #0b0d0c;
            border: 1.5px solid var(--fx-card-border);
            border-radius: 6px;
            padding: 10px 14px;
            color: #ffffff;
            font-size: 14px;
            outline: none;
        }

        .fx-postcode-btn {
            background: #232c25;
            border: 1px solid #36443a;
            color: #ffffff;
            border-radius: 6px;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .fx-postcode-btn:hover {
            background: #2e7d32;
        }

        /* Final Summary Table in Step 7 */
        .fx-summary-table {
            width: 100%;
            border-collapse: collapse;
            background: #111412;
            border: 1px solid var(--fx-card-border);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 24px;
        }

        .fx-summary-table th,
        .fx-summary-table td {
            padding: 14px 18px;
            text-align: left;
            border-bottom: 1px solid #1a201c;
            font-size: 13.5px;
        }

        .fx-summary-table th {
            background: #161b17;
            color: var(--fx-text-muted);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 11.5px;
            letter-spacing: 0.5px;
        }

        .fx-summary-table tr:last-child td {
            border-bottom: none;
        }
