:root{--primary-color: #667eea;--primary-dark: #764ba2;--success-color: #10b981;--error-color: #ef4444;--warning-color: #f59e0b;--text-primary: #1f2937;--text-secondary: #6b7280;--border-color: #e5e7eb;--bg-gray: #f9fafb;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1);--radius-sm: .375rem;--radius-md: .5rem;--radius-lg: .75rem;--spacing-unit: 1rem}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text-primary);line-height:1.6;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}.dif-form-container{max-width:800px;margin:2rem auto;background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);overflow:hidden;animation:slideUp .4s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.dif-form-header{background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-dark) 100%);color:#fff;padding:2.5rem 2rem;text-align:center;position:relative;overflow:hidden}.dif-form-header:before{content:"";position:absolute;top:-50%;right:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);animation:pulse 8s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:.5}50%{transform:scale(1.1);opacity:.8}}.practice-logo{max-width:180px;height:auto;margin-bottom:1rem;filter:drop-shadow(0 4px 6px rgba(0,0,0,.2));position:relative;z-index:1}.dif-form-header h1{font-size:1.875rem;font-weight:700;margin-bottom:.5rem;position:relative;z-index:1}.dif-form-header p{font-size:1rem;opacity:.95;font-weight:400;position:relative;z-index:1}.progress-indicator{display:flex;justify-content:space-between;padding:1.5rem 2rem;background:var(--bg-gray);border-bottom:1px solid var(--border-color)}.progress-step{flex:1;text-align:center;position:relative;padding:0 .5rem}.progress-step:before{content:"";position:absolute;top:1.25rem;left:0;width:100%;height:2px;background:var(--border-color);z-index:0}.progress-step:first-child:before{left:50%;width:50%}.progress-step:last-child:before{width:50%}.progress-step-circle{width:2.5rem;height:2.5rem;border-radius:50%;background:#fff;border:2px solid var(--border-color);display:flex;align-items:center;justify-content:center;margin:0 auto .5rem;position:relative;z-index:1;font-weight:600;transition:all .3s ease}.progress-step.active .progress-step-circle{background:var(--primary-color);border-color:var(--primary-color);color:#fff;transform:scale(1.1)}.progress-step.completed .progress-step-circle{background:var(--success-color);border-color:var(--success-color);color:#fff}.progress-step.completed:before{background:var(--success-color)}.progress-step-label{font-size:.875rem;color:var(--text-secondary);font-weight:500}.progress-step.active .progress-step-label{color:var(--primary-color);font-weight:600}.dif-form-body{padding:2.5rem 2rem}.form-section-header{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid var(--border-color)}.form-section-header h2{font-size:1.5rem;font-weight:600;color:var(--text-primary);margin-bottom:.25rem}.form-section-header p{font-size:.875rem;color:var(--text-secondary)}.form-group{margin-bottom:1.5rem}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1.5rem}label{display:block;font-size:.875rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem;transition:color .2s ease}.required:after{content:"*";color:var(--error-color);margin-left:.25rem}input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],textarea,select{width:100%;padding:.75rem 1rem;font-size:1rem;border:2px solid var(--border-color);border-radius:var(--radius-md);background:#fff;color:var(--text-primary);transition:all .2s ease;font-family:inherit}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}input:hover:not(:focus),textarea:hover:not(:focus),select:hover:not(:focus){border-color:var(--text-secondary)}textarea{min-height:120px;resize:vertical}input.error,textarea.error,select.error{border-color:var(--error-color)}input.error:focus,textarea.error:focus,select.error:focus{box-shadow:0 0 0 3px #ef44441a}input:disabled,textarea:disabled,select:disabled{background:var(--bg-gray);cursor:not-allowed;opacity:.6}.error-message{display:flex;align-items:center;gap:.5rem;color:var(--error-color);font-size:.875rem;margin-top:.5rem;animation:shake .4s ease}.error-message:before{content:"⚠";font-size:1rem}.helper-text{font-size:.875rem;color:var(--text-secondary);margin-top:.5rem}.checkbox-group,.radio-group{display:flex;flex-direction:column;gap:.75rem}.checkbox-wrapper,.radio-wrapper{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border:2px solid var(--border-color);border-radius:var(--radius-md);cursor:pointer;transition:all .2s ease}.checkbox-wrapper:hover,.radio-wrapper:hover{border-color:var(--primary-color);background:#667eea05}.checkbox-wrapper input[type=checkbox],.radio-wrapper input[type=radio]{width:1.25rem;height:1.25rem;cursor:pointer;margin-top:.125rem;flex-shrink:0;accent-color:var(--primary-color)}.checkbox-label,.radio-label{flex:1;font-size:.9375rem;font-weight:500;line-height:1.5;color:var(--text-primary)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1.75rem;font-size:1rem;font-weight:600;border:none;border-radius:var(--radius-md);cursor:pointer;transition:all .2s ease;font-family:inherit;text-decoration:none;position:relative;overflow:hidden}.btn:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#ffffff4d;transform:translate(-50%,-50%);transition:width .6s,height .6s}.btn:active:before{width:300px;height:300px}.btn-primary{background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-dark) 100%);color:#fff;box-shadow:var(--shadow-md)}.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.btn-primary:active{transform:translateY(0)}.btn-secondary{background:#fff;color:var(--primary-color);border:2px solid var(--primary-color)}.btn-secondary:hover{background:var(--bg-gray)}.btn-success{background:var(--success-color);color:#fff}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.btn-loading{position:relative;color:transparent}.btn-loading:after{content:"";position:absolute;width:1.25rem;height:1.25rem;top:50%;left:50%;margin-left:-.625rem;margin-top:-.625rem;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}.button-group{display:flex;gap:1rem;margin-top:2rem;padding-top:2rem;border-top:1px solid var(--border-color)}.button-group.space-between{justify-content:space-between}.button-group.center{justify-content:center}.alert{padding:1rem 1.25rem;border-radius:var(--radius-md);margin-bottom:1.5rem;border-left:4px solid;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.alert-info{background:#3b82f61a;border-color:#3b82f6;color:#1e40af}.alert-success{background:#10b9811a;border-color:var(--success-color);color:#065f46}.alert-warning{background:#f59e0b1a;border-color:var(--warning-color);color:#92400e}.alert-error{background:#ef44441a;border-color:var(--error-color);color:#991b1b}.success-screen{text-align:center;padding:3rem 2rem}.success-icon{width:5rem;height:5rem;margin:0 auto 1.5rem;background:var(--success-color);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:2.5rem;animation:scaleIn .5s ease-out}.success-screen h2{font-size:1.875rem;margin-bottom:1rem;color:var(--text-primary)}.success-screen p{font-size:1.125rem;color:var(--text-secondary);margin-bottom:2rem}@media (max-width: 768px){.dif-form-container{margin:0;border-radius:0;min-height:100vh}.dif-form-header{padding:2rem 1.5rem}.dif-form-header h1{font-size:1.5rem}.dif-form-body{padding:1.5rem 1rem}.form-row{grid-template-columns:1fr}.button-group{flex-direction:column}.button-group .btn{width:100%}.progress-indicator{padding:1rem}.progress-step-label{font-size:.75rem}}@media print{body{background:#fff}.dif-form-container{box-shadow:none;max-width:100%}.button-group,.btn{display:none}}.skeleton{background:linear-gradient(90deg,var(--bg-gray) 25%,#f3f4f6 50%,var(--bg-gray) 75%);background-size:200% 100%;animation:loading 1.5s ease-in-out infinite;border-radius:var(--radius-md)}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-text{height:1rem;margin-bottom:.5rem}.skeleton-input{height:2.75rem;margin-bottom:1.5rem}.patient-info-display{background:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;padding:20px;margin:20px 0}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px}.info-grid div{font-size:14px}.btn-link{background:none;border:none;color:#667eea;text-decoration:underline;cursor:pointer;font-size:14px}.pain-slider{width:100%;height:8px;border-radius:4px;background:linear-gradient(to right,#28a745,#ffc107,#dc3545);outline:none;-webkit-appearance:none}.pain-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid #667eea;cursor:pointer;box-shadow:0 2px 4px #0003}.pain-slider::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid #667eea;cursor:pointer;box-shadow:0 2px 4px #0003}.slider-labels{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#666}.radio-label{display:flex;align-items:center;padding:12px 16px;border:2px solid #e0e6ed;border-radius:8px;cursor:pointer;transition:all .2s}.radio-label:hover{border-color:#667eea;background:#f8f9fa}.radio-label input[type=radio]{margin-right:10px}.radio-label input[type=radio]:checked+span{font-weight:600;color:#667eea}.appointment-summary{background:#fff;border:2px solid #667eea;border-radius:8px;padding:20px;margin:20px 0}.appointment-summary p{margin:10px 0;font-size:16px}.next-steps{background:#e7f3ff;border-left:4px solid #0066cc;padding:15px;margin:20px 0;border-radius:4px}.info-box{background:#fff3cd;border-left:4px solid #ffc107;padding:15px;margin:20px 0;border-radius:4px}.info-box p{margin:8px 0}.appointment-form-container{max-width:800px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif}.form-header{text-align:center;margin-bottom:40px;padding-bottom:30px;border-bottom:3px solid #667eea}.practice-logo{max-width:180px;max-height:80px;margin-bottom:20px;object-fit:contain}.form-header h2{color:#2c3e50;font-size:28px;font-weight:700;margin:10px 0}.form-header h3{color:#667eea;font-size:22px;font-weight:600;margin:15px 0 10px}.form-subtitle{color:#666;font-size:16px;margin:10px 0 0}.progress-steps{display:flex;align-items:center;justify-content:center;margin:40px 0;padding:0 20px}.step{display:flex;flex-direction:column;align-items:center;position:relative;flex:0 0 auto}.step-number{width:50px;height:50px;border-radius:50%;background:#e0e6ed;color:#8899a6;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;transition:all .3s ease;border:3px solid #e0e6ed;z-index:2}.step.active .step-number{background:#667eea;color:#fff;border-color:#667eea;box-shadow:0 0 0 4px #667eea33}.step.completed .step-number{background:#28a745;color:#fff;border-color:#28a745}.step-label{margin-top:12px;font-size:14px;font-weight:600;color:#8899a6;text-align:center;transition:color .3s ease}.step.active .step-label{color:#667eea}.step.completed .step-label{color:#28a745}.step-line{height:3px;width:100px;background:#e0e6ed;margin:-25px -10px 0;position:relative;z-index:1}.patient-info-display{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;padding:25px;margin:30px 0;color:#fff;box-shadow:0 4px 12px #667eea4d}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px;margin-bottom:15px}.info-grid div{font-size:15px;padding:8px 0}.info-grid strong{display:block;font-size:12px;text-transform:uppercase;opacity:.9;margin-bottom:4px;letter-spacing:.5px}.btn-link{background:#fff3;border:2px solid rgba(255,255,255,.3);color:#fff;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s;display:inline-block}.btn-link:hover{background:#ffffff4d;border-color:#ffffff80;transform:translateY(-1px)}.form-section{background:#fff;border-radius:12px;padding:30px;margin-bottom:25px;box-shadow:0 2px 8px #00000014;border:1px solid #e0e6ed}.form-section h3{color:#2c3e50;font-size:20px;font-weight:700;margin:0 0 8px;padding-bottom:12px;border-bottom:2px solid #f0f3f8}.section-note{color:#666;font-size:14px;margin:0 0 25px;font-style:italic}.form-group{margin-bottom:25px}.form-group label{display:block;font-weight:600;color:#2c3e50;margin-bottom:8px;font-size:15px}.form-group input[type=text],.form-group input[type=email],.form-group input[type=tel],.form-group input[type=date],.form-group select,.form-group textarea{width:100%;padding:12px 16px;border:2px solid #e0e6ed;border-radius:8px;font-size:15px;font-family:inherit;transition:all .2s ease;background:#fff}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input.error,.form-group select.error,.form-group textarea.error{border-color:#dc3545}.form-group textarea{resize:vertical;min-height:100px;line-height:1.6}.form-help{display:block;font-size:13px;color:#8899a6;margin-top:6px;font-style:italic}.error-message{display:block;color:#dc3545;font-size:13px;margin-top:6px;font-weight:600}.radio-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:10px}.radio-label{display:flex;align-items:center;padding:14px 18px;border:2px solid #e0e6ed;border-radius:8px;cursor:pointer;transition:all .2s;background:#fff}.radio-label:hover{border-color:#667eea;background:#f8f9fa;transform:translateY(-1px)}.radio-label input[type=radio]{width:20px;height:20px;margin-right:10px;cursor:pointer;accent-color:#667eea}.radio-label input[type=radio]:checked{background:#667eea}.radio-label span{font-size:15px;color:#2c3e50;font-weight:500}.radio-label input[type=radio]:checked~span{font-weight:700;color:#667eea}.pain-slider{width:100%;height:12px;border-radius:6px;background:linear-gradient(to right,#28a745,#ffc107,#dc3545);outline:none;-webkit-appearance:none;cursor:pointer;margin:15px 0}.pain-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:28px;height:28px;border-radius:50%;background:#fff;border:4px solid #667eea;cursor:pointer;box-shadow:0 3px 8px #0000004d;transition:all .2s}.pain-slider::-webkit-slider-thumb:hover{transform:scale(1.1);box-shadow:0 4px 12px #0006}.pain-slider::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:#fff;border:4px solid #667eea;cursor:pointer;box-shadow:0 3px 8px #0000004d;transition:all .2s}.slider-labels{display:flex;justify-content:space-between;margin-top:8px;font-size:13px;color:#666;font-weight:600}.alert{padding:16px 20px;border-radius:8px;margin:20px 0;border-left:4px solid;font-size:14px;line-height:1.6}.alert-warning{background:#fff3cd;border-color:#ffc107;color:#856404}.alert-error{background:#f8d7da;border-color:#dc3545;color:#721c24}.alert strong{display:block;font-weight:700;margin-bottom:4px}.info-box{background:linear-gradient(135deg,#e7f3ff,#f0f8ff);border-left:4px solid #0066cc;padding:18px 20px;margin:25px 0;border-radius:8px}.info-box p{margin:8px 0;font-size:14px;line-height:1.6}.info-box strong{color:#06c}.info-box a{color:#06c;font-weight:600;text-decoration:underline}.form-navigation{display:flex;gap:15px;justify-content:space-between;margin-top:30px}.btn{padding:14px 32px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;font-family:inherit}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea66;margin-left:auto}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #667eea80}.btn-secondary{background:#fff;color:#667eea;border:2px solid #667eea}.btn-secondary:hover{background:#f8f9fa;transform:translateY(-1px)}.btn-submit{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;box-shadow:0 4px 12px #28a74566;flex:1;max-width:300px;margin-left:auto}.btn-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #28a74580}.btn:disabled{opacity:.6;cursor:not-allowed}.success-container{max-width:600px;margin:60px auto;padding:40px;text-align:center;background:#fff;border-radius:16px;box-shadow:0 8px 24px #0000001f}.success-icon{width:80px;height:80px;background:linear-gradient(135deg,#28a745,#20c997);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 25px;font-size:48px;color:#fff;font-weight:700;box-shadow:0 4px 16px #28a7454d}.success-container h2{color:#2c3e50;font-size:28px;margin:20px 0;font-weight:700}.success-details{text-align:left;margin:30px 0}.appointment-summary{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border:2px solid #667eea;border-radius:12px;padding:25px;margin:20px 0}.appointment-summary p{margin:12px 0;font-size:16px;color:#2c3e50}.appointment-summary strong{color:#667eea;font-weight:700}.next-steps{background:#e7f3ff;border-left:4px solid #0066cc;padding:18px 20px;margin:20px 0;border-radius:8px;font-size:15px;line-height:1.6;color:#004085}.confirmation-email{margin-top:25px;padding-top:25px;border-top:2px solid #e0e6ed}.confirmation-email p{font-size:14px;color:#666}.confirmation-email strong{color:#667eea;font-weight:600}@media (max-width: 768px){.appointment-form-container{padding:15px}.progress-steps{padding:0 10px}.step-line{width:60px}.step-number{width:40px;height:40px;font-size:18px}.step-label{font-size:12px}.form-section{padding:20px}.info-grid,.radio-group{grid-template-columns:1fr}.form-navigation{flex-direction:column}.btn-primary,.btn-submit{margin-left:0;max-width:100%}}.referral-form-container{max-width:800px;margin:0 auto;padding:20px}.rewards-banner{display:flex;align-items:center;background:linear-gradient(135deg,gold,#ffed4e);border-radius:12px;padding:25px;margin:30px 0;box-shadow:0 4px 12px #ffd7004d}.rewards-icon{font-size:48px;margin-right:20px}.rewards-text h4{margin:0 0 8px;color:#2c3e50;font-size:20px;font-weight:700}.rewards-text p{margin:0;color:#666;font-size:15px;line-height:1.5}.friend-card{background:#f8f9fa;border:2px solid #e0e6ed;border-radius:12px;padding:25px;margin-bottom:20px;transition:all .2s}.friend-card:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.friend-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #dee2e6}.friend-card-header h4{margin:0;color:#667eea;font-size:18px;font-weight:700}.btn-remove{background:#dc3545;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.btn-remove:hover{background:#c82333;transform:translateY(-1px)}.btn-add-friend{width:100%;background:#fff;color:#667eea;border:2px dashed #667eea;padding:16px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:15px}.btn-add-friend:hover{background:#f8f9fa;border-color:#764ba2;color:#764ba2}.email-preview{background:#fff;border:2px solid #667eea;border-radius:12px;padding:25px;margin:25px 0;box-shadow:0 2px 8px #667eea1a}.email-preview h4{margin:0 0 15px;color:#667eea;font-size:18px;font-weight:700}.preview-content{background:#f8f9fa;border-radius:8px;padding:20px;font-size:15px;line-height:1.8;color:#2c3e50}.preview-content p{margin:12px 0}.personal-message-preview{background:#fff;border-left:4px solid #667eea;padding:15px;margin:20px 0;border-radius:4px}.personal-message-preview em{color:#555;font-style:italic;display:block;margin-bottom:10px}.checkbox-group{display:flex;flex-direction:column;gap:15px}.checkbox-label{display:flex;align-items:flex-start;cursor:pointer;padding:12px;border-radius:8px;transition:background .2s}.checkbox-label:hover{background:#f8f9fa}.checkbox-label input[type=checkbox]{width:20px;height:20px;margin-right:12px;margin-top:2px;cursor:pointer;accent-color:#667eea;flex-shrink:0}.checkbox-label span{font-size:15px;color:#2c3e50;line-height:1.5}.referral-stats{display:flex;justify-content:center;margin:30px 0}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:30px 50px;border-radius:12px;text-align:center;box-shadow:0 4px 12px #667eea4d}.stat-number{font-size:56px;font-weight:700;margin-bottom:10px}.stat-label{font-size:18px;font-weight:600;opacity:.95}.success-message{background:#f8f9fa;border-radius:12px;padding:25px;margin:25px 0}.success-message p{margin:0 0 15px;color:#2c3e50;font-size:16px}.referred-list{list-style:none;padding:0;margin:0}.referred-list li{background:#fff;border-left:4px solid #28a745;padding:12px 16px;margin:8px 0;border-radius:4px;font-size:15px;color:#2c3e50}.next-steps{background:#e7f3ff;border-left:4px solid #0066cc;padding:20px;border-radius:8px;margin:25px 0}.next-steps p{margin:0 0 12px;color:#004085;font-size:15px}.next-steps ul{margin:12px 0 0;padding-left:25px;color:#004085}.next-steps li{margin:8px 0;line-height:1.6}@media (max-width: 768px){.rewards-banner{flex-direction:column;text-align:center}.rewards-icon{margin-right:0;margin-bottom:15px}.friend-card-header{flex-direction:column;align-items:flex-start;gap:10px}.stat-card{padding:25px 35px}.stat-number{font-size:42px}}.consent-form-container{max-width:900px;margin:0 auto;padding:20px}.loading-spinner,.error-state{text-align:center;padding:60px 20px}.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}.error-state h2{color:#dc3545;margin-bottom:15px}.consent-content-section{background:#f8f9fa;border:2px solid #e0e6ed;border-radius:12px;margin:25px 0;overflow:hidden}.consent-scroll-area{max-height:500px;overflow-y:auto;padding:30px;background:#fff}.consent-html-content{color:#2c3e50;line-height:1.8}.consent-html-content h3{color:#667eea;font-size:20px;margin:25px 0 15px;padding-bottom:10px;border-bottom:2px solid #f0f3f8}.consent-html-content p{margin:15px 0}.consent-html-content ul,.consent-html-content ol{margin:15px 0;padding-left:30px}.consent-html-content li{margin:10px 0;line-height:1.7}.consent-html-content strong{color:#2c3e50;font-weight:700}.scroll-reminder{background:#fff3cd;border-top:2px solid #ffc107;padding:15px 30px;margin:0;text-align:center;color:#856404;font-size:14px;font-weight:600}.consent-scroll-area::-webkit-scrollbar{width:10px}.consent-scroll-area::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.consent-scroll-area::-webkit-scrollbar-thumb{background:#667eea;border-radius:5px}.consent-scroll-area::-webkit-scrollbar-thumb:hover{background:#764ba2}.signature-section{background:#f8f9fa;border:2px solid #e0e6ed;border-radius:12px;padding:30px}.signature-section h3{margin-top:0}.consent-summary{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border:2px solid #667eea;border-radius:12px;padding:25px;margin:20px 0}.consent-summary p{margin:10px 0;font-size:15px;color:#2c3e50}.consent-summary strong{color:#667eea}.contact-form-container{max-width:800px;margin:0 auto;padding:20px}.practice-contact-info{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;padding:30px;margin:30px 0;color:#fff;box-shadow:0 4px 12px #667eea4d}.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:25px}.contact-item{display:flex;align-items:flex-start;gap:15px}.contact-icon{font-size:28px;line-height:1}.contact-details{flex:1}.contact-label{font-size:12px;text-transform:uppercase;letter-spacing:.5px;opacity:.9;margin-bottom:5px;font-weight:600}.contact-value{font-size:16px;font-weight:600;color:#fff;text-decoration:none;display:block}.contact-value:hover{opacity:.9;text-decoration:underline}.subject-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:15px}.subject-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 15px;background:#fff;border:2px solid #e0e6ed;border-radius:12px;cursor:pointer;transition:all .2s ease;text-align:center;min-height:100px}.subject-card:hover{border-color:#667eea;background:#f8f9fa;transform:translateY(-2px);box-shadow:0 4px 12px #667eea26}.subject-card.selected{border-color:#667eea;background:linear-gradient(135deg,#f0f4ff,#e8efff);box-shadow:0 0 0 3px #667eea33}.subject-card input[type=radio]{position:absolute;opacity:0;cursor:pointer}.subject-icon{font-size:32px;margin-bottom:8px}.subject-label{font-size:13px;font-weight:600;color:#2c3e50;line-height:1.3}.subject-card.selected .subject-label{color:#667eea}.message-summary{background:#f8f9fa;border-radius:12px;padding:20px;margin:20px 0}.message-summary p{margin:10px 0;font-size:15px;color:#2c3e50}.message-summary strong{color:#667eea;font-weight:700}.help-section{background:#f8f9fa;border-radius:12px;padding:20px;margin:30px 0;text-align:center}.help-text{margin:0;font-size:15px;color:#666}.help-text a{color:#667eea;font-weight:700;text-decoration:none}.help-text a:hover{text-decoration:underline}@media (max-width: 768px){.subject-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.subject-card{padding:15px 10px;min-height:90px}.subject-icon{font-size:28px}.subject-label{font-size:12px}.contact-grid{grid-template-columns:1fr}}.feedback-form-container{max-width:900px;margin:0 auto;padding:20px}.ratings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:30px;margin:20px 0}.ratings-grid.has-error{border:2px solid #dc3545;border-radius:8px;padding:20px;background:#fff5f5}.star-rating-group{display:flex;flex-direction:column;gap:10px}.star-rating-label{font-weight:600;color:#2c3e50;font-size:15px}.star-rating-container{display:flex;flex-direction:column;gap:8px}.star-rating{display:flex;gap:8px}.star{background:none;border:none;font-size:36px;color:#ddd;cursor:pointer;transition:all .2s ease;padding:0;line-height:1}.star:hover{transform:scale(1.1)}.star.filled{color:gold;text-shadow:0 2px 4px rgba(255,215,0,.3)}.rating-text{font-size:14px;font-weight:600;min-height:20px}.rating-label-text{color:#667eea}.rating-placeholder{color:#999;font-style:italic}.character-count{font-size:13px;color:#8899a6;text-align:right;margin-top:4px;font-style:italic}.feedback-summary{margin:30px 0;text-align:center}.average-rating{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:40px;color:#fff;display:inline-block;min-width:250px;box-shadow:0 8px 24px #667eea4d}.rating-number{font-size:72px;font-weight:700;line-height:1;margin-bottom:10px}.rating-stars{font-size:32px;letter-spacing:4px;margin-bottom:10px}.average-rating p{margin:0;font-size:16px;font-weight:600;opacity:.95;text-transform:uppercase;letter-spacing:1px}.testimonial-note{background:linear-gradient(135deg,#fff3cd,#fff8e1);border-left:4px solid #ffc107;padding:20px;margin:25px 0;border-radius:8px;text-align:center}.testimonial-note p{margin:0;color:#856404;font-size:16px;font-weight:600}.radio-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:12px}@media (max-width: 768px){.ratings-grid{grid-template-columns:1fr;gap:25px}.star{font-size:32px}.average-rating{padding:30px 20px;min-width:200px}.rating-number{font-size:56px}.rating-stars{font-size:24px}}@keyframes scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.success-icon{animation:scaleIn .5s ease-out}.helper-text,.dif-form-body .helper-text,div.helper-text,p.helper-text{color:#fffffff2!important;font-size:.9rem!important;font-weight:500!important;text-shadow:0 1px 2px rgba(0,0,0,.1)!important}.dif-form-body div[style*="color: #6c757d"],.dif-form-body div[style*="color: '#6c757d'"]{color:#ffffffe6!important}.dif-form-body .form-section-header h2,.form-body .form-section-header h2{color:#fff!important;font-weight:700!important;text-shadow:0 1px 3px rgba(0,0,0,.15)!important}.dif-form-body .form-section-header p,.form-body .form-section-header p{color:#fffffff2!important;font-weight:500!important}.dif-form-body label,.dif-form-body .form-group label,.form-body label,.form-body .form-group label{color:#fff!important;font-weight:600!important;text-shadow:0 1px 2px rgba(0,0,0,.1)!important}.dif-form-body label.required:after,.dif-form-body .required:after,.form-body label.required:after,.form-body .required:after{color:#fde047!important;text-shadow:0 1px 2px rgba(0,0,0,.2)!important}.dif-form-body h4,.dif-form-body .form-group h4,.form-body h4{color:#fffffff2!important;font-weight:600!important;border-bottom-color:#ffffff4d!important}.patient-type-option span,label.patient-type-option span{color:#111827!important}.patient-type-option p,label.patient-type-option p{color:#047857!important;font-weight:500!important}.patient-type-option.selected p,.patient-type-option[style*="backgroundColor: #ecfdf5"] p,.patient-type-option[style*="background-color: #ecfdf5"] p{color:#065f46!important;font-weight:600!important}.info-box,.dif-form-body .info-box{background:#ecfdf5f2!important}.info-box h3,.info-box h4,.dif-form-body .info-box h3{color:#047857!important;font-weight:700!important}.info-box p,.dif-form-body .info-box p{color:#064e3b!important;font-weight:500!important;font-size:.925rem!important}.consent-card,.consent-section>div,div.consent-card{background:#fff!important}.consent-card label,.consent-card .consent-title,.consent-section label,label.consent-title{color:#111827!important;font-weight:600!important;font-size:17px!important;margin:0!important;display:inline!important;text-shadow:none!important}.consent-card p,.consent-card .consent-description,.consent-section p,p.consent-description{color:#374151!important;font-size:15px!important;line-height:1.7!important;text-shadow:none!important}.checkbox-wrapper,.radio-wrapper,.dif-form-body .checkbox-wrapper,.dif-form-body .radio-wrapper{background:#fff!important}.checkbox-wrapper label,.radio-wrapper label,.checkbox-label,.radio-label{color:#1f2937!important;text-shadow:none!important}.dif-form-body input[type=text],.dif-form-body input[type=email],.dif-form-body input[type=tel],.dif-form-body input[type=date],.dif-form-body input[type=number],.dif-form-body textarea,.dif-form-body select{background:#fff!important;color:#1f2937!important}.dif-form-body input::placeholder,.dif-form-body textarea::placeholder{color:#9ca3af!important}.alert-warning p,.dif-form-body .alert-warning p{color:#92400e!important}.form-navigation span,.dif-form-body .form-navigation span,.section-indicator{color:#ffffffe6!important;font-weight:500!important}.error-message,.field-error,div.error-message{color:#fca5a5!important;background:#ef444426!important;padding:4px 8px!important;border-radius:4px!important;font-weight:600!important}.consent-card .error-message,.checkbox-wrapper .error-message,.info-box .error-message{color:#dc2626!important;background:#ef44441a!important}.security-notice,.hipaa-notice,div[style*="background: #f0fdf4"]{background:#f0fdf4f2!important}.security-notice p,.hipaa-notice p{color:#166534!important;font-weight:500!important}div[style*="position: fixed"][style*="z-index: 9999"]{z-index:99999!important}div[style*="position: fixed"][style*="z-index: 9999"] h3{color:#111827!important}div[style*="position: fixed"][style*="z-index: 9999"] p,div[style*="position: fixed"][style*="z-index: 9999"] li{color:#374151!important}.progress-step-label{color:#374151!important;font-weight:600!important}.progress-step.active .progress-step-label{color:#667eea!important}.progress-step.completed .progress-step-label{color:#10b981!important}.dif-form-body div[style*=border-radius][style*="cursor: pointer"]{background:#fff!important}.dif-form-body div[style*=border-radius][style*="cursor: pointer"] strong{color:#1f2937!important}.dif-form-body div[style*=border-radius][style*="cursor: pointer"] span{color:#6b7280!important}.dif-form-body .checkbox-wrapper label,.dif-form-body .checkbox-wrapper .checkbox-label,.dif-form-body .radio-wrapper label,.dif-form-body .radio-wrapper .radio-label,.form-body .checkbox-wrapper label,.form-body .checkbox-wrapper .checkbox-label,.form-body .radio-wrapper label,.form-body .radio-wrapper .radio-label,label.checkbox-label,.checkbox-wrapper label.checkbox-label,.dif-form-body label.checkbox-label{color:#1f2937!important;text-shadow:none!important;font-weight:500!important}.dif-form-body .checkbox-wrapper label[for],.dif-form-body label[for^=allergy-],.dif-form-body label[for^=condition-]{color:#1f2937!important;text-shadow:none!important}.dif-form-body .consent-card label,.dif-form-body .consent-section label,.consent-card label.consent-title{color:#111827!important;text-shadow:none!important}.dif-form-body .patient-type-option span,.dif-form-body label.patient-type-option span{color:#1f2937!important;text-shadow:none!important}.dif-form-body .info-box label,.dif-form-body .info-box h3,.dif-form-body .info-box p{text-shadow:none!important}.form-footer{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:40px 20px 30px;margin-top:60px;border-radius:0 0 8px 8px}.form-footer-content{max-width:800px;margin:0 auto;text-align:center}.form-footer-practice h3{font-size:1.5rem;font-weight:600;margin-bottom:25px;color:#fff}.form-footer-contact{display:flex;flex-direction:column;gap:12px;margin-bottom:30px}.footer-contact-item{display:flex;align-items:center;justify-content:center;gap:10px;font-size:.95rem;color:#fffffff2}.footer-contact-item a{color:#fff;text-decoration:none;transition:opacity .2s}.footer-contact-item a:hover{opacity:.8;text-decoration:underline}.footer-icon{width:18px;height:18px;opacity:.9;flex-shrink:0}.form-footer-secure{display:flex;align-items:center;justify-content:center;gap:8px;padding:15px;background:#ffffff1a;border-radius:6px;font-size:.9rem;margin-bottom:20px}.form-footer-powered{font-size:.85rem;opacity:.8}.form-footer-powered a{color:#fff;text-decoration:none;font-weight:500;transition:opacity .2s}.form-footer-powered a:hover{opacity:.8;text-decoration:underline}@media (max-width: 768px){.form-footer{padding:30px 15px 25px;margin-top:40px}.form-footer-practice h3{font-size:1.3rem;margin-bottom:20px}.footer-contact-item{font-size:.9rem}.form-footer-contact{gap:10px;margin-bottom:25px}}@media (max-width: 480px){.form-footer{padding:25px 15px 20px}.form-footer-practice h3{font-size:1.2rem}.footer-contact-item{font-size:.85rem;flex-wrap:wrap}.footer-icon{width:16px;height:16px}}.form-container{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;padding:0;margin:0}.form-header{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:3rem 2rem;text-align:center;color:#fff;border-bottom:1px solid rgba(255,255,255,.2);margin-bottom:2rem}.practice-logo{max-width:200px;height:auto;margin-bottom:1.5rem;filter:drop-shadow(0 4px 12px rgba(0,0,0,.15));opacity:.95}.form-header h1{font-size:2.5rem;margin:0 0 .5rem;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.1);letter-spacing:-.5px}.form-header h2{font-size:1.5rem;margin:0;font-weight:400;opacity:.95}.language-selector{display:flex;justify-content:center;margin-bottom:2rem;padding:0 1rem}.language-selector select{background:#fff;border:none;padding:.75rem 2.5rem .75rem 1rem;border-radius:50px;font-size:1rem;color:#333;box-shadow:0 4px 15px #0000001a;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;min-width:180px}.language-selector select:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00000026}.language-selector select:focus{outline:none;box-shadow:0 0 0 3px #667eea4d}.contact-form{max-width:600px;margin:0 auto;padding:2rem;background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000004d;margin-bottom:3rem}.form-group{margin-bottom:1.75rem;animation:fadeInUp .5s ease-out;animation-fill-mode:both}.form-group:nth-child(1){animation-delay:.1s}.form-group:nth-child(2){animation-delay:.15s}.form-group:nth-child(3){animation-delay:.2s}.form-group:nth-child(4){animation-delay:.25s}.form-group:nth-child(5){animation-delay:.3s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.form-group label{display:block;margin-bottom:.5rem;color:#333;font-weight:600;font-size:.95rem;letter-spacing:.3px}.form-group label.required:after{content:" *";color:#e74c3c;font-weight:700}.form-group input[type=text],.form-group input[type=email],.form-group input[type=tel],.form-group select,.form-group textarea{width:100%;padding:.875rem 1rem;border:2px solid #e1e8ed;border-radius:10px;font-size:1rem;transition:all .3s ease;background:#fafbfc;color:#333;box-sizing:border-box}.form-group input::placeholder,.form-group textarea::placeholder{color:#9ca3af}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a;transform:translateY(-1px)}.form-group input:hover,.form-group select:hover,.form-group textarea:hover{border-color:#cbd5e0;background:#fff}.form-group select{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;padding-right:2.5rem}.form-group textarea{resize:vertical;min-height:120px;font-family:inherit;line-height:1.5}.form-group input.error,.form-group select.error,.form-group textarea.error{border-color:#e74c3c;background-color:#fff5f5}.error-message{color:#e74c3c;font-size:.875rem;margin-top:.5rem;display:block;animation:shake .3s ease-in-out}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.submit-button{width:100%;padding:1rem 2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea66;letter-spacing:.5px;text-transform:uppercase;margin-top:1.5rem;position:relative;overflow:hidden}.submit-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:#fff3;transition:left .4s ease}.submit-button:hover:before{left:100%}.submit-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea80}.submit-button:active{transform:translateY(0)}.submit-button:disabled{opacity:.6;cursor:not-allowed;background:#9ca3af;box-shadow:none}.submit-button:disabled:hover{transform:none}.success-message{text-align:center;padding:3rem 2rem;background:#fff;border-radius:20px;max-width:500px;margin:2rem auto;box-shadow:0 20px 60px #0000004d;animation:slideInScale .5s ease-out}@keyframes slideInScale{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.success-icon{width:80px;height:80px;margin:0 auto 1.5rem;background:linear-gradient(135deg,#4ade80,#22c55e);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:3rem;color:#fff;animation:bounceIn .6s ease-out;box-shadow:0 10px 30px #22c55e4d}@keyframes bounceIn{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.success-message h2{color:#1f2937;margin-bottom:1rem;font-size:1.8rem}.success-message p{color:#6b7280;line-height:1.6;margin-bottom:1.5rem}.form-footer{text-align:center;padding:2rem 1rem 3rem;color:#fffc;font-size:.9rem}.form-footer a{color:#fff;text-decoration:none;font-weight:600}.form-footer a:hover{text-decoration:underline}@media (max-width: 768px){.form-header{padding:2rem 1rem}.form-header h1{font-size:2rem}.form-header h2{font-size:1.2rem}.contact-form{margin:1rem;padding:1.5rem;border-radius:15px}.form-group input,.form-group select,.form-group textarea{font-size:16px}.submit-button{font-size:1rem;padding:.875rem 1.5rem}}[dir=rtl] .form-group label{text-align:right}[dir=rtl] .form-group label.required:after{content:" *";color:#e74c3c;font-weight:700}[dir=rtl] .form-group select{background-position:left 1rem center;padding-left:2.5rem;padding-right:1rem}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}.spinner{width:50px;height:50px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}*:focus-visible{outline:3px solid #667eea;outline-offset:2px}@media print{.form-container{background:#fff}.form-header{background:none;color:#000;border-bottom:2px solid #333}.submit-button,.language-selector{display:none}}:root{--gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--text-dark: #1a202c;--text-gray: #4a5568;--text-light: #718096;--accent: #667eea;--shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);--shadow-md: 0 4px 12px rgba(0, 0, 0, .1);--shadow-lg: 0 10px 30px rgba(0, 0, 0, .15);--shadow-xl: 0 20px 50px rgba(0, 0, 0, .2)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased}.form-selector-container{min-height:100vh;background:var(--gradient-bg);padding:40px 20px 60px;position:relative;overflow-x:hidden}.form-selector-container:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:radial-gradient(circle at 20% 30%,rgba(255,255,255,.1) 0%,transparent 50%),radial-gradient(circle at 80% 70%,rgba(255,255,255,.08) 0%,transparent 50%);pointer-events:none}.language-selector-wrapper{position:fixed;top:20px;right:20px;z-index:100;background:#fff;padding:10px 20px;border-radius:25px;box-shadow:var(--shadow-md);transition:all .3s ease;display:flex;align-items:center;gap:8px}.language-selector-wrapper:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}.language-selector-wrapper svg,.language-selector-wrapper .globe-icon{width:18px;height:18px;color:var(--accent);flex-shrink:0}.language-selector-wrapper select{border:none;background:transparent;font-size:.95rem;font-weight:600;color:var(--text-dark);cursor:pointer;outline:none;padding:0 20px 0 0;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center;transition:color .2s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.language-selector-wrapper select:hover{color:var(--accent)}.language-selector-wrapper select:active,.language-selector-wrapper select:focus{color:var(--accent)}.language-selector-wrapper select option{font-weight:500;padding:12px;background:#fff;color:var(--text-dark);font-size:16px;line-height:1.5}.language-selector-wrapper:has(select:focus){box-shadow:0 0 0 3px #667eea26,var(--shadow-lg);background:#fafafa}@supports (-webkit-touch-callout: none){.language-selector-wrapper select,.language-selector-wrapper select option{font-size:16px}}.form-selector-header{max-width:1100px;margin:0 auto 50px;text-align:center;background:#fff;padding:45px 35px;border-radius:24px;box-shadow:var(--shadow-lg);position:relative;z-index:1}.logo-container{margin-bottom:20px}.practice-logo-large{max-width:200px;max-height:70px;height:auto;display:block;margin:0 auto;object-fit:contain}.practice-name{font-size:2.8rem;font-weight:800;color:var(--text-dark);margin-bottom:25px;letter-spacing:-.03em;line-height:1.1}.welcome-section{margin-top:20px}.welcome-title{font-size:1.3rem;font-weight:600;color:var(--text-gray);margin-bottom:8px}.welcome-subtitle{font-size:1.1rem;color:var(--text-light);font-weight:500}.primary-forms{max-width:1100px;margin:0 auto 40px;display:grid;grid-template-columns:repeat(3,1fr);gap:24px;position:relative;z-index:1}.form-card.primary{position:relative;background:#fff;border:none;border-radius:20px;padding:0;min-height:280px;cursor:pointer;overflow:hidden;box-shadow:var(--shadow-md);transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column}.form-card.primary:hover{transform:translateY(-10px);box-shadow:var(--shadow-xl)}.form-card.primary:active{transform:translateY(-5px)}.form-card-gradient{position:absolute;top:0;left:0;right:0;height:120px;z-index:0}.form-card-content{position:relative;z-index:1;padding:36px 28px;display:flex;flex-direction:column;align-items:center;text-align:center;flex:1}.form-icon{font-size:4rem;margin-bottom:20px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.1));transition:transform .3s ease}.form-card.primary:hover .form-icon{transform:scale(1.15)}.form-title{font-size:1.35rem;font-weight:700;color:var(--text-dark);margin-bottom:10px;line-height:1.4;letter-spacing:-.02em;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.form-description{font-size:1rem;color:var(--text-light);line-height:1.7;margin-bottom:24px;flex:1;font-weight:500;word-wrap:break-word}.form-arrow{width:44px;height:44px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.form-card.primary:hover .form-arrow{transform:translate(6px);box-shadow:0 6px 20px #667eea80}.form-arrow svg{width:24px;height:24px}.additional-forms-section{max-width:1100px;margin:0 auto;position:relative;z-index:1}.show-more-button{display:flex;align-items:center;justify-content:center;gap:10px;background:#ffffff26;border:2px solid rgba(255,255,255,.3);color:#fff;padding:16px 40px;border-radius:50px;font-size:1.05rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);margin:0 auto 30px}.show-more-button:hover{background:#ffffff40;border-color:#ffffff80;transform:translateY(-3px);box-shadow:var(--shadow-md)}.show-more-button .chevron{transition:transform .3s ease}.show-more-button .chevron.up{transform:rotate(180deg)}.additional-forms{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;opacity:0;max-height:0;overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1)}.additional-forms.visible{opacity:1;max-height:1000px;margin-bottom:40px}.form-card.additional{background:#fff;border:none;border-radius:16px;padding:24px;display:flex;align-items:center;gap:18px;cursor:pointer;box-shadow:var(--shadow-sm);transition:all .3s cubic-bezier(.4,0,.2,1);text-align:left;min-height:100px}.form-card.additional:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);background:linear-gradient(135deg,#667eea05,#764ba205)}.form-icon-small{font-size:2.5rem;flex-shrink:0;transition:transform .3s ease}.form-card.additional:hover .form-icon-small{transform:scale(1.1)}.form-info{flex:1;min-width:0}.form-title-small{font-size:1.1rem;font-weight:700;color:var(--text-dark);margin-bottom:4px;letter-spacing:-.01em}.form-description-small{font-size:.9rem;color:var(--text-light);line-height:1.5;font-weight:500}.form-arrow-small{width:36px;height:36px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;transition:all .3s ease;box-shadow:0 2px 8px #667eea4d}.form-card.additional:hover .form-arrow-small{transform:translate(4px);box-shadow:0 4px 12px #667eea66}.form-arrow-small svg{width:20px;height:20px}.form-selector-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--gradient-bg);gap:20px;color:#fff}.loading-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.form-selector-loading p{font-size:1.1rem;font-weight:600}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.form-selector-header{animation:fadeInUp .5s ease-out}.form-card.primary{animation:fadeInUp .6s ease-out backwards}.form-card.primary:nth-child(1){animation-delay:.1s}.form-card.primary:nth-child(2){animation-delay:.2s}.form-card.primary:nth-child(3){animation-delay:.3s}.form-card.additional{animation:fadeInUp .4s ease-out backwards}.form-selector-container.rtl{direction:rtl}.form-selector-container.rtl .language-selector-wrapper{right:auto;left:20px}.form-selector-container.rtl .language-selector-wrapper select{transform-origin:right center}.form-selector-container.rtl .form-arrow svg{transform:scaleX(-1)}.form-selector-container.rtl .form-card.primary:hover .form-arrow{transform:translate(-6px)}.form-selector-container.rtl .form-card.additional:hover .form-arrow-small{transform:translate(-4px)}@media (max-width: 900px){.primary-forms{grid-template-columns:repeat(2,1fr);gap:20px}.practice-name{font-size:2.3rem}.form-card.primary{min-height:260px}.form-card-gradient{height:100px}.form-card-content{padding:32px 24px}.form-icon{font-size:3.5rem;margin-top:-6px}.form-title{font-size:1.25rem}.form-description{font-size:.95rem}.form-selector-container.rtl .language-selector-wrapper{right:auto;left:20px}}@media (max-width: 640px){.form-selector-container{padding:30px 15px 50px}.form-selector-header{padding:35px 25px;margin-bottom:35px}.practice-name{font-size:2rem}.welcome-title{font-size:1.15rem}.welcome-subtitle{font-size:1rem}.primary-forms{grid-template-columns:1fr;gap:18px;margin-bottom:30px}.form-card.primary{min-height:240px}.form-card-gradient{height:80px}.form-card-content{padding:24px 20px}.form-icon{font-size:3.2rem;margin-bottom:14px;margin-top:-10px}.form-title{font-size:1.15rem;margin-bottom:8px}.form-description{font-size:.9rem;margin-bottom:18px}.form-arrow{width:40px;height:40px}.form-arrow svg{width:22px;height:22px}.additional-forms{grid-template-columns:1fr;gap:14px}.form-card.additional{padding:20px}.language-selector-wrapper{top:12px;right:12px;padding:8px 14px;border-radius:20px;min-width:auto}.language-selector-wrapper select{font-size:16px;padding-right:18px;max-width:100px;transform:scale(.9);transform-origin:left center}.language-selector-wrapper svg,.language-selector-wrapper .globe-icon{width:16px;height:16px}.show-more-button{width:100%;max-width:320px;padding:14px 32px}.form-selector-container.rtl .language-selector-wrapper{right:auto;left:12px}}@media (max-width: 400px){.practice-name{font-size:1.7rem}.form-card.primary{min-height:220px}.form-card-gradient{height:70px}.form-card-content{padding:20px 18px}.form-icon{font-size:2.8rem;margin-bottom:12px;margin-top:-8px}.form-title{font-size:1.05rem;margin-bottom:6px}.form-description{font-size:.85rem;line-height:1.5}.form-arrow{width:36px;height:36px}.form-arrow svg{width:20px;height:20px}.form-icon-small{font-size:2rem}.form-title-small{font-size:1rem}.form-description-small{font-size:.85rem}.language-selector-wrapper{top:10px;right:10px;padding:6px 12px}.language-selector-wrapper select{font-size:16px;max-width:85px;padding-right:16px;transform:scale(.85);transform-origin:left center}.language-selector-wrapper svg,.language-selector-wrapper .globe-icon{width:14px;height:14px}.form-selector-container.rtl .language-selector-wrapper{right:auto;left:10px}}.form-card:focus-visible,.show-more-button:focus-visible{outline:3px solid rgba(102,126,234,.6);outline-offset:4px}.language-selector-wrapper select:focus{outline:none}.language-selector-wrapper:focus-within{box-shadow:0 0 0 3px #667eea33}@media (hover: none) and (pointer: coarse){.language-selector-wrapper{min-height:44px;min-width:44px}.language-selector-wrapper select{padding-top:4px;padding-bottom:4px}.language-selector-wrapper:hover{transform:none}.form-card{-webkit-tap-highlight-color:rgba(102,126,234,.1)}.show-more-button{min-height:48px}}@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape){.form-selector-container{padding:20px 15px 30px}.language-selector-wrapper{top:8px;right:8px;padding:6px 12px;border-radius:18px}.language-selector-wrapper select{font-size:16px;max-width:80px;transform:scale(.85);transform-origin:left center}.language-selector-wrapper svg,.language-selector-wrapper .globe-icon{width:14px;height:14px}.form-selector-header{padding:25px 20px;margin-bottom:25px}.practice-name{font-size:1.6rem;margin-bottom:15px}.welcome-title{font-size:1rem}.welcome-subtitle{font-size:.9rem}.form-card.primary{min-height:200px}.form-card-gradient{height:70px}.form-card-content{padding:20px 18px}.form-icon{font-size:2.8rem;margin-bottom:10px;margin-top:-8px}.form-title{font-size:1.05rem;margin-bottom:6px}.form-description{font-size:.85rem}.form-selector-container.rtl .language-selector-wrapper{right:auto;left:8px}}@media (prefers-contrast: high){.form-card{border:2px solid var(--text-dark)}.show-more-button{border-width:3px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media print{.language-selector-wrapper,.show-more-button{display:none}.form-selector-container{background:#fff}.additional-forms{opacity:1!important;max-height:none!important}}.form-title:lang(zh),.form-title:lang(ja),.form-title:lang(ko),.form-description:lang(zh),.form-description:lang(ja),.form-description:lang(ko){letter-spacing:.02em;word-break:keep-all;line-height:1.8}.form-title:lang(ar),.form-title:lang(he),.form-description:lang(ar),.form-description:lang(he){text-align:right;direction:rtl;line-height:1.75}.form-title,.form-description,.form-title-small,.form-description-small{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.loading-spinner{width:60px;height:60px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:25px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-container p{font-size:1.1rem;font-weight:500;letter-spacing:.5px}.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:40px;background:#f5f5f5;text-align:center}.error-icon{font-size:80px;margin-bottom:20px;animation:shake .5s ease}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.error-container h2{color:#333;margin-bottom:15px;font-size:2rem}.error-container p{color:#666;font-size:1.1rem;margin-bottom:10px;max-width:500px}.error-help{font-size:.95rem!important;color:#999!important;font-style:italic}.patient-portal{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:0}.form-nav,.app-container .form-nav{display:none!important}.patient-portal>div{min-height:100vh}.dif-form-container{margin:0 auto;max-width:900px;background:#fff;box-shadow:0 10px 40px #0000001a}@media (max-width: 768px){.patient-portal{padding:0}.dif-form-container{margin:0;border-radius:0;min-height:100vh}.error-container,.loading-container{padding:20px}.error-container h2{font-size:1.5rem}.error-icon{font-size:60px}}@media print{.patient-portal{background:#fff}.dif-form-container{box-shadow:none;max-width:100%}.loading-container,.error-container{display:none}}.patient-portal{animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.patient-portal{position:relative;z-index:1}
