@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #020203;
    --bg-card: #0a0a0c;
    --bg-card-hover: #121215;
    --bg-input: #0f0f11;
    --accent: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.15);
    
    /* Configurator dynamic colors (will be updated by JS) */
    --led-color: #00f0ff;
    --led-glow: rgba(0, 240, 255, 0.4);
    --led-intensity: 1;
    
    --caliper-color: #ff0000;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-active: var(--accent);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Background grid & radial gradient for modern look */
.bg-decorations {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-radial {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(80px);
}

.bg-radial-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    filter: blur(80px);
}

/* Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.btn-back-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back-site svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
    stroke: var(--text-secondary);
}

.btn-back-site:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-back-site:hover svg {
    transform: translateX(-3px);
    stroke: #ffffff;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #fff 40%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, #a1a1aa 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-status {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

@media (max-width: 1100px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .sticky-visualizer {
        position: static !important;
        margin-bottom: 30px;
    }
}

/* Left panel: Wizard */
.wizard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Step navigation */
.steps-nav {
    display: flex;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: var(--radius-md);
    position: relative;
}

.step-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-btn span.num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.step-btn.active {
    color: var(--text-primary);
    background: var(--bg-input);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.step-btn.active span.num {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.step-btn.completed span.num {
    background: #ffffff;
    color: #000;
    border-color: #ffffff;
}

/* Steps content */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Cards & Grid Selectors */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.option-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.option-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.option-card.selected .option-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.option-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-card.selected .option-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.option-card.selected .option-checkbox::after {
    content: "✓";
    color: #000000;
    font-size: 11px;
    font-weight: 900;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.option-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.option-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Configurator Sliders & Controls */
.config-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.config-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.control-label span.value {
    color: var(--accent);
    font-weight: 600;
}

/* Custom range inputs */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-input);
    outline: none;
    border: 1px solid var(--border);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Radio chips (horizontal select) */
.radio-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-chip {
    flex: 1;
    min-width: 100px;
    position: relative;
}

.radio-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-chip label {
    display: block;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.radio-chip label:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.radio-chip input[type="radio"]:checked + label {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Color Picker customization */
.color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 12px var(--color-glow);
}

/* Custom color picker input style */
.custom-color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.custom-color-picker input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.custom-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-color-picker input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border);
    border-radius: 50%;
}

.custom-color-picker span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Wizard Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e4e4e7;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover:not(:disabled) {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-success {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
}

.btn-success:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Right Panel: Sticky Visualizer */
.sticky-visualizer {
    position: sticky;
    top: 100px;
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visualizer-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.visualizer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}

.visualizer-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.visualizer-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
    background: rgba(255,255,255,0.015);
}

.visualizer-viewport {
    flex: 1;
    position: relative;
    background: #020305;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Canvas starry sky styling */
#starry-sky-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    cursor: crosshair;
}

/* Interactive Dashboard LED Layout */
.led-interior-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.led-svg {
    width: 90%;
    height: 90%;
    max-height: 400px;
    transition: var(--transition);
}

/* SVG Line glow adjustments */
.led-strip {
    fill: none;
    stroke-linecap: round;
    transition: stroke 0.4s ease, opacity 0.3s ease;
    opacity: 0; /* Hidden unless LED is configured */
}

.led-strip.active {
    opacity: var(--led-intensity);
    stroke: var(--led-color);
    filter: drop-shadow(0 0 4px var(--led-color)) drop-shadow(0 0 12px var(--led-color));
}

/* Ambient glow overlay on the visualizer */
.ambient-glow-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: background 0.4s ease, opacity 0.3s ease;
    opacity: 0.15;
}

/* Configurator badge indicators inside the preview */
.preview-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.preview-badge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Summary Card right side below visualizer */
.mini-price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-price-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-price-total {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.mini-price-total #livePrice {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.mini-price-total .ttc-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* final quote summary page */
.summary-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-title {
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-item.indent {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 2px solid var(--border);
}

.summary-item .price {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-total-row .total-price {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contact form block */
.contact-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Modal styling for success or actions */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Dynamic shooting star controls or hints */
.canvas-hint {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Animations for LED patterns */
@keyframes breathing {
    0%, 100% { opacity: calc(var(--led-intensity) * 0.3); }
    50% { opacity: var(--led-intensity); }
}

@keyframes rainbow {
    0% { stroke: #ff0000; filter: drop-shadow(0 0 4px #ff0000); }
    17% { stroke: #ffff00; filter: drop-shadow(0 0 4px #ffff00); }
    33% { stroke: #00ff00; filter: drop-shadow(0 0 4px #00ff00); }
    50% { stroke: #00ffff; filter: drop-shadow(0 0 4px #00ffff); }
    66% { stroke: #0000ff; filter: drop-shadow(0 0 4px #0000ff); }
    83% { stroke: #ff00ff; filter: drop-shadow(0 0 4px #ff00ff); }
    100% { stroke: #ff0000; filter: drop-shadow(0 0 4px #ff0000); }
}

.led-strip.effect-breath {
    animation: breathing 3s ease-in-out infinite;
}

.led-strip.effect-rainbow {
    animation: rainbow 8s linear infinite;
    opacity: var(--led-intensity);
}

/* Caliper Visualizer & Alert Styles */
.caliper-rim {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 250px 200px;
}

.caliper-body {
    fill: var(--caliper-color);
    filter: drop-shadow(0 0 6px var(--caliper-color));
    transition: fill 0.3s ease;
}

.caliper-glow {
    fill: none;
    stroke: var(--caliper-color);
    stroke-width: 4px;
    filter: drop-shadow(0 0 10px var(--caliper-color));
    opacity: 0.8;
}

.alert-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.alert-text strong {
    color: #ffffff;
}

.intervention-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

/* Mobile Price Badge in Footer (Hidden on Desktop) */
.mobile-price-badge {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
}

.mobile-price-badge .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-price-badge .val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

@media (max-width: 900px) {
    header {
        padding: 16px 20px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .badge-status {
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    main {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 16px 14px 120px 14px;
    }

    /* Un-nest wizard-container layout children on mobile for flexible ordering */
    .wizard-container {
        display: contents;
    }

    /* Step Navigation Bar on Mobile */
    .steps-nav {
        order: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 6px;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .steps-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .step-btn {
        flex: 0 0 auto;
        min-width: 105px;
        padding: 8px 6px;
        font-size: 0.75rem;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .step-btn span.num {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    /* Visualizer Section on Mobile - Placed directly below step navigation! */
    .sticky-visualizer {
        order: 2;
        position: static !important;
        height: auto;
        margin: 0;
    }

    .visualizer-card {
        height: 240px;
        border-radius: 16px;
    }

    .visualizer-tab-btn {
        padding: 10px 6px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .canvas-hint {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    /* Step Content on Mobile */
    .step-content {
        order: 3;
        gap: 20px;
    }

    h2 {
        font-size: 1.4rem;
    }

    .step-description {
        font-size: 0.88rem;
    }

    .config-group {
        gap: 12px;
    }

    .config-group-title {
        font-size: 0.85rem;
    }

    /* Form Controls Touch Improvements */
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .option-card {
        padding: 16px;
        gap: 8px;
    }

    .option-title {
        font-size: 1rem;
    }

    .option-desc {
        font-size: 0.82rem;
    }

    .option-price {
        font-size: 0.95rem;
    }

    .radio-chips {
        flex-wrap: wrap;
        gap: 8px;
    }

    .radio-chip {
        flex: 1 1 auto;
        min-width: 80px;
    }

    .radio-chip label {
        padding: 10px 12px;
        font-size: 0.82rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Color Dots touch target */
    #ledColorPalette .color-dot,
    #caliperColorPalette .color-dot {
        width: 36px;
        height: 36px;
    }

    .custom-color-picker {
        height: 44px;
        padding: 8px 14px;
    }

    .custom-color-picker input[type="color"] {
        width: 28px;
        height: 28px;
    }

    /* Prevent iOS input auto-zoom by setting font-size to 16px */
    .form-group input, 
    .form-group textarea, 
    .form-group select,
    #caliper-car-brand {
        font-size: 16px !important;
        padding: 14px;
    }

    .intervention-badge {
        font-size: 0.78rem;
        padding: 8px 12px;
        width: 100%;
        justify-content: center;
    }

    .alert-box {
        padding: 12px 14px;
        gap: 10px;
    }

    .alert-text {
        font-size: 0.8rem;
    }
}

/* Fixed Mobile Sticky Bottom Navigation Bar (Screens <= 768px) */
@media (max-width: 768px) {
    /* Hide mini price card under visualizer on mobile since it's in sticky bottom bar */
    .sticky-visualizer .mini-price-card {
        display: none;
    }

    .mobile-price-badge {
        display: flex;
    }

    .wizard-footer {
        order: 4;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 990;
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 10px 14px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
    }

    .wizard-footer .btn {
        padding: 12px 14px;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
        white-space: nowrap;
    }

    .wizard-footer .btn-secondary {
        max-width: 120px;
    }

    .modal-content {
        padding: 24px 18px;
        width: 92%;
    }

    .modal-title {
        font-size: 1.35rem;
    }

    .modal-text {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .visualizer-card {
        height: 210px;
    }

    .step-btn {
        min-width: 90px;
        font-size: 0.7rem;
    }
}
