/* ==========================================================================
   Mervan Veranda — Quote Configurator
   Enterprise shared stylesheet (NL / EN / DE / FR quote pages)
   Tokens: css/main.css :root
   ========================================================================== */


        .quote-page {
            padding-top: 20px;
            padding-bottom: clamp(56px, 8vw, 88px);
            min-height: 100vh;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }
        .quote-container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .quote-header {
            background: var(--brand);
            color: white;
            padding: 30px;
            text-align: center;
        }
        .quote-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        .quote-header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        .btn-3d-viewer {
            margin-top: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }
        .btn-3d-viewer:hover {
            background: white;
            color: var(--brand);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }
        .btn-3d-viewer i {
            font-size: 1.3rem;
            animation: rotate3d 3s ease-in-out infinite;
        }
        @keyframes rotate3d {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotateY(180deg); }
        }
        /* 3D Viewer Modal Styles */
        .viewer-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }
        .viewer-modal.active {
            display: block;
        }
        .viewer-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }
        .viewer-modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 95%;
            max-width: 1400px;
            max-height: 95vh;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: slideUp 0.4s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translate(-50%, -40%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }
        .viewer-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        .viewer-modal-close:hover {
            background: #f44336;
            color: white;
            transform: rotate(90deg);
        }
        .viewer-modal-header {
            background: var(--brand);
            color: white;
            padding: 30px;
            text-align: center;
        }
        .viewer-modal-header h2 {
            font-size: 2rem;
            margin: 0 0 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
        .viewer-modal-header p {
            font-size: 1.1rem;
            opacity: 0.95;
            margin: 0;
        }
        .viewer-modal-body {
            padding: 30px;
            overflow-y: auto;
            max-height: calc(95vh - 150px);
        }
        /* 3D Model Viewer Container */
        .model-viewer-container {
            position: relative;
            background: #f8f9fa;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        model-viewer {
            width: 100%;
            height: 600px;
            border-radius: 15px;
        }
        /* AR Button */
        .ar-button {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--brand);
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 8px 25px rgba(var(--brand-rgb), 0.4);
            transition: all 0.3s ease;
            cursor: pointer;
            z-index: 10;
            border: none;
        }
        .ar-button:hover {
            background: #3a7bc8;
            transform: translateX(-50%) translateY(-3px);
            box-shadow: 0 12px 30px rgba(var(--brand-rgb), 0.5);
        }
        /* Model Loading */
        .model-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            width: 80%;
            max-width: 400px;
            z-index: 5;
        }
        .loading-bar {
            width: 100%;
            height: 6px;
            background: rgba(var(--brand-rgb), 0.2);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .loading-progress {
            height: 100%;
            background: var(--brand);
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 10px;
        }
        .loading-text {
            color: #666;
            font-weight: 500;
            font-size: 1rem;
        }
        /* Model Controls */
        .model-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 10;
        }
        .control-btn {
            width: 50px;
            height: 50px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            color: #333;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
        }
        .control-btn:hover {
            background: var(--brand);
            color: white;
            transform: scale(1.1);
        }
        /* AR Notice */
        .ar-notice {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.85);
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            display: none;
            align-items: center;
            gap: 12px;
            font-size: 0.95rem;
            max-width: 400px;
            text-align: center;
            z-index: 100;
        }
        /* AR Help Overlay */
        .ar-help-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .ar-help-content {
            background: white;
            border-radius: 20px;
            padding: 25px;
            max-width: 450px;
            width: 100%;
            text-align: center;
            max-height: 90vh;
            overflow-y: auto;
        }
        .ar-help-content h3 {
            color: var(--brand);
            font-size: 1.4rem;
            margin: 0 0 25px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .ar-help-steps {
            text-align: left;
            margin-bottom: 20px;
        }
        .ar-step {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        .ar-step:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        .ar-step-number {
            min-width: 35px;
            height: 35px;
            background: var(--brand);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            flex-shrink: 0;
        }
        .ar-step-text {
            flex: 1;
        }
        .ar-step-text strong {
            color: #333;
            font-size: 1rem;
            display: block;
            margin-bottom: 5px;
        }
        .ar-step-text p {
            color: #666;
            font-size: 0.9rem;
            margin: 0;
            line-height: 1.4;
        }
        .ar-help-note {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 10px;
            padding: 12px 15px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-align: left;
        }
        .ar-help-note i {
            color: #ff9800;
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        .ar-help-note span {
            color: #856404;
            font-size: 0.9rem;
            line-height: 1.4;
        }
        .ar-help-close {
            background: var(--brand);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }
        .ar-help-close:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.4);
        }
        /* Viewer Info */
        .viewer-info {
            padding: 20px;
            background: white;
            border-top: 1px solid #eee;
        }
        .viewer-tip {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: #666;
            font-size: 0.95rem;
        }
        .viewer-tip i {
            color: var(--brand);
            font-size: 1.2rem;
        }
        /* Model Selector */
        .model-selector {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 15px;
        }
        .model-selector h3 {
            margin: 0 0 20px 0;
            font-size: 1.3rem;
            color: #333;
        }
        .model-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
        }
        .model-option {
            background: white;
            border: 2px solid #ddd;
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .model-option:hover {
            border-color: var(--brand);
            background: var(--brand-soft);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(var(--brand-rgb), 0.2);
        }
        .model-option.active {
            border-color: var(--brand);
            background: var(--brand);
            color: white;
        }
        .model-option i {
            font-size: 2rem;
        }
        .model-option.active i {
            color: white;
        }
        .model-option span {
            font-weight: 600;
            font-size: 1rem;
        }
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .viewer-modal-content {
                width: 100%;
                max-width: 100%;
                height: 100%;
                max-height: 100%;
                border-radius: 0;
                transform: translate(-50%, -50%) !important;
            }
            .viewer-modal-header {
                padding: 20px 15px;
            }
            .viewer-modal-header h2 {
                font-size: 1.3rem;
                flex-direction: column;
                gap: 8px;
            }
            .viewer-modal-header p {
                font-size: 0.9rem;
            }
            .viewer-modal-body {
                padding: 15px 15px 80px 15px;
                max-height: calc(100vh - 100px);
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            .model-viewer-container {
                margin-bottom: 20px;
                border-radius: 10px;
            }
            model-viewer {
                height: 50vh;
                min-height: 350px;
                max-height: 500px;
            }
            .model-controls {
                top: 10px;
                right: 10px;
                gap: 8px;
                flex-direction: row;
                flex-wrap: wrap;
                width: auto;
            }
            .control-btn {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
            .ar-button {
                padding: 18px 30px;
                font-size: 1.1rem;
                bottom: 20px;
                white-space: nowrap;
                max-width: 90%;
                box-shadow: 0 8px 30px rgba(var(--brand-rgb), 0.6);
            }
            .ar-button i {
                font-size: 1.3rem;
            }
            .btn-3d-viewer {
                padding: 12px 25px;
                font-size: 1rem;
            }
            .viewer-info {
                padding: 15px;
            }
            .viewer-tip {
                font-size: 0.85rem;
                flex-direction: column;
                gap: 8px;
            }
            .model-selector {
                padding: 20px 15px 30px 15px;
                border-radius: 10px;
                margin-bottom: 20px;
            }
            .model-selector h3 {
                font-size: 1.1rem;
                margin-bottom: 15px;
            }
            .model-options {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            .model-option {
                padding: 12px 8px;
            }
            .model-option i {
                font-size: 1.5rem;
            }
            .model-option span {
                font-size: 0.8rem;
            }
            .viewer-modal-close {
                top: 15px;
                right: 15px;
                width: 40px;
                height: 40px;
                font-size: 1.3rem;
            }
            .loading-text {
                font-size: 0.9rem;
            }
            .ar-notice {
                bottom: 90px;
                padding: 12px 20px;
                font-size: 0.85rem;
                max-width: 90%;
            }
        }
        
        /* Extra small devices */
        @media (max-width: 480px) {
            .viewer-modal-header h2 {
                font-size: 1.1rem;
            }
            .viewer-modal-header p {
                font-size: 0.85rem;
            }
            model-viewer {
                height: 45vh;
                min-height: 300px;
            }
            .ar-button {
                padding: 15px 25px;
                font-size: 1rem;
                bottom: 15px;
            }
            .model-controls {
                gap: 6px;
            }
            .control-btn {
                width: 38px;
                height: 38px;
                font-size: 1rem;
            }
            .model-options {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
            .model-option {
                padding: 10px 5px;
            }
            .model-option i {
                font-size: 1.3rem;
            }
            .model-option span {
                font-size: 0.75rem;
            }
        }
        
        /* Landscape orientation on mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            model-viewer {
                height: 70vh;
                max-height: 70vh;
            }
            .ar-button {
                bottom: 15px;
                padding: 12px 25px;
            }
        }
        .step-progress {
            display: flex;
            flex-direction: column;
            background: #f8f9fa;
            border-bottom: 1px solid #eee;
            position: relative;
        }
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px 10px 20px;
            background: #f8f9fa;
        }
        .progress-bar-container {
            width: 100%;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            margin: 0 20px 15px 20px;
        }
        .progress-bar {
            height: 100%;
            background: var(--brand);
            border-radius: 4px;
            transition: width 0.3s ease;
            position: relative;
        }
        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 20px;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
        }
        .steps-container {
            display: flex;
            justify-content: flex-start;
            padding: 0 20px 25px 20px;
            overflow-x: auto;
            gap: 10px;
            scroll-behavior: smooth;
        }
        .steps-container::-webkit-scrollbar {
            height: 6px;
        }
        .steps-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }
        .steps-container::-webkit-scrollbar-thumb {
            background: var(--brand);
            border-radius: 3px;
        }
        .steps-container::-webkit-scrollbar-thumb:hover {
            background: var(--brand);
        }
        .current-step-info {
            background: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            color: var(--brand);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 2px solid var(--brand);
        }
        .progress-percentage-text {
            background: var(--brand);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.3);
        }
        .step {
            display: flex;
            align-items: center;
            min-width: 100px;
            max-width: 120px;
            font-size: 11px;
            color: #666;
            white-space: nowrap;
            position: relative;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        /* Hide steps 6 and 8 (left spie and right spie) */
        .step[data-step="6"],
        .step[data-step="8"],
        .step-panel[data-step="6"],
        .step-panel[data-step="8"] {
            display: none !important;
        }
        /* Hide left spie and right spie from summary */
        .summary-item:has(#summaryLeftSpie),
        .summary-item:has(#summaryRightSpie) {
            display: none !important;
        }
        .step:hover {
            background: rgba(var(--brand-rgb), 0.05);
        }
        .step-number {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #ddd;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            font-weight: bold;
            font-size: 12px;
            flex-shrink: 0;
        }
        .step.active .step-number {
            background: var(--brand);
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2);
            transform: scale(1.1);
        }
        .step.completed .step-number {
            background: var(--brand);
        }
        .step.error .step-number {
            background: #f44336;
        }
        .step-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .step-name {
            font-weight: 600;
            font-size: 11px;
            color: #333;
            margin-bottom: 1px;
        }
        .step-desc {
            font-size: 9px;
            color: #888;
            line-height: 1.1;
        }
        .step.active .step-name {
            color: var(--brand);
            font-weight: 700;
        }
        .step.active {
            background: rgba(var(--brand-rgb), 0.1);
            border-radius: 12px;
            padding: 8px;
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.2);
        }
        .step.completed .step-name {
            color: var(--brand);
        }
        .step-content {
            padding: 40px;
            min-height: 600px;
        }
        .step-panel {
            display: none;
        }
        .step-panel.active {
            display: block;
        }
        .step-title {
            font-size: 1.8rem;
            color: var(--brand);
            margin-bottom: 20px;
            text-align: center;
            position: relative;
        }
        .step-title::after {
            content: ' *';
            color: #f44336;
            font-size: 1.2rem;
        }
        .step-panel[data-step="1"] .step-title::after {
            display: none;
        }
        .step-description {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1rem;
        }
        .step-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .option-card {
            border: 3px solid #ddd;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
        }
        .option-card:hover {
            border-color: var(--brand);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(var(--brand-rgb), 0.2);
        }
        .option-card.selected {
            border-color: var(--brand);
            background: var(--brand-soft);
            box-shadow: 0 8px 25px rgba(var(--brand-rgb), 0.3);
            transform: translateY(-3px);
        }
        .option-preview {
            height: 150px;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .option-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .option-preview .placeholder {
            color: #999;
            font-size: 2rem;
        }
        .option-info {
            padding: 15px;
            text-align: center;
        }
        .option-name {
            font-size: 1rem;
            font-weight: 600;
            color: #333;
        }
        .option-description {
            font-size: 0.85rem;
            color: #888;
            margin-top: 3px;
            line-height: 1.3;
        }
        .selection-mark {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 25px;
            height: 25px;
            background: var(--brand);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .option-card.selected .selection-mark {
            opacity: 1;
            background: var(--brand);
            box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.4);
        }
        .option-card.selected .option-name {
            color: var(--brand);
            font-weight: 700;
        }
        
        
        /* Clear Instructions */
        .measurement-instructions {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 30px 0;
            padding: 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            border: 2px solid rgba(var(--brand-rgb), 0.1);
        }
        
        .instruction-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(var(--brand-rgb), 0.1);
            border: 2px solid rgba(var(--brand-rgb), 0.2);
            transition: all 0.3s ease;
        }
        
        .instruction-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.2);
        }
        
        .instruction-icon {
            font-size: 24px;
            color: var(--brand);
            font-weight: bold;
            min-width: 30px;
            text-align: center;
        }
        
        .instruction-text {
            font-size: 14px;
            color: #333;
            line-height: 1.4;
        }
        
        .instruction-text strong {
            color: var(--brand);
            font-weight: 700;
        }
        
        /* Interactive Help */
        .interactive-help {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            padding: 15px 25px;
            background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
            border-radius: 12px;
            border: 2px solid rgba(var(--brand-rgb), 0.3);
            box-shadow: 0 4px 15px rgba(var(--brand-rgb), 0.1);
            animation: helpPulse 3s ease-in-out infinite;
        }
        
        .help-icon {
            font-size: 24px;
            animation: helpIconBounce 2s ease-in-out infinite;
        }
        
        .help-text {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }
        
        .help-text strong {
            color: var(--brand);
            font-weight: 700;
        }
        
        @keyframes helpPulse {
            0%, 100% { 
                transform: scale(1); 
                box-shadow: 0 4px 15px rgba(var(--brand-rgb), 0.1);
            }
            50% { 
                transform: scale(1.02); 
                box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.2);
            }
        }
        
        @keyframes helpIconBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        
        /* Scale Indicator */
        .scale-indicator {
            display: flex;
            justify-content: center;
            margin: 15px 0;
        }
        
        .scale-text {
            background: rgba(var(--brand-rgb), 0.1);
            color: var(--brand);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid rgba(var(--brand-rgb), 0.2);
        }
        
        /* Interactive Tooltips */
        .measurement-tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            z-index: 1000;
            pointer-events: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .measurement-tooltip.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .measurement-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: rgba(0, 0, 0, 0.9);
        }
        
        
        /* Professional Measurement Interface */
        .measurement-interface {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin: 20px 0;
            align-items: start;
        }
        
        .measurement-visual {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            min-height: 450px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 1.25rem 1.35rem 1.35rem;
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(var(--brand-rgb), 0.1);
            box-shadow: 0 8px 32px rgba(var(--brand-rgb), 0.1);
        }
        
        .measurement-visual::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 30% 20%, rgba(var(--brand-rgb), 0.05) 0%, transparent 50%),
                        radial-gradient(circle at 70% 80%, rgba(var(--brand-rgb), 0.05) 0%, transparent 50%);
            pointer-events: none;
        }
        
        .veranda-preview {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .veranda-container {
            position: relative;
            width: 100%;
            height: 100%;
            min-height: 400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .veranda-shape {
            width: 100%;
            height: 100%;
            min-height: 400px;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(var(--brand-rgb), 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }
        
        #veranda3D {
            width: 100% !important;
            height: 100% !important;
            min-height: 400px !important;
            border-radius: 12px;
            display: block;
            /* Ensure canvas doesn't overflow frame */
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        
        /* Dimension labels sit in normal flow above the viewer chrome/canvas */
        .dimension-labels-container {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            display: flex;
            gap: 1rem;
            width: 100%;
            margin: 0 0 0.75rem;
            justify-content: center;
            align-items: center;
            z-index: 2;
            pointer-events: none;
        }
        
        .dimension-label-3d {
            position: relative;
            background: rgba(255, 255, 255, 0.95);
            padding: 10px 16px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 12px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
            border: 2px solid;
            backdrop-filter: blur(8px);
            transition: all 0.3s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .dimension-label-3d .label-icon {
            font-size: 1rem;
            font-weight: 600;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 1.35rem;
            height: 1.35rem;
        }

        .dimension-label-3d .label-icon i {
            font-size: 0.95rem;
            color: inherit;
        }
        
        .dimension-label-3d .label-content {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .dimension-label-3d .label-title {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.8;
        }
        
        .dimension-label-3d .label-value {
            font-size: 14px;
            font-weight: 700;
        }
        
        .width-label-3d {
            color: var(--brand);
            border-color: var(--brand);
        }
        
        .depth-label-3d {
            color: var(--brand);
            border-color: var(--brand);
        }
        
        .veranda-shape:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 35px rgba(var(--brand-rgb), 0.25);
        }
        
        .veranda-shape.measuring-width {
            border-color: #FF6B6B;
            box-shadow: 
                0 0 25px rgba(255, 107, 107, 0.5),
                0 8px 25px rgba(255, 107, 107, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            animation: widthGlow 2s ease-in-out infinite;
        }
        
        .veranda-shape.measuring-depth {
            border-color: #4ECDC4;
            box-shadow: 
                0 0 25px rgba(var(--brand-rgb), 0.5),
                0 8px 25px rgba(var(--brand-rgb), 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            animation: depthGlow 2s ease-in-out infinite;
        }
        
        @keyframes widthGlow {
            0%, 100% { 
                box-shadow: 
                    0 0 25px rgba(255, 107, 107, 0.5),
                    0 8px 25px rgba(255, 107, 107, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
            }
            50% { 
                box-shadow: 
                    0 0 35px rgba(255, 107, 107, 0.7),
                    0 12px 35px rgba(255, 107, 107, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9);
            }
        }
        
        @keyframes depthGlow {
            0%, 100% { 
                box-shadow: 
                    0 0 25px rgba(var(--brand-rgb), 0.5),
                    0 8px 25px rgba(var(--brand-rgb), 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
            }
            50% { 
                box-shadow: 
                    0 0 35px rgba(var(--brand-rgb), 0.7),
                    0 12px 35px rgba(var(--brand-rgb), 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9);
            }
        }
        
        /* Simple Grid Pattern */
        .veranda-shape::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(var(--brand-rgb), 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(var(--brand-rgb), 0.1) 1px, transparent 1px);
            background-size: 25px 25px;
            pointer-events: none;
        }
        
        /* Enhanced Width Measurement Line */
        .width-measurement-line {
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            height: 4px;
            background: linear-gradient(90deg, #FF6B6B 0%, #FF8E8E 50%, #FF6B6B 100%);
            border-radius: 3px;
            animation: widthLinePulse 2s ease-in-out infinite;
            z-index: 10;
            box-shadow: 
                0 0 12px rgba(255, 107, 107, 0.5),
                0 2px 6px rgba(255, 107, 107, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        
        /* Enhanced width connection lines */
        .width-measurement-line::before,
        .width-measurement-line::after {
            content: '';
            position: absolute;
            width: 3px;
            height: 25px;
            background: linear-gradient(180deg, #FF6B6B 0%, #FF8E8E 50%, #FF6B6B 100%);
            top: -12px;
            border-radius: 2px;
            box-shadow: 
                0 2px 6px rgba(255, 107, 107, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        
        .width-measurement-line::before {
            left: 0;
        }
        
        .width-measurement-line::after {
            right: 0;
        }
        
        /* Enhanced Depth Measurement Line */
        .depth-measurement-line {
            position: absolute;
            top: 15px;
            bottom: 15px;
            right: 15px;
            width: 4px;
            background: linear-gradient(180deg, #4ECDC4 0%, #7EDDD6 50%, #4ECDC4 100%);
            border-radius: 3px;
            animation: depthLinePulse 2s ease-in-out infinite 1s;
            z-index: 10;
            box-shadow: 
                0 0 12px rgba(var(--brand-rgb), 0.5),
                0 2px 6px rgba(var(--brand-rgb), 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        
        /* Enhanced depth connection lines */
        .depth-measurement-line::before,
        .depth-measurement-line::after {
            content: '';
            position: absolute;
            height: 3px;
            width: 25px;
            background: linear-gradient(90deg, #4ECDC4 0%, #7EDDD6 50%, #4ECDC4 100%);
            right: -12px;
            border-radius: 2px;
            box-shadow: 
                0 2px 6px rgba(var(--brand-rgb), 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        
        .depth-measurement-line::before {
            top: 0;
        }
        
        .depth-measurement-line::after {
            bottom: 0;
        }
        
        @keyframes widthLinePulse {
            0%, 100% { 
                opacity: 0.7; 
                transform: scaleX(0.9);
                box-shadow: 0 0 4px rgba(255, 107, 107, 0.2);
            }
            50% { 
                opacity: 1; 
                transform: scaleX(1);
                box-shadow: 0 0 12px rgba(255, 107, 107, 0.6);
            }
        }
        
        @keyframes depthLinePulse {
            0%, 100% { 
                opacity: 0.7; 
                transform: scaleY(0.9);
                box-shadow: 0 0 4px rgba(var(--brand-rgb), 0.2);
            }
            50% { 
                opacity: 1; 
                transform: scaleY(1);
                box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.6);
            }
        }
        
        @keyframes verandaPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.3); }
            50% { transform: scale(1.02); box-shadow: 0 15px 40px rgba(var(--brand-rgb), 0.4); }
        }
        
        @keyframes widthMeasurementDemo {
            0% { 
                transform: scale(1); 
                box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.3);
            }
            25% { 
                transform: scale(1.05); 
                box-shadow: 0 15px 40px rgba(var(--brand-rgb), 0.5);
            }
            50% { 
                transform: scale(1.08); 
                box-shadow: 0 20px 50px rgba(var(--brand-rgb), 0.6);
            }
            75% { 
                transform: scale(1.05); 
                box-shadow: 0 15px 40px rgba(var(--brand-rgb), 0.5);
            }
            100% { 
                transform: scale(1); 
                box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.3);
            }
        }
        
        @keyframes depthMeasurementDemo {
            0% { 
                transform: scale(1); 
                box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.3);
            }
            25% { 
                transform: scale(1.05); 
                box-shadow: 0 15px 40px rgba(var(--brand-rgb), 0.5);
            }
            50% { 
                transform: scale(1.08); 
                box-shadow: 0 20px 50px rgba(var(--brand-rgb), 0.6);
            }
            75% { 
                transform: scale(1.05); 
                box-shadow: 0 15px 40px rgba(var(--brand-rgb), 0.5);
            }
            100% { 
                transform: scale(1); 
                box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.3);
            }
        }
        
        .dimension-label {
            position: absolute;
            background: rgba(255, 255, 255, 0.95);
            padding: 6px 12px;
            border-radius: 15px;
            font-weight: 600;
            font-size: 11px;
            box-shadow: 
                0 3px 10px rgba(0, 0, 0, 0.12),
                0 1px 4px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border: 2px solid;
            z-index: 20;
            animation: labelPulse 3s ease-in-out infinite;
            backdrop-filter: blur(8px);
            transition: all 0.3s ease;
            min-width: 60px;
            text-align: center;
        }
        
        .dimension-label:hover {
            transform: scale(1.02);
            box-shadow: 
                0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }
        
        @keyframes labelPulse {
            0%, 100% { 
                transform: translateX(-50%) scale(1);
                opacity: 0.9;
            }
            50% { 
                transform: translateX(-50%) scale(1.02);
                opacity: 1;
            }
        }
        
        @keyframes labelPulseVertical {
            0%, 100% { 
                transform: translateY(-50%) scale(1);
                opacity: 0.9;
            }
            50% { 
                transform: translateY(-50%) scale(1.02);
                opacity: 1;
            }
        }
        
        .width-label {
            top: -45px;
            left: 50%;
            transform: translateX(-50%);
            color: #FF6B6B;
            border-color: #FF6B6B;
        }
        
        
        .depth-label {
            right: -45px;
            top: 50%;
            transform: translateY(-50%);
            color: #4ECDC4;
            border-color: #4ECDC4;
            animation: labelPulseVertical 3s ease-in-out infinite 1.5s;
        }
        
        
        
        .dimension-text {
            display: block;
            font-size: 9px;
            margin-bottom: 2px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            font-weight: 600;
            opacity: 0.8;
        }
        
        .dimension-value {
            display: block;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .measurement-controls {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }
        
        /* ========== Enterprise: Large dimensions (meters) – BEM ========== */
        .m-unit-card {
            position: relative;
            margin: 48px 0 0;
            background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
            overflow: hidden;
        }
        .m-unit-card--footer {
            margin-top: 48px;
            border-color: var(--primary-200);
            background: linear-gradient(135deg, var(--brand-soft) 0%, #ffffff 55%, #f8fafc 100%);
        }
        .m-unit-card--footer::before {
            content: '';
            display: block;
            height: 3px;
            background: var(--brand);
        }
        .m-unit-card__badge {
            position: absolute;
            top: 12px;
            right: 16px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #64748b;
            background: #f1f5f9;
            padding: 4px 10px;
            border-radius: 999px;
        }
        .m-unit-card__body {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            padding: 24px 24px 24px 24px;
        }
        .m-unit-card__content {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            min-width: 0;
        }
        .m-unit-card__icon {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--brand-soft);
            border: 1px solid #e8dcc8;
            border-radius: 10px;
            color: var(--brand-hover);
            font-size: 1.1rem;
        }
        .m-unit-card__text {
            min-width: 0;
        }
        .m-unit-card__title {
            margin: 0 0 4px 0;
            font-size: 15px;
            font-weight: 600;
            color: #0f172a;
            line-height: 1.3;
        }
        .m-unit-card__desc {
            margin: 0;
            font-size: 13px;
            color: #64748b;
            line-height: 1.45;
        }
        .m-unit-card__action {
            flex-shrink: 0;
        }
        .m-unit-card__btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            background: var(--brand-hover);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease, box-shadow 0.15s ease;
            min-height: 44px;
        }
        .m-unit-card__btn:hover {
            background: var(--brand-hover);
            box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.35);
        }
        .m-unit-card__btn:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.4);
        }
        .m-unit-card__btn:active {
            background: var(--brand);
        }
        
        /* Meters panel (when switched to large dimensions) */
        .m-meters-panel {
            margin-top: 24px;
            padding: 0;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .m-meters-panel__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 20px 24px;
            border-bottom: 1px solid #e2e8f0;
            background: #fafbfc;
        }
        .m-meters-panel__title-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .m-meters-panel__title {
            margin: 0;
            font-size: 15px;
            font-weight: 600;
            color: #0f172a;
        }
        .m-meters-panel__badge {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #475569;
            background: #e2e8f0;
            padding: 4px 8px;
            border-radius: 4px;
        }
        .m-meters-panel__back {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 500;
            color: #64748b;
            background: transparent;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            cursor: pointer;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            min-height: 40px;
        }
        .m-meters-panel__back:hover {
            color: var(--brand-hover);
            border-color: var(--brand);
            background: #f8fafc;
        }
        .m-meters-panel__back:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.3);
        }
        .m-meters-panel__body {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 28px;
        }
        .m-meters-panel__group {
            text-align: left;
        }
        .m-meters-panel__label {
            display: block;
            margin-bottom: 12px;
            font-size: 13px;
            font-weight: 600;
            color: #334155;
        }
        
        /* Responsive: enterprise measurement card & panel */
        @media (max-width: 768px) {
            .m-unit-card {
                margin: 36px 0 0;
            }
            .m-unit-card__body {
                flex-direction: column;
                align-items: stretch;
                padding: 20px 20px 20px 20px;
                gap: 20px;
            }
            .m-unit-card__action {
                width: 100%;
            }
            .m-unit-card__btn {
                width: 100%;
                min-height: 48px;
            }
            .m-meters-panel__header {
                flex-direction: column;
                align-items: stretch;
                padding: 16px 20px;
            }
            .m-meters-panel__title-wrap {
                justify-content: space-between;
            }
            .m-meters-panel__back {
                align-self: stretch;
                justify-content: center;
                min-height: 44px;
            }
            .m-meters-panel__body {
                padding: 20px;
                gap: 24px;
            }
        }
        @media (max-width: 480px) {
            .m-unit-card__body {
                padding: 16px;
            }
            .m-unit-card__content {
                gap: 12px;
            }
            .m-unit-card__icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            .m-unit-card__title {
                font-size: 14px;
            }
            .m-unit-card__desc {
                font-size: 12px;
            }
            .m-unit-card__btn {
                min-height: 48px;
                font-size: 13px;
            }
            .m-meters-panel__header {
                padding: 14px 16px;
            }
            .m-meters-panel__title {
                font-size: 14px;
            }
            .m-meters-panel__back {
                padding: 10px 12px;
                font-size: 12px;
                min-height: 44px;
            }
            .m-meters-panel__body {
                padding: 16px;
                gap: 22px;
            }
            .m-meters-panel__label {
                font-size: 12px;
                margin-bottom: 10px;
            }
        }
        
        .control-group {
            text-align: center;
        }
        
        .control-group h3 {
            color: var(--brand);
            margin-bottom: 20px;
            font-size: 1.3rem;
            font-weight: 700;
        }
        
        .input-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        /* Custom Number Input */
        .custom-number-input {
            display: flex;
            align-items: center;
            border: 2px solid var(--brand);
            border-radius: 12px;
            background: white;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .custom-number-input:focus-within {
            border-color: var(--brand);
            box-shadow: 0 4px 20px rgba(var(--brand-rgb), 0.2);
            transform: translateY(-2px);
        }
        
        .number-btn {
            width: 50px;
            height: 60px;
            border: none;
            background: var(--brand);
            color: white;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
        }
        
        .number-btn:hover {
            background: var(--brand);
            transform: scale(1.05);
        }
        
        .number-btn:active {
            transform: scale(0.95);
            background: var(--brand);
        }
        
        .minus-btn {
            border-radius: 10px 0 0 10px;
        }
        
        .plus-btn {
            border-radius: 0 10px 10px 0;
        }
        
        .size-input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            color: var(--brand);
            background: transparent;
            outline: none;
        }
        
        .size-input::-webkit-outer-spin-button,
        .size-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        
        .size-input[type=number] {
            -moz-appearance: textfield;
        }
        
        .input-slider {
            position: relative;
        }
        
        .measurement-sliders {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin: 40px 0;
        }
        .slider-group {
            text-align: center;
        }
        .slider-group h3 {
            color: var(--brand);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }
        .slider-container {
            position: relative;
            margin: 20px 0;
        }
        .slider {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: #ddd;
            outline: none;
            -webkit-appearance: none;
        }
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--brand);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.3);
            transition: all 0.3s ease;
        }
        
        .slider::-webkit-slider-thumb:hover {
            background: var(--brand);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.4);
        }
        .slider::-moz-range-thumb {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--brand);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.3);
            transition: all 0.3s ease;
        }
        
        .slider::-moz-range-thumb:hover {
            background: var(--brand);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.4);
        }
        .slider-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--brand);
            margin-top: 10px;
        }
        .slider-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 0.9rem;
            color: #666;
        }
        .step-navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
            padding: 20px 40px;
            border-top: 1px solid #eee;
            background: #f8f9fa;
        }
        .btn-step {
            padding: 15px 30px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .btn-step:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .btn-step.prev {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #ddd;
        }
        .btn-step.prev:hover:not(:disabled) {
            background: #e9ecef;
        }
        .btn-step.next {
            background: var(--brand);
            color: white;
        }
        .btn-step.next:hover:not(:disabled) {
            background: var(--brand-hover);
        }
        .btn-step.submit {
            background: var(--brand);
            color: white;
        }
        .btn-step.submit:hover:not(:disabled) {
            background: var(--brand);
        }

        .submit-btn {
            background: var(--brand);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
            width: 100%;
            justify-content: center;
        }

        .submit-btn:hover {
            background: var(--brand);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(var(--brand-rgb), 0.3);
        }

        .submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .final-form {
            display: block;
            width: 100%;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--brand);
        }
        .form-group.full-width {
            grid-column: 1 / -1;
        }
        .file-upload {
            border: 2px dashed #ddd;
            border-radius: 5px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .file-upload:hover {
            border-color: var(--brand);
            background: #f8f9fa;
        }
        .file-upload.dragover {
            border-color: var(--brand);
            background: var(--primary-100);
        }
        .file-upload input[type="file"] {
            display: none;
        }
        .file-upload-icon {
            font-size: 2rem;
            color: var(--brand);
            margin-bottom: 10px;
        }
        .file-upload-text {
            color: #666;
            margin-bottom: 5px;
        }
        .file-upload-hint {
            font-size: 0.9rem;
            color: #999;
        }
        /* Professional Summary Section */
        .summary-section {
            background: var(--brand);
            background: var(--brand);
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 40px;
            box-shadow: 0 20px 60px rgba(var(--brand-rgb), 0.3);
            position: relative;
            overflow: hidden;
            min-height: 200px;
        }

        .summary-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            pointer-events: none;
        }

        .summary-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 10;
            background: rgba(0, 0, 0, 0.1);
            padding: 20px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        .summary-icon {
            font-size: 48px;
            color: white !important;
            margin-bottom: 20px;
            opacity: 1;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 3;
        }

        .summary-title {
            color: white !important;
            font-size: 32px;
            margin-bottom: 10px;
            font-weight: 700;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.5);
            position: relative;
            z-index: 3;
        }

        .summary-subtitle {
            color: rgba(255, 255, 255, 0.95) !important;
            font-size: 16px;
            margin: 0;
            font-weight: 500;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 3;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            position: relative;
            z-index: 2;
        }

        .summary-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .summary-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            background: rgba(255, 255, 255, 1);
        }

        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f8f9fa;
        }

        .card-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 18px;
            color: white;
        }

        .measurements-card .card-icon {
            background: var(--brand);
        }

        .design-card .card-icon {
            background: var(--brand);
        }

        .structure-card .card-icon {
            background: var(--brand);
        }

        .timeline-card .card-icon {
            background: var(--brand);
        }

        .card-header h4 {
            color: #2c3e50;
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }

        .card-content {
            space-y: 12px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f8f9fa;
            transition: all 0.2s ease;
        }

        .summary-item:last-child {
            border-bottom: none;
        }

        .summary-item:hover {
            background: rgba(var(--brand-rgb), 0.05);
            margin: 0 -15px;
            padding: 12px 15px;
            border-radius: 8px;
        }

        .item-label {
            color: #6c757d;
            font-weight: 500;
            font-size: 14px;
        }

        .item-value {
            color: #2c3e50;
            font-weight: 600;
            font-size: 14px;
            text-align: right;
        }

        /* Professional Contact Form */
        .contact-form-section {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid #e9ecef;
        }

        /* Clean Form Grid Layout */
        .form-grid-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-field {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .form-field.full-width {
            grid-column: 1 / -1;
        }

        .form-field label {
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .form-field .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .form-field .input-icon {
            position: absolute;
            left: 15px;
            color: #666;
            font-size: 16px;
            z-index: 2;
        }

        .form-field input {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #fff;
            box-sizing: border-box;
        }

        .form-field input:focus {
            outline: none;
            border-color: var(--brand);
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
        }

        .form-field .textarea-wrapper {
            position: relative;
            display: flex;
            align-items: flex-start;
            width: 100%;
        }

        .form-field textarea {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #fff;
            resize: vertical;
            min-height: 100px;
            box-sizing: border-box;
            font-family: inherit;
        }

        .form-field textarea:focus {
            outline: none;
            border-color: var(--brand);
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
        }

        /* Mobile Responsive – step 12 (configuratie + contact) full width on phones */
        @media (max-width: 768px) {
            .quote-page {
                padding-top: 10px;
            }
            
            .quote-container {
                border-radius: 0;
                margin: 0;
            }
            
            .quote-page .container {
                padding-left: 16px;
                padding-right: 16px;
                max-width: 100%;
                box-sizing: border-box;
            }
            
            .step-content {
                padding: 24px 12px;
                min-height: 400px;
                box-sizing: border-box;
            }
            
            .quote-header {
                padding: 25px 20px;
            }
            
            .quote-header h1 {
                font-size: 1.75rem;
                margin-bottom: 8px;
            }
            
            .quote-header p {
                font-size: 0.95rem;
            }
            
            .btn-3d-viewer {
                padding: 12px 25px;
                font-size: 0.95rem;
                margin-top: 15px;
            }
            
            .form-grid-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .summary-section {
                padding: 24px 16px;
                margin-bottom: 24px;
                box-sizing: border-box;
            }
            
            .contact-form-section {
                padding: 24px 16px;
                box-sizing: border-box;
            }
            
            .contact-form-section .final-form {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }
            
            .contact-form-section .input-wrapper input,
            .contact-form-section .input-wrapper select,
            .contact-form-section .textarea-wrapper textarea {
                box-sizing: border-box;
                min-width: 0;
            }
            
            /* Land/country: on mobile hide icon inside field to prevent overlap; use normal padding */
            .enterprise-contact-form .input-wrapper--country .input-icon {
                display: none;
            }
            .enterprise-contact-form .input-wrapper--country select {
                padding-left: 16px !important;
            }
            
            .form-header {
                margin-bottom: 30px;
                padding-bottom: 20px;
            }
            
            .form-title {
                font-size: 1.5rem;
            }
            
            .form-subtitle {
                font-size: 0.9rem;
            }
            
            .form-icon {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .quote-page .container {
                padding-left: 12px;
                padding-right: 12px;
            }
            
            .step-content {
                padding: 16px 10px;
            }
            
            .summary-section {
                padding: 20px 12px;
                margin-bottom: 20px;
            }
            
            .summary-header {
                padding: 16px 12px;
            }
            
            .summary-title {
                font-size: 1.35rem;
            }
            
            .summary-subtitle {
                font-size: 0.875rem;
            }
            
            .summary-card {
                padding: 16px 14px;
            }
            
            .quote-header {
                padding: 20px 15px;
            }
            
            .quote-header h1 {
                font-size: 1.5rem;
            }
            
            .quote-header p {
                font-size: 0.85rem;
            }
            
            .btn-3d-viewer {
                padding: 10px 20px;
                font-size: 0.85rem;
                width: 100%;
                max-width: 280px;
            }
            
            .contact-form-section {
                padding: 20px 12px;
            }
            
            /* Land field: icon already hidden at 768px; keep select text padding clean */
            .enterprise-contact-form .input-wrapper--country select {
                padding-left: 16px !important;
            }
            
            .form-title {
                font-size: 1.25rem;
            }
            
            .form-icon {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }
        
        /* Extra narrow / tall phones – maximize content width */
        @media (max-width: 400px) {
            .quote-page .container {
                padding-left: 10px;
                padding-right: 10px;
            }
            .step-content {
                padding: 12px 8px;
            }
            .summary-section {
                padding: 16px 10px;
            }
            .contact-form-section {
                padding: 16px 10px;
            }
        }

        .form-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 30px;
            border-bottom: 2px solid #f8f9fa;
        }

        .form-icon {
            width: 60px;
            height: 60px;
            background: var(--brand);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 24px;
            color: white;
            box-shadow: 0 8px 25px rgba(var(--brand-rgb), 0.3);
        }

        .form-title {
            color: #2c3e50;
            font-size: 28px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .form-subtitle {
            color: #6c757d;
            font-size: 16px;
            margin: 0;
            font-weight: 400;
        }


        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            box-sizing: border-box;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            color: #6c757d;
            font-size: 16px;
            z-index: 2;
        }

        .input-wrapper input {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f8f9fa;
            box-sizing: border-box;
        }

        .input-wrapper input:focus {
            outline: none;
            border-color: var(--brand);
            background: white;
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
        }

        .textarea-wrapper {
            position: relative;
        }

        .textarea-wrapper .input-icon {
            top: 15px;
        }

        .textarea-wrapper textarea {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f8f9fa;
            resize: vertical;
            min-height: 120px;
        }

        .textarea-wrapper textarea:focus {
            outline: none;
            border-color: var(--brand);
            background: white;
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
        }

        /* Enterprise contact form: select, char count, checkbox */
        .enterprise-contact-form .input-wrapper select {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f8f9fa;
            color: #2c3e50;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            padding-right: 40px;
        }
        .enterprise-contact-form .input-wrapper select:focus {
            outline: none;
            border-color: var(--brand);
            background-color: white;
            box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
        }
        .enterprise-contact-form .label-hint {
            font-weight: 400;
            color: #6c757d;
            font-size: 0.9em;
        }
        .enterprise-contact-form .char-count {
            display: block;
            text-align: right;
            font-size: 13px;
            color: #6c757d;
            margin-top: 6px;
        }
        .enterprise-contact-form .form-group-checkbox {
            margin-bottom: 20px;
        }
        .enterprise-contact-form .checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            font-size: 15px;
            color: #2c3e50;
        }
        .enterprise-contact-form .checkbox-label input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            flex-shrink: 0;
            accent-color: var(--brand);
        }
        .enterprise-contact-form .checkbox-label a {
            color: var(--brand);
            text-decoration: none;
        }
        .enterprise-contact-form .checkbox-label a:hover {
            text-decoration: underline;
        }

        .file-upload {
            border: 2px dashed #e9ecef;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            background: #f8f9fa;
            cursor: pointer;
            position: relative;
        }

        .file-upload input[type="file"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 1;
        }

        .file-upload:hover {
            border-color: var(--brand);
            background: rgba(var(--brand-rgb), 0.05);
        }

        .file-upload-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .file-upload-icon {
            font-size: 32px;
            color: #6c757d;
            margin-bottom: 15px;
        }

        .file-upload-text {
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .file-upload-hint {
            color: #6c757d;
            font-size: 14px;
        }

        /* File Upload States */
        .file-upload.dragover {
            border-color: var(--brand);
            background: rgba(var(--brand-rgb), 0.1);
            transform: scale(1.02);
        }

        .file-upload.file-selected {
            border-color: #28a745;
            background: rgba(40, 167, 69, 0.05);
        }

        .file-upload.file-selected .file-upload-icon {
            color: #28a745;
        }

        .file-upload.file-selected .file-upload-text {
            color: #28a745;
            font-weight: 600;
        }

        .file-preview {
            position: relative;
            display: inline-block;
            margin-top: 15px;
        }

        .file-preview img {
            max-width: 100px;
            max-height: 100px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .remove-file {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #e74c3c;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .remove-file:hover {
            background: #c0392b;
            transform: scale(1.1);
        }

        .file-error {
            color: #e74c3c;
            font-size: 14px;
            margin-top: 10px;
            padding: 8px 12px;
            background: #fee;
            border: 1px solid #e74c3c;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
            animation: slideDown 0.3s ease;
        }

        /* Success Modal Styles */
        .success-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }

        .success-modal-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            max-width: 500px;
            width: 90%;
            text-align: center;
            animation: slideIn 0.3s ease;
        }

        .success-icon {
            font-size: 4rem;
            color: #28a745;
            margin-bottom: 20px;
        }

        .success-modal-content h3 {
            color: var(--brand);
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .success-modal-content p {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .success-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 30px;
            border-left: 4px solid #28a745;
        }

        .success-details p {
            margin: 8px 0;
            font-size: 1rem;
            color: #333;
        }

        .success-details strong {
            color: var(--brand);
        }

        .success-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .success-actions .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .success-actions .btn-primary {
            background: var(--brand);
            color: white;
        }

        .success-actions .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.3);
        }

        .success-actions .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .success-actions .btn-secondary:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
        }
        }

        @media (max-width: 768px) {
            .submit-btn {
                padding: 18px 30px;
                font-size: 18px;
                min-height: 56px;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
                border: none;
                outline: none;
                cursor: pointer;
                user-select: none;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
            }

            .submit-btn:active {
                transform: scale(0.98);
            }

            .submit-btn:disabled {
                background: #ccc;
                cursor: not-allowed;
                transform: none;
                box-shadow: none;
        }

            .success-modal {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(5px);
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 10000;
            padding: 20px;
                box-sizing: border-box;
            }

            .success-modal-content {
                padding: 30px 20px;
                margin: 0;
                max-width: 100%;
                width: 100%;
                max-height: 90vh;
                overflow-y: auto;
                border-radius: 15px;
            }

            .success-icon {
                font-size: 3rem;
            }

            .success-modal-content h3 {
                font-size: 1.5rem;
            }

            .success-actions {
                flex-direction: column;
                gap: 12px;
            }

            .success-actions .btn {
                width: 100%;
                padding: 14px 20px;
                font-size: 16px;
                min-height: 48px;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
            }

            .success-actions .btn:active {
                transform: scale(0.98);
            }
        }

        @media (max-width: 480px) {
            .submit-btn {
                padding: 16px 24px;
                font-size: 16px;
                min-height: 52px;
            }

            .success-modal-content {
                padding: 25px 15px;
                border-radius: 12px;
            }

            .success-icon {
                font-size: 2.5rem;
            }

            .success-modal-content h3 {
                font-size: 1.3rem;
            }

            .success-modal-content p {
                font-size: 1rem;
            }

            .success-details {
                padding: 15px;
            }

            .success-actions .btn {
                padding: 12px 16px;
                font-size: 15px;
                min-height: 44px;
            }
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .privacy-notice {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #6c757d;
            font-size: 14px;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
        }

        .privacy-notice i {
            color: #28a745;
            font-size: 16px;
        }

        /* Mobile Responsive – summary & form (aligned with step-content width) */
        @media (max-width: 768px) {
            .summary-section {
                padding: 24px 16px;
                margin-bottom: 24px;
            }

            .summary-title {
                font-size: 1.5rem;
            }

            .summary-subtitle {
                font-size: 14px;
            }

            .summary-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .summary-card {
                padding: 20px 16px;
            }

            .card-header {
            margin-bottom: 15px;
            }

            .card-icon {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }

            .card-header h4 {
                font-size: 16px;
            }

            .contact-form-section {
                padding: 24px 16px;
            }

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

            .form-icon {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            .form-title {
                font-size: 24px;
            }

            .form-subtitle {
                font-size: 14px;
            }

            .form-row {
                grid-template-columns: 1fr !important;
                gap: 15px;
            }

            .input-wrapper input,
            .textarea-wrapper textarea {
                padding: 12px 12px 12px 40px;
                font-size: 16px;
                box-sizing: border-box;
            }

            .file-upload {
                padding: 20px;
            }

            .file-upload-icon {
                font-size: 24px;
            }
        }
        
        /* Product Preview Styles */
        .product-preview-section {
            margin: 40px 0;
        }
        .preview-container {
            max-width: 800px;
            margin: 0 auto;
        }
        .preview-image-container {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }
        .preview-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .preview-image:hover {
            transform: scale(1.02);
        }
        .preview-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 30px;
        }
        .preview-info h3 {
            font-size: 2rem;
            margin-bottom: 15px;
            font-weight: 700;
        }
        .preview-specs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        .preview-spec {
            background: rgba(255, 255, 255, 0.15);
            padding: 15px 20px;
            border-radius: 12px;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }
        .preview-spec:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Form Validation Styles */
        .form-group.error input,
        .form-group.error textarea {
            border-color: #e74c3c;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
        }

        .error-message {
            color: #e74c3c;
            font-size: 14px;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .error-message::before {
            content: "??";
            font-size: 12px;
        }

        .form-error {
            background: #fee;
            border: 1px solid #e74c3c;
            color: #c0392b;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .form-error::before {
            content: "?? ";
            font-weight: bold;
        }

        /* Shake Animation for Error Fields */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .form-group.error {
            animation: shake 0.5s ease-in-out;
        }

        /* Success Message Styles */
        .success-message {
            text-align: center;
            padding: 40px 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .success-icon {
            font-size: 64px;
            color: #27ae60;
            margin-bottom: 20px;
        }

        .success-message h3 {
            color: #2c3e50;
            font-size: 28px;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .success-message p {
            color: #7f8c8d;
            font-size: 16px;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .success-details {
            background: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 12px;
            margin: 25px 0;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .success-details p {
            margin: 8px 0;
            font-size: 14px;
            color: #2c3e50;
        }

        .success-details strong {
            color: var(--brand);
        }

        /* Submit Button Styles */
        .btn-step.submit {
            background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
            color: white;
            border: none;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }

        .btn-step.submit:hover {
            background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
        }

        .btn-step.submit:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .preview-spec-label {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 5px;
        }
        .preview-spec-value {
            font-size: 1.1rem;
            font-weight: 600;
        }
        .category-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--brand);
        }
        .category-icon {
            font-size: 1.5rem;
            margin-right: 10px;
        }
        .category-header h4 {
            margin: 0;
            color: var(--brand);
            font-size: 1.1rem;
            font-weight: 600;
        }
        .category-content {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        .summary-item:last-child {
            border-bottom: none;
        }
        .summary-label {
            font-weight: 500;
            color: #555;
            font-size: 0.95rem;
        }
        .summary-value {
            color: var(--brand);
            font-weight: 600;
            font-size: 0.95rem;
        }
        @media (max-width: 768px) {
            .measurement-instructions {
                flex-direction: column;
                gap: 20px;
                margin: 20px 0;
            }
            
            .instruction-item {
                padding: 12px 16px;
            }
            
            .instruction-icon {
                font-size: 20px;
                min-width: 25px;
            }
            
            .instruction-text {
                font-size: 13px;
            }
            
            .interactive-help {
                flex-direction: column;
                text-align: center;
                gap: 10px;
                padding: 12px 20px;
            }
            
            .help-icon {
                font-size: 20px;
            }
            
            .help-text {
                font-size: 13px;
            }
            
            .measurement-interface {
                grid-template-columns: 1fr;
                gap: 15px;
                margin: 10px 0;
                align-items: stretch;
                width: 100%;
                max-width: 100%;
            }

            .measurement-controls,
            .m-meters-panel,
            .measurement-visual,
            .control-group,
            .input-container,
            .custom-number-input,
            .input-slider {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }
            
            .measurement-visual {
                min-height: 360px;
                padding: 1rem !important;
                border-radius: 12px;
                display: flex;
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                overflow: hidden !important;
            }
            
            .veranda-container {
                overflow: hidden !important;
            }
            
            .dimension-labels-container {
                position: relative !important;
                top: auto !important;
                left: auto !important;
                transform: none !important;
                gap: 0.65rem !important;
                flex-wrap: wrap !important;
                flex-direction: row !important;
                justify-content: center !important;
                align-items: center !important;
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 0 0.65rem !important;
                padding: 0 !important;
                z-index: 2 !important;
                display: flex !important;
            }
            
            .dimension-label-3d {
                padding: 10px 16px !important; /* Same as desktop */
                font-size: 12px !important;
                flex-shrink: 0 !important; /* Prevent shrinking */
                min-width: auto !important;
                white-space: nowrap !important;
            }
            
            .dimension-label-3d .label-icon {
                font-size: 18px !important; /* Same as desktop */
            }
            
            .dimension-label-3d .label-title {
                font-size: 10px !important; /* Same as desktop */
            }
            
            .dimension-label-3d .label-value {
                font-size: 14px !important; /* Same as desktop */
            }
            
            .veranda-shape {
                width: 100% !important;
                height: 100% !important;
                min-height: 400px !important;
                border-radius: 12px !important;
                overflow: hidden !important; /* Keep canvas contained */
                position: relative !important;
            }
            
            .veranda-container {
                width: 100% !important;
                height: 100% !important;
                min-height: 320px !important;
                max-width: 100% !important;
                margin: 0 auto !important;
                position: relative !important;
                overflow: hidden !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: stretch !important;
            }
            
            #veranda3D {
                width: 100% !important;
                height: 100% !important;
                min-height: 400px !important;
                max-width: 100% !important;
                max-height: 100% !important;
                object-fit: contain !important;
                display: block !important;
                /* Ensure canvas doesn't overflow its container */
                box-sizing: border-box !important;
                overflow: hidden !important;
            }
            
            .veranda-shape {
                /* Ensure the shape container properly constrains the canvas */
                box-sizing: border-box !important;
                overflow: hidden !important;
            }
            
            .measurement-visual {
                overflow: hidden !important;
                position: relative !important;
            }
        }
        
        /* Very small screens - additional adjustments */
        @media (max-width: 480px) {
            .dimension-labels-container {
                gap: 20px !important;
                padding: 0 10px !important;
            }
            
            .dimension-label-3d {
                padding: 8px 14px !important;
                font-size: 11px !important;
            }
            
            .dimension-label-3d .label-icon {
                font-size: 16px !important;
            }
            
            .dimension-label-3d .label-title {
                font-size: 9px !important;
            }
            
            .dimension-label-3d .label-value {
                font-size: 12px !important;
            }
            
            .measurement-visual {
                padding: 0.85rem !important;
            }
            
            .dimension-label {
                padding: 8px 16px;
            }
            
            .dimension-text {
                font-size: 9px;
            }
            
            .dimension-value {
                font-size: 14px;
            }
            
            .width-label::before {
                font-size: 18px;
                top: -25px;
            }
            
            .depth-label::before {
                font-size: 18px;
                right: -25px;
            }
            
            .measurement-sliders {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .step-options {
                grid-template-columns: 1fr;
            }
            .final-form {
                grid-template-columns: 1fr;
            }
            /* Fix Next/Previous at bottom on mobile; user scrolls content himself */
            .step-navigation {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 1000;
                flex-direction: row;
                gap: 12px;
                padding: 12px 16px;
                padding-bottom: max(12px, env(safe-area-inset-bottom));
                margin: 0;
                border-top: 1px solid #e9ecef;
                background: #fff;
                box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
            }
            .quote-container {
                padding-bottom: 88px;
                padding-bottom: calc(88px + env(safe-area-inset-bottom));
            }
            .quote-page {
                padding-bottom: calc(120px + env(safe-area-inset-bottom));
            }
            .btn-step {
                width: 100%;
                flex: 1;
                padding: 14px 16px;
            }
            .step-progress {
                justify-content: flex-start;
                padding: 15px 10px;
                gap: 5px;
            }
            .step {
                min-width: 80px;
                max-width: 100px;
                padding: 6px;
                font-size: 10px;
            }
            .step-number {
                width: 20px;
                height: 20px;
                font-size: 10px;
                margin-right: 6px;
            }
            .step-name {
                font-size: 10px;
            }
            .step-desc {
                font-size: 8px;
            }
            .progress-header {
                flex-direction: column;
                gap: 10px;
                padding: 15px 10px 10px 10px;
            }
            .current-step-info {
                font-size: 12px;
                padding: 6px 12px;
            }
            .progress-percentage-text {
                font-size: 12px;
                padding: 6px 12px;
            }
            .progress-bar-container {
                margin: 0 10px 15px 10px;
            }
            .steps-container {
                padding: 0 10px 25px 10px;
            }
            .summary-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .summary-category {
                padding: 15px;
            }
        }
    

/* ==========================================================================
   ENTERPRISE REDESIGN LAYER
   ========================================================================== */

.quote-page {
    padding-top: clamp(16px, 3vw, 28px);
    padding-bottom: clamp(72px, 10vw, 96px);
    min-height: 100vh;
    background:
        radial-gradient(1200px 480px at 12% -10%, rgba(var(--brand-rgb), 0.08), transparent 60%),
        linear-gradient(180deg, var(--brand-soft) 0%, var(--neutral-50, #fafafa) 42%, var(--neutral-100, #f5f5f5) 100%);
    color: var(--neutral-800, #262626);
    font-family: var(--font-family);
}

.quote-container {
    max-width: 1120px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.quote-header {
    background: var(--brand);
    color: #fff;
    padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 40px);
    text-align: center;
    position: relative;
}

.quote-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.quote-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.45rem;
}

.quote-header p {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    opacity: 0.88;
    margin: 0 auto;
    max-width: 36rem;
    font-weight: 400;
}

.btn-3d-viewer {
    margin-top: 1.35rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-3d-viewer:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-3d-viewer i {
    font-size: 1.05rem;
    animation: none;
}

.step-progress {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff 0%, var(--neutral-50, #fafafa) 100%);
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.35rem 0.65rem;
    background: transparent;
}

.current-step-info {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand);
    box-shadow: none;
    border: none;
    letter-spacing: 0.01em;
}

.progress-percentage-text {
    background: rgba(var(--brand-rgb), 0.1);
    color: var(--brand);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 650;
    font-size: 0.78rem;
    box-shadow: none;
    letter-spacing: 0.02em;
}

.progress-bar-container {
    width: auto;
    height: 3px;
    background: rgba(var(--brand-rgb), 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 1.35rem 0.85rem;
}

.progress-bar {
    height: 100%;
    background: var(--brand);
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar::after {
    display: none;
}

.steps-container {
    display: flex;
    justify-content: flex-start;
    padding: 0 1.1rem 1.1rem;
    overflow-x: auto;
    gap: 0.35rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.steps-container::-webkit-scrollbar {
    height: 4px;
}

.steps-container::-webkit-scrollbar-track {
    background: transparent;
}

.steps-container::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-rgb), 0.35);
    border-radius: 999px;
}

.step {
    display: flex;
    align-items: center;
    min-width: 96px;
    max-width: 128px;
    font-size: 0.7rem;
    color: var(--neutral-500, #737373);
    white-space: nowrap;
    position: relative;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-md, 8px);
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    cursor: default;
}

.step:hover {
    background: rgba(var(--brand-rgb), 0.04);
}

.step-number {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--neutral-200, #e5e5e5);
    color: var(--neutral-600, #525252);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.step.active .step-number {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.18);
    transform: none;
}

.step.completed .step-number {
    background: var(--brand);
    color: #fff;
}

.step.error .step-number {
    background: var(--error, #dc2626);
    color: #fff;
}

.step-name {
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--neutral-700, #404040);
    margin-bottom: 1px;
}

.step-desc {
    font-size: 0.62rem;
    color: var(--neutral-400, #a3a3a3);
    line-height: 1.2;
}

.step.active {
    background: rgba(var(--brand-rgb), 0.08);
    border-radius: var(--radius-md, 8px);
    padding: 0.55rem 0.6rem;
    transform: none;
    box-shadow: none;
}

.step.active .step-name {
    color: var(--brand);
    font-weight: 700;
}

.step.completed .step-name {
    color: var(--brand);
}

.step-content {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    min-height: 520px;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: qcPanelIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    .step-panel.active,
    .progress-bar,
    .option-card,
    .btn-step,
    .btn-3d-viewer {
        animation: none !important;
        transition: none !important;
    }
}

.step-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.step-title::after {
    content: " *";
    color: var(--error, #dc2626);
    font-size: 0.85em;
    font-family: var(--font-family);
}

.step-panel[data-step="1"] .step-title::after {
    display: none;
}

.step-description {
    text-align: center;
    color: var(--neutral-500, #737373);
    margin: 0 auto 1.75rem;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.5;
}

.step-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-card {
    border: 1.5px solid rgba(var(--brand-rgb), 0.14);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
}

.option-card:hover {
    border-color: rgba(var(--brand-rgb), 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.option-card.selected {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand), 0 10px 24px rgba(var(--brand-rgb), 0.12);
    transform: none;
}

.option-preview {
    height: 148px;
    background: var(--neutral-50, #fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.06);
}

.option-info {
    padding: 0.95rem 1rem 1.1rem;
    text-align: center;
}

.option-name {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--neutral-800, #262626);
}

.option-card.selected .option-name {
    color: var(--brand);
    font-weight: 700;
}

.selection-mark {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.option-card.selected .selection-mark {
    opacity: 1;
    transform: scale(1);
    background: var(--brand);
    box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.35);
}

.measurement-instructions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--brand-soft);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid rgba(var(--brand-rgb), 0.12);
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: var(--radius-md, 8px);
    box-shadow: none;
    border: 1px solid rgba(var(--brand-rgb), 0.1);
    transition: border-color 0.2s ease;
}

.instruction-item:hover {
    border-color: rgba(var(--brand-rgb), 0.35);
    transform: none;
    box-shadow: none;
}

.interactive-help {
    border-color: rgba(var(--brand-rgb), 0.15) !important;
    background: #fff !important;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    border-top: 1px solid rgba(var(--brand-rgb), 0.1);
    background: linear-gradient(180deg, var(--neutral-50, #fafafa) 0%, #fff 100%);
}

.btn-step {
    padding: 0.85rem 1.35rem;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: var(--font-family);
}

.btn-step.prev {
    background: #fff;
    color: var(--neutral-700, #404040);
    border: 1.5px solid rgba(var(--brand-rgb), 0.18);
}

.btn-step.prev:hover:not(:disabled) {
    background: var(--brand-soft);
    border-color: rgba(var(--brand-rgb), 0.35);
    color: var(--brand);
}

.btn-step.next,
.btn-step.submit {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(var(--brand-rgb), 0.2);
}

.btn-step.next:hover:not(:disabled),
.btn-step.submit:hover:not(:disabled) {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.28);
}

.submit-btn {
    background: var(--brand);
    border-radius: var(--radius-md, 8px);
}

.submit-btn:hover {
    background: var(--brand-hover);
    box-shadow: 0 8px 22px rgba(var(--brand-rgb), 0.28);
}

.summary-section {
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    border-radius: var(--radius-lg, 12px);
    box-shadow: none;
    background: var(--neutral-50, #fafafa);
    overflow: hidden;
}

.summary-header {
    background: var(--brand);
}

.summary-card {
    border: 1px solid rgba(var(--brand-rgb), 0.1);
    border-radius: var(--radius-md, 8px);
    box-shadow: none;
    background: #fff;
}

.summary-card:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.08);
    border-color: rgba(var(--brand-rgb), 0.22);
}

.contact-form-section {
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    border-radius: var(--radius-lg, 12px);
    box-shadow: none;
    background: #fff;
}

.m-unit-card {
    border-color: rgba(var(--brand-rgb), 0.14) !important;
    box-shadow: none !important;
}

.m-unit-card--footer {
    border-color: rgba(var(--brand-rgb), 0.12) !important;
    background: var(--brand-soft) !important;
}

/* Unit toggle visibility — must beat any layout display:!important rules */
#measurement-controls-cm.is-unit-hidden,
#measurement-controls-meters.is-unit-hidden,
#measurement-unit-toggle.is-unit-hidden,
#measurement-controls-cm[hidden],
#measurement-controls-meters[hidden],
#measurement-unit-toggle[hidden] {
    display: none !important;
}

/* Responsive — consolidated */
@media (max-width: 768px) {
    .quote-container {
        border-radius: 12px;
        margin: 0 0.5rem;
    }

    .step-content {
        padding: 1.25rem 1rem 5.5rem;
        min-height: 0;
    }

    .step-options {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    /*
     * Critical: desktop uses align-items:start on the measurement grid.
     * When we switch to a column flex stack, that leftover start alignment
     * shrinks Breedte/Diepte controls to content width and left-aligns them.
     */
    .measurement-interface {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 1.25rem !important;
        margin: 0.75rem 0 1rem !important;
        box-sizing: border-box;
    }

    .measurement-interface > *,
    .measurement-controls,
    .m-meters-panel,
    .measurement-visual {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        align-self: stretch !important;
    }

    .measurement-controls {
        /* Do NOT force display — JS toggles cm/meters via inline display + .is-unit-hidden */
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #measurement-controls-cm.is-unit-hidden,
    #measurement-controls-meters.is-unit-hidden,
    #measurement-unit-toggle.is-unit-hidden,
    #measurement-controls-cm[hidden],
    #measurement-controls-meters[hidden],
    #measurement-unit-toggle[hidden] {
        display: none !important;
    }

    .control-group,
    .input-container,
    .custom-number-input,
    .input-slider,
    .m-meters-panel__group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .control-group {
        text-align: center;
    }

    .control-group h3,
    .m-meters-panel__label {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
    }

    .custom-number-input {
        display: flex !important;
        align-items: stretch !important;
        min-height: 52px;
    }

    .number-btn {
        width: 52px !important;
        min-width: 52px !important;
        height: auto !important;
        min-height: 52px;
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .size-input {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.85rem 0.75rem !important;
        font-size: 1.125rem !important;
    }

    .input-slider {
        width: 100% !important;
    }

    .slider {
        width: 100% !important;
        display: block;
        height: 10px;
    }

    .slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .slider-labels {
        width: 100%;
        font-size: 0.8rem;
    }

    .m-unit-card,
    .m-unit-card--footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 1.25rem 0 0 !important;
        box-sizing: border-box;
    }

    .measurement-visual {
        min-height: 0 !important;
        padding: 1rem !important;
        overflow: hidden !important;
    }

    .measurement-visual .dimension-labels-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 0.65rem !important;
        gap: 0.55rem !important;
        flex-wrap: wrap !important;
    }

    .measurement-visual .veranda-viewer-chrome {
        width: 100%;
        margin: 0 0 0.65rem;
    }

    .measurement-visual .veranda-viewer-toolbar {
        width: 100%;
        max-width: none;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .measurement-visual .veranda-shape,
    .measurement-visual #veranda3D {
        min-height: 280px !important;
    }

    .step-panel[data-step="1"] .m-unit-card--footer {
        margin-bottom: 0.5rem;
    }

    .option-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .summary-grid,
    .form-grid-row {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* Hide leftover scrollbar stub under the step rail */
    .steps-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .steps-container::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .step-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        margin: 0;
        border-top: 1px solid rgba(var(--brand-rgb), 0.12);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }

    .btn-step {
        flex: 1;
        min-height: 48px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    .quote-page {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .step-options {
        grid-template-columns: 1fr;
    }

    .step {
        min-width: 84px;
        max-width: 110px;
        padding: 0.4rem 0.45rem;
    }

    .step-number {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.65rem;
    }

    .step-name {
        font-size: 0.65rem;
    }

    .step-desc {
        display: none;
    }

    .progress-header {
        padding: 0.75rem 1rem 0.45rem;
    }

    .current-step-info {
        font-size: 0.8rem;
    }

    .quote-header h1 {
        font-size: 1.65rem;
    }

    .option-preview {
        height: 132px;
    }

    .number-btn {
        width: 48px !important;
        min-width: 48px !important;
        min-height: 48px;
    }

    .size-input {
        font-size: 1.05rem !important;
    }

    .control-group h3 {
        font-size: 1.05rem;
    }

    .enterprise-contact-form .input-wrapper--country .input-icon {
        display: none;
    }

    .enterprise-contact-form .input-wrapper--country select {
        padding-left: 0.9rem;
    }
}

@media (max-width: 400px) {
    .enterprise-contact-form .input-wrapper--country select {
        padding-left: 0.75rem;
        font-size: 0.95rem;
    }
}

/* ===== 3D viewer chrome + fullscreen controls (enterprise UI) ===== */
.veranda-viewer-chrome {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
    position: relative;
    z-index: 5;
}

.veranda-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: min(560px, 100%);
    padding: 0.4rem 0.45rem 0.4rem 0.55rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(120, 71, 20, 0.12);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 20px rgba(120, 71, 20, 0.08);
}

.veranda-tool-cluster {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.veranda-tool-caption {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(120, 71, 20, 0.72);
}

.veranda-zoom-segment {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.18rem;
    border-radius: 11px;
    background: #f4f0ea;
    border: 1px solid rgba(120, 71, 20, 0.1);
}

.veranda-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #784714;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.veranda-tool-btn:hover,
.veranda-tool-btn:focus-visible {
    background: #fff;
    color: #5f3810;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    outline: none;
}

.veranda-tool-btn:active {
    transform: scale(0.96);
}

.veranda-tool-btn--ghost {
    opacity: 0.85;
}

.veranda-zoom-level {
    min-width: 3.25rem;
    padding: 0 0.2rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
    user-select: none;
}

.veranda-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border: none;
    border-radius: 11px;
    background: #784714;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(120, 71, 20, 0.28);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.veranda-fs-btn:hover,
.veranda-fs-btn:focus-visible {
    background: #5f3810;
    outline: none;
    box-shadow: 0 6px 16px rgba(120, 71, 20, 0.34);
}

.veranda-fs-btn:active {
    transform: translateY(1px);
}

.veranda-fs-btn[aria-pressed="true"] {
    background: #3f2a12;
}

.veranda-fs-btn i {
    font-size: 0.9rem;
}

.veranda-fs-dock {
    display: none;
}

/* Fullscreen stage layout */
.measurement-visual.is-3d-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding:
        max(10px, env(safe-area-inset-top))
        max(12px, env(safe-area-inset-right))
        max(10px, env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left)) !important;
    background: linear-gradient(165deg, #f6f3ee 0%, #ebe6df 55%, #e5e0d8 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.measurement-visual.is-3d-fullscreen .veranda-preview {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.measurement-visual.is-3d-fullscreen .veranda-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    gap: 0;
}

.measurement-visual.is-3d-fullscreen .dimension-labels-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 0 8px !important;
    z-index: 6;
    pointer-events: none;
}

.measurement-visual.is-3d-fullscreen .veranda-viewer-chrome {
    order: 0;
    margin: 0 0 10px;
    justify-content: center;
    flex-shrink: 0;
}

.measurement-visual.is-3d-fullscreen .veranda-viewer-toolbar {
    width: min(640px, 100%);
    padding: 0.45rem 0.5rem 0.45rem 0.65rem;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 28px rgba(120, 71, 20, 0.12);
}

.measurement-visual.is-3d-fullscreen .veranda-shape {
    order: 1;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.measurement-visual.is-3d-fullscreen #veranda3D {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 16px !important;
}

.measurement-visual.is-3d-fullscreen .veranda-fs-dock[hidden] {
    display: none !important;
}

.measurement-visual.is-3d-fullscreen .veranda-fs-dock:not([hidden]) {
    order: 2;
    display: block !important;
    flex-shrink: 0;
    width: 100%;
    margin-top: 10px;
}

.veranda-fs-dock__bar {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 0.7rem 0.75rem 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(120, 71, 20, 0.12);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 14px 32px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.veranda-fs-dock__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(120, 71, 20, 0.75);
}

.veranda-fs-dock__title i {
    font-size: 0.8rem;
}

.veranda-fs-dock__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.veranda-fs-dock__card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem 0.75rem;
    border-radius: 13px;
    background: linear-gradient(180deg, #fbfaf8 0%, #f3eee7 100%);
    border: 1px solid rgba(120, 71, 20, 0.1);
}

.veranda-fs-dock__head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #784714;
}

.veranda-fs-dock__head i {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(120, 71, 20, 0.1);
    font-size: 0.72rem;
}

.veranda-fs-dock__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.veranda-fs-dock__stepper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0.45rem;
}

.veranda-fs-dock__value {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
    line-height: 1.1;
}

.veranda-fs-dim-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 71, 20, 0.18);
    border-radius: 11px;
    background: #fff;
    color: #784714;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.veranda-fs-dim-btn:hover,
.veranda-fs-dim-btn:focus-visible {
    background: #784714;
    border-color: #784714;
    color: #fff;
    outline: none;
}

.veranda-fs-dim-btn:active {
    transform: scale(0.96);
}

.veranda-fs-dock__slider {
    width: 100%;
    height: 1.65rem;
    margin: 0;
    accent-color: #784714;
    cursor: pointer;
}

body.is-3d-fullscreen-active {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 768px) {
    .veranda-viewer-chrome {
        margin: 2px 0 10px;
    }

    .veranda-viewer-toolbar {
        width: 100%;
        gap: 0.5rem;
        padding: 0.35rem;
        border-radius: 12px;
    }

    .veranda-tool-caption {
        display: none;
    }

    .veranda-zoom-segment {
        flex: 1 1 auto;
        justify-content: space-between;
        padding: 0.15rem;
    }

    .veranda-tool-btn {
        width: 42px;
        height: 42px;
    }

    .veranda-zoom-level {
        min-width: 2.75rem;
        font-size: 0.75rem;
    }

    .veranda-fs-btn {
        min-width: 46px;
        min-height: 46px;
        padding: 0.55rem 0.7rem;
        border-radius: 12px;
    }

    .veranda-fs-btn__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .measurement-visual.is-3d-fullscreen {
        padding:
            max(8px, env(safe-area-inset-top))
            max(8px, env(safe-area-inset-right))
            max(8px, env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left)) !important;
    }

    .measurement-visual.is-3d-fullscreen .dimension-labels-container {
        gap: 10px;
        margin-bottom: 6px !important;
    }

    .measurement-visual.is-3d-fullscreen .dimension-label-3d {
        padding: 8px 10px;
        font-size: 11px;
    }

    .measurement-visual.is-3d-fullscreen .veranda-fs-dock:not([hidden]) {
        margin-top: 8px;
    }

    .veranda-fs-dock__bar {
        width: 100%;
        padding: 0.6rem 0.6rem 0.7rem;
        border-radius: 14px;
    }

    .veranda-fs-dock__cards {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .veranda-fs-dock__card {
        padding: 0.65rem 0.7rem;
    }

    .veranda-fs-dock__value {
        font-size: 1.1rem;
    }

    .measurement-visual.is-3d-fullscreen #veranda3D {
        border-radius: 12px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .veranda-viewer-toolbar {
        width: min(600px, 100%);
    }

    .veranda-fs-dock__bar {
        width: min(680px, 100%);
    }
}

@media (max-width: 380px) {
    .veranda-zoom-level {
        display: none;
    }

    .veranda-fs-dock__stepper {
        grid-template-columns: 42px 1fr 42px;
    }
}

/*
 * Desktop: keep width/depth control bars visually aligned with the 3D canvas card.
 * Labels + toolbar stay in normal document flow (not absolutely floated), so both
 * grid columns share the same top edge and equal stretched height.
 */
@media (min-width: 769px) {
    .measurement-interface {
        align-items: stretch;
        gap: 2rem;
    }

    .measurement-visual {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1.25rem 1.35rem 1.35rem;
        min-height: 540px;
        overflow: hidden;
    }

    .measurement-visual .veranda-preview,
    .measurement-visual .veranda-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        flex: 1 1 auto;
        min-height: 0;
    }

    .measurement-visual .dimension-labels-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin: 0 0 0.75rem;
        gap: 1rem;
        justify-content: center;
        pointer-events: none;
        z-index: 2;
    }

    .measurement-visual .veranda-viewer-chrome {
        width: 100%;
        margin: 0 0 0.75rem;
        justify-content: center;
        flex-shrink: 0;
    }

    .measurement-visual .veranda-viewer-toolbar {
        width: 100%;
        max-width: none;
    }

    .measurement-visual .veranda-shape {
        flex: 1 1 auto;
        width: 100%;
        min-height: 360px;
        height: auto;
    }

    .measurement-visual #veranda3D {
        min-height: 360px !important;
    }

    /* Stretch controls column to match visual card; center Breedte/Diepte against canvas */
    .measurement-controls,
    .m-meters-panel {
        height: 100%;
        min-height: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .measurement-controls {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0.25rem 0;
    }
}

