/* Base styles */
.door-configurator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    padding: 2rem 1rem;
}

.door-configurator-container {
    max-width: 48rem;
    margin: 0 auto;
}

.door-configurator-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

/* Content Panel */
.content-panel {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Door Options Grid */
.door-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .door-configurator {
        padding: 1rem 0.5rem;
    }

    .door-options-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        margin: -0.5rem -1rem;
        padding: 0.5rem 1rem;
    }

    .door-options-grid::-webkit-scrollbar {
        display: none;
    }

    .door-options-grid {
        scrollbar-width: none;
    }

    .door-option {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}

.door-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Door Option */
.door-option {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    display: flex;
    flex-direction: column;
}

.door-option:hover {
    border-color: #3b82f6;
}

.door-option.selected {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Door Option Images */
.door-option-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    background-color: #f8fafc;
    border-radius: 0.375rem;
    padding: 0.5rem;
    overflow: hidden;
}

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

.door-option-image svg {
    height: 60px;
    width: 200px;
}

/* Door Option Label */
.door-option-label {
    text-align: center;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    margin-top: auto;
}

/* Form Elements */
.door-form-group {
    margin-bottom: 1.5rem;
}

.door-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.door-form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.door-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Navigation */
.navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}

.door-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease-in-out;
}

.door-nav-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.door-nav-primary:hover {
    background-color: #2563eb;
}

.door-nav-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.door-nav-secondary:hover {
    background-color: #d1d5db;
}

.door-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Step Indicator */
.step-indicator {
    width: 100%;
    padding: 1rem 0;
}

.step-indicator-dots {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

.step-dot.active {
    background-color: #3b82f6;
    color: #ffffff;
}

.step-dot.completed {
    background-color: #22c55e;
    color: #ffffff;
}

.step-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-align: center;
    color: #6b7280;
}

.progress-bar {
    margin-top: 0.5rem;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 9999px;
    transition: width 300ms ease-in-out;
}

/* Responsive Design */
@media (max-width: 640px) {
    .door-configurator {
        padding: 0.75rem;
    }

    .door-configurator-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-panel {
        padding: 1rem;
        margin-top: 1rem;
    }

    .door-section-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .door-option-image {
        height: 160px;
    }

    .door-option-label {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.w-full {
    width: 100%;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-red-600 {
    color: #dc2626;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}