/* Configurator Styles - Blindex.nl */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #212529;
    background: #F8F9FA;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #FF6B00;
    text-decoration: none;
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #FF6B00;
}

/* Progress Bar */
.progress-bar {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: #FF6B00;
    color: white;
}

.progress-step.completed .step-number {
    background: #27AE60;
    color: white;
}

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

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

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}

/* Main Container */
.configurator-container {
    padding: 40px 0 80px;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.configurator-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Steps */
.config-step {
    display: none;
}

.config-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.step-title {
    font-size: 32px;
    color: #2C3E50;
    margin-bottom: 12px;
}

.step-description {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

.step-description a {
    color: #FF6B00;
    text-decoration: none;
}

/* Product Selection */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-option {
    background: #F8F9FA;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.product-option:hover {
    background: #fff;
    border-color: #FF6B00;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,107,0,0.15);
}

.product-option.selected {
    background: #fff;
    border-color: #27AE60;
    box-shadow: 0 8px 25px rgba(39,174,96,0.2);
}

.product-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-option:hover .product-image {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-option h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #2C3E50;
}

.product-option p {
    color: #6c757d;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

/* Dimensions */
.dimensions-input {
    max-width: 600px;
}

.dimension-field {
    margin-bottom: 30px;
}

.dimension-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2C3E50;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #FF6B00;
}

.input-group .unit {
    font-weight: 600;
    color: #6c757d;
}

.dimension-info {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
}

.dimension-visual {
    margin-top: 40px;
    padding: 40px;
    background: #F8F9FA;
    border-radius: 12px;
    text-align: center;
}

.window-preview {
    display: inline-block;
    border: 3px solid #2C3E50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    min-width: 200px;
    min-height: 250px;
}

.window-dimensions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

.dim-width {
    margin-bottom: 10px;
}

/* Type & Color */
.type-color-selection {
    display: grid;
    gap: 40px;
}

.type-selection h3,
.color-selection h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2C3E50;
}

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

.type-option {
    background: #F8F9FA;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option:hover {
    background: #fff;
    border-color: #FF6B00;
}

.type-option.selected {
    background: #fff;
    border-color: #27AE60;
    box-shadow: 0 4px 15px rgba(39,174,96,0.15);
}

.type-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #2C3E50;
}

.type-desc {
    font-size: 14px;
    color: #6c757d;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.color-option {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-option.selected {
    border-color: #27AE60;
    box-shadow: 0 0 0 3px rgba(39,174,96,0.2);
}

.selected-color-name {
    font-size: 16px;
    color: #6c757d;
}

.selected-color-name strong {
    color: #2C3E50;
}

.sample-request {
    margin-top: 30px;
    padding: 20px;
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    border-radius: 4px;
}

.sample-request a {
    color: #FF6B00;
    font-weight: 600;
    text-decoration: none;
}

/* Options */
.options-selection {
    display: grid;
    gap: 40px;
}

.option-group h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2C3E50;
}

.option-items {
    display: grid;
    gap: 15px;
}

.option-item {
    background: #F8F9FA;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-item:hover {
    background: #fff;
    border-color: #FF6B00;
}

.option-item input:checked ~ .option-content {
    color: #27AE60;
}

.option-item:has(input:checked) {
    background: #fff;
    border-color: #27AE60;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

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

.option-name {
    font-weight: 600;
    font-size: 16px;
    color: #2C3E50;
}

.option-price {
    font-weight: 600;
    color: #6c757d;
}

/* Summary */
.summary-view {
    max-width: 600px;
}

.summary-section {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.summary-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2C3E50;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-item span {
    color: #6c757d;
}

.summary-item strong {
    color: #2C3E50;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.btn-add-cart,
.btn-new-config {
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart {
    background: #27AE60;
    color: white;
}

.btn-add-cart:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39,174,96,0.3);
}

.btn-new-config {
    background: #6c757d;
    color: white;
}

.btn-new-config:hover {
    background: #5a6268;
}

/* Navigation */
.config-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-nav {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
}

.btn-next {
    background: #FF6B00;
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background: #e55e00;
    transform: translateY(-2px);
}

/* Price Summary (Sticky Sidebar) */
.price-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.price-summary h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2C3E50;
}

.price-breakdown {
    margin-bottom: 25px;
}

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

.price-item span:first-child {
    color: #6c757d;
}

.price-item span:last-child {
    font-weight: 600;
    color: #2C3E50;
}

.price-item.subtotal {
    font-weight: 600;
    font-size: 16px;
    color: #2C3E50;
}

.price-item.vat {
    color: #6c757d;
}

.price-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    font-size: 24px;
    font-weight: 700;
    color: #27AE60;
}

.delivery-info {
    margin-top: 25px;
}

.delivery-item {
    padding: 10px 0;
    font-size: 14px;
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .configurator-grid {
        grid-template-columns: 1fr;
    }

    .price-summary {
        position: relative;
        top: 0;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .progress-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .step-title {
        font-size: 24px;
    }

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

    .type-options {
        grid-template-columns: 1fr;
    }

    .color-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .configurator-main {
        padding: 20px;
    }
}
