* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #f5f5f5; padding: 20px; } .container { max-width: 900px; margin: 0 auto; background-color: white; border: 2px solid #333; border-radius: 8px; overflow: hidden; } .header { background-color: #333; color: white; padding: 20px; text-align: center; position: relative; } .user-info-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px; background-color: #f5f5f5; border-bottom: 1px solid #ddd; font-size: 14px; } .logout-btn { background: none; border: none; cursor: pointer; font-size: 24px; padding: 5px 10px; transition: transform 0.2s; } .logout-btn:hover { transform: scale(1.1); } .question-container { padding: 30px; text-align: center; } .question-title { font-size: 24px; font-weight: bold; margin-bottom: 10px; color: #333; } .question-subtitle { font-size: 16px; color: #666; margin-bottom: 30px; } .buttons-wrapper { max-height: 500px; overflow-y: auto; padding: 20px; border-top: 1px solid #ddd; } .buttons-container { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; } .answer-button { width: 180px; padding: 15px; background-color: white; border: 2px solid #333; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-align: center; } .answer-button:hover { background-color: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .answer-button:active { transform: translateY(0); } .answer-image { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; background-color: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #999; } .answer-caption { font-size: 14px; font-weight: bold; color: #333; word-wrap: break-word; } .prod_code { display: block; font-size: 11px; font-weight: normal; color: #666; margin-top: 4px; font-style: italic; } /* Product Configuration Form */ .product-config-form { margin-top: 20px; padding: 20px; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; text-align: left; } .product-config-form h3 { margin-bottom: 15px; color: #333; font-size: 18px; } .config-field { margin-bottom: 15px; } .config-field label { display: block; margin-bottom: 5px; color: #333; font-weight: bold; font-size: 14px; } .config-select { width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; background-color: white; cursor: pointer; } .config-select:focus { outline: none; border-color: #333; } .config-select:disabled { background-color: #f0f0f0; color: #666; cursor: not-allowed; opacity: 0.7; } .config-input { width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; background-color: white; box-sizing: border-box; } .config-input:focus { outline: none; border-color: #333; } .config-input::placeholder { color: #999; } .hinge-options { display: flex; flex-direction: column; gap: 8px; } .radio-label { display: flex; align-items: center; cursor: pointer; font-weight: normal; } .radio-label input[type="radio"] { margin-right: 8px; cursor: pointer; } .radio-label span { font-size: 14px; color: #333; } .result-container { padding: 40px; text-align: center; } .result-title { font-size: 28px; font-weight: bold; color: #333; margin-bottom: 30px; } .result-content { display: flex; gap: 30px; margin-bottom: 30px; align-items: flex-start; text-align: left; } .result-image-section { flex: 0 0 350px; min-width: 350px; } .product-image { width: 100%; height: auto; border-radius: 8px; border: 2px solid #333; object-fit: contain; max-height: 400px; background-color: #f5f5f5; transition: transform 0.3s ease; } /* Layered Image System */ .door-configurator { position: relative; width: 100%; height: auto; min-height: 400px; border-radius: 8px; border: 2px solid #333; overflow: hidden; background-color: #f5f5f5; } .door-configurator img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; } .layer-base { position: relative !important; z-index: 1; } .layer-door { z-index: 2; } .layer-hardware { z-index: 3; } .layer-overlay { z-index: 4; } .config-preview-notice { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background-color: rgba(255, 152, 0, 0.9); color: white; padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: bold; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } .result-details { flex: 1; font-size: 16px; color: #666; line-height: 1.6; } .result-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; } .actions-left, .actions-right { display: flex; gap: 10px; flex-wrap: wrap; } /* Responsive layout for smaller screens */ @media (max-width: 768px) { .result-content { flex-direction: column; } .result-image-section { flex: 1; min-width: 100%; max-width: 100%; } } .back-button { padding: 12px 30px; background-color: #333; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; } .back-button:hover { background-color: #555; } /* Hide share buttons (temporarily disabled) */ .back-button[onclick*="shareCurrentPage"] { display: none; } .breadcrumb { padding: 15px 30px; background-color: #f9f9f9; border-bottom: 1px solid #ddd; font-size: 14px; color: #666; } .breadcrumb span { margin: 0 5px; } /* Scrollbar styling */ .buttons-wrapper::-webkit-scrollbar { width: 10px; } .buttons-wrapper::-webkit-scrollbar-track { background: #f1f1f1; } .buttons-wrapper::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; } .buttons-wrapper::-webkit-scrollbar-thumb:hover { background: #555; } /* Measurement Type Toggle Buttons */ .measurement-type-container { display: flex; gap: 15px; justify-content: center; padding: 20px; margin: 0 auto; max-width: 500px; } .measurement-toggle { flex: 1; max-width: 200px; min-height: 120px; padding: 20px 15px; background-color: #f0f0f0; border: 3px solid #333; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; } .measurement-toggle:hover:not(.disabled) { background-color: #e0e0e0; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .measurement-toggle.selected { background-color: #333; color: white; } .measurement-toggle.selected:hover { background-color: #444; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); } .measurement-toggle.selected .toggle-label { color: white; } .measurement-toggle.disabled { opacity: 0.5; cursor: not-allowed; background-color: #f5f5f5; } .toggle-icon { font-size: 48px; line-height: 1; display: block; } .toggle-label { font-size: 16px; font-weight: bold; color: #333; display: block; line-height: 1.2; } .measurement-toggle.selected .toggle-icon { filter: grayscale(0%) brightness(200%); } /* Form Styles */ .form-wrapper { max-height: 500px; overflow-y: auto; padding: 20px; border-top: 1px solid #ddd; } .dynamic-form { max-width: 500px; margin: 0 auto; } .form-group { margin-bottom: 20px; text-align: left; } .form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #333; font-size: 14px; } .form-group input[type="text"], .form-group input[type="number"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 2px solid #333; border-radius: 4px; font-size: 14px; font-family: Arial, sans-serif; transition: border-color 0.3s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #555; } .form-group textarea { min-height: 80px; resize: vertical; } .form-group select { cursor: pointer; background-color: white; } .submit-button { width: 100%; padding: 12px 30px; background-color: #333; color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease; margin-top: 10px; } .submit-button:hover { background-color: #555; } /* Scrollbar styling for form wrapper */ .form-wrapper::-webkit-scrollbar { width: 10px; } .form-wrapper::-webkit-scrollbar-track { background: #f1f1f1; } .form-wrapper::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; } .form-wrapper::-webkit-scrollbar-thumb:hover { background: #555; } /* Notification animations */ @keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Notes Section */ .notes-section { margin: 20px auto; max-width: 800px; } .notes-toggle { width: 100%; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 6px; padding: 12px 16px; font-size: 14px; color: #495057; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.2s ease; text-align: left; } .notes-toggle:hover { background-color: #e9ecef; border-color: #ced4da; } .notes-icon { font-size: 18px; } .notes-label { flex: 1; font-weight: 600; } .notes-arrow { font-size: 12px; transition: transform 0.2s ease; } .notes-content { margin-top: 10px; padding: 16px; background-color: #fff; border: 1px solid #dee2e6; border-radius: 6px; font-size: 14px; line-height: 1.6; color: #495057; } .notes-content a { color: #007bff; text-decoration: none; } .notes-content a:hover { text-decoration: underline; } .notes-content ul { margin: 10px 0; padding-left: 20px; } .notes-content li { margin: 5px 0; } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } } /* Accessories list */ .accessories-list { margin-top: 10px; } .accessory-item { padding: 12px; margin: 8px 0; background: #f5f5f5; border-left: 3px solid #2196F3; border-radius: 3px; text-align: left; } .accessory-item strong { color: #333; display: block; margin-bottom: 5px; } .accessory-item small { color: #666; } /* Product grid for results */ .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; padding: 20px; } .product-card { background: white; border: 2px solid #333; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-align: left; } .product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); } .product-card h3 { margin-top: 0; color: #333; font-size: 1.1em; margin-bottom: 15px; } .product-card p { margin: 10px 0; line-height: 1.6; color: #666; } .product-card ul { list-style-position: inside; padding-left: 0; margin-top: 10px; } .product-card li { margin: 5px 0; color: #666; }