diff --git a/css/style.css b/css/style.css
index b87cdd7..c799fc4 100644
--- a/css/style.css
+++ b/css/style.css
@@ -604,6 +604,12 @@ section {
display: none;
}
+.highlight-field select {
+ border-color: #0E756F;
+ box-shadow: 0 0 0 3px rgba(14, 117, 111, .2);
+ transition: box-shadow .3s, border-color .3s;
+}
+
/* ===== Footer ===== */
.footer {
background: #2D2D2D;
diff --git a/index.html b/index.html
index 50f5666..ce2069f 100644
--- a/index.html
+++ b/index.html
@@ -177,7 +177,7 @@
"description": "Psycholožka zaměřená na poruchy příjmu potravy a sebepojetí. 8 let praxe s empatickým přístupem.",
"knowsAbout": ["Poruchy příjmu potravy", "Anorexie", "Bulimie", "Sebepojetí"],
"worksFor": { "@type": "Organization", "name": "Rari Center" },
- "image": "https://images.unsplash.com/photo-1594824476967-48c8b964ac31?w=600&h=400&fit=crop&crop=face"
+ "image": "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=600&h=400&fit=crop&crop=face"
},
{
"@context": "https://schema.org",
@@ -477,7 +477,7 @@
-

+
@@ -653,6 +653,15 @@
+
+
+
+
diff --git a/js/main.js b/js/main.js
index 97cea22..f138ff7 100644
--- a/js/main.js
+++ b/js/main.js
@@ -76,8 +76,25 @@ function isValidEmail(email) {
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}
-// ===== Smooth Scroll for "Objednat se" buttons =====
+// ===== Plan selection from pricing buttons =====
+const formPlan = document.getElementById('formPlan');
+
+document.querySelectorAll('.plan-btn').forEach(btn => {
+ btn.addEventListener('click', (e) => {
+ e.preventDefault();
+ const plan = btn.getAttribute('data-plan');
+ if (formPlan && plan) {
+ formPlan.value = plan;
+ formPlan.parentElement.classList.add('highlight-field');
+ setTimeout(() => formPlan.parentElement.classList.remove('highlight-field'), 1500);
+ }
+ document.getElementById('kontakt').scrollIntoView({ behavior: 'smooth' });
+ });
+});
+
+// ===== Smooth Scroll for anchor links =====
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ if (anchor.classList.contains('plan-btn')) return;
anchor.addEventListener('click', (e) => {
const target = document.querySelector(anchor.getAttribute('href'));
if (target) {