/* Reduced Motion Support Added - 2025-07-23 */ /* Vendor Prefixes Added - 2025-07-23 */ /** * HVAC Trainer Registration Form Enhanced Styles * * @version 2.0.0 */ /* Error Styles */ .hvac-form-errors { background-color: #fee; border: 1px solid #fcc; border-radius: 4px; padding: 1rem; margin-bottom: 2rem; } .hvac-form-errors h3 { color: #d8000c; margin-top: 0; margin-bottom: 0.5rem; font-size: 1.1rem; } .hvac-form-errors ul { margin: 0; padding-left: 1.5rem; } .hvac-form-errors li { color: #d8000c; margin-bottom: 0.25rem; } .error-message { color: #d8000c; font-size: 0.875rem; margin-top: 0.25rem; margin-bottom: 0; } input.error, select.error, textarea.error { border-color: #fcc; } /* Main Container */ .hvac-registration-form-wrapper { max-width: 1200px; margin: 0 auto; padding: 2rem; /* IE fallback */ padding: var(--hvac-spacing-xl) var(--hvac-spacing-md); background-color: #f9fafb; } /* Mobile Container Fixes */ @media screen and (max-width: 768px) { .hvac-registration-form-wrapper { padding: 20px !important; /* Ensure generous mobile padding */ margin: 0 !important; max-width: none !important; width: 100% !important; box-sizing: border-box !important; } } @media screen and (max-width: 480px) { .hvac-registration-form-wrapper { padding: 15px !important; /* Slightly less but still comfortable */ } } @media screen and (max-width: 375px) { .hvac-registration-form-wrapper { padding: 12px !important; /* Minimum comfortable padding for small screens */ } } /* Form Card */ .hvac-registration-form { max-width: 800px; margin: 0 auto; padding: 2rem; /* IE fallback */ padding: var(--hvac-spacing-xl); background-color: white; -webkit-webkit-webkit-border-radius: 4px; border-radius: 4px; border-radius: 4px; /* IE fallback */ -webkit-border-radius: var(--hvac-border-radius); -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* IE fallback */ -webkit-box-shadow: var(--hvac-shadow-lg); box-shadow: var(--hvac-shadow-lg); border: 1px solid #e0e0e0; /* IE fallback */ border: 1px solid var(--hvac-border); } /* Form Header */ .hvac-registration-form-header { text-align: center; margin-bottom: 2rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-xl); padding-bottom: 1rem; /* IE fallback */ padding-bottom: var(--hvac-spacing-md); border-bottom: 1px solid #f0f0f0; /* IE fallback */ border-bottom: 1px solid var(--hvac-border-light); } .hvac-registration-form h2 { color: #0274be; /* IE fallback */ color: var(--hvac-primary); font-size: 1.8rem; margin-bottom: 0.5rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-sm); font-weight: 700; } .hvac-registration-form-header p { color: #757575; /* IE fallback */ color: var(--hvac-text-light); font-size: 1rem; max-width: 600px; margin: 0 auto; } /* Form Sections */ .hvac-registration-form .form-section { margin-bottom: 2rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-xl); padding-bottom: 1.5rem; /* IE fallback */ padding-bottom: var(--hvac-spacing-lg); border-bottom: 1px solid #f0f0f0; /* IE fallback */ border-bottom: 1px solid var(--hvac-border-light); } .hvac-registration-form .form-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .hvac-registration-form .form-section h3 { color: #3a3f44; /* IE fallback */ color: var(--hvac-secondary-dark); margin-bottom: 1rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-md); font-size: 1.3rem; font-weight: 600; padding-bottom: 0.5rem; /* IE fallback */ padding-bottom: var(--hvac-spacing-sm); border-bottom: 1px dashed #f0f0f0; /* IE fallback */ border-bottom: 1px dashed var(--hvac-border-light); } /* Form Grid Layout */ .hvac-registration-form .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1rem; /* IE fallback */ gap: var(--hvac-spacing-md); } /* Form Rows */ .hvac-registration-form .form-row { margin-bottom: 1rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-md); } /* Two-column layout */ .form-row-half { display: flex; gap: 1rem; } .form-row-half > div { flex: 1; } /* Three-column layout */ .form-row-thirds { display: flex; gap: 1rem; } .form-row-thirds > div { flex: 1; } /* Form Fields */ .hvac-registration-form label { display: block; margin-bottom: 0.5rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-sm); font-weight: 600; color: #333333; /* IE fallback */ color: var(--hvac-text); font-size: 0.95rem; } .hvac-registration-form label .required { color: #d63638; /* IE fallback */ color: var(--hvac-error); margin-left: 0.25rem; /* IE fallback */ margin-left: var(--hvac-spacing-xs); } .hvac-registration-form input[type="text"], .hvac-registration-form input[type="email"], .hvac-registration-form input[type="password"], .hvac-registration-form input[type="url"], .hvac-registration-form textarea, .hvac-registration-form select { width: 100%; padding: 0.85rem; border: 1px solid #e0e0e0; /* IE fallback */ border: 1px solid var(--hvac-border); border-radius: 4px; /* IE fallback */ border-radius: var(--hvac-border-radius); font-size: 1rem; -webkit-transition: border-color 0.2s, box-shadow 0.2s; background-color: #f9fafb; } .hvac-registration-form input[type="text"]:focus, .hvac-registration-form input[type="email"]:focus, .hvac-registration-form input[type="password"]:focus, .hvac-registration-form input[type="url"]:focus, .hvac-registration-form textarea:focus, .hvac-registration-form select:focus { border-color: #0274be; /* IE fallback */ border-color: var(--hvac-primary); outline: none; -webkit-box-shadow: 0 0 0 3px #e6f3fb;/* IE fallback */ -webkit-box-shadow: 0 0 0 3px var(--hvac-primary-light); background-color: white; } .hvac-registration-form textarea { min-height: 120px; resize: vertical; } .hvac-registration-form select { -webkit-appearance: none; -moz-appearance: none; background-image: url("data: image/svg+xml; charset=utf-8,%3Csvg xmlns='; http: //www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; padding-right: 2.5rem; } /* Field Helper Text */ .hvac-registration-form .field-help { margin-top: 0.25rem; /* IE fallback */ margin-top: var(--hvac-spacing-xs); font-size: 0.85rem; color: #757575; /* IE fallback */ color: var(--hvac-text-light); } /* Submit Button Section */ .hvac-registration-form .form-submit { margin-top: 2rem; /* IE fallback */ margin-top: var(--hvac-spacing-xl); text-align: center; } .hvac-registration-form input[type="submit"] { display: inline-block; padding: 0.85rem 2.5rem; background-color: #0274be; /* IE fallback */ background-color: var(--hvac-primary); color: white; border: none; border-radius: 4px; /* IE fallback */ border-radius: var(--hvac-border-radius); font-size: 1.1rem; font-weight: 600; cursor: pointer; text-align: center; -webkit-transition: background-color 0.2s, transform 0.1s; text-transform: uppercase; letter-spacing: 0.5px; -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* IE fallback */ -webkit-box-shadow: var(--hvac-shadow); } .hvac-registration-form input[type="submit"]:hover { background-color: #005fa3; /* IE fallback */ background-color: var(--hvac-primary-dark); -webkit-transform: translateY(-2px); -ms-transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* IE fallback */ box-shadow: var(--hvac-shadow-lg); } .hvac-registration-form input[type="submit"]:active { -webkit-transform: translateY(0); -ms-transform: translateY(0); } /* Checkbox & Radio Styles */ .hvac-registration-form .checkbox-group { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; gap: 0.5rem; /* IE fallback */ gap: var(--hvac-spacing-sm); margin-top: 0.5rem; /* IE fallback */ margin-top: var(--hvac-spacing-sm); } .hvac-registration-form .checkbox-group label { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 0.5rem; /* IE fallback */ gap: var(--hvac-spacing-sm); font-weight: normal; cursor: pointer; margin-bottom: 0; } .hvac-registration-form .checkbox-group input[type="checkbox"], .hvac-registration-form .checkbox-group input[type="radio"] { width: 18px; height: 18px; cursor: pointer; } /* Error Messages */ .hvac-registration-form .hvac-errors { background-color: #ffebe9; /* IE fallback */ background-color: var(--hvac-error-light); border: 1px solid #d63638; /* IE fallback */ border: 1px solid var(--hvac-error); border-radius: 4px; /* IE fallback */ border-radius: var(--hvac-border-radius); padding: 1rem; /* IE fallback */ padding: var(--hvac-spacing-md); margin-bottom: 1.5rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-lg); color: #d63638; /* IE fallback */ color: var(--hvac-error); } .hvac-registration-form .hvac-errors .error { margin: 0.25rem; /* IE fallback */ margin: var(--hvac-spacing-xs) 0; } .hvac-registration-form .form-row.has-error input, .hvac-registration-form .form-row.has-error select, .hvac-registration-form .form-row.has-error textarea { border-color: #d63638; /* IE fallback */ border-color: var(--hvac-error); } .hvac-registration-form .form-row.has-error .field-error { color: #d63638; /* IE fallback */ color: var(--hvac-error); font-size: 0.85rem; margin-top: 0.25rem; /* IE fallback */ margin-top: var(--hvac-spacing-xs); } /* Success Message */ .hvac-registration-form .hvac-success { background-color: #e8f5e9; /* IE fallback */ background-color: var(--hvac-success-light); border: 1px solid #4caf50; /* IE fallback */ border: 1px solid var(--hvac-success); border-radius: 4px; /* IE fallback */ border-radius: var(--hvac-border-radius); padding: 1rem; /* IE fallback */ padding: var(--hvac-spacing-md); margin-bottom: 1.5rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-lg); color: #4caf50; /* IE fallback */ color: var(--hvac-success); } /* Login Link */ .hvac-login-link { margin-top: 1.5rem; /* IE fallback */ margin-top: var(--hvac-spacing-lg); text-align: center; padding-top: 1rem; /* IE fallback */ padding-top: var(--hvac-spacing-md); border-top: 1px solid #f0f0f0; /* IE fallback */ border-top: 1px solid var(--hvac-border-light); font-size: 0.95rem; } .hvac-login-link a { color: #0274be; /* IE fallback */ color: var(--hvac-primary); font-weight: 600; text-decoration: none; } .hvac-login-link a:hover { text-decoration: underline; } /* Progress Indicator for Multi-step Forms */ .hvac-registration-progress { margin-bottom: 2rem; /* IE fallback */ margin-bottom: var(--hvac-spacing-xl); padding: 1rem; /* IE fallback */ padding: var(--hvac-spacing-md); background-color: #f0f0f1; /* IE fallback */ background-color: var(--hvac-secondary-light); border-radius: 4px; /* IE fallback */ border-radius: var(--hvac-border-radius); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; position: relative; } .hvac-registration-progress::before { content: ''; position: absolute; top: 50%; left: 1rem; /* IE fallback */ left: var(--hvac-spacing-md); right: 1rem; /* IE fallback */ right: var(--hvac-spacing-md); height: 2px; background-color: #e0e0e0; /* IE fallback */ background-color: var(--hvac-border); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); z-index: 1; } .hvac-registration-step { width: 30px; height: 30px; -webkit-border-radius: 50%; background-color: white; border: 2px solid #e0e0e0; /* IE fallback */ border: 2px solid var(--hvac-border); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; font-weight: 600; position: relative; z-index: 2; } .hvac-registration-step.active { background-color: #0274be; /* IE fallback */ background-color: var(--hvac-primary); border-color: #0274be; /* IE fallback */ border-color: var(--hvac-primary); color: white; } .hvac-registration-step.completed { background-color: #4caf50; /* IE fallback */ background-color: var(--hvac-success); border-color: #4caf50; /* IE fallback */ border-color: var(--hvac-success); color: white; } /* Responsive Adjustments */ /* Reduced Motion Support Added - WCAG 2.1 Accessibility */ /* Respects user preference for reduced motion to prevent vestibular disorders */ @media (prefers-reduced-motion: reduce) { /* Disable all animations and transitions globally */ *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; } /* Remove specific transform animations */ .hvac-animate-fade-in, .hvac-animate-scale-up, .hvac-animate-pulse, .hvac-animate-slide-in-right, .hvac-animate-slide-in-left, .hvac-animate-slide-in-bottom { animation: none !important; opacity: 1 !important; transform: none !important; } /* Disable hover transformations */ .hvac-card:hover, .hvac-stat-card:hover, .hvac-event-stat-card:hover, .hvac-button:hover, .hvac-email-submit:hover { transform: none !important; animation: none !important; } /* Keep essential visual feedback but remove motion */ .hvac-card:hover, .hvac-stat-card:hover, .hvac-event-stat-card:hover { border-color: var(--hvac-primary, #0274be) !important; box-shadow: 0 0 0 2px rgba(2, 116, 190, 0.2) !important; } /* Disable loading spinner animation but keep visibility */ .hvac-loading::after { animation: none !important; border-radius: 50% !important; border: 2px solid rgba(0, 0, 0, 0.2) !important; border-top-color: #333 !important; } /* Disable focus pulse animation */ .hvac-button:focus, .hvac-email-submit:focus, .hvac-content button[type="submit"]:focus { animation: none !important; } /* Ensure smooth scrolling is disabled */ html { scroll-behavior: auto !important; } /* Disable CSS Grid/Flexbox animations if any */ .hvac-dashboard-stats .hvac-stat-card:nth-child(n), .hvac-event-summary-stats .hvac-event-stat-card:nth-child(n) { animation: none !important; opacity: 1 !important; } } /* Provide alternative visual feedback for reduced motion users */ @media (prefers-reduced-motion: reduce) { /* Enhanced border feedback instead of transform */ .hvac-content button:hover, .hvac-content input[type="submit"]:hover, .hvac-content a:hover { outline: 2px solid var(--hvac-primary, #0274be) !important; outline-offset: 2px !important; } /* Enhanced color changes for interactive elements */ .hvac-attendee-item:hover { background-color: var(--hvac-primary-light, #e6f3fb) !important; border-left: 4px solid var(--hvac-primary, #0274be) !important; } /* Static loading indicator */ .hvac-loading { opacity: 0.7 !important; } .hvac-loading::after { content: "Loading..." !important; display: inline-block !important; font-size: 12px !important; color: #666 !important; border: none !important; background: none !important; border-radius: 0 !important; width: auto !important; height: auto !important; position: static !important; margin-left: 8px !important; } } @media (max-width: 768px) { .hvac-registration-form { padding: 1.5rem; /* IE fallback */ padding: var(--hvac-spacing-lg); } .hvac-registration-form .form-grid { grid-template-columns: 1fr; } .hvac-registration-form h2 { font-size: 1.5rem; } .hvac-registration-progress { padding: 0.5rem; /* IE fallback */ padding: var(--hvac-spacing-sm); } } @media (max-width: 480px) { .hvac-registration-form { padding: 1rem; /* IE fallback */ padding: var(--hvac-spacing-md); } .hvac-registration-form h2 { font-size: 1.3rem; } .hvac-registration-form .form-submit input[type="submit"] { width: 100%; } } /* Focus Management Styles - WCAG 2.1 Compliance */ /* Added for keyboard accessibility and screen reader support */ /* Button Focus Styles */ .hvac-button:focus, .hvac-content .button:focus, .hvac-content button:focus, .hvac-content input[type="submit"]:focus, .hvac-email-submit:focus, .hvac-filter-submit:focus, .hvac-certificate-actions button:focus, .hvac-certificate-actions a:focus { outline: 2px solid #005fcc; outline-offset: 2px; -webkit-box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); border-radius: 4px; } /* Input Focus Styles */ .hvac-form-input:focus, .hvac-content input[type="text"]:focus, .hvac-content input[type="email"]:focus, .hvac-content input[type="password"]:focus, .hvac-content input[type="url"]:focus, .hvac-content textarea:focus, .hvac-content select:focus, .hvac-email-form-row input:focus, .hvac-email-form-row textarea:focus, .hvac-filter-group input:focus, .hvac-filter-group select:focus { outline: 2px solid #005fcc; outline-offset: 2px; border-color: #005fcc; box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); } /* Link Focus Styles */ .hvac-content a:focus, .hvac-event-link:focus, .hvac-certificate-link:focus, .hvac-attendee-profile-icon:focus, .hvac-dashboard-nav a:focus, .hvac-email-navigation a:focus { outline: 2px solid #005fcc; outline-offset: 2px; text-decoration: underline; background-color: rgba(0, 95, 204, 0.1); -webkit-border-radius: 2px; } /* Interactive Element Focus Styles */ .hvac-attendee-checkbox:focus, .hvac-select-all-container input[type="checkbox"]:focus, .hvac-modal-close:focus, .hvac-certificate-table tr:focus { outline: 2px solid #005fcc; outline-offset: 2px; box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); } /* High Contrast Mode Support */ @media (prefers-contrast: high) { .hvac-content *:focus { outline: 3px solid #000000; outline-offset: 2px; background-color: #ffff00; color: #000000; } } /* Focus-visible polyfill support */ /* Reset focus for mouse users while preserving keyboard accessibility */ .js-focus-visible:focus:not(.focus-visible) { outline: none; -webkit-box-shadow: none; } /* Ensure focus is visible for keyboard users */ .js-focus-visible .focus-visible { outline: 2px solid #005fcc; outline-offset: 2px; } /* CSS Grid Fallbacks for IE */ .hvac-stats-row, .hvac-dashboard-stats, .hvac-certificate-stats { display: -ms-grid; -ms-grid-columns: repeat(auto-fit, minmax(200px, 1fr)); } /* Progressive enhancement for modern browsers */ @supports (display: grid) { .hvac-stats-row, .hvac-dashboard-stats, .hvac-certificate-stats { display: grid; } } /* Feature Detection Support */ @supports not (display: flex) { .hvac-content [class*="flex"] { display: table-cell; vertical-align: middle; } } @supports not (display: grid) { .hvac-content [class*="grid"] { display: block; overflow: hidden; } .hvac-content [class*="grid"] > * { float: left; width: 50%; } }