/* Order 3D System Frontend Styles - Inspired by makex.se design */

/* Container and Layout */
.order3d-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.order3d-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.order3d-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order3d-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Step System */
.order3d-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    margin-bottom: 30px;
}

.order3d-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 30px;
}

.step-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* File Upload Area */
.file-upload-area {
    margin-bottom: 30px;
}

.upload-zone {
    border: 3px dashed #bdc3c7;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-zone.dragover {
    border-color: #667eea;
    background: #e8f0ff;
    transform: scale(1.02);
}

.upload-icon svg {
    color: #95a5a6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.upload-zone:hover .upload-icon svg {
    color: #667eea;
}

.upload-text p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #34495e;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.max-file-size {
    margin-top: 15px !important;
    font-size: 0.9rem !important;
    color: #e74c3c !important;
    font-style: italic;
    font-weight: 500;
}

/* File Info Display */
.file-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.file-icon {
    font-size: 2rem;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.remove-file {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* File actions */
.file-actions {
    display: none;
    margin-top: 8px;
}

.file-actions.show {
    display: block;
}

.view-stl-3d {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.view-stl-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.view-stl-3d:active {
    transform: translateY(0);
}

/* Progress Bar */
.upload-progress, .progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #667eea;
}

/* Support Warning Box - Röd varningsruta */
.support-warning-box {
    margin-top: 20px;
    padding: 16px;
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    border-left: 5px solid #d32f2f;
}

.support-warning-box h4 {
    margin: 0 0 8px 0;
    color: #b71c1c;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-warning-box p {
    margin: 0;
    color: #c62828;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Behåll gamla klasser för bakåtkompatibilitet */
.support-analysis {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.support-analysis h4 {
    margin: 0 0 10px 0;
    color: #0c5460;
    font-size: 1.1rem;
    font-weight: 600;
}

.support-analysis p {
    margin: 8px 0;
    color: #0c5460;
    font-size: 0.9rem;
}

.support-required {
    color: #dc3545;
    font-weight: 600;
    padding: 2px 6px;
    background: #f8d7da;
    border-radius: 4px;
}

.support-not-required {
    color: #28a745;
    font-weight: 600;
    padding: 2px 6px;
    background: #d4edda;
    border-radius: 4px;
}

/* Orientation recommendation styling */
.orientation-recommendation {
    margin-bottom: 15px;
    padding: 12px;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.orientation-benefit {
    color: #155724;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* OrcaSlicer command styling */
.orcaslicer-command {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.orcaslicer-command code {
    display: block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    background: #e9ecef;
    padding: 4px 6px;
    border-radius: 3px;
    margin: 4px 0;
}

.orcaslicer-instructions {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid #007cba;
    margin: 6px 0;
}

.copy-rotation-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 4px;
}

.copy-rotation-btn:hover {
    background: #005a87;
}

/* File Requirements */
.file-requirements {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.file-requirements h4 {
    margin-bottom: 15px;
    color: #856404;
}

.file-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.file-requirements li {
    margin-bottom: 8px;
    color: #856404;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.option-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.option-card label {
    display: block;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.option-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.price-info {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.option-card input[type="radio"]:checked + label .price-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.option-details p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.specs {
    display: grid;
    gap: 8px;
}

.spec-item {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.spec-item strong {
    font-weight: 600;
}

/* Settings Row */
.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .settings-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.setting-group h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.options-list {
    display: grid;
    gap: 15px;
}

.option-item {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #667eea;
}

.option-item input[type="radio"] {
    display: none;
}

.option-item input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.option-item label {
    display: block;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.option-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    line-height: 1.4;
}

.option-specs {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-section h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.item-label {
    font-weight: 500;
    color: #495057;
}

.item-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
}

.price-section h4 {
    color: white;
    margin-bottom: 20px;
}

.price-breakdown {
    display: grid;
    gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.price-item.total {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.price-label {
    font-weight: 500;
}

.price-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Support details styling */
.support-details {
    font-size: 0.8rem;
    color: #666;
    margin-left: 20px;
    margin-top: 4px;
    font-style: italic;
}

/* Tax information styling */
.price-item#tax-info-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 5px;
    padding-top: 8px;
}

.price-item#price-excl-tax-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Additional Options */
.additional-options {
    margin-bottom: 30px;
}

.additional-options h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.additional-options .option-item {
    border: none;
    background: #f8f9fa;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
}

.additional-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.additional-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.additional-options textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    min-width: 250px;
}

.btn-text {
    flex: 1;
}

.btn-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 700;
}

#add-to-cart-btn {
    margin: 0 auto;
}

/* Progress Indicator */
.order3d-progress {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.progress-navigation {
    display: contents;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    transition: all 0.3s ease;
}

.progress-step.active .step-dot,
.progress-step.completed .step-dot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #7f8c8d;
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-nav-btn {
    min-width: 140px;
    padding: 10px 20px;
    white-space: nowrap;
}

.progress-nav-btn span {
    font-size: 1.2rem;
    margin: 0 4px;
}

/* Modal Styles */
.order3d-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-weight: 600;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

/* Loading Modal */
.loading-modal .modal-content {
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Status Indicators */
.status-active {
    color: #27ae60;
    font-weight: 600;
}

.status-inactive {
    color: #e74c3c;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order3d-container {
        padding: 15px;
        margin: 10px;
    }
    
    .order3d-header h2 {
        font-size: 2rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .upload-zone {
        padding: 40px 20px;
    }
    
    .modal-content {
        max-width: 95vw;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .order3d-header h2 {
        font-size: 1.8rem;
    }
    
    .step-header h3 {
        font-size: 1.4rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Accessibility */
.btn:focus,
.option-card:focus-within,
.option-item:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Price Preview Styles */
.order3d-price-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 20px;
    z-index: 10;
}

.order3d-price-preview .price-summary {
    transition: opacity 0.3s ease;
}

.order3d-price-preview .price-summary.loading {
    opacity: 0.6;
}

.order3d-price-preview h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.order3d-price-preview .total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.order3d-price-preview .price-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.order3d-price-preview .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.order3d-price-preview .price-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.order3d-price-preview .breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.order3d-price-preview .breakdown-item:last-child {
    margin-bottom: 0;
}

.order3d-price-preview #toggle-breakdown {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.order3d-price-preview #toggle-breakdown:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.order3d-price-preview .price-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.order3d-price-preview .price-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsiveness for price preview */
@media (max-width: 768px) {
    .order3d-price-preview {
        position: static;
        margin: 15px 0;
    }
    
    .order3d-price-preview .total-price {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .order3d-price-preview .price-value {
        font-size: 1.3rem;
    }
}

/* Enhanced option selection with price hints */
.option-card.with-price-hint {
    position: relative;
    overflow: visible;
}

.option-card .price-hint {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 5;
}

.option-card .price-hint.expensive {
    background: #dc3545;
}

.option-card .price-hint.moderate {
    background: #ffc107;
    color: #333;
}

/* Quote Request Form Styles */
.quote-request-section {
    width: 100%;
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border: 2px solid #e8ecff;
}

.quote-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quote-description {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.5;
}

.quote-form-fields {
    max-width: 700px;
    margin: 0 auto 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-label .required {
    color: #e74c3c;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:invalid {
    border-color: #e0e6ed;
}

.form-input:invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.order3d-gdpr-consent {
    display: block !important;
    visibility: visible !important;
    margin: 25px auto !important;
    padding: 20px !important;
    max-width: 700px !important;
    background: #fffacd !important;
    border-radius: 8px !important;
    border: 2px solid #ff0000 !important;
    opacity: 1 !important;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: block !important;
    visibility: visible !important;
    margin-top: 3px;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
    opacity: 1 !important;
}

.checkbox-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-text .required {
    color: #e74c3c;
    font-weight: 700;
}

#submit-quote-request {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

#submit-quote-request .btn-icon {
    font-size: 1.2rem;
}

/* Responsive Design for Quote Form */
@media (max-width: 768px) {
    .quote-request-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quote-header h3 {
        font-size: 1.5rem;
    }
    
    #submit-quote-request {
        width: 100%;
        min-width: auto;
    }
    
    .order3d-progress {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-steps {
        order: -1;
        width: 100%;
    }
    
    .progress-nav-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Print Styles */
@media print {
    .order3d-modal,
    .step-actions,
    .upload-zone,
    .order3d-price-preview {
        display: none !important;
    }
    
    .order3d-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Notification Modal */
.order3d-notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order3d-notification-modal.show {
    opacity: 1;
}

.order3d-notification-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px 30px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.order3d-notification-modal.show .order3d-notification-content {
    transform: scale(1);
}

.order3d-notification-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.order3d-notification-content.success .order3d-notification-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.order3d-notification-content.error .order3d-notification-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.order3d-notification-message {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 0 10px;
}

.order3d-notification-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.order3d-notification-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.order3d-notification-close:active {
    transform: translateY(0);
}

.order3d-notification-content.error .order3d-notification-close {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.order3d-notification-content.error .order3d-notification-close:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Mobilanpassning för notification */
@media (max-width: 768px) {
    .order3d-notification-content {
        width: 85%;
        padding: 30px 20px 20px;
        margin: 0 20px;
    }
    
    .order3d-notification-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .order3d-notification-message {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .order3d-notification-close {
        padding: 10px 30px;
        font-size: 14px;
    }
}
