/* Product Options Wizard */
.product-options-wizard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Indicator */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--themePrimary, #E8C547);
    border-color: var(--themePrimary, #E8C547);
    color: var(--themePrimaryDark, #000);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: var(--themePrimaryDark, #000);
    border-color: var(--themePrimaryDark, #000);
    color: white;
}

.step-label {
    font-size: 14px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--themePrimaryDark, #000);
    font-weight: 600;
}

/* Wizard Steps */
.wizard-steps {
    min-height: 500px;
}

.wizard-step {
    animation: fadeIn 0.3s ease-in-out;
}

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

.step-header {
    background: var(--themePrimary, #E8C547);
    padding: 2rem;
    /* border-radius: 8px 8px 0 0; */
    margin-bottom: 0;
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.step-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.step-number-badge {
    /* position: absolute; */
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: rgb(255 255 255);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--themePrimaryDark, #000);
}

.step-header h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.0em;
    margin: 0;
    color: var(--themePrimaryDark, #000);
}

.step-description {
    font-size: 16px;
    margin: 0;
    color: var(--themePrimaryDark, #000);
    opacity: 0.8;
}

.step-content {
    padding: 2rem;
    background: white;
    border: 0;
    /* border-radius: 0 0 8px 8px; */
    margin-bottom: 2rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.option-card {
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 2px solid #ddd;
    box-shadow: 13px 12px 0 0px rgba(0, 0, 0, 0.0);
}

.option-help-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.option-help-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.option-help-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--themePrimaryDark, #000);
}

.option-card:hover {
    border-color: var(--themePrimary, #E8C547);
    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;
    pointer-events: none;
}

.option-card input[type="radio"]:checked ~ *,
.option-card input[type="checkbox"]:checked ~ * {
    /* Styles applied when selected */
}

.option-card input[type="radio"]:checked,
.option-card input[type="checkbox"]:checked {
    & ~ * {
        border-color: var(--themePrimary, #E8C547);
    }
}

.radio-card input[type="radio"]:checked,
.checkbox-card input[type="checkbox"]:checked {
    & {
        & ~ .option-content {
            color: var(--themePrimaryDark, #000);
        }
        & ~ .option-check-indicator {
            opacity: 1;
            background: var(--themePrimary, #E8C547);
        }
    }
}

.option-card:has(input:checked) {
    border-color: var(--themePrimaryDark);
    background: var(--themePrimary, #E8C547);
    box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.1);
}

.option-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    /* border-radius: 6px; */
    overflow: hidden;
    margin-bottom: 1rem;
    outline: 5px solid #ffffff;
}

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

.option-content {
    flex: 1;
}

.option-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--themePrimaryDark, #000);
}

.option-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.option-price {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--themePrimary, #E8C547);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--themePrimaryDark, #000);
    margin-right: 0.5rem;
}

.option-werkdagen {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.option-check-indicator {
    position: absolute;
    top: 1.7rem;
    right: 1.7rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.option-check-indicator svg {
    width: 18px;
    height: 18px;
    stroke: var(--themePrimaryDark, #000);
}

/* Text/Number Inputs */
.option-text-group {
    margin-bottom: 1.5rem;
}

.option-text-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--themePrimaryDark, #000);
}

.option-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 0.75rem;
}

.option-text-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.option-text-input:focus {
    outline: none;
    border-color: var(--themePrimary, #E8C547);
    box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.1);
}

/* Select Input */
.option-select-group {
    margin-bottom: 1.5rem;
}

.option-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-select:focus {
    outline: none;
    border-color: var(--themePrimary, #E8C547);
    box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.1);
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
}

.btn-wizard {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-wizard svg {
    width: 20px;
    height: 20px;
}

.btn-prev {
    background: #f0f0f0;
    color: var(--themePrimaryDark, #000);
}

.btn-prev:hover {
    background: #e0e0e0;
    transform: translateX(-4px);
}

.btn-next {
    background: var(--themePrimary, #E8C547);
    color: var(--themePrimaryDark, #000);
    margin-left: auto;
}

.btn-next:hover {
    background: #d4b63d;
    transform: translateX(4px);
}

.btn-complete {
    background: var(--themePrimaryDark, #000);
    color: white;
    margin-left: auto;
}

.btn-complete:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dimensions Input Group */
.dimensions-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.dimension-field label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--themePrimaryDark, #000);
}

body .wizard-steps .dimension-input {
    width: 100%;
    padding: 1.5rem 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}
.dimensions-input-group .dimension-field + .dimension-field .dimension-input{
    /* border-left:0; */
    /* transform: translateX(-2px); */
}

.dimension-input::placeholder {
    color: #999;
    font-size: 16px;
}

.dimension-input:focus {
    outline: none;
    border-color: var(--themePrimaryDark, #000);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.dimension-help {
    display: block;
    margin-top: 0.75rem;
    font-size: 14px;
    color: var(--themePrimaryDark, #000);
    opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wizard-progress {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
    }

    .progress-step {
        min-width: 100px;
    }

    .step-header {
        padding: 1.5rem;
    }

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

    .step-number-badge {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .step-content {
        padding: 1rem;
    }

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

    .step-navigation {
        flex-direction: column;
        padding: 0 1rem;
    }

    .btn-wizard {
        width: 100%;
        justify-content: center;
    }

    .btn-next,
    .btn-complete {
        margin-left: 0;
    }

    .dimensions-input-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Add to cart button - hidden by default, shown when wizard is complete */
#addToCartButton {
    display: none;
}
