/* ATTICCO Configurator Styles */

.atticco-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Progress Steps */
.atticco-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #8C7F75 #f5f5f5;
}

/* Custom scrollbar for webkit browsers */
.atticco-progress::-webkit-scrollbar {
    height: 6px;
}

.atticco-progress::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.atticco-progress::-webkit-scrollbar-thumb {
    background: #8C7F75;
    border-radius: 10px;
}

.atticco-progress::-webkit-scrollbar-thumb:hover {
    background: #8C7F75;
}

.atticco-step {
    min-width: 200px;
    flex: 1;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    position: relative;
    padding: 10px;
    transition: all 0.3s ease;
}

.atticco-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 20px;
}

.atticco-step.active {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.atticco-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.atticco-step.active .step-number {
    background: #8C7F75;
    color: white;
    transform: scale(1.1);
}

.step-title {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.atticco-step.active .step-title {
    color: #333;
    font-weight: 600;
}

/* Content Layout */
.atticco-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Two columns on desktop */
    gap: 40px;
    margin-bottom: 30px;
}

/* Left Side */
.atticco-left {
    display: block; /* Show on desktop */
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    min-height: 500px;
}

.atticco-illustration {
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    padding: 100px 40px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atticco-selected-measurements {
    display: none !important; /* Hide completely */
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.atticco-selected-measurements h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #8C7F75;
    padding-bottom: 10px;
}

#measurements-display {
    margin-top: 15px;
}

.measurement-item {
    padding: 10px;
    background: #f5f5f5;
    margin: 8px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.measurement-item:hover {
    background: #e8e8e8;
}

.measurement-item.selected {
    background: #f9f9f9;
    border-color: #8C7F75;
}

/* Right Side - Steps */
.atticco-right {
    position: relative;
}

.atticco-step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.atticco-step-content.active {
    display: block;
}

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

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #8C7F75;
}

.step-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.step-body {
    padding: 20px 0;
}

.step-body label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.step-body input[type="number"],
.step-body input[type="text"],
.step-body input[type="email"],
.step-body input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.step-body input[type="number"]:focus,
.step-body input[type="text"]:focus,
.step-body input[type="email"]:focus,
.step-body input[type="tel"]:focus {
    outline: none;
    border-color: #8C7F75;
}

.step-body small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 14px;
}

/* Buttons */
.btn-next,
.btn-prev,
.btn-calculate,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-calculate,
.btn-submit {
    background: #8C7F75;
    color: white;
}

.btn-next:hover,
.btn-calculate:hover,
.btn-submit:hover {
    background: #8C7F75;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(69, 104, 220, 0.3);
}

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

.btn-prev {
    background: #e0e0e0;
    color: #333;
}

.btn-prev:hover {
    background: #d0d0d0;
}

.btn-calculate {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-top: 20px;
}

/* Option Cards */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.option-card {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.option-card:hover {
    border-color: #8C7F75;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.option-card input[type="radio"]:checked ~ .option-content,
.option-card input[type="checkbox"]:checked ~ .option-content {
    border-left: 4px solid #8C7F75;
    padding-left: 16px;
}

.option-card input[type="radio"]:checked,
.option-card input[type="checkbox"]:checked {
    & ~ * {
        color: #8C7F75;
    }
}

.option-card input:checked + .option-content {
    color: #8C7F75;
}

.option-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.option-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

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

.function-options label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.function-options label:hover {
    border-color: #8C7F75;
}

.function-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.function-options input[type="checkbox"]:checked + span {
    color: #8C7F75;
    font-weight: 600;
}

/* Leg Options */
.leg-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Contact Info */
.contact-info label {
    margin-top: 15px;
}

/* Navigation */
.atticco-navigation {
    text-align: center;
    margin-top: 30px;
}

/* Loading */
#atticco-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8C7F75;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Measurement Options */
.measurement-options {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.measurement-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.measurement-option:hover {
    border-color: #8C7F75;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.measurement-option.selected {
    background: #f9f9f9;
    border-color: #8C7F75;
}

.measurement-option h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.measurement-option .measurement-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.measurement-details span {
    display: block;
    padding: 5px 0;
}

.measurement-details strong {
    color: #333;
}

/* Measurement Tables for Variant Selection */
.variant-table-container {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.variant-table-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    border-bottom: 2px solid #8C7F75;
    padding-bottom: 10px;
}

.furniture-illustration {
    text-align: center;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.furniture-illustration img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.furniture-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.measurement-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.measurement-table thead {
    background: #8b7e74;
    color: white;
}

.measurement-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #6d6259;
}

.measurement-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.measurement-table tbody tr:hover td {
    background: #f5f5f5;
}

.measurement-table td.selectable {
    cursor: pointer;
}

.measurement-table td.selectable:hover {
    background: #f9f9f9;
    border-color: #8C7F75;
}

.measurement-table td.selected {
    background: #8C7F75 !important;
    color: white !important;
    font-weight: bold;
    border-color: #8C7F75 !important;
}

.measurement-table tbody td:first-child {
    font-weight: 600;
    background: #f9f9f9;
    text-align: left;
}

.measurement-table tbody td {
    cursor: pointer;
    transition: all 0.3s ease;
}

.measurement-table tbody td:hover {
    background-color: #f9f9f9 !important;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(69, 104, 220, 0.3);
}

.measurement-table tbody td.cell-selected {
    background: #8C7F75 !important;
    color: white !important;
    font-weight: bold;
    border: 2px solid #8C7F75 !important;
    position: relative;
}

.measurement-table tbody td.cell-selected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Selection Basket */
.selection-basket {
    display: none !important;
    display: none !important; /* Hide completely */
    max-width: 1400px;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.selection-basket h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.basket-content {
    display: grid;
    gap: 15px;
}

.basket-item {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid white;
    transition: all 0.3s ease;
}

.basket-item:hover {
    background: rgba(255,255,255,0.25);
}

.basket-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.basket-measurements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 14px;
}

.basket-measurements span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.basket-measurements strong {
    font-weight: 600;
}

.remove-basket-item {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.remove-basket-item:hover {
    background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 968px) {
    .atticco-content {
        grid-template-columns: 1fr;
    }

    .atticco-progress {
        flex-wrap: nowrap; /* Don't wrap - make it scroll */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-behavior: smooth;
        scrollbar-width: thin; /* Firefox */
        padding-bottom: 15px; /* Space for scrollbar */
    }
    
    /* Hide scrollbar but keep functionality */
    .atticco-progress::-webkit-scrollbar {
        height: 6px;
    }
    
    .atticco-progress::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .atticco-progress::-webkit-scrollbar-thumb {
        background: #8C7F75;
        border-radius: 10px;
    }
    
    .atticco-progress::-webkit-scrollbar-thumb:hover {
        background: #8C7F75;
    }

    .atticco-step {
        min-width: 120px; /* Wider on mobile for better touch */
        flex-shrink: 0; /* Don't shrink - keep all steps in one line */
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-title {
        font-size: 11px;
    }
    
    .measurement-table {
        font-size: 14px;
    }
    
    .measurement-table th,
    .measurement-table td {
        padding: 8px;
    }
    
    .basket-measurements {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .step-header h2 {
        font-size: 22px;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .leg-options {
        grid-template-columns: 1fr;
    }
    
    .measurement-table {
        display: block;
        overflow-x: auto;
        font-size: 12px;
    }
    
    .measurement-table th,
    .measurement-table td {
        padding: 6px;
        white-space: nowrap;
    }
    
    .variant-table-container {
        padding: 15px;
    }
    
    .selection-basket {
    display: none !important;
        padding: 15px;
    }
    
    .basket-measurements {
        font-size: 13px;
    }
}

/* Mini and BuildIn furniture cards */
.variant-card-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mini-info-card, .buildin-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #8C7F75;
}

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

.info-value {
    font-weight: bold;
    color: #8C7F75;
}

.btn-select-variant {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-select-variant:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-select-variant:active {
    transform: translateY(0);
}

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

.btn-select-variant.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-select-variant.selected::before {
    content: '✓ ';
    font-weight: bold;
}

/* Step 3: Variant Selection Cards */
.recommendation-box {
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.recommendation-content h3 {
    margin-top: 0;
    font-size: 20px;
}

.recommendation-content p {
    margin: 10px 0 0 0;
    line-height: 1.6;
}

#variant-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.variant-selection-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-selection-card:hover {
    border-color: #8C7F75;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.variant-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.placeholder-image {
    padding: 40px;
    text-align: center;
    color: #999;
}

.variant-info {
    padding: 20px;
    text-align: center;
}

.variant-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.btn-select-variant {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-variant:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-select-variant.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-select-variant.selected::before {
    content: '✓ ';
    font-weight: bold;
}

/* Step 4: Leg Height Selection */
#leg-height-selection h3 {
    margin-top: 0;
    color: #333;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.leg-height-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.leg-height-option {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leg-height-option:hover {
    border-color: #8C7F75;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.2);
}

.leg-height-option.selected {
    border-color: #4CAF50;
    background: #f1f8f4;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.leg-height-value {
    font-size: 32px;
    font-weight: bold;
    color: #8C7F75;
    margin-bottom: 10px;
}

.leg-height-option.selected .leg-height-value {
    color: #4CAF50;
}

.leg-height-option.selected .leg-height-value::before {
    content: '✓ ';
    font-size: 28px;
}

.leg-height-details {
    color: #666;
    font-size: 13px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    #variant-selection {
        grid-template-columns: 1fr;
    }
    
    .leg-height-options {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Spids Leg Input Container */
.spids-leg-input-container {
    background: white;
    border: 2px solid #8C7F75;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.spids-leg-input-container h4 {
    color: #8C7F75;
    font-size: 20px;
    margin-bottom: 10px;
}

.spids-leg-input-container .help-text {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.spids-leg-input-container .input-group {
    max-width: 400px;
    margin: 0 auto 20px;
}

.spids-leg-input-container .input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.spids-leg-input-container .input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.spids-leg-input-container .input-group input:focus {
    outline: none;
    border-color: #8C7F75;
    box-shadow: 0 0 0 3px rgba(140, 127, 117, 0.1);
}

.spids-leg-input-container .input-group input.valid {
    border-color: #28a745;
}

.spids-leg-input-container .input-group input.invalid {
    border-color: #dc3545;
}

.spids-leg-input-container .input-hint {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    text-align: left;
}

.btn-confirm-spids-leg {
    background: #8C7F75;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-spids-leg:hover:not(:disabled) {
    background: #6d5f56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-confirm-spids-leg:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Recommended Badge */
.variant-selection-card {
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.variant-selection-card.recommended {
    border-color: #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.variant-selection-card.recommended:hover {
    border-color: #FFA500;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4);
}

/* Step 5: Width Selection Cards */
#width-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.width-option-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.width-option-card:hover {
    border-color: #8C7F75;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.width-option-card.selected {
    border-color: #4CAF50;
    background: #f1f8f4;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.width-option-image {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.width-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.width-option-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.width-option-info h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.width-price {
    color: #8C7F75;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.btn-select-width {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-width:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.width-option-card.selected .btn-select-width {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.width-option-card.selected .btn-select-width::before {
    content: '✓ ';
}

@media (max-width: 768px) {
    #width-options {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .width-option-image {
        height: 150px;
    }
}

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

/* Frihøjde recommended badge in Step 4 */
.leg-height-option {
    position: relative;
}

.leg-height-option.recommended {
    border-color: #FFD700;
    background: #fffef5;
}

.frihojde-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
    z-index: 10;
}

.leg-height-option.recommended:hover {
    border-color: #FFA500;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Order Summary Box */
.atticco-order-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.atticco-order-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #8C7F75;
    padding-bottom: 10px;
}

.summary-empty {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #8C7F75;
}

.summary-icon {
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.summary-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-details strong {
    color: #555;
    font-size: 13px;
}

.summary-details span {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.summary-image {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.summary-total {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
}

.summary-total strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.summary-total #total-price {
    font-size: 22px;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .atticco-order-summary {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

/* Step 6: Module Function Selection */
.module-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.module-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #8C7F75;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.2);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.module-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.module-size {
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.module-function-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-function-select:hover {
    border-color: #8C7F75;
}

.module-function-select:focus {
    outline: none;
    border-color: #8C7F75;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.module-price {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #8C7F75;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.function-price-summary {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.price-row.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    color: #8C7F75;
}

@media (max-width: 768px) {
    .module-selection-container {
        grid-template-columns: 1fr;
    }
}

/* Step 7: Leg Type Selection */
.leg-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.leg-type-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.leg-type-card:hover {
    border-color: #8C7F75;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.leg-type-card.selected {
    border-color: #4CAF50;
    background: #f1f8f4;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.leg-type-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.leg-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leg-type-image.placeholder {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.leg-type-image.placeholder span {
    color: #999;
    font-style: italic;
}

.leg-type-info {
    padding: 20px;
}

.leg-type-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.leg-type-info p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.leg-type-price {
    font-size: 18px;
    font-weight: 700;
    color: #8C7F75;
    margin: 15px 0;
}

.btn-select-leg {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-leg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.leg-type-card.selected .btn-select-leg {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.leg-type-card.selected .btn-select-leg::before {
    content: '✓ ';
}

.leg-price-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.leg-height-info {
    font-size: 16px;
}

.leg-height-info small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 13px;
}

@media (max-width: 768px) {
    .leg-type-selection {
        grid-template-columns: 1fr;
    }
}

/* Step 9: Full-width Confirmation (was Step 8) */
.atticco-step-fullwidth {
    width: 100%;
}

.atticco-right.fullwidth {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important; /* Span all columns */
}

/* Override parent grid when fullwidth */
.atticco-content:has(.atticco-right.fullwidth) {
    display: block !important; /* Remove grid */
}

.confirmation-summary {
    max-width: 100% !important; /* Full width */
    width: 100% !important;
    margin: 0 auto;
    padding: 0 40px; /* Add padding instead of limiting width */
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: none !important; /* Remove any max-width */
}

.confirmation-content > h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.confirmation-section {
    margin-bottom: 30px; /* Reduced from 35px */
    padding-bottom: 25px; /* Reduced from 35px */
    border-bottom: 2px solid #f0f0f0;
}

.confirmation-section:last-of-type {
    border-bottom: none;
}

.confirmation-section h4 {
    font-size: 20px;
    color: #8C7F75;
    margin-bottom: 15px; /* Reduced from 20px */
}

.confirmation-items {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; /* auto-fit instead of auto-fill, smaller min */
    gap: 12px !important;
    width: 100% !important;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px; /* Reduced padding */
    background: #f8f9fa;
    border-radius: 8px;
}

.confirmation-item strong {
    color: #555;
    font-weight: 600;
}

.confirmation-item span {
    color: #333;
    font-weight: 500;
}

/* Key Numbers Section - Special highlighting */
.key-numbers-section {
    background: #fff8f0;
    border: 2px solid #8C7F75;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.key-numbers-section h4 {
    color: #8C7F75;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.key-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.key-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.key-number-item strong {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

.key-number-value {
    color: #c93a3a;
    font-size: 24px;
    font-weight: 700;
}

.confirmation-image {
    text-align: center;
    margin: 40px 0;
}

.confirmation-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0;
}

.confirmation-total {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #8C7F75;
}

.price-breakdown {
    max-width: 500px;
    margin: 0 auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.price-row.total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    font-size: 24px;
    color: #8C7F75;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-step9-tilbage {
    padding: 14px 30px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-step9-tilbage:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: translateY(-2px);
}

.btn-confirm-order {
    padding: 18px 60px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.btn-confirm-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.btn-forlad {
    padding: 14px 30px;
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.btn-forlad .forlad-main {
    font-size: 16px;
    font-weight: 700;
}

.btn-forlad .forlad-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.btn-forlad:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .confirmation-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-step9-tilbage,
    .btn-confirm-order,
    .btn-forlad {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .confirmation-content {
        padding: 25px;
    }
    
    .confirmation-items {
        grid-template-columns: 1fr;
    }
    
    .btn-confirm-order {
        width: 100%;
        padding: 16px 40px;
    }
}

/* Step 8: Add-ons Selection */
.addon-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.addon-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.addon-card:hover {
    border-color: #8C7F75;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.addon-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.addon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.addon-info {
    padding: 20px;
}

.addon-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.addon-info p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.addon-price {
    font-size: 18px;
    font-weight: 700;
    color: #8C7F75;
    margin: 15px 0;
}

.addon-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.addon-quantity-selector label {
    font-weight: 600;
    color: #555;
}

.addon-quantity {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.addon-quantity:hover {
    border-color: #8C7F75;
}

.addon-quantity:focus {
    outline: none;
    border-color: #8C7F75;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.addon-total-price {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
    margin-left: auto;
}

.addon-price-summary {
    margin-top: 30px;
}

.addon-summary-box {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.addon-summary-box .price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.addon-summary-box .price-row.total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    font-size: 20px;
    color: #8C7F75;
}

.no-addons {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .addon-selection-container {
        grid-template-columns: 1fr;
    }
    
    .addon-quantity-selector {
        flex-wrap: wrap;
    }
}

/* Guide Button */
.btn-guide {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-guide:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step-header h2 {
    min-width: 200px;
    flex: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .step-header {
        flex-wrap: wrap;
    }
    
    .btn-guide {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Mobile Sidebar Toggle Button */
.sidebar-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 20px 12px; /* More vertical padding */
    cursor: pointer;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1;
}

.sidebar-toggle:hover {
    padding-left: 15px;
    box-shadow: 3px 0 15px rgba(0,0,0,0.3);
}

.toggle-icon {
    font-size: 22px;
    margin: 0; /* Remove all margins */
}

.toggle-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0; /* Remove all margins */
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Close Button */
.sidebar-close {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Mobile Responsive (tablets and phones) */
@media (max-width: 768px) {
    /* Show toggle button */
    .sidebar-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Show close button in sidebar */
    .sidebar-close {
        display: block;
    }
    
    /* Make content full width */
    .atticco-content {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Hide sidebar by default, make it slide-in */
    .atticco-left {
        display: block; /* Show on mobile */
        position: fixed;
        top: 0;
        left: -100%;
        width: 95%; /* Increased from 85% to 95% */
        max-width: none; /* Remove max-width limit on mobile */
        height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        background: #f9f9f9;
        box-shadow: 2px 0 20px rgba(0,0,0,0.3);
        transition: left 0.3s ease;
        padding: 60px 30px 30px 30px; /* Extra top padding for close button */
    }
    
    /* Sidebar open state */
    .atticco-left.open {
        left: 0;
    }
    
    /* Right side takes full width */
    .atticco-right {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Adjust order summary for mobile */
    .atticco-order-summary {
        position: static;
        margin: 0;
    }
    
    /* Hide toggle when sidebar is open */
    .sidebar-toggle.hidden {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Step 9: Confirmation page mobile fixes */
    .atticco-step-fullwidth {
        width: 100% !important;
        padding: 20px 15px !important;
    }
    
    .confirmation-summary {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .confirmation-content {
        padding: 25px 15px !important;
    }
    
    /* Step 8: Add-ons mobile */
    .addon-selection-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .addon-card {
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .atticco-left {
        width: 95%; /* Same as larger mobile */
        max-width: none;
    }
    
    .toggle-text {
        font-size: 11px;
    }
}

/* Max Clearance Info for MINI and Buildin */
.max-clearance-info {
    background: #f0f8ff;
    border-left: 3px solid #8C7F75;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.max-clearance-info strong {
    color: #8C7F75;
    font-size: 14px;
}

.max-clearance-info small {
    color: #666;
    font-size: 12px;
}

/* Module Functions for MINI and Buildin */
.module-functions-mini,
.module-functions-buildin {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-module-function {
    min-width: 200px;
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-module-function:hover {
    border-color: #8C7F75;
    background: #f9f9f9;
}

.btn-module-function.selected {
    border-color: #8C7F75;
    background: #8C7F75;
    color: white;
}

/* Hide function price summary for MINI and Buildin (they show prices on buttons) */
.atticco-step-content[data-step="6"] .function-price-summary {
    display: none !important;
}

/* Custom Width Input for MINI and Buildin */
.custom-width-input-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.custom-width-input-container h3 {
    margin-bottom: 10px;
    color: #333;
}

.width-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    max-width: 100%;
}

.width-input {
    width: 100%;
    max-width: 250px;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.width-input:focus {
    border-color: #8C7F75;
    outline: none;
}

.width-unit {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

.btn-calculate {
    padding: 15px 30px;
    background: linear-gradient(135deg, #8C7F75 0%, #6d6359 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-calculate:hover {
    transform: translateY(-2px);
}

.width-recommendations {
    margin-top: 30px;
}

.width-solution {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #8C7F75;
}

.width-solution h4 {
    margin-bottom: 15px;
    color: #8C7F75;
}

.solution-details {
    margin: 20px 0;
}

.solution-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.solution-row.price-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #8C7F75;
    font-size: 18px;
}

.solution-row .label {
    color: #666;
}

.solution-row .value {
    color: #333;
}

.btn-select-solution {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #8C7F75 0%, #6d6359 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select-solution:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 127, 117, 0.3);
}

.btn-select-solution:disabled {
    background: #4CAF50;
    cursor: not-allowed;
    transform: none;
}

.no-solution {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Custom Solution Form */
.custom-solution-container {
    max-width: 100%;
    padding: 20px 0;
}

.custom-solution-message {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #8C7F75;
    border-radius: 4px;
}

.custom-solution-message h3 {
    margin: 0 0 15px 0;
    color: #8C7F75;
}

.custom-solution-message p {
    margin: 10px 0;
    line-height: 1.6;
}

.custom-solution-form .form-row {
    margin-bottom: 20px;
}

.custom-solution-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.custom-solution-form input[type="text"],
.custom-solution-form input[type="email"],
.custom-solution-form select,
.custom-solution-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.custom-solution-form input[readonly] {
    background: #f5f5f5;
}

.custom-solution-form textarea {
    resize: vertical;
    font-family: inherit;
}

.btn-submit-custom {
    width: 100%;
    padding: 15px;
    background: #8C7F75;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-custom:hover {
    background: #6d6359;
}

.btn-submit-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cart choice popup */
#atticco-cart-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}
#atticco-cart-popup-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
}
#atticco-cart-popup-box {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: lightboxFadeIn 0.2s ease;
}
#atticco-cart-popup-box h3 { font-size: 24px; margin: 0 0 10px 0; }
#atticco-cart-popup-box p  { color: #666; margin: 0 0 30px 0; }
.popup-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.popup-btn { padding: 14px 24px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; text-decoration: none; border: none; transition: all 0.2s; }
.popup-btn-primary { background: #8C7F75; color: white; }
.popup-btn-primary:hover { background: #6d6359; color: white; }
.popup-btn-secondary { background: white; color: #8C7F75; border: 2px solid #8C7F75; }
.popup-btn-secondary:hover { background: #8C7F75; color: white; }

/* Assembly notice - shown below image in sidebar */
.assembly-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #1565C0;
}

.assembly-notice .notice-icon {
    font-size: 18px;
    margin-right: 8px;
}

.assembly-notice strong {
    display: inline;
    color: #0D47A1;
}

/* Step help boxes */
.step-help {
    background: linear-gradient(135deg, #8C7F75 0%, #8C7F75 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-help-text {
    flex: 1;
}

.step-help-text h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: white;
}

.step-help-text p {
    margin: 0;
    line-height: 1.6;
    color: white;
}

.step-help-image {
    flex-shrink: 0;
    width: 180px;
}

.step-help-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Step help without image - full width */
.step-help-no-image {
    display: block;
}

.step-help-no-image .step-help-text {
    width: 100%;
}

.step-help ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: white;
}

.step-help ul li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Lightbox for help images */
#atticco-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#atticco-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}

#atticco-lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: lightboxFadeIn 0.2s ease;
}

#atticco-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 100000;
    line-height: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#atticco-lightbox-close:hover {
    background: #eee;
}

/* Customer Information Form */
.delivery-info-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.delivery-info-form h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-field.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

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

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #8C7F75;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: #8C7F75;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #6d635d;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .delivery-info-form {
        padding: 20px;
    }
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label span {
    line-height: 1.5;
}

/* Mobile: Stack help text and image vertically */
@media (max-width: 768px) {
    .step-help {
        flex-direction: column;
        text-align: center;
    }
    
    .step-help-image {
        width: 100%;
        max-width: 250px;
        order: 2; /* Image comes after text */
    }
    
    .step-help-text {
        order: 1; /* Text comes first */
    }
}

/* Fixed function display for 43cm modules */
.module-fixed-function {
    background: #f5f5f5;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

/* Tooltip for image display */
.tooltip-icon {
    display: inline-block;
    cursor: help;
    font-size: 16px;
    margin-left: 5px;
    position: relative;
}

.tooltip-icon:hover::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 10px;
    width: 400px;
    height: 300px;
    background-image: var(--tooltip-image);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    background-color: white;
    padding: 10px;
}

/* Adjust tooltip position for mobile */
@media (max-width: 768px) {
    .tooltip-icon:hover::after {
        width: 280px;
        height: 210px;
        left: 0;
        transform: none;
    }
}

/* Calculate button success state */
.btn-calculate-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    color: white !important;
    cursor: default !important;
    font-weight: 600 !important;
    padding: 15px 25px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4) !important;
}

.btn-calculate-success:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4) !important;
}

/* Pulsing animation for next button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
        transform: scale(1);
    }
}

.btn-next-pulse {
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.btn-next-pulse:hover {
    animation: none;
    transform: translateY(-2px) !important;
}

/* Green calculate button */
.btn-calculate-green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    color: white !important;
}

.btn-calculate-green:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%) !important;
    transform: translateY(-2px);
}

/* Furniture name display at top of Step 9 */
.furniture-name-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.furniture-name-display h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

.furniture-name-display .furniture-functions {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .furniture-name-display h2 {
        font-size: 22px;
    }
    
    .furniture-name-display .furniture-functions {
        font-size: 16px;
    }
}

/* Email summary section on Step 9 */
.email-summary-section {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.email-summary-section h3 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 20px;
}

.email-summary-section p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-send-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-send-summary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.email-status {
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 6px;
    display: none;
}

.email-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .email-summary-section {
        padding: 20px;
    }
    
    #summary-email {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Angle Validation Error */
.angle-validation-error {
    background: white;
    border: 3px solid #dc3545;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.angle-validation-error .error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.angle-validation-error h3 {
    color: #dc3545;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.angle-validation-error p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.angle-validation-error .error-actions {
    margin-top: 20px;
}

.angle-validation-error .btn-back-to-step1 {
    background: #8C7F75;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.angle-validation-error .btn-back-to-step1:hover {
    background: #6d5f56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

