• Slovenščina
  • Hrvatski
  • English
`); printWindow.document.close(); printWindow.print(); } function showNotification(message){ const notification=document.createElement('div'); notification.textContent=message; notification.style.cssText=` position: fixed; top: 20px; right: 20px; background: #047857; color: white; padding: 15px 25px; border-radius: 8px; z-index: 1000; font-weight: 600; box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3); `; document.body.appendChild(notification); setTimeout(()=> { notification.remove(); }, 3000); } document.querySelectorAll('input, select, textarea').forEach(field=> { field.addEventListener('blur', function(){ if(this.hasAttribute('required')&&!this.value.trim()){ this.style.borderColor='#ef4444'; }else{ this.style.borderColor='#6ee7b7'; }}); field.addEventListener('input', function(){ if(this.style.borderColor==='rgb(239, 68, 68)'&&this.value.trim()){ this.style.borderColor='#059669'; }}); }); document.querySelectorAll('textarea').forEach(textarea=> { textarea.addEventListener('input', function(){ this.style.height='auto'; this.style.height=this.scrollHeight + 'px'; }); }); document.querySelectorAll('a[href^="#"]').forEach(anchor=> { anchor.addEventListener('click', function (e){ e.preventDefault(); const target=document.querySelector(this.getAttribute('href')); if(target){ target.scrollIntoView({ behavior: 'smooth', block: 'start' }); }}); }); const observerOptions={ threshold: 0.1, rootMargin: '0px 0px -50px 0px' }; const observer=new IntersectionObserver((entries)=> { entries.forEach(entry=> { if(entry.isIntersecting){ entry.target.style.opacity='1'; entry.target.style.transform='translateY(0)'; }}); }, observerOptions); document.querySelectorAll('.feature-card, .specialty-card').forEach(el=> { el.style.opacity='0'; el.style.transform='translateY(30px)'; el.style.transition='opacity 0.6s ease, transform 0.6s ease'; observer.observe(el); }); Scroll to Top