/* Main Container */
.tdpq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tdpq-container h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #1a2b3c;
    margin-bottom: 1rem;
}

.tdpq-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Upload Container */
.tdpq-upload-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Two Column Layout */
.tdpq-configurator {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    min-height: 600px;
}

/* Left Sidebar */
.tdpq-sidebar {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 1.5rem;
}

.tdpq-model-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tdpq-model-preview {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.tdpq-model-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.tdpq-model-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.tdpq-model-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tdpq-dimension {
    text-align: center;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.tdpq-dimension span {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.tdpq-dimension strong {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-top: 4px;
}

#tdpq-volume {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    padding: 0 1rem;
}

/* Main Content */
.tdpq-main-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
}

.tdpq-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tdpq-main-title {
    font-size: 1.5rem;
    color: #1a2b3c;
    margin: 0;
}
/* Main Container */
.tdpq-container {
    /*max-width: 800px;*/
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tdpq-container h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #1a2b3c;
    margin-bottom: 1rem;
}

.tdpq-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Upload Container */
.tdpq-upload-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* File Unit Selector */
.tdpq-file-unit {
    margin-bottom: 1.5rem;
}

.tdpq-select {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

/* Upload Box */
.tdpq-upload-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f9f9f9;
}

.tdpq-dropzone {
    margin-bottom: 1.5rem;
}

.tdpq-file-input {
    display: none;
}

.tdpq-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tdpq-upload-button:hover {
    background: #0052a3;
}

.tdpq-supported-formats {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Security Note */
.tdpq-security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.tdpq-security-note svg {
    color: #666;
}

/* Results Section */
.tdpq-results {
    margin-top: 2rem;
}

.tdpq-model-info {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.tdpq-model-info h2 {
    color: #1a2b3c;
    margin-bottom: 1rem;
}

/* Options Form */
.tdpq-options-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tdpq-options-form h2 {
    color: #1a2b3c;
    margin-bottom: 1.5rem;
}

.tdpq-option-group {
    margin-bottom: 1.5rem;
}

.tdpq-option-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Submit Button */
.tdpq-submit {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.tdpq-submit:hover {
    background: #0052a3;
}

/* Quote Result */
.tdpq-quote-result {
    margin-top: 2rem;
    background: #f0f7ff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.tdpq-quote-result h2 {
    color: #1a2b3c;
    margin-bottom: 1rem;
}

.tdpq-price {
    font-size: 2rem;
    color: #0066cc;
    font-weight: bold;
}

/* Error Message */
.tdpq-error {
    background: #fff0f0;
    color: #cc0000;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
} 


/* Search Bar */
.tdpq-search {
    position: relative;
    width: 300px;
}

.tdpq-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.tdpq-search svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Filter Buttons */
.tdpq-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tdpq-filter-btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tdpq-filter-btn:hover {
    background: #f5f5f5;
}

.tdpq-filter-btn svg {
    width: 16px;
    height: 16px;
}

/* Material Cards */
.tdpq-materials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tdpq-material-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.tdpq-material-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tdpq-material-badge {
    background: #e8f7f3;
    color: #00a67e;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tdpq-material-title {
    font-size: 1.25rem;
    color: #1a2b3c;
    margin: 0 0 0.5rem 0;
}

.tdpq-material-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tdpq-material-properties {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tdpq-property {
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #333;
}

.tdpq-material-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tdpq-price-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a2b3c;
}

.tdpq-shipping {
    color: #666;
    font-size: 0.9rem;
}

.tdpq-select-material {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.tdpq-select-material:hover {
    background: #0052a3;
}

/* Steps Navigation */
.tdpq-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tdpq-step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
}

.tdpq-step.active {
    background: #f0f7ff;
    color: #0066cc;
    font-weight: 500;
}

.tdpq-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.tdpq-step.active .tdpq-step-number {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* Hide Upload Section */
.tdpq-upload-section {
    display: block;
}

.tdpq-upload-section.hidden {
    display: none;
}
h2.tdpq-main-title {
    font-size: 28px;
    font-weight: 700;
}

.tdpq-step.active {
    background: #fff1f1;
    color: #e8463a;
}

.tdpq-sidebar {
    background: #fff;
}

.tdpq-step.active .tdpq-step-number {
    background: var( --e-global-color-accent );
    border-color: var( --e-global-color-accent );
}

.tdpq-materials {
    grid-template-columns: auto;
}

.tdpq-select-material {
    background: var(--e-global-color-accent);
}

.tdpq-select-material:hover {
    background: #111;
}
.tdpq-model-preview {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tdpq-configurator {
        grid-template-columns: 1fr;
    }
    
    .tdpq-sidebar {
        order: 2;
    }
    
    .tdpq-main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .tdpq-container {
        padding: 1rem;
    }

    .tdpq-main-header {
        flex-direction: column;
        gap: 1rem;
    }

    .tdpq-search {
        width: 100%;
    }

    .tdpq-filters {
        flex-wrap: wrap;
    }
    .tdpq-material-properties {
    flex-direction: column;
}
}

#tdpq-3d-viewer-mini {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#tdpq-3d-viewer-mini canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Color Preview */
.tdpq-color-preview {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

/* Price Breakdown */
.tdpq-price-breakdown {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tdpq-price-breakdown div {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tdpq-price-breakdown .tdpq-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a2b3c;
}

/* Material/Finish Card Selected State */
.tdpq-material-card.selected {
    border: 2px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.tdpq-material-card.selected .tdpq-select-material {
    background: #004c99;
}

/* Summary Page */
.tdpq-summary-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tdpq-summary-selections {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 1.5rem;
}

.tdpq-summary-selections h3 {
    margin: 0 0 1.5rem 0;
    color: #1a2b3c;
    font-size: 1.25rem;
}

.tdpq-selection-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tdpq-selection-label {
    color: #666;
    width: 100px;
    flex-shrink: 0;
}

.tdpq-selection-value {
    color: #1a2b3c;
    font-weight: 500;
}

.tdpq-color-chip {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin: 0 0.5rem;
    border: 1px solid #ddd;
}

/* Quote Form */
.tdpq-quote-form {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tdpq-quantity-selector {
    margin-bottom: 1.5rem;
}

.tdpq-quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a2b3c;
    font-weight: 500;
}

.tdpq-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tdpq-quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tdpq-quantity-btn:hover {
    background: #f5f5f5;
}

#quantity {
    width: 80px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.tdpq-form-group {
    margin-bottom: 1.5rem;
}

.tdpq-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a2b3c;
    font-weight: 500;
}

.tdpq-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.tdpq-submit-quote {
    background: #0066cc;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.tdpq-submit-quote:hover {
    background: #0052a3;
}

/* Success Message */
.tdpq-success-message {
    text-align: center;
    padding: 3rem;
    background: #f8f9fc;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
}

.tdpq-success-message h2 {
    color: #00a67e;
    margin-bottom: 1rem;
}

.tdpq-success-message p {
    color: #666;
    margin-bottom: 0.5rem;
}

button.tdpq-quantity-btn {
    color: #333 !important;
    border-color: #e1e1e1 !important;
    line-height: 0px;
}

.tdpq-price-breakdown {
    background: #f7f7f7;
}

.tdpq-form-group {
    margin-top: 20px;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border-color: #dddddd !important;
}

button.tdpq-submit-quote {
    background: #e8463a;
    color: #fff;
    border: 0px;
}

/* Responsive Design for Summary Page */
@media (max-width: 1024px) {
    .tdpq-summary-container {
        grid-template-columns: 1fr;
    }
} 