/* Quote Page Specific Styles */

.quote-page {
    background: var(--bg-secondary, #f5f7fa);
}

/* Progress Steps */
.quote-progress {
    background: white;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.quote-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.quote-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.quote-step.active,
.quote-step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.quote-step.active .step-number {
    background: var(--primary-color, #2563eb);
    color: white;
}

.quote-step.completed .step-number {
    background: #10b981;
    color: white;
}

.quote-step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Main Layout */
.quote-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: start;
}

.quote-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Quote Sections */
.quote-section {
    animation: fadeIn 0.3s ease;
}

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

.quote-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary, #6b7280);
    margin-bottom: 2rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color, #d1d5db);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary, #f9fafb);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    color: var(--primary-color, #2563eb);
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.upload-area p {
    color: var(--text-secondary, #6b7280);
    font-size: 0.875rem;
}

.supported-formats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.format-badge {
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Upload Validation */
.upload-validation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    font-size: 0.875rem;
}

.upload-validation h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.upload-validation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.upload-validation li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    color: #10b981;
    font-weight: bold;
}

/* File List */
.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: white;
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.file-status.analyzing {
    color: #f59e0b;
}

.file-status.ready {
    color: #10b981;
}

.file-status.error {
    color: #ef4444;
}

.file-status.warning {
    color: #f59e0b;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.file-action-btn:hover {
    background: var(--bg-tertiary, #e5e5e5);
}

.file-action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 3D Viewer */
.viewer-section {
    margin-top: 2rem;
}

.viewer-section h3 {
    margin-bottom: 1rem;
}

.viewer-container {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 400px;
    background: #f0f4f8;
}

#viewerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.viewer-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem;
    border-radius: 8px;
    z-index: 10;
}

.viewer-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.viewer-btn:hover {
    background: rgba(255,255,255,0.2);
}

.viewer-btn.active {
    background: var(--primary, #6366f1);
}

.model-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
}

.model-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
}

.model-info-item {
    text-align: center;
}

.model-info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color, #2563eb);
}

.model-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
}

.loading-viewer {
    text-align: center;
    padding: 1rem;
    color: var(--primary, #6366f1);
    font-weight: 500;
}

.loading-viewer::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary, #6366f1);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.viewer-error {
    text-align: center;
    padding: 1rem;
    color: var(--error, #ef4444);
    background: #fef2f2;
    border-radius: 8px;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 1.5rem;
}

/* Options Section */
.options-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.options-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.options-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.option-card input {
    display: none;
}

.option-card:hover {
    border-color: var(--primary-color, #2563eb);
}

.option-card.selected,
.option-card:has(input:checked) {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.option-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.option-card-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.option-card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 0.25rem;
}

/* Material Selector */
.material-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.material-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.material-card input {
    display: none;
}

.material-card:hover {
    border-color: var(--primary-color, #2563eb);
}

.material-card.selected,
.material-card:has(input:checked) {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.material-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.material-price {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.material-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 10px;
    text-transform: uppercase;
}

/* Color Selector */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-option {
    position: relative;
}

.color-option input {
    display: none;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color-option input:checked + .color-swatch {
    border-color: var(--primary-color, #2563eb);
    transform: scale(1.1);
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 150px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color, #e0e0e0);
    background: var(--bg-secondary, #f9fafb);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.qty-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.qty-btn:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

.quantity-breaks {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    font-size: 0.875rem;
}

.quantity-breaks p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quantity-breaks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.quantity-breaks li {
    font-size: 0.8125rem;
}

/* Quality Options */
.quality-options {
    display: grid;
    gap: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.option-hint {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
}

/* Infill Slider */
.infill-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.infill-slider input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary, #e0e0e0);
    -webkit-appearance: none;
    appearance: none;
}

.infill-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    cursor: pointer;
}

.infill-value {
    min-width: 40px;
    font-weight: 600;
    text-align: right;
}

/* Checkbox Options */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-option input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #d1d5db);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-option input:checked + .checkmark {
    background: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
}

.checkbox-option input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.checkbox-option span {
    font-size: 0.875rem;
}

.checkbox-option small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 0.25rem;
}

/* Tolerance Cards */
.tolerance-cards {
    grid-template-columns: repeat(3, 1fr);
}

/* Post-Processing Options */
.postprocess-options {
    display: grid;
    gap: 0.5rem;
}

/* Packaging Cards */
.packaging-cards {
    grid-template-columns: repeat(3, 1fr);
}

/* Notes */
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
}

.reference-upload {
    margin-top: 1rem;
}

.reference-upload label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Review Content */
.review-content {
    background: var(--bg-secondary, #f9fafb);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.review-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-section h4 {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.review-row span:first-child {
    color: var(--text-secondary, #6b7280);
}

.review-row span:last-child {
    font-weight: 500;
}

/* DFM Feedback */
.dfm-feedback {
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    padding: 1.5rem;
}

.dfm-feedback h3 {
    margin-bottom: 1rem;
}

.dfm-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dfm-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg calc(var(--score, 85) * 3.6deg), #e5e7eb calc(var(--score, 85) * 3.6deg) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dfm-score-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.dfm-score-circle span {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 700;
}

.dfm-score-label {
    font-weight: 500;
}

.dfm-issues {
    display: grid;
    gap: 0.75rem;
}

.dfm-issue {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.dfm-issue.warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.dfm-issue.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.dfm-issue.info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.dfm-issue-icon {
    font-size: 1rem;
}

.dfm-issue-text {
    flex: 1;
}

/* Checkout Sections */
.checkout-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.checkout-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.checkout-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.contact-form,
.address-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.toggle-password-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password-btn:hover {
    opacity: 1;
}

.form-group label small {
    font-weight: 400;
    color: var(--text-secondary, #6b7280);
}

.section-note {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
}

.login-prompt {
    padding: 1rem;
    background: var(--bg-secondary, #f5f7fa);
    border-radius: 8px;
    text-align: center;
}

.login-prompt a {
    color: var(--primary-color, #2563eb);
    font-weight: 500;
}

/* Shipping Options */
.shipping-options {
    display: grid;
    gap: 0.75rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.shipping-option input {
    display: none;
}

.shipping-option:has(input:checked),
.shipping-option.selected {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.shipping-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shipping-name {
    font-weight: 500;
}

.shipping-time {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
}

.shipping-price {
    font-weight: 600;
}

/* Discount Input */
.discount-input {
    display: flex;
    gap: 0.5rem;
    max-width: 300px;
}

.discount-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Payment Options */
.payment-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option input {
    display: none;
}

.payment-option:has(input:checked),
.payment-option.selected {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.payment-icons {
    font-size: 1.25rem;
}

.card-form {
    display: grid;
    gap: 1rem;
}

/* Terms */
.terms-checkboxes {
    display: grid;
    gap: 0.75rem;
}

/* Quote Navigation */
.quote-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

/* Sidebar */
.quote-sidebar {
    position: sticky;
    top: 130px;
}

.quote-summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.summary-header h3 {
    font-size: 1rem;
    margin: 0;
}

.edit-link {
    background: none;
    border: none;
    color: var(--primary-color, #2563eb);
    cursor: pointer;
    font-size: 0.875rem;
}

.summary-files {
    margin-bottom: 1rem;
}

.summary-file {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.summary-file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    color: var(--text-secondary, #6b7280);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0;
}

.summary-breakdown,
.summary-pricing {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.summary-item span:first-child {
    color: var(--text-secondary, #6b7280);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-lead-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.summary-actions {
    display: grid;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
}

.summary-note {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    text-align: center;
    margin-top: 1rem;
}

/* Help Card */
.help-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.help-card h4 {
    margin-bottom: 0.5rem;
}

.help-card p {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1rem;
}

.help-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.help-contact a {
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    text-decoration: none;
}

.help-contact a:hover {
    color: var(--primary-color, #2563eb);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
}

.modal h2 {
    margin-bottom: 0.5rem;
}

.modal p {
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .quote-container {
        grid-template-columns: 1fr;
    }
    
    .quote-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 1rem;
        background: white;
        border-top: 1px solid var(--border-color, #e0e0e0);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    }
    
    .quote-summary-card {
        max-height: 40vh;
        overflow-y: auto;
        margin-bottom: 0;
    }
    
    .help-card {
        display: none;
    }
    
    .quote-main {
        margin-bottom: 200px;
    }
}

@media (max-width: 768px) {
    .quote-steps {
        gap: 0.75rem;
    }
    
    .step-label {
        display: none;
    }
    
    .option-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tolerance-cards,
    .packaging-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-options {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quote-main {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .material-selector {
        grid-template-columns: 1fr 1fr;
    }
}
