.grand-stolarija-configurator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.configurator-step {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.configurator-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Product, Profile, and Shape Options */
.product-options,
.profile-options,
.shape-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-option,
.profile-option,
.shape-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-option:hover,
.profile-option:hover,
.shape-option:hover {
    border-color: #f36521;
    transform: translateY(-2px);
}

.product-option.selected,
.profile-option.selected,
.shape-option.selected {
    border-color: #f36521;
    background-color: #f8f9fa;
}

.product-option img,
.profile-option img,
.shape-option img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.no-image {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #6c757d;
    font-size: 14px;
}

.no-products {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-size: 16px;
}

.product-option span,
.profile-option span,
.shape-option span {
    display: block;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
}

.profile-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* Loading and Error States */
.loading,
.error,
.no-profiles,
.no-shapes {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.loading {
    border: 2px dashed #dee2e6;
    animation: pulse 1.5s infinite;
}

.error {
    border: 2px solid #dc3545;
    color: #dc3545;
}

.no-profiles,
.no-shapes {
    border: 2px dashed #dee2e6;
}

.debug-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #6c757d;
    text-align: left;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Progress Bar Styling */
.configurator-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.progress-track {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-step-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.progress-step {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-label {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.progress-step-container:has(.progress-step.active) .step-label {
    color: var(--theme-color-bg_color);
    font-weight: 600;
}

.progress-step-container:has(.progress-step.completed) .step-label {
    color: #f36521;
}

.progress-step.active {
    border-color: var(--theme-color-bg_color);
    color: var(--theme-color-bg_color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.progress-step.completed {
    border-color: #f36521;
    background-color: #f36521;
    color: #fff;
}

/* Progress bar connecting line styling */
.progress-track {
    display: none; /* Hide the original track */
}

/* Connecting lines between steps */
.progress-step-container:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 58px; /* Start from the right edge of the circle */
    /*width: calc(100% - 50px);*/ /* Extend to the left edge of the next circle */
    width: 192px;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 0;
}

/* Green connecting line for completed steps */
.progress-step-container:has(.progress-step.completed)::after {
    background-color: #f36521;
}

/* Fix for the line between completed steps */
.progress-step-container:has(.progress-step.completed) + .progress-step-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 50px; /* Connect to the left edge of the circle */
    height: 3px;
    background-color: #f36521;
    z-index: 0;
}

/* Add checkmark to completed steps */
.progress-step.completed::before {
    content: '✓';
    font-size: 22px;
    font-weight: bold;
}

/* Two-column layout for configurator */
.configurator-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    gap: 20px;
}

.configurator-column {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
}

/* Section styling */
#configurationForm .section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #333;
    text-transform: uppercase;
    /*border-bottom: 2px solid #f36521;*/
    padding-bottom: 8px;
}

.section-group {
    margin-bottom: 25px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
}

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group.half {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px 15px;
}

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

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-container input[type="radio"] {
    margin-right: 8px;
}

.radio-label {
    font-weight: 500;
}

/* Textarea styling */
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    max-width: -webkit-fill-available;
}

/* Preview image container */
.preview-image-container {
    height: 100%;
}

.preview-image {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 5px;
    height: calc(100% - 60px);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.preview-image:empty:before {
    content: 'Product preview will appear here';
}

/* Submit button styling */
.submit-enquiry {
    background-color: #f36521;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.submit-enquiry:hover {
    background-color: #218838;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    max-width: -webkit-fill-available;
}

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

/* Navigation Buttons */
.configurator-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.prev-step,
.next-step,
.submit-enquiry {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.prev-step:hover, 
.next-step:hover, 
.submit-enquiry:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

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

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

/* Shape elements input styling */
.shape-elements-input {
    margin-top: 0px;
    padding: 0px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.shape-elements-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0px;
    color: #333;
}

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

.elements-input-group input[type="number"] {
    width: 70px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
}

.elements-input-group .description {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.shape-option.selected + .shape-elements-input {
    display: block;
}

/* Selected Shape Preview Styling */
.selected-shape-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

#selectedShapeImage {
    text-align: center;
    margin-bottom: 15px;
}

#selectedShapeImage img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

#selectedShapeDetails {
    text-align: center;
}

#selectedShapeDetails .shape-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

#selectedShapeDetails .elements-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.no-shape-selected {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-options,
    .profile-options,
    .shape-options {
        grid-template-columns: 1fr;
    }

    .configurator-step {
        padding: 15px;
    }

    .product-option img,
    .profile-option img,
    .shape-option img,
    .no-image {
        height: 120px;
    }

    .no-products {
        padding: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .configurator-columns {
        flex-direction: column;
    }
    
    .configurator-column {
        width: 100%;
    }
    
    .preview-image {
        min-height: 200px;
        margin-bottom: 20px;
    }
}
