/**
 * FastFold FDZ71 Aluminium Single & French Doors - Configurator Styles
 * Brand: FastFold UK (Black & Green Theme)
 */

:root {
    --fd-bg-black: #0b0d0c;
    --fd-card-bg: #141715;
    --fd-card-hover: #1a1f1c;
    --fd-card-border: #232a25;
    --fd-card-active-bg: #162419;
    --fd-green: #2e7d32;
    --fd-green-bright: #38a83e;
    --fd-green-neon: #0CBB07;
    --fd-green-glow: rgba(56, 168, 62, 0.25);
    --fd-green-subtle: rgba(46, 125, 50, 0.12);
    --fd-text-primary: #ffffff;
    --fd-text-secondary: #9ea8a1;
    --fd-text-muted: #6b776f;
    --fd-border-subtle: #1e2420;
    --fd-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fd-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body.french-door-builder-page {
    background-color: var(--fd-bg-black) !important;
    color: var(--fd-text-primary) !important;
    font-family: var(--fd-font-body) !important;
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 110px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.fd-header {
    background: #000000;
    border-bottom: 1px solid #1c211e;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.fd-header-brand-badge {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #28302a;
    padding-left: 16px;
}

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

.fd-header-brand-badge .fd-brand-badge-title em {
    color: var(--fd-green-bright);
    font-style: italic;
    margin: 0 2px;
}

.fd-header-brand-badge .fd-brand-badge-title i {
    font-style: normal;
    background: #232a25;
    border: 1px solid #38a83e;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 4px;
}

.fd-header-brand-badge .fd-brand-badge-sub {
    font-size: 10px;
    color: var(--fd-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.fd-trust-badge img {
    height: 32px;
    width: auto;
    opacity: 0.95;
}

/* ============================================================
   STEP PROGRESS BAR
   ============================================================ */
.fd-step-bar-wrap {
    background: #0d100e;
    border-bottom: 1px solid #19201b;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 67px;
    z-index: 99;
}
.fd-step-bar-wrap::-webkit-scrollbar { display: none; }

.fd-step-nav {
    max-width: 1540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

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

.fd-step-nav-item:hover {
    color: #e0e5e1;
}

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

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

.fd-step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1c231e;
    color: var(--fd-text-muted);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.fd-step-nav-item.completed .fd-step-circle {
    background: #233e26;
    color: var(--fd-green-bright);
}

/* ============================================================
   MAIN SHELL & WIZARD STEPS
   ============================================================ */
.fd-shell {
    max-width: 1480px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

.fd-wizard-step {
    display: none;
    animation: fdFadeIn 0.3s ease;
}

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

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

.fd-step-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

.fd-step-num {
    display: inline-block;
    color: var(--fd-green-bright);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.fd-step-header h1 {
    font-family: var(--fd-font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.fd-step-header p {
    color: var(--fd-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   STEP 1: HERO & CONFIGURATION CARDS (CLIENT MOCKUP)
   ============================================================ */
.fd-hero-heading-block {
    text-align: center;
    margin-bottom: 36px;
}

.fd-hero-badge-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--fd-font-heading);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.fd-hero-badge-title .fd-brand-main {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.fd-hero-badge-title .fd-brand-green {
    color: var(--fd-green-bright);
    font-style: italic;
}

.fd-hero-badge-title .fd-brand-tag {
    background: transparent;
    border: 2px solid var(--fd-green-bright);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 6px;
    line-height: 1;
}

.fd-hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #c9d4cc;
    text-transform: uppercase;
    margin-top: 4px;
}

.fd-hero-tagline {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--fd-green-bright);
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 24px;
}

.fd-section-title {
    font-family: var(--fd-font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 40px;
    margin-bottom: 8px;
}

.fd-section-title::before,
.fd-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--fd-green-bright);
}

.fd-section-title::before { left: 0; }
.fd-section-title::after { right: 0; }

.fd-section-desc {
    color: var(--fd-text-secondary);
    font-size: 14px;
    max-width: 700px;
    margin: 0 auto;
}

/* 3-Column Configuration Grid */
.fd-config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.fd-config-card {
    background: var(--fd-card-bg);
    border: 2px solid var(--fd-card-border);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: all 0.28s ease;
    user-select: none;
}

.fd-config-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fd-config-card:hover {
    border-color: #38a83e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fd-config-card.selected,
.fd-config-card:has(input[type="radio"]:checked) {
    background: var(--fd-card-active-bg);
    border-color: var(--fd-green-bright);
    box-shadow: 0 0 0 2px var(--fd-green-bright), 0 12px 35px rgba(56, 168, 62, 0.22);
}

.fd-config-card .fd-card-header {
    text-align: center;
    margin-bottom: 16px;
}

.fd-config-card .fd-card-header h2 {
    font-family: var(--fd-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fd-config-card .fd-card-header h2 span {
    color: var(--fd-green-bright);
}

.fd-config-card .fd-card-header .sub-header-span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--fd-green-bright);
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Card Visual / Image Section */
.fd-card-image-wrap {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #0d120e;
    border: 1px solid #1e2820;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.fd-art-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b281e 0%, #0a0e0b 100%);
    padding: 16px;
}

.fd-door-frame-visual {
    height: 100%;
    aspect-ratio: 0.55;
    background: #1e2420;
    border: 4px solid #3a423d;
    border-radius: 4px;
    display: flex;
    gap: 2px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.flags-doors-preview .fd-door-frame-visual {
    aspect-ratio: 1.4;
}

.french-doors-preview .fd-door-frame-visual {
    aspect-ratio: 0.9;
}

.fd-door-panel-visual {
    flex: 1;
    height: 100%;
    background: #252d27;
    border: 2px solid #4a544e;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fd-flag-panel {
    width: 22%;
    height: 100%;
    background: #1a221c;
    border: 2px solid #3c4640;
    border-radius: 2px;
    position: relative;
}

.fd-glass-glaze {
    width: 82%;
    height: 90%;
    background: linear-gradient(135deg, rgba(80, 160, 240, 0.25) 0%, rgba(20, 50, 40, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.fd-long-handle-visual {
    position: absolute;
    right: 8px;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: #d4ded6;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.fd-lever-handle-visual {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 24px;
    transform: translateY(-50%);
}
.fd-lever-handle-visual.right-side { right: 4px; }
.fd-lever-handle-visual.left-side { left: 4px; }
.fd-lever-handle-visual::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 2px;
}
.fd-lever-handle-visual::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 10px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 1px;
}
.fd-lever-handle-visual.right-side::after { left: -8px; }
.fd-lever-handle-visual.left-side::after { right: -8px; }

/* Dimensions box inside card */
.fd-dimensions-box {
    background: #0e120f;
    border: 1px solid #1f2721;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.fd-dim-col {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.fd-dim-arrows {
    color: var(--fd-green-bright);
    font-size: 16px;
}

.fd-dim-text {
    display: flex;
    flex-direction: column;
}

.fd-dim-text strong {
    font-size: 10px;
    color: var(--fd-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fd-dim-text span {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.fd-dim-divider {
    width: 1px;
    height: 26px;
    background: #252f28;
    margin: 0 10px;
}

/* 4 Badges grid */
.fd-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
    flex-grow: 1;
}

.fd-badge-item {
    background: #0d110e;
    border: 1px solid #1a221c;
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fd-badge-icon {
    color: var(--fd-green-bright);
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fd-badge-mini-text {
    font-size: 8px;
    font-weight: 800;
    color: var(--fd-green-bright);
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.fd-badge-item b {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.fd-badge-item small {
    font-size: 9.5px;
    color: var(--fd-text-muted);
    line-height: 1.3;
}

/* Select This Option Button */
.fd-select-btn {
    width: 100%;
    padding: 13px 18px;
    background: transparent;
    border: 2px solid var(--fd-green-bright);
    color: #ffffff;
    font-family: var(--fd-font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: auto;
}

.fd-config-card:hover .fd-select-btn,
.fd-config-card.selected .fd-select-btn,
.fd-config-card:has(input[type="radio"]:checked) .fd-select-btn {
    background: var(--fd-green-bright);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(56, 168, 62, 0.4);
}

/* Bottom Features Bar */
.fd-features-bar {
    background: #0e120f;
    border: 1px solid #1f2721;
    border-radius: 10px;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fd-feat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fd-feat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #141c16;
    border: 1px solid #233126;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fd-feat-info {
    display: flex;
    flex-direction: column;
}

.fd-feat-info strong {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fd-feat-info span {
    font-size: 11px;
    color: var(--fd-text-muted);
    line-height: 1.3;
}

/* ============================================================
   GENERIC OPTION CARDS & GRIDS
   ============================================================ */
.fd-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fd-choice-card,
.fd-colour-card,
.fd-handle-card,
.fd-cill-card,
.fd-install-card {
    background: var(--fd-card-bg);
    border: 2px solid var(--fd-card-border);
    border-radius: 10px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    user-select: none;
}

.fd-choice-card input[type="radio"],
.fd-colour-card input[type="radio"],
.fd-handle-card input[type="radio"],
.fd-cill-card input[type="radio"],
.fd-install-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fd-choice-card:hover,
.fd-colour-card:hover,
.fd-handle-card:hover,
.fd-cill-card:hover,
.fd-install-card:hover {
    border-color: #38a83e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.fd-choice-card.selected,
.fd-colour-card.selected,
.fd-handle-card.selected,
.fd-cill-card.selected,
.fd-install-card.selected,
.fd-choice-card:has(input[type="radio"]:checked),
.fd-colour-card:has(input[type="radio"]:checked),
.fd-handle-card:has(input[type="radio"]:checked),
.fd-cill-card:has(input[type="radio"]:checked),
.fd-install-card:has(input[type="radio"]:checked) {
    background: var(--fd-card-active-bg);
    border-color: var(--fd-green-bright);
    box-shadow: 0 0 0 2px var(--fd-green-bright), 0 8px 25px rgba(56, 168, 62, 0.2);
}

.fd-choice-card::after,
.fd-colour-card::after,
.fd-handle-card::after,
.fd-cill-card::after,
.fd-install-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #2e3b31;
    background: transparent;
    transition: all 0.2s ease;
}

.fd-choice-card.selected::after,
.fd-colour-card.selected::after,
.fd-handle-card.selected::after,
.fd-cill-card.selected::after,
.fd-install-card.selected::after,
.fd-choice-card:has(input[type="radio"]:checked)::after,
.fd-colour-card:has(input[type="radio"]:checked)::after,
.fd-handle-card:has(input[type="radio"]:checked)::after,
.fd-cill-card:has(input[type="radio"]:checked)::after,
.fd-install-card:has(input[type="radio"]:checked)::after {
    content: '✓';
    border-color: var(--fd-green-bright);
    background: var(--fd-green-bright);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fd-choice-card b,
.fd-colour-card b,
.fd-handle-card b,
.fd-cill-card b,
.fd-install-card b {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 12px 0 4px;
}

.fd-choice-card small,
.fd-colour-card small,
.fd-handle-card small,
.fd-cill-card small,
.fd-install-card small {
    font-size: 12px;
    color: var(--fd-text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.fd-price-tag {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--fd-green-bright);
    background: rgba(56, 168, 62, 0.12);
    border: 1px solid rgba(56, 168, 62, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
}

.fd-price-tag.included {
    color: #c8e6c9;
    border-color: rgba(200, 230, 201, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   STEP 2: DIMENSIONS
   ============================================================ */
.fd-dimensions-entry-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--fd-card-bg);
    border: 2px solid var(--fd-card-border);
    border-radius: 12px;
    padding: 32px 28px;
}

.fd-dim-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.fd-input-group {
    display: flex;
    flex-direction: column;
}

.fd-input-group label {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.fd-input-group label span {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.fd-input-group label small {
    font-size: 11px;
    color: var(--fd-text-muted);
}

.fd-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fd-input-wrapper input {
    width: 100%;
    background: #0a0e0b;
    border: 2px solid #28332b;
    border-radius: 8px;
    padding: 14px 44px 14px 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    transition: all 0.2s ease;
}

.fd-input-wrapper input:focus {
    border-color: var(--fd-green-bright);
    box-shadow: 0 0 0 3px rgba(56, 168, 62, 0.2);
}

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

.fd-size-notice {
    background: #0e1410;
    border: 1px solid #1f2a22;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--fd-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.fd-error-msg {
    color: #ff5252;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
    text-align: center;
    min-height: 20px;
}

/* ============================================================
   GRAPHIC CARDS FOR MASTER / DIRECTION
   ============================================================ */
.fd-choice-icon-art {
    width: 100%;
    height: 140px;
    background: #0a0e0b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fd-hand-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(56, 168, 62, 0.15);
    border: 1px solid rgba(56, 168, 62, 0.3);
    color: var(--fd-green-bright);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.fd-hand-graphic {
    display: flex;
    gap: 8px;
    width: 70%;
    height: 60%;
}

.fd-hg-door {
    flex: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.fd-hg-door.master {
    background: #254029;
    border: 2px solid var(--fd-green-bright);
    color: #c8e6c9;
}

.fd-hg-door.slave {
    background: #171d18;
    border: 2px solid #2d3830;
    color: #6d7a70;
}

.fd-swing-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fd-swing-arrow {
    font-size: 13px;
    font-weight: 800;
    color: var(--fd-green-bright);
    letter-spacing: 1px;
}

.fd-swing-base {
    width: 80px;
    height: 6px;
    background: #38a83e;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(56, 168, 62, 0.5);
}

/* ============================================================
   FRAME COLOURS
   ============================================================ */
.fd-swatch-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #232c25;
    margin: 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.fd-colour-card:hover .fd-swatch-circle {
    transform: scale(1.08);
}

.anthracite-swatch { background: #3b4246; }
.black-swatch      { background: #1a1a1a; }
.white-swatch      { background: #f4f4f4; }
.dual-swatch       { background: linear-gradient(135deg, #3b4246 50%, #f4f4f4 50%); }
.ral-rainbow-swatch {
    background: linear-gradient(135deg, #e53935 0%, #fb8c00 25%, #43a047 50%, #1e88e5 75%, #8e24aa 100%);
}

.fd-ral-input-box {
    max-width: 500px;
    margin: 20px auto 0;
    background: var(--fd-card-bg);
    border: 2px solid #2e7d32;
    border-radius: 8px;
    padding: 16px 20px;
}

.fd-ral-input-box label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.fd-ral-input-box input {
    width: 100%;
    background: #0a0e0b;
    border: 1px solid #28332b;
    border-radius: 6px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.fd-ral-input-box input:focus {
    border-color: var(--fd-green-bright);
}

/* ============================================================
   GLASS & HANDLES & CILLS & INSTALLATION CARDS
   ============================================================ */
.fd-glass-img-wrap,
.fd-handle-img-wrap,
.fd-cill-img-wrap,
.fd-install-img-wrap {
    width: 100%;
    height: 170px;
    background: #0d120e;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fd-glass-img-wrap img,
.fd-handle-img-wrap img,
.fd-cill-img-wrap img,
.fd-install-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fd-choice-card:hover .fd-glass-img-wrap img,
.fd-handle-card:hover .fd-handle-img-wrap img,
.fd-cill-card:hover .fd-cill-img-wrap img,
.fd-install-card:hover .fd-install-img-wrap img {
    transform: scale(1.05);
}

.fd-handle-img-wrap img {
    object-fit: contain;
    background: #173822;
}

/* Image Zoom Button */
.fd-img-zoom-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(13, 26, 15, 0.85);
    border: 1px solid var(--fd-green);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    padding: 0;
    transition: all 0.2s ease;
}

.fd-img-zoom-btn:hover {
    background: var(--fd-green-bright);
    transform: scale(1.1);
}

/* Postcode & Delivery Calculator Box */
.fd-delivery-calculator-box,
.fd-photo-upload-box {
    max-width: 600px;
    margin: 24px auto 0;
    background: var(--fd-card-bg);
    border: 1px solid #232c25;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.fd-delivery-calculator-box h3,
.fd-photo-upload-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.fd-delivery-calculator-box p,
.fd-photo-upload-box p {
    font-size: 13px;
    color: var(--fd-text-secondary);
    margin-bottom: 16px;
}

.fd-postcode-row {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto 12px;
}

.fd-postcode-row input {
    flex: 1;
    background: #0a0e0b;
    border: 1px solid #28332b;
    border-radius: 6px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.fd-calc-btn {
    background: var(--fd-green);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.fd-calc-btn:hover {
    background: var(--fd-green-bright);
}

.fd-delivery-result {
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    min-height: 22px;
}
.fd-delivery-result.success { color: #81c784; }
.fd-delivery-result.error   { color: #ff5252; }

.fd-photo-upload-box input[type="file"] {
    display: block;
    margin: 0 auto;
    color: var(--fd-text-secondary);
    font-size: 13px;
}

/* ============================================================
   STEP 10: SUMMARY & ACTIONS
   ============================================================ */
.fd-summary-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.fd-summary-table-wrap {
    background: var(--fd-card-bg);
    border: 1px solid var(--fd-card-border);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
}

.fd-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.fd-summary-table tr {
    border-bottom: 1px solid #1a221c;
}
.fd-summary-table tr:last-child {
    border-bottom: none;
}

.fd-summary-table td {
    padding: 12px 8px;
    font-size: 13px;
}

.fd-summary-table td.label-col {
    color: var(--fd-text-muted);
    font-weight: 600;
    width: 38%;
}

.fd-summary-table td.val-col {
    color: #ffffff;
    font-weight: 600;
    width: 42%;
}

.fd-summary-table td.price-col {
    color: var(--fd-green-bright);
    font-weight: 700;
    text-align: right;
    width: 20%;
}

.fd-summary-totals-card {
    background: var(--fd-card-bg);
    border: 2px solid #28332b;
    border-radius: 10px;
    padding: 24px 20px;
    position: sticky;
    top: 130px;
}

.fd-grand-total-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid #232c25;
    margin-bottom: 20px;
}

.fd-grand-total-row span {
    font-size: 13px;
    color: var(--fd-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.fd-grand-total-row strong {
    font-family: var(--fd-font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.fd-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fd-btn-cart,
.fd-btn-buy {
    width: 100%;
    padding: 14px 20px;
    border-radius: 6px;
    font-family: var(--fd-font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    transition: all 0.2s ease;
}

.fd-btn-cart {
    background: var(--fd-green);
    color: #ffffff;
}
.fd-btn-cart:hover {
    background: var(--fd-green-bright);
    box-shadow: 0 4px 15px rgba(56, 168, 62, 0.4);
}

.fd-btn-buy {
    background: #f29b13;
    color: #ffffff;
}
.fd-btn-buy:hover {
    background: #ffaa2b;
    box-shadow: 0 4px 15px rgba(242, 155, 19, 0.4);
}

.fd-submit-msg {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
}
.fd-submit-msg.success { color: #81c784; }
.fd-submit-msg.error   { color: #ff5252; }

/* ============================================================
   BOTTOM NAVIGATION BAR
   ============================================================ */
.fd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #000000;
    border-top: 2px solid var(--fd-green);
    z-index: 999;
    display: flex;
    align-items: center;
}

.fd-nav-inner {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fd-nav-btn {
    padding: 13px 26px;
    background: var(--fd-green);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--fd-font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fd-nav-btn:hover:not(:disabled) {
    background: var(--fd-green-bright);
    box-shadow: 0 4px 12px rgba(56, 168, 62, 0.35);
}

.fd-nav-btn:disabled {
    background: #252e27;
    color: #5d6960;
    cursor: not-allowed;
    box-shadow: none;
}

.fd-nav-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

#fd-current-step-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--fd-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fd-nav-price-indicator {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: #0e1410;
    border: 1px solid #233126;
    padding: 6px 14px;
    border-radius: 6px;
}

.fd-nav-price-indicator small {
    font-size: 11px;
    color: var(--fd-text-muted);
    text-transform: uppercase;
}

.fd-nav-price-indicator strong {
    font-size: 16px;
    font-weight: 800;
    color: #81c784;
}

/* ============================================================
   STICKY FLOATING CONFIGURATION TAB & DRAWER
   ============================================================ */
.fd-config-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    background: var(--fd-green);
    border: none;
    border-radius: 18px 0 0 18px;
    color: #ffffff;
    padding: 16px 8px;
    width: 52px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: -3px 0 15px rgba(0,0,0,0.6);
    transition: all 0.25s ease;
}

.fd-config-tab:hover {
    background: var(--fd-green-bright);
    width: 58px;
}

.fd-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.fd-tab-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.fd-tab-text-wrap small {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #c8e6c9;
    font-weight: 700;
}

.fd-tab-text-wrap strong {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    padding: 6px 4px;
    border-radius: 12px;
}

.fd-tab-arrow {
    font-size: 20px;
    line-height: 1;
    font-style: normal;
}

.fd-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 9991;
    display: none;
}
.fd-drawer-backdrop.open { display: block; }

.fd-drawer {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 380px;
    max-height: calc(100vh - 180px);
    background: #111713;
    border: 2px solid #233126;
    border-radius: 12px;
    z-index: 9992;
    display: flex;
    flex-direction: column;
    transform: translateX(420px);
    transition: transform 0.28s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
.fd-drawer.open {
    transform: translateX(0);
}

.fd-drawer-head {
    padding: 16px 20px;
    background: #0d120f;
    border-bottom: 1px solid #1e2921;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fd-drawer-head h2 {
    font-family: var(--fd-font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.fd-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.fd-drawer-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.fd-drawer-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #19221b;
    font-size: 12px;
}

.fd-drawer-row:last-child { border-bottom: none; }
.fd-drawer-row span:first-child { color: var(--fd-text-muted); }
.fd-drawer-row span:last-child { color: #ffffff; font-weight: 600; text-align: right; }

.fd-drawer-foot {
    padding: 16px 20px;
    background: #0d120f;
    border-top: 1px solid #1e2921;
}

.fd-drawer-total-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.fd-drawer-total-box span { font-size: 13px; color: var(--fd-text-muted); text-transform: uppercase; font-weight: 700; }
.fd-drawer-total-box strong { font-size: 20px; color: #81c784; font-weight: 800; }

.fd-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fd-drawer-btn-cart,
.fd-drawer-btn-buy {
    padding: 11px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.fd-drawer-btn-cart { background: var(--fd-green); color: #fff; }
.fd-drawer-btn-buy  { background: #f29b13; color: #fff; }

/* ============================================================
   LIGHTBOX ZOOM MODAL
   ============================================================ */
.fd-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.fd-lightbox-modal.open {
    display: flex;
    opacity: 1;
}

.fd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.fd-lightbox-content {
    position: relative;
    z-index: 2;
    background: #111c13;
    border: 1px solid var(--fd-green);
    border-radius: 12px;
    padding: 24px;
    max-width: 620px;
    width: 90%;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.8);
}

.fd-lightbox-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #1e3a21;
    border: 1px solid var(--fd-green);
    color: #ffffff;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fd-lightbox-close:hover {
    background: #c62828;
    border-color: #e53935;
    transform: rotate(90deg);
}

.fd-lightbox-img-box {
    width: 100%;
    max-height: 55vh;
    overflow: hidden;
    border-radius: 8px;
    background: #0a0e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fd-lightbox-img-box img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
}

.fd-lightbox-caption h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
}

.fd-lightbox-caption p {
    color: #a8d5aa;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
    .fd-config-grid {
        grid-template-columns: 1fr;
    }
    .fd-features-bar {
        grid-template-columns: 1fr 1fr;
    }
    .fd-summary-container {
        grid-template-columns: 1fr;
    }
    .fd-summary-totals-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .fd-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .fd-header-brand-badge {
        border-left: none;
        padding-left: 0;
    }
    .fd-dim-inputs-grid {
        grid-template-columns: 1fr;
    }
    .fd-features-bar {
        grid-template-columns: 1fr;
    }
    .fd-option-grid {
        grid-template-columns: 1fr;
    }
    .fd-bottom-nav {
        height: auto;
        padding: 12px 0;
    }
    .fd-nav-inner {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .fd-drawer {
        width: calc(100% - 24px);
        right: 12px;
        top: 80px;
    }
    .fd-config-tab {
        top: 40%;
        width: 44px;
    }
    .fd-config-tab small {
        display: none;
    }
}
