        * {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
            background: #3d3d3d;
            height: 100%;
        }

        .guitar-configurator {
            max-width: 1400px;
            margin: 0 auto;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            padding: 20px;
            padding-bottom: 0;
            background: #3d3d3d;
            color: #e0e0e0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Intro Page Styles */
        .intro-page {
            display: flex;
            justify-content: center;
            align-items: center;
            flex: 1;
            text-align: center;
            padding: 40px 20px;
        }

        .intro-content {
            max-width: 700px;
        }

        .intro-content h1 {
            font-family: 'Bitter', Georgia, serif;
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #fff;
        }

        .intro-content p {
            font-size: 1.1rem;
            line-height: 1.7;
            color: #ccc;
            margin-bottom: 30px;
        }

        .intro-button {
            background: #8b7355;
            color: #fff;
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-family: 'Bitter', Georgia, serif;
            cursor: pointer;
            border-radius: 4px;
            transition: background 0.3s ease;
        }

        .intro-button:hover {
            background: #a08060;
        }

        .intro-page.hidden {
            display: none;
        }

        .configurator-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 2px solid #555;
        }

        .configurator-header h1 {
            margin: 0 0 10px 0;
            font-size: 2.5rem;
            color: #ffffff;
            font-family: 'Jubilat', 'Bitter', Georgia, serif;
            font-weight: 300;
        }

        .configurator-header p {
            margin: 0;
            color: #b0b0b0;
            font-size: 1.1rem;
        }

        .config-section {
            margin-bottom: 30px;
            padding: 25px;
            background: #4a4a4a;
            border-radius: 8px;
            border: 1px solid #555;
        }

        .config-section h2 {
            margin: 0 0 20px 0;
            font-size: 1.3rem;
            color: #ffffff;
            display: flex;
            align-items: center;
            font-family: 'Jubilat', 'Bitter', Georgia, serif;
            font-weight: 300;
        }

        .config-section h2::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 24px;
            background: #ffffff;
            margin-right: 12px;
            border-radius: 2px;
        }

        .option-group {
            margin-bottom: 20px;
        }

        .option-group:last-child {
            margin-bottom: 0;
        }

        /* Model Selector Cards */
        .model-selector {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .model-card {
            background: #4a4a4a;
            border: 3px solid #555;
            border-radius: 12px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            user-select: none;
            overflow: visible;
        }

        .model-card:hover {
            border-color: #888;
            transform: translateY(-4px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .model-card.selected {
            border-color: #fff;
            background: #555;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        .model-image {
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            padding: 10px;
            overflow: hidden;
        }

        .model-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .model-info h3 {
            font-size: 1.4rem;
            margin-bottom: 8px;
            color: #fff;
            font-family: 'Jubilat', 'Bitter', Georgia, serif;
            font-weight: 300;
        }

        .model-price {
            font-size: 1.2rem;
            font-weight: 600;
            color: #e0e0e0;
            margin: 0;
        }

        @media (max-width: 768px) {
            .model-selector {
                grid-template-columns: 1fr;
            }
            
            .model-image {
                height: 150px;
            }
        }

        /* Guitar/Part Preview Panels */
        #guitar-preview-container,
        #body-preview-container,
        #neck-preview-container,
        #fretboard-preview-container {
            text-align: center;
            padding: 20px;
            background: #333;
            border-radius: 8px;
            min-height: 200px;
        }

        #guitar-preview-image,
        #body-preview-image,
        #neck-preview-image,
        #fretboard-preview-image {
            max-width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        #guitar-preview-label,
        #body-preview-label,
        #neck-preview-label,
        #fretboard-preview-label {
            margin-top: 15px;
            font-size: 1.1rem;
            color: #e0e0e0;
            font-weight: 500;
        }

        #guitar-preview-section,
        #body-preview-section,
        #neck-preview-section,
        #fretboard-preview-section {
            background: #333;
            border: 2px solid #555;
            border-radius: 8px;
            padding: 15px;
        }

        /* Combined Guitar Preview (Body + Top overlay) */
        #combined-preview-section {
            background: #333;
            border: 2px solid #555;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
        }

        #combined-preview-container {
            position: relative;
            display: inline-block;
            max-width: 100%;
        }

        #combined-body-image,
        #combined-top-image {
            max-width: 100%;
            height: auto;
            max-height: 450px;
            object-fit: contain;
        }

        #combined-top-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        #combined-preview-label {
            margin-top: 15px;
            font-size: 1.1rem;
            color: #e0e0e0;
            font-weight: 500;
            text-align: center;
        }

        #combined-preview-section h3 {
            margin: 0 0 15px 0;
            color: #e0e0e0;
            font-size: 1.2rem;
        }

        /* Master Preview - Persistent at top */
        .master-preview {
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            border-radius: 12px;
            padding: 30px 40px;
            margin-bottom: 30px;
            display: none; /* Hidden until first selection */
            /* Break out of container to full width */
            width: calc(100% + 40px);
            margin-left: -20px;
            margin-right: -20px;
            /* Sticky positioning */
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .master-preview.visible {
            display: block;
        }

        .master-preview-container {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            min-height: 150px;
            overflow: visible;
        }

        .preview-layer {
            max-width: 100%;
            height: auto;
            display: none; /* Hidden until loaded */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            object-fit: contain;
            /* Smooth transitions when switching woods */
            transition: opacity 0.3s ease;
        }

        /* Stack layers with z-index: body=1, top=2, neck layers=3-7, fretboard=8 */
        #preview-body {
            position: relative; /* First layer establishes container height */
            z-index: 1;
        }

        #preview-top {
            z-index: 2;
        }

        #preview-neck-outer {
            z-index: 3;
        }

        #preview-neck-outer-stripes {
            z-index: 4;
        }

        #preview-neck-inner {
            z-index: 5;
        }

        #preview-neck-inner-stripes {
            z-index: 6;
        }

        #preview-neck-center {
            z-index: 7;
        }

        #preview-fretboard {
            z-index: 8;
        }
        /* Slight scale + nudge when multiscale so neck/fretboard fill the pocket (Blender scale correct; composite alignment) */
        .preview-layer.multiscale-scale-fix {
            transform: scale(1.06) translate(5px, 2px);
            transform-origin: center center;
        }

        /* 7-string layers: no transform — all rendered at native Blender position (same as 6-string). */
        .preview-layer.seven-string-align {
            /* No nudge; necks, fretboards, binding all aligned in Blender. */
        }

        /* Multiscale-only strings alignment (standard strings remain unshifted) */
        #preview-strings.multiscale-strings-shift {
            transform: scale(1.06) translate(-17.5px, 0px) !important;
            transform-origin: center center;
        }
        #preview-binding {
            z-index: 8;
        }
        
        #preview-headstock-binding {
            z-index: 10;
        }

        #preview-faceplate {
            z-index: 9;
        }

        #preview-frets {
            z-index: 10;
        }
        /* 7-string: same 6-string fret image, scaled in Y to span the wider fretboard; nudge up 1px */
        #preview-frets.seven-string-frets {
            transform: scaleY(1.12) translateY(-1px);
            transform-origin: center center;
        }
        /* Lovelace 4-string: fewer strings than 5-string — scale down in Y */
        #preview-frets.lovelace-4string-frets {
            transform: scaleY(0.87);
            transform-origin: center center;
        }
        /* Lovelace 6-string: more strings than 5-string — scale up in Y */
        #preview-frets.lovelace-6string-frets {
            transform: scaleY(1.25);
            transform-origin: center center;
        }
        
        #preview-inlay {
            z-index: 9;
        }
        /* 7-string: scale inlays 1.1 in Y; nudge varies by type (Impulse 1px, Juniper 3px) - set in JS */
        #preview-inlay.seven-string-inlay {
            transform: scaleY(1.1) translateY(var(--inlay-nudge-y, -3px));
            transform-origin: center center;
        }
        
        #preview-bridge-backing {
            z-index: 6;
        }
        #preview-bridge {
            z-index: 7;
        }
        
        /* Bass soapbar pickup layers */
        #preview-soapbar-bridge, #preview-soapbar-middle, #preview-soapbar-neck {
            z-index: 6;
        }

        #preview-pickup-cover-bridge {
            z-index: 6;
        }

        #preview-pickup-cover-neck {
            z-index: 6;
        }
        
        #preview-pole-pieces-bridge {
            z-index: 7;
        }
        
        #preview-pole-pieces-neck {
            z-index: 7;
        }
        
        /* Uncovered pickup layers */
        #preview-pickup-bridge, #preview-pickup-neck {
            z-index: 6;
        }
        
        #preview-pole-pieces-hex-bridge, #preview-pole-pieces-hex-neck {
            z-index: 7;
        }
        
        #preview-bobbin-bridge-bottom, #preview-bobbin-bridge-top,
        #preview-bobbin-neck-bottom, #preview-bobbin-neck-top {
            z-index: 7;
        }
        
        #preview-tuner-back {
            z-index: 0;  /* Behind all neck wood layers */
        }
        
        #preview-tuner-front {
            z-index: 11;  /* In front of faceplate */
        }
        
        #preview-locking-nut {
            z-index: 13;  /* On top of strings - locking nut clamps over strings */
        }
        
        #preview-nut {
            z-index: 10;  /* Standard nut (Bone/Graphtech/Brass) - below strings */
        }
        
        #preview-strings {
            z-index: 12;  /* On top of everything */
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }
        
        #preview-strings.visible {
            opacity: 1;
        }

        /* Wood Selector Cards (smaller) */
        .wood-selector {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
            margin: 20px 0;
        }

    .wood-card {
        background: #4a4a4a;
        border: 2px solid #555;
        border-radius: 8px;
        padding: 15px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        user-select: none;
        height: 110px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

        .wood-card:hover {
            border-color: #888;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .wood-card.selected {
            border-color: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

    .wood-card-name {
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 4px;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

    .wood-card-price {
        font-size: 0.85rem;
        color: #fff;
        font-weight: 500;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

        @media (max-width: 768px) {
            .wood-selector {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 10px;
            }
        }

        .option-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #e0e0e0;
            font-size: 0.95rem;
        }

        .option-group select,
        .option-group textarea,
        .option-group input[type="text"],
        .option-group input[type="email"] {
            width: 100%;
            padding: 12px 15px;
            font-size: 1rem;
            border: 1px solid #666;
            border-radius: 4px;
            background: #f5f5f5;
            color: #333;
            transition: border-color 0.2s;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .option-group select {
            cursor: pointer;
        }

        .option-group textarea {
            resize: vertical;
            min-height: 100px;
            line-height: 1.5;
        }

        .option-group input[type="text"],
        .option-group input[type="email"] {
            line-height: 1.5;
        }

        .option-group select:focus,
        .option-group textarea:focus,
        .option-group input[type="text"]:focus,
        .option-group input[type="email"]:focus {
            outline: none;
            border-color: #888;
        }

    .option-group select:hover,
    .option-group textarea:hover,
    .option-group input[type="text"]:hover,
    .option-group input[type="email"]:hover {
        border-color: #888;
    }

    .option-group select option:disabled {
        color: #999;
    }

    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        font-weight: normal;
        margin-bottom: 0;
    }

    .checkbox-label input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        cursor: pointer;
    }

    .checkbox-label span {
        font-size: 1rem;
    }

    .option-description {
            margin-top: 5px;
            font-size: 0.85rem;
            color: #b0b0b0;
            font-style: italic;
        }

        .price-summary {
            background: #f5f5f5;
            color: #333;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            max-height: calc(100vh - 40px);
            overflow-y: auto;
        }

        .price-summary h2 {
            margin: 0 0 20px 0;
            font-size: 1.5rem;
            border-bottom: 2px solid #ddd;
            padding-bottom: 15px;
            font-family: 'Jubilat', 'Bitter', Georgia, serif;
            font-weight: 300;
            color: #333;
        }

        .total-price {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #ddd;
            font-size: 1.8rem;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #333;
        }

        .add-to-cart-btn {
            margin-top: 25px;
            width: 100%;
            padding: 18px;
            background: #333;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .add-to-cart-btn:hover {
            background: #444;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        .add-to-cart-btn:active {
            transform: translateY(0);
        }

        .configurator-grid {
            display: block;
        }

        .config-options {
            width: 100%;
        }

        /* Hide old price summary wrapper - now in top bar */
        .price-summary-wrapper {
            display: none;
        }

        @media (max-width: 767px) {
            .guitar-configurator {
                padding: 10px;
                padding-bottom: 120px; /* Space for fixed bottom bar */
            }

            .master-preview {
                padding: 15px;
                margin-left: -10px;
                margin-right: -10px;
                width: calc(100% + 20px);
                border-radius: 0;
            }

            .config-section {
                padding: 15px;
                margin-bottom: 20px;
            }

            .configurator-header {
                margin-bottom: 30px;
            }

            .configurator-header h1 {
                font-size: 2rem;
            }

        /* Fixed bottom price bar on mobile */
        .price-summary {
            position: fixed !important;
            bottom: -150px !important;
            top: auto !important;
            left: 0;
            right: 0;
            padding: 12px 15px;
            margin: 0;
            background: rgba(61, 61, 61, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
            z-index: 1000;
            max-height: 140px;
            transition: bottom 0.3s ease-in-out;
            color: #fff;
        }

        .price-summary.visible {
            bottom: 0 !important;
        }

            .price-summary h2 {
                display: none;
            }

            .total-price {
                font-size: 1.2rem;
                margin-top: 0;
                padding-top: 0;
                border-top: none;
                margin-bottom: 8px;
            }

            .price-summary button {
                margin-top: 8px;
                padding: 12px;
                font-size: 0.95rem;
            }

            .price-summary p {
                margin: 0;
                font-size: 0.75rem;
            }

            .option-group select,
            .option-group textarea,
            .option-group input[type="text"],
            .option-group input[type="email"] {
                padding: 10px 12px;
                font-size: 16px;
            }
        }

        /* Ensure no horizontal overflow */
        .guitar-configurator {
            overflow-x: hidden;
        }

        @media (min-width: 768px) {
            .guitar-configurator {
                overflow: visible !important;
            }
        }

        .option-group select,
        .option-group textarea,
        .option-group input[type="text"],
        .option-group input[type="email"] {
            max-width: 100%;
        }

        .option-badge {
            display: inline-block;
            background: #555;
            color: #e0e0e0;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 8px;
        }

        .premium-badge {
            background: #c9a227;
            color: #fff;
        }

        /* Thank you message styles */
        .thank-you-message {
            display: none;
            text-align: center;
            padding: 60px 40px;
            background: #4a4a4a;
            color: white;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid #555;
        }

        .thank-you-message.show {
            display: block;
        }

        .thank-you-message h2 {
            font-size: 2.5rem;
            margin: 0 0 20px 0;
        }

        .thank-you-message p {
            font-size: 1.2rem;
            margin: 10px 0;
            opacity: 0.95;
        }

        .thank-you-message .checkmark {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        /* Loading spinner */
        .loading-spinner {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .loading-spinner.show {
            display: block;
        }

        .spinner {
            border: 4px solid rgba(44, 95, 141, 0.1);
            border-left-color: #2c5f8d;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Tab Navigation */
        .tab-navigation {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }

        .tab-button {
            background: transparent;
            border: 2px solid #666;
            color: #fff;
            padding: 12px 30px;
            font-size: 1rem;
            font-family: 'Bitter', Georgia, serif;
            cursor: pointer;
            border-radius: 25px;
            transition: all 0.3s ease;
            min-width: 160px;
        }

        .tab-button:hover {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.1);
        }

        .tab-button.active {
            background: #fff;
            color: #333;
            border-color: #fff;
        }

        /* Configuration Cards Container */
        .config-cards-wrapper {
            background: #2d2d2d;
            padding: 15px 0;
            flex-shrink: 0;
        }

        .cards-row {
            display: flex;
            align-items: flex-start;
        }

        .cards-label {
            color: #666;
            font-size: 0.9rem;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            transform: rotate(180deg);
            padding: 20px 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .config-cards-container {
            display: flex;
            gap: 15px;
            padding: 15px 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            flex: 1;
            justify-content: center;
        }

        .config-cards-container::-webkit-scrollbar {
            display: none;
        }

        .config-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            min-width: 200px;
            flex: 1;
            max-width: 240px;
            color: #333;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .config-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .config-card h3 {
            margin: 0 0 20px 0;
            font-family: 'Bitter', Georgia, serif;
            font-size: 1.1rem;
            font-weight: 600;
            color: #222;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        /* Review Popup Overlay */
        .review-popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .review-popup-overlay.active {
            display: flex;
        }
        
        .review-popup {
            background: #1a1a1a;
            border-radius: 16px;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        .review-popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #333;
        }
        
        .review-popup-header h2 {
            margin: 0;
            color: #fff;
            font-size: 1.5rem;
        }
        
        .close-review-popup {
            background: none;
            border: none;
            color: #888;
            font-size: 28px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        
        .close-review-popup:hover {
            color: #fff;
        }
        
        .review-popup-content {
            padding: 24px;
            overflow-y: auto;
            flex: 1;
        }
        
        .review-sections {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }
        
        .review-section {
            background: #252525;
            border-radius: 12px;
            padding: 16px;
        }
        
        .review-section h4 {
            margin: 0 0 12px 0;
            color: #4a9eff;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .review-section-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid #333;
            font-size: 0.85rem;
        }
        
        .review-section-row:last-child {
            border-bottom: none;
        }
        
        .review-section-label {
            color: #888;
        }
        
        .review-section-value {
            color: #fff;
            text-align: right;
            max-width: 60%;
        }
        
        .review-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: #252525;
            border-radius: 12px;
            margin-bottom: 24px;
        }
        
        .review-total-label {
            color: #888;
            font-size: 1.1rem;
        }
        
        .review-total-amount {
            color: #4a9eff;
            font-size: 1.8rem;
            font-weight: bold;
        }
        
        .review-info {
            background: #252525;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
        }
        
        .review-info p {
            color: #aaa;
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 0 0 12px 0;
        }
        
        .review-info p:last-child {
            margin-bottom: 0;
        }
        
        .review-info strong {
            color: #fff;
        }
        
        .quote-form {
            background: #252525;
            border-radius: 12px;
            padding: 20px;
        }
        
        .quote-form h3 {
            margin: 0 0 16px 0;
            color: #fff;
            font-size: 1.1rem;
        }
        
        .quote-form-row {
            margin-bottom: 16px;
        }
        
        .quote-form-row label {
            display: block;
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 6px;
        }
        
        .quote-form-row input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #444;
            border-radius: 8px;
            background: #1a1a1a;
            color: #fff;
            font-size: 1rem;
            box-sizing: border-box;
        }
        
        .quote-form-row input:focus {
            outline: none;
            border-color: #4a9eff;
        }
        
        .quote-form-row input::placeholder {
            color: #666;
        }
        
        .submit-quote-btn {
            width: 100%;
            padding: 16px;
            background: #4a9eff;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
            transition: background 0.2s;
        }
        
        .submit-quote-btn:hover {
            background: #3a8eef;
        }
        
        @media (max-width: 600px) {
            .review-sections {
                grid-template-columns: 1fr;
            }
        }

        /* Expanded Card Overlay */
        .card-expanded-overlay {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            z-index: 1000;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
            height: 50vh;
            animation: slideUp 0.3s ease-out;
        }

        .card-expanded-overlay.active {
            display: flex;
            flex-direction: column;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .expanded-card-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 15px 20px;
            pointer-events: none;
            z-index: 10;
        }

        .expanded-card-header h2 {
            margin: 0;
            font-family: 'Bitter', Georgia, serif;
            font-size: 1rem;
            color: #999;
            pointer-events: auto;
        }

        .close-expanded-card {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
            padding: 5px 10px;
            border-radius: 5px;
            transition: background 0.2s;
            pointer-events: auto;
        }

        .close-expanded-card:hover {
            background: #f0f0f0;
        }

        /* Carousel Content */
        .expanded-card-content {
            padding: 10px 30px;
            overflow: hidden;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .carousel-container {
            position: relative;
            overflow: hidden;
            flex: 1;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .carousel-slides {
            display: flex;
            transition: transform 0.4s ease;
            flex: 1;
            height: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
            padding: 10px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        .carousel-slide h3 {
            font-family: 'Bitter', Georgia, serif;
            font-size: 1.2rem;
            margin-bottom: 8px;
            color: #333;
        }

        .carousel-slide .slide-description {
            font-size: 0.85rem;
            color: #666;
            max-width: 900px;
            line-height: 1.4;
            margin-bottom: 15px;
            text-align: center;
        }

        .carousel-slide .text-input-wrapper {
            width: 100%;
            max-width: 500px;
            margin: 20px auto;
        }

        .carousel-slide .carousel-text-input {
            width: 100%;
            padding: 15px 20px;
            font-size: 1rem;
            border: 2px solid #ddd;
            border-radius: 8px;
            transition: border-color 0.2s;
        }

        .carousel-slide .carousel-text-input:focus {
            outline: none;
            border-color: #333;
        }

        .carousel-slide .dual-text-wrapper {
            display: flex;
            gap: 30px;
            justify-content: center;
            width: 100%;
            max-width: 700px;
            margin: 20px auto;
        }

        .carousel-slide .text-input-group {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .carousel-slide .text-input-group label {
            font-weight: 600;
            color: #333;
        }

        .carousel-slide .option-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            max-width: 900px;
        }

        .carousel-slide .option-btn {
            padding: 12px 25px;
            border: 2px solid #ddd;
            background: #fff;
            border-radius: 8px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 140px;
        }

        .carousel-slide .option-btn:hover {
            border-color: #333;
            background: #f9f9f9;
        }

        .carousel-slide .option-btn.selected {
            border-color: #333;
            background: #333;
            color: #fff;
        }

        /* Model cards in carousel */
        .carousel-slide .model-options {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .carousel-slide .model-option {
            border: 2px solid #ddd;
            border-radius: 12px;
            padding: 20px 30px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            min-width: 200px;
            background: #fff;
            color: #333;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .carousel-slide .model-option:hover {
            border-color: #333;
            background: #f9f9f9;
        }

        .carousel-slide .model-option.selected {
            border-color: #333;
            background: #333;
            color: #fff;
        }

        .carousel-slide .model-option.selected img {
            filter: brightness(0) invert(1);
        }

        .carousel-slide .model-option img {
            height: 120px;
            width: auto;
            margin-bottom: 15px;
            object-fit: contain;
        }

        .carousel-slide .model-option h4 {
            margin: 0;
            font-family: 'Bitter', Georgia, serif;
            font-size: 1.1rem;
        }

        /* Wood tile options in carousel */
        .carousel-slide .wood-tile-options {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            max-width: 1100px;
            padding: 10px;
        }

        .carousel-slide .wood-tile {
            width: 120px;
            height: 100px;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            cursor: pointer;
            position: relative;
            border: 3px solid transparent;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            overflow: hidden;
        }

        .carousel-slide .wood-tile:hover {
            border-color: #333;
            transform: scale(1.05);
        }

        .carousel-slide .wood-tile.selected {
            border-color: #333;
            box-shadow: 0 0 0 2px #333;
        }

        .carousel-slide .wood-tile-info {
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 8px 6px 6px;
            color: #fff;
        }

        .carousel-slide .wood-tile-name {
            font-size: 0.7rem;
            font-weight: 600;
            line-height: 1.2;
        }

        .carousel-slide .wood-tile-price {
            font-size: 0.65rem;
            opacity: 0.8;
        }

        /* Carousel Navigation */
        .carousel-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            padding: 20px;
            border-top: 1px solid #eee;
            flex-shrink: 0;
        }

        .carousel-dots {
            display: flex;
            gap: 10px;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: all 0.2s;
        }

        .carousel-dot.active {
            background: #333;
            transform: scale(1.2);
        }

        .carousel-dot.completed {
            background: #4a4a4a;
        }

        .carousel-btn {
            padding: 10px 25px;
            border: 2px solid #333;
            background: #fff;
            border-radius: 25px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .carousel-btn:hover {
            background: #333;
            color: #fff;
        }

        .carousel-btn.primary {
            background: #333;
            color: #fff;
        }

        .carousel-btn.primary:hover {
            background: #555;
        }

        .carousel-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .config-card .card-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .config-card .card-row:last-child {
            border-bottom: none;
        }

        .config-card .card-label {
            font-size: 0.85rem;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .config-card .card-value {
            font-size: 0.9rem;
            color: #333;
            font-weight: 500;
            text-align: right;
        }

        /* Card pagination dots */
        .card-pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            padding: 15px 0;
        }

        .pagination-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #666;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pagination-dot.active {
            background: #c9302c;
            transform: scale(1.2);
        }

        /* Tab content panels */
        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Info bar at bottom */
        .info-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 40px;
            background: #2d2d2d;
            flex-wrap: wrap;
            gap: 15px;
            flex-shrink: 0;
        }

        .guitar-info {
            color: #fff;
        }

        .guitar-info .brand {
            font-size: 0.75rem;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .guitar-info .model-name {
            font-size: 1.4rem;
            font-family: 'Bitter', Georgia, serif;
            font-weight: 600;
        }

        .price-display {
            text-align: right;
            color: #fff;
        }

        .price-display .price-label {
            font-size: 0.75rem;
            color: #888;
        }

        .price-display .price-amount {
            font-size: 1.8rem;
            font-weight: bold;
        }

        .contact-button {
            background: transparent;
            border: 2px solid #fff;
            color: #fff;
            padding: 10px 25px;
            border-radius: 25px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .contact-button:hover {
            background: #fff;
            color: #333;
        }

        /* Tab configurator container */
        #tab-configurator {
            background: #2d2d2d;
            margin-left: -20px;
            margin-right: -20px;
            width: calc(100% + 40px);
            flex-shrink: 0;
        }

        /* Adjust master preview for tab layout */
        .master-preview.tab-mode {
            margin-bottom: 0;
            border-radius: 12px 12px 0 0;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            top: auto;
        }

        .master-preview.tab-mode .master-preview-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: none;
        }

        @media (max-width: 900px) {
            .info-bar {
                flex-direction: column;
                text-align: center;
                padding: 20px;
            }
            
            .tab-navigation {
                order: 1;
                width: 100%;
            }
            
            .guitar-info {
                order: 2;
            }
            
            .price-display {
                order: 3;
                text-align: center;
            }
            
            .contact-button {
                order: 4;
            }
            
            .config-card {
                min-width: 250px;
                max-width: 250px;
            }
        }

        /* Multi-Step Progress Indicator */
        .progress-container {
            background: #f9f9f9;
            padding: 20px;
            margin-bottom: 30px;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }
        
        /* Price Summary in top bar */
        .price-summary-top {
            background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
            color: #fff;
            padding: 12px 20px;
            border-radius: 8px;
            white-space: nowrap;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 150px;
        }
        
        .price-summary-top .price-label {
            font-size: 0.75rem;
            color: #aaa;
            margin-bottom: 2px;
        }
        
        .price-summary-top .price-value {
            font-size: 1.4rem;
            font-weight: bold;
            color: #fff;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            max-width: 100%;
            overflow-x: auto;
            padding: 10px 0;
        }

        .progress-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
            min-width: 80px;
        }

        .progress-step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 22px;
            left: calc(50% + 25px);
            width: calc(100% - 50px);
            height: 2px;
            background: #d0d0d0;
            z-index: 0;
        }

        .progress-step.active:not(:last-child)::after,
        .progress-step.completed:not(:last-child)::after {
            background: #000;
        }

        .progress-circle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: white;
            border: 3px solid #d0d0d0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1rem;
            color: #999;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .progress-circle:hover {
            transform: scale(1.15);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .progress-step.active .progress-circle {
            border-color: #000;
            background: #000;
            color: white;
            transform: scale(1.1);
        }

        .progress-step.completed .progress-circle {
            border-color: #000;
            background: #000;
            color: white;
        }

        .progress-label {
            margin-top: 8px;
            font-size: 0.75rem;
            color: #666;
            text-align: center;
            font-weight: 500;
        }

        .progress-step.active .progress-label {
            color: #000;
            font-weight: 600;
        }

        /* Form Step Visibility */
        .form-step {
            display: none;
            opacity: 0;
        }

        .form-step.active {
            display: block;
            animation: slideIn 0.4s ease-out forwards;
        }

        .form-step.slide-out-left {
            animation: slideOutLeft 0.4s ease-out forwards;
        }

        .form-step.slide-out-right {
            animation: slideOutRight 0.4s ease-out forwards;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOutLeft {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-30px);
            }
        }

        @keyframes slideOutRight {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(30px);
            }
        }

        /* Step Navigation Buttons */
        .step-navigation {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-top: 30px;
            padding: 20px 0;
        }

        .nav-button {
            flex: 1;
            padding: 15px 30px;
            font-size: 1rem;
            font-weight: 600;
            border: 2px solid;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            line-height: 1;
        }
        
        .nav-button span {
            display: inline-block;
            transform: translateY(-1px);
        }

        .prev-button, .next-button, .submit-button {
            background: #000;
            border-color: #000;
            color: white;
        }

        .prev-button:hover:not(:disabled), .next-button:hover:not(:disabled), .submit-button:hover:not(:disabled) {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .nav-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Configuration Summary */
        #configuration-summary {
            background: white;
            border-radius: 8px;
            padding: 20px;
        }

        .summary-section {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
        }

        .summary-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .summary-section h3 {
            color: #000;
            margin: 0 0 15px 0;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
        }

        .summary-section h3::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 18px;
            background: #000;
            margin-right: 10px;
            border-radius: 2px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 0.95rem;
        }

        .summary-item-label {
            font-weight: 600;
            color: #555;
        }

        .summary-item-value {
            color: #333;
            text-align: right;
            max-width: 60%;
            word-wrap: break-word;
        }

        /* Mobile Responsive Progress */
        @media (max-width: 767px) {
            .progress-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .progress-steps {
                padding-bottom: 10px;
                width: 100%;
            }
            
            .progress-step {
                min-width: 60px;
            }

            .progress-circle {
                width: 36px;
                height: 36px;
                font-size: 0.85rem;
            }

            .progress-label {
                font-size: 0.65rem;
            }
            
            .price-summary-top {
                flex-direction: row;
                width: 100%;
                justify-content: center;
                gap: 10px;
                padding: 10px 15px;
            }
            
            .price-summary-top .price-label {
                margin-bottom: 0;
            }

            .step-navigation {
                flex-direction: column;
                gap: 10px;
            }

            .nav-button {
                width: 100%;
                padding: 14px 20px;
            }
        }
