/* ================================================
   MANARA AUTO - Configuratore Styles
   ================================================ */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Configuratore Page Layout */
.configurator-page {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--dark-800);
    overflow-x: hidden;
}

.configurator-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
}

/* Close Button */
.configurator-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--light-100);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.configurator-close:hover {
    background: rgba(255, 82, 82, 0.2);
    border-color: #ff5252;
    color: #ff5252;
    transform: rotate(90deg);
}

[data-theme="light"] .configurator-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--dark-800);
}

[data-theme="light"] .configurator-close:hover {
    background: rgba(255, 82, 82, 0.1);
    border-color: #ff5252;
    color: #ff5252;
}

.configurator-header {
    text-align: center;
    margin-bottom: 50px;
}

.configurator-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.configurator-header p {
    color: var(--light-400);
    font-size: 18px;
}

/* Configurator Grid */
.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    max-width: 100%;
}

/* Car Preview Section */
.car-preview {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: sticky;
    max-width: 100%;
    overflow: hidden;
    top: 120px;
}

.preview-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    margin-bottom: 30px;
}

.preview-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: all 0.5s ease;
}

.color-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    mix-blend-mode: color;
    opacity: 0.3;
    transition: background 0.5s ease;
}

.preview-360 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    color: var(--light-300);
    font-size: 13px;
    cursor: pointer;
}

.preview-360 i {
    color: var(--primary);
}

.car-info {
    text-align: center;
}

.car-info h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.car-info .model-type {
    color: var(--primary);
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Preview Gallery (Thumbnails) */
.preview-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.preview-thumb {
    width: 70px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.preview-thumb:hover {
    opacity: 1;
    border-color: rgba(0, 212, 255, 0.5);
}

.preview-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Light Theme - Preview Gallery */
[data-theme="light"] .preview-gallery {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .preview-thumb {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .preview-thumb:hover {
    border-color: rgba(0, 212, 255, 0.6);
}

/* Model Description Section */
.model-description {
    margin-top: 30px;
    padding: 25px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.model-desc-text {
    color: var(--light-300);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 25px 0;
    text-align: center;
}

.model-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.spec-item i {
    font-size: 20px;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.spec-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 11px;
    color: var(--light-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--light-100);
}

/* Light Theme - Model Description */
[data-theme="light"] .model-description {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .model-desc-text {
    color: #475569;
}

[data-theme="light"] .spec-item {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.15);
}

[data-theme="light"] .spec-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

[data-theme="light"] .spec-label {
    color: #64748b;
}

[data-theme="light"] .spec-value {
    color: #1e293b;
}

/* Model Advantages Section */
.model-advantages {
    margin-top: 25px;
    padding: 25px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.advantages-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-100);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advantages-title i {
    color: var(--accent-yellow);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.advantage-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: rgba(0, 212, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.08);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.advantage-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent-green));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon i {
    font-size: 18px;
    color: white;
}

.advantage-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-100);
    margin: 0 0 5px 0;
}

.advantage-content p {
    font-size: 12px;
    color: var(--light-400);
    margin: 0;
    line-height: 1.5;
}

/* Light Theme - Model Advantages */
[data-theme="light"] .model-advantages {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .advantages-title {
    color: #1e293b;
}

[data-theme="light"] .advantage-card {
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.12);
}

[data-theme="light"] .advantage-card:hover {
    background: rgba(0, 212, 255, 0.08);
}

[data-theme="light"] .advantage-content h5 {
    color: #1e293b;
}

[data-theme="light"] .advantage-content p {
    color: #64748b;
}

/* SEO Content Section */
.model-seo-content {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.seo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-100);
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-title i {
    color: var(--primary);
}

.seo-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--light-300);
    margin: 0 0 15px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.seo-text p:last-child {
    margin-bottom: 0;
}

.seo-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* Light Theme - SEO Content */
[data-theme="light"] .model-seo-content {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.04));
    border-color: rgba(0, 212, 255, 0.15);
}

[data-theme="light"] .seo-title {
    color: #1e293b;
}

[data-theme="light"] .seo-text p {
    color: #475569;
}

[data-theme="light"] .seo-text strong {
    color: #0284c7;
}

/* Configuration Options Panel */
.config-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.config-section {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.config-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.config-section-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.config-section-header h3 i {
    color: var(--primary);
}

.config-section-price {
    font-size: 14px;
    color: var(--light-400);
}

/* Change Model Button */
.change-model-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.change-model-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.change-model-btn i {
    font-size: 12px;
}

/* Selected Model Summary (collapsed state) */
.selected-model-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.selected-model-info {
    flex: 1;
}

.selected-model-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.selected-model-info p {
    font-size: 14px;
    color: var(--light-400);
    margin-bottom: 12px;
}

.selected-model-summary .model-ecobonus-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.selected-model-summary .ecobonus-tag {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.selected-model-summary .ecobonus-price {
    font-size: 13px;
    color: var(--light-300);
}

.selected-model-summary .ecobonus-price strong {
    color: #22c55e;
    font-weight: 700;
}

.selected-model-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
    margin-left: 20px;
}

/* Model options collapsed state */
.model-options.collapsed {
    display: none;
}

[data-theme="light"] .selected-model-summary {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
}

[data-theme="light"] .selected-model-info p {
    color: var(--dark-600);
}

[data-theme="light"] .selected-model-summary .ecobonus-price {
    color: var(--dark-500);
}

/* Responsive for selected model summary */
@media (max-width: 600px) {
    .selected-model-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .selected-model-price {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .selected-model-summary .model-ecobonus-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Config Section Error Highlight */
.config-section.highlight-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Config Note */
.config-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--light-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-note i {
    color: var(--primary);
}

[data-theme="light"] .config-note {
    color: var(--dark-600);
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.color-option {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 3px solid transparent;
}

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

.color-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.color-option::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--light-400);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.color-option:hover::after,
.color-option.selected::after {
    opacity: 1;
}

.color-option.premium::before {
    content: '+€300';
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 3px 8px;
    background: var(--accent-orange);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    color: white;
}

/* Standard Colors */
.color-white { background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%); }
.color-black { background: linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 100%); }
.color-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.color-red { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.color-red-metallic { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.color-grey-metallic { background: linear-gradient(135deg, #6b7280 0%, #374151 100%); }
.color-green { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }

/* Model Selection Options */
.model-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.model-option:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.model-option.selected {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.model-option-info h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--light-100);
    pointer-events: none;
}

.model-option-info {
    pointer-events: none;
}

.model-option-info p {
    font-size: 13px;
    color: var(--light-500);
}

/* Ecobonus Prices in Model Options */
.model-ecobonus-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ecobonus-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.ecobonus-price {
    font-size: 12px;
    color: var(--light-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ecobonus-price strong {
    color: var(--accent-green);
    font-weight: 700;
}

[data-theme="light"] .model-ecobonus-prices {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ecobonus-price {
    color: #64748b;
}

[data-theme="light"] .ecobonus-price strong {
    color: #15803d;
}

.model-option-price {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    pointer-events: none;
}

.model-option.selected .model-option-price {
    color: var(--accent-green);
}

/* Light Theme - Model Options */
[data-theme="light"] .model-option {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .model-option:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
}

[data-theme="light"] .model-option.selected {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

[data-theme="light"] .model-option-info h4 {
    color: #1e293b;
}

[data-theme="light"] .model-option-info p {
    color: #64748b;
}

/* Accessory Options */
.accessory-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accessory-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.accessory-option:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.accessory-option.selected {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.accessory-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accessory-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 20px;
}

.accessory-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.accessory-details p {
    font-size: 13px;
    color: var(--light-500);
}

.accessory-price {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.accessory-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-left: 15px;
    transition: all var(--transition-fast);
}

.accessory-option.selected .accessory-check {
    background: var(--primary);
    color: var(--dark-900);
}

/* Delivery Options */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-option {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.delivery-option:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.delivery-option.selected {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.delivery-option i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.delivery-option h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.delivery-option .price {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Summary Section */
.config-summary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-header h3 {
    font-size: 22px;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.summary-item .label {
    color: var(--light-400);
}

.summary-item .value {
    font-weight: 600;
}

.summary-item.included .value {
    color: var(--accent-green);
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.summary-total .label {
    font-size: 18px;
    font-weight: 600;
}

.summary-total .value {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.summary-total .vat-note {
    font-size: 12px;
    color: var(--light-500);
    font-weight: 400;
}

/* Purchase Options */
.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.purchase-option {
    padding: 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
}

.purchase-option.ecobonus {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid var(--accent-green);
}

.purchase-option.immediate {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.purchase-option.immediate:hover {
    border-color: var(--primary);
}

.purchase-option.selected {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.option-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 5px 15px;
    background: var(--accent-green);
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.option-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.option-info p {
    font-size: 13px;
    color: var(--light-400);
}

.option-price {
    text-align: right;
}

.option-price .amount {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
}

.purchase-option.ecobonus .option-price .amount {
    color: var(--accent-green);
}

.purchase-option.immediate .option-price .amount {
    color: var(--primary);
}

.option-price .note {
    font-size: 12px;
    color: var(--light-500);
}

/* Ecobonus Final Price Display */
.ecobonus-final-price {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: var(--accent-green);
}

.ecobonus-final-price strong {
    font-size: 18px;
    font-weight: 700;
}

[data-theme="light"] .ecobonus-final-price {
    background: rgba(0, 180, 100, 0.1);
}

/* Action Buttons */
.config-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.config-actions .btn {
    justify-content: center;
    padding: 18px 30px;
    font-size: 16px;
}

/* Order Form Modal */
.order-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    padding: 20px;
}

.order-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-modal-content {
    background: var(--dark-700);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform var(--transition-medium);
}

.order-modal.active .order-modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 24px;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-full);
    color: var(--light-300);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-100);
}

.modal-body {
    padding: 30px;
}

.order-summary-mini {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
}

.order-summary-mini h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.order-summary-mini .config-list {
    font-size: 13px;
    color: var(--light-400);
    margin-bottom: 15px;
}

.order-summary-mini .total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary-mini .total-row .price {
    color: var(--primary);
}

.order-summary-mini .total-row.ecobonus-row {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    margin-top: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border-top: none;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-summary-mini .total-row.ecobonus-row span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-summary-mini .total-row .price.ecobonus-price {
    color: #22c55e;
    font-size: 22px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-info {
    background: rgba(255, 187, 36, 0.1);
    border: 1px solid rgba(255, 187, 36, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 10px;
}

.payment-info h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.bank-details {
    font-size: 14px;
    color: var(--light-300);
}

.bank-details p {
    margin-bottom: 8px;
}

.bank-details strong {
    color: var(--light-100);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 13px;
    color: var(--light-400);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--primary);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full);
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--accent-green);
}

.success-message h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--light-400);
    margin-bottom: 10px;
}

.order-number {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 20px 0;
}

/* Light Theme Overrides */
[data-theme="light"] .configurator-page {
    background: var(--dark-800);
}

[data-theme="light"] .car-preview,
[data-theme="light"] .config-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .color-option {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .accessory-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .purchase-option {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .order-modal .modal-content {
    background: #ffffff;
}

[data-theme="light"] .modal-header {
    background: #ffffff;
}

[data-theme="light"] .order-form input,
[data-theme="light"] .order-form select {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-100);
}

/* Responsive */
@media (max-width: 1024px) {
    .configurator-grid {
        grid-template-columns: 1fr;
    }
    
    .car-preview {
        position: relative;
        top: 0;
        max-width: 100%;
    }
    
    .configurator-container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .configurator-page {
        padding-top: 80px;
    }
    
    .configurator-container {
        padding: 20px 16px;
    }
    
    .configurator-header {
        margin-bottom: 30px;
        padding-right: 40px;
    }
    
    .configurator-header h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .configurator-header p {
        font-size: 14px;
    }
    
    .configurator-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 15px;
        right: 16px;
    }
    
    .configurator-grid {
        gap: 20px;
    }
    
    /* Model Selection Mobile */
    .model-option {
        padding: 14px 16px;
    }
    
    .model-option-info h4 {
        font-size: 15px;
    }
    
    .model-option-info p {
        font-size: 11px;
    }
    
    .model-option-price {
        font-size: 16px;
    }
    
    .car-preview {
        padding: 25px 15px;
        max-width: 100%;
    }
    
    .preview-image-container {
        min-height: 200px;
        margin-bottom: 20px;
    }
    
    .preview-image {
        max-height: 200px;
    }
    
    .car-info h2 {
        font-size: 24px;
    }
    
    .car-info .model-type {
        font-size: 14px;
    }
    
    .preview-360 {
        padding: 8px 14px;
        font-size: 12px;
        bottom: 10px;
        right: 10px;
    }
    
    .config-section {
        padding: 20px 15px;
    }
    
    .config-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .config-section-header h3 {
        font-size: 16px;
    }
    
    .config-section-price {
        font-size: 13px;
    }
    
    /* Model Description Mobile */
    .model-description {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .model-desc-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .model-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .spec-item {
        padding: 12px;
        gap: 10px;
    }
    
    .spec-item i {
        font-size: 16px;
        width: 24px;
    }
    
    .spec-label {
        font-size: 10px;
    }
    
    .spec-value {
        font-size: 13px;
    }
    
    /* Model Advantages Mobile */
    .model-advantages {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .advantages-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .advantage-card {
        padding: 14px;
        gap: 12px;
    }
    
    .advantage-icon {
        width: 38px;
        height: 38px;
    }
    
    .advantage-icon i {
        font-size: 15px;
    }
    
    .advantage-content h5 {
        font-size: 13px;
    }
    
    .advantage-content p {
        font-size: 11px;
    }
    
    /* SEO Content Mobile */
    .model-seo-content {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .seo-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .seo-text p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    /* Color Options Mobile */
    .color-options {
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .color-option {
        width: 48px;
        height: 48px;
    }
    
    .color-option.premium::before {
        padding: 2px 5px;
        font-size: 8px;
        top: -8px;
        right: -8px;
    }
    
    .config-note {
        font-size: 12px;
        text-align: center;
    }
    
    /* Accessory Options Mobile */
    .accessory-option {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    
    .accessory-info {
        flex: 1;
        min-width: 0;
    }
    
    .accessory-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .accessory-details h4 {
        font-size: 14px;
    }
    
    .accessory-details p {
        font-size: 12px;
        display: none;
    }
    
    .accessory-price {
        font-size: 14px;
    }
    
    .accessory-check {
        width: 22px;
        height: 22px;
        margin-left: 10px;
    }
    
    /* Delivery Options Mobile */
    .delivery-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .delivery-option {
        padding: 15px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    
    .delivery-option i {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .delivery-option h4 {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .delivery-option .price {
        font-size: 14px;
    }
    
    /* Summary Section Mobile */
    .config-summary {
        padding: 20px 15px;
    }
    
    .summary-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .summary-header h3 {
        font-size: 18px;
    }
    
    .summary-item {
        font-size: 13px;
    }
    
    .summary-total {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .summary-total .label {
        font-size: 16px;
    }
    
    .summary-total .value {
        font-size: 28px;
    }
    
    /* Purchase Options Mobile */
    .purchase-option {
        padding: 20px 15px;
    }
    
    .option-badge {
        font-size: 10px;
        padding: 4px 12px;
        left: 15px;
        top: -10px;
    }
    
    .option-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .option-info h4 {
        font-size: 15px;
    }
    
    .option-info p {
        font-size: 12px;
    }
    
    .option-price {
        text-align: center;
    }
    
    .option-price .amount {
        font-size: 22px;
    }
    
    .option-price .note {
        font-size: 11px;
    }
    
    /* Action Buttons Mobile */
    .config-actions {
        margin-top: 20px;
        gap: 12px;
    }
    
    .config-actions .btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Modal Mobile */
    .order-modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .order-modal-content {
        max-height: none;
        margin: 20px 0;
    }
    
    .modal-header {
        padding: 18px 20px;
        position: sticky;
        top: 0;
        background: var(--dark-700);
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
        padding-bottom: 100px;
    }
    
    .order-summary-mini {
        padding: 15px;
    }
    
    .order-summary-mini h4 {
        font-size: 16px;
    }
    
    .order-form {
        gap: 15px;
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .payment-info {
        padding: 15px;
    }
    
    .payment-info h4 {
        font-size: 14px;
    }
    
    .bank-details {
        font-size: 12px;
    }
    
    .form-checkbox label {
        font-size: 12px;
    }
    
    /* Success Modal Mobile */
    .success-message {
        padding: 25px 15px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .success-message h2 {
        font-size: 22px;
    }
    
    .order-number {
        font-size: 16px;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .configurator-page {
        padding-top: 70px;
    }
    
    .configurator-container {
        padding: 15px 12px;
    }
    
    .configurator-header {
        margin-bottom: 25px;
    }
    
    .order-modal {
        padding: 5px;
    }
    
    .modal-body {
        padding: 15px;
        padding-bottom: 120px;
    }
    
    .order-modal-content {
        border-radius: var(--radius-md);
    }
    
    .configurator-header h1 {
        font-size: 22px;
    }
    
    .configurator-header p {
        font-size: 13px;
    }
    
    .configurator-close {
        width: 36px;
        height: 36px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }
    
    .car-preview {
        max-width: 100%;
        padding: 20px 12px;
    }
    
    .preview-image-container {
        min-height: 160px;
    }
    
    .preview-image {
        max-height: 160px;
    }
    
    .car-info h2 {
        font-size: 20px;
    }
    
    .car-info .model-type {
        font-size: 13px;
    }
    
    .preview-360 {
        display: none;
    }
    
    /* Model Description 480px */
    .model-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .spec-item {
        padding: 10px;
        gap: 8px;
    }
    
    .spec-item i {
        font-size: 14px;
        width: 20px;
    }
    
    .spec-label {
        font-size: 9px;
    }
    
    .spec-value {
        font-size: 12px;
    }
    
    /* Model Advantages 480px */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .advantage-card {
        padding: 12px;
    }
    
    .advantage-icon {
        width: 35px;
        height: 35px;
    }
    
    .advantage-icon i {
        font-size: 14px;
    }
    
    .advantage-content h5 {
        font-size: 12px;
    }
    
    .advantage-content p {
        font-size: 10px;
    }
    
    /* SEO Content 480px */
    .model-seo-content {
        padding: 18px 12px;
    }
    
    .seo-title {
        font-size: 14px;
    }
    
    .seo-text p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .color-option {
        width: 42px;
        height: 42px;
    }
    
    .accessory-option {
        padding: 12px;
    }
    
    .accessory-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .accessory-details h4 {
        font-size: 13px;
    }
    
    .accessory-price {
        font-size: 13px;
    }
    
    .accessory-check {
        width: 20px;
        height: 20px;
    }
    
    .delivery-option {
        padding: 12px;
    }
    
    .delivery-option i {
        font-size: 18px;
    }
    
    .delivery-option h4 {
        font-size: 13px;
    }
    
    .delivery-option .price {
        font-size: 13px;
    }
    
    .summary-total .value {
        font-size: 24px;
    }
    
    .purchase-option {
        padding: 18px 12px;
    }
    
    .option-info h4 {
        font-size: 14px;
    }
    
    .option-price .amount {
        font-size: 20px;
    }
    
    .config-actions .btn {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    /* Modal 480px */
    .order-modal {
        padding: 5px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .order-summary-mini {
        padding: 12px;
    }
    
    .payment-info {
        padding: 12px;
    }
    
    .bank-details p {
        word-break: break-all;
    }
    
    .success-message {
        padding: 20px 10px;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .success-message h2 {
        font-size: 18px;
    }
    
    .order-number {
        font-size: 14px;
        padding: 6px 14px;
    }
}

/* Fix per schermi molto piccoli */
@media (max-width: 360px) {
    .configurator-header h1 {
        font-size: 20px;
    }
    
    .color-option {
        width: 38px;
        height: 38px;
    }
    
    .color-options {
        gap: 10px;
    }
    
    .accessory-info {
        gap: 10px;
    }
    
    .accessory-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .option-info h4 {
        font-size: 13px;
    }
    
    .option-price .amount {
        font-size: 18px;
    }
}
