/* ==========================================================================
   Farpod Master Landing System — Core Stylesheet (Zero CDN Dependency)
   100% CSP Safe: Self-hosted fonts, No external scripts, Bullet-proof RTL
   ========================================================================== */

/* 1. Typography Definition: Local Yekan Bakh with System Persian Fallbacks (WOFF + TTF, All Weights) */
@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-Regular.woff') format('woff'),
       url('/fonts/YekanBakh-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-Regular.woff') format('woff'),
       url('/fonts/YekanBakh-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-SemiBold.woff') format('woff'),
       url('/fonts/YekanBakh-SemiBold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-SemiBold.woff') format('woff'),
       url('/fonts/YekanBakh-SemiBold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-SemiBold.woff') format('woff'),
       url('/fonts/YekanBakh-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-SemiBold.woff') format('woff'),
       url('/fonts/YekanBakh-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-Bold.woff') format('woff'),
       url('/fonts/YekanBakh-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-Bold.woff') format('woff'),
       url('/fonts/YekanBakh-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-Black.woff') format('woff');
  font-weight: 850;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-Black.woff') format('woff');
  font-weight: 850;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('/fonts/YekanBakh-ExtraBlack.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/YekanBakh-ExtraBlack.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   Farpod Landing Design System v3 — ۱۴۰۵/۰۶/۲۵ (سند 011)
   هر قالب فقط «توکن‌ها + هنر سربرگ + چند کلاس هویتی» خودش را دارد. سربرگ، برچسب
   قیمت، مراحل ثبت‌نام، کارت متخصص، کارت پیشنهاد، نوار پایین، برگه فرم و وضعیت‌ها
   این‌جا یک‌بار و درست ساخته شده‌اند تا هیچ قالبی فرم یا قیمت را متفاوت نشان ندهد.
   موبایل‌اول: همه اندازه‌ها از ۳۶۰px شروع و با clamp بزرگ می‌شوند.
   بدون color-mix (پشتیبانی WebView اندروید قدیمی).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden], [data-fp-hidden] { display: none !important; }

:root {
  --fp-font: 'YekanBakh', 'Yekan Bakh', Tahoma, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fp-bg: #0b0f19;
  --fp-surface: rgba(255, 255, 255, 0.04);
  --fp-surface-2: rgba(255, 255, 255, 0.07);
  --fp-surface-strong: #131a2a;
  --fp-border: rgba(255, 255, 255, 0.1);
  --fp-text: #f1f5f9;
  --fp-text-soft: #cbd5e1;
  --fp-muted: #94a3b8;
  --fp-accent: #38bdf8;
  --fp-accent-2: #818cf8;
  --fp-accent-soft: rgba(56, 189, 248, 0.14);
  --fp-accent-line: rgba(56, 189, 248, 0.45);
  --fp-accent-glow: rgba(56, 189, 248, 0.32);
  --fp-on-accent: #04111d;
  --fp-success: #34d399;
  --fp-success-soft: rgba(52, 211, 153, 0.16);
  --fp-danger: #f87171;
  --fp-danger-soft: rgba(248, 113, 113, 0.14);
  --fp-radius: 20px;
  --fp-radius-sm: 12px;
  --fp-btn-radius: 999px;
  --fp-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --fp-card-shadow: none;
  --fp-sheet-bg: #0f1524;
  --fp-bar-bg: rgba(10, 14, 24, 0.92);
  --fp-input-bg: rgba(255, 255, 255, 0.05);
  --fp-display-weight: 900;
  --fp-display-size: clamp(2rem, 7.4vw, 3.4rem);
  --fp-wrap: 1140px;
}

html { direction: rtl; text-align: right; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.fp-scroll-locked, html.fp-scroll-locked body { overflow: hidden; }
body {
  font-family: var(--fp-font);
  background: var(--fp-bg);
  color: var(--fp-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fp-accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--fp-accent); color: var(--fp-on-accent); }
.fp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.fp-wrap { width: 100%; max-width: var(--fp-wrap); margin-inline: auto; padding-inline: clamp(18px, 4.5vw, 36px); }
.fp-section { padding-block: clamp(44px, 9vw, 96px); }
.fp-section-tight { padding-block: clamp(28px, 5vw, 56px); }
.fp-grid { display: grid; gap: clamp(12px, 2.4vw, 22px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .fp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .fp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Top bar (clinic identity — bound, never fake) ---------- */
.fp-topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.fp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; font-size: 0.95rem; }
.fp-brand-mark { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--fp-accent), var(--fp-accent-2)); color: var(--fp-on-accent); font-weight: 900; font-size: 1rem; }
.fp-brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-topbar-link { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 0.84rem; font-weight: 700; color: var(--fp-text-soft); text-decoration: none; padding: 6px 14px; border: 1px solid var(--fp-border); border-radius: 999px; background: var(--fp-surface); }
.fp-topbar-link svg { width: 16px; height: 16px; }

/* ---------- Typography ---------- */
.fp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0; color: var(--fp-accent); }
.fp-eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--fp-accent-soft); }
.fp-display { font-size: var(--fp-display-size); line-height: 1.24; font-weight: var(--fp-display-weight); letter-spacing: -0.015em; text-wrap: balance; }
.fp-display > [data-fp-bind="title"] { display: block; }
.fp-subtitle { display: block; margin-top: 12px; font-size: clamp(1.08rem, 2.8vw, 1.5rem); line-height: 1.65; font-weight: 600; letter-spacing: 0; color: var(--fp-accent); text-wrap: balance; }
.fp-lead { font-size: clamp(1rem, 2.2vw, 1.14rem); line-height: 1.95; color: var(--fp-text-soft); max-width: 60ch; white-space: pre-line; }
.fp-h2 { font-size: clamp(1.45rem, 4vw, 2.2rem); line-height: 1.45; font-weight: 850; letter-spacing: -0.01em; text-wrap: balance; }
.fp-h3 { font-size: 1.1rem; line-height: 1.65; font-weight: 800; }
.fp-text { color: var(--fp-text-soft); font-size: 0.97rem; line-height: 1.9; }
.fp-muted { color: var(--fp-muted); }
.fp-section-head { display: grid; gap: 10px; margin-bottom: clamp(22px, 4vw, 40px); max-width: 720px; }
.fp-section-head .fp-text { max-width: 58ch; }

/* ---------- Hero ---------- */
.fp-hero { position: relative; display: grid; gap: clamp(28px, 5vw, 56px); padding-block: clamp(20px, 5vw, 64px) clamp(36px, 7vw, 88px); }
@media (min-width: 980px) { .fp-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; } }
.fp-hero-copy { display: grid; gap: 18px; align-content: start; }
.fp-hero-copy .fp-display { margin-top: 2px; }
.fp-art { position: relative; min-height: 220px; border-radius: calc(var(--fp-radius) + 8px); overflow: hidden; isolation: isolate; }
.fp-art svg { width: 100%; height: 100%; }
/* موبایل: هنر سربرگ یک نوار کوتاه بالای عنوان است، نه نیمی از صفحه اول — عنوان و قیمت باید بی‌اسکرول دیده شوند */
/* قرارداد هنر سربرگ: viewBox ۴۰۰×۳۰۰ با slice؛ هر چیز مهم داخل نوار عمودی y=۵۰..۲۵۰ (در موبایل ۲:۱ فقط همین نوار دیده می‌شود) */
@media (max-width: 979px) { .fp-art { min-height: 0; aspect-ratio: 2 / 1; max-height: 210px; order: -1; } .fp-art.fp-art-after { order: 0; aspect-ratio: 16 / 10; max-height: none; } }

/* Price tag — the first thing a parent looks for; never a vague chip */
.fp-price-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: var(--fp-radius-sm); background: var(--fp-surface); border: 1px solid var(--fp-border); }
.fp-price-main { display: grid; gap: 0; }
.fp-price-label { font-size: 0.78rem; color: var(--fp-muted); font-weight: 600; }
.fp-price-value { font-size: clamp(1.25rem, 4vw, 1.55rem); font-weight: 900; line-height: 1.5; color: var(--fp-text); }
.fp-price-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.86rem; }
.fp-strike { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--fp-muted); font-weight: 600; }
.fp-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: var(--fp-success-soft); color: var(--fp-success); }
.fp-capacity { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--fp-text-soft); }
.fp-capacity::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fp-success); box-shadow: 0 0 0 4px var(--fp-success-soft); }
body[data-fp-state="full"] .fp-capacity::before { background: var(--fp-danger); box-shadow: 0 0 0 4px var(--fp-danger-soft); }

.fp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fp-assure { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--fp-muted); }
.fp-assure span { display: inline-flex; align-items: center; gap: 6px; }
.fp-assure span::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--fp-success); }

/* ---------- Cards & icons ---------- */
.fp-card { position: relative; background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: var(--fp-radius); padding: clamp(20px, 3.4vw, 28px); box-shadow: var(--fp-card-shadow); }
.fp-card .fp-h3 + .fp-text { margin-top: 6px; }
.fp-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--fp-accent-soft); color: var(--fp-accent); margin-bottom: 16px; }
.fp-icon svg { width: 24px; height: 24px; }
.fp-num { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 10px; border-radius: 13px; background: var(--fp-accent-soft); color: var(--fp-accent); font-weight: 900; font-size: 1rem; margin-bottom: 14px; }

/* ---------- Facts row (sessions, time, place — clinic must confirm) ---------- */
.fp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--fp-radius); overflow: hidden; border: 1px solid var(--fp-border); background: var(--fp-border); }
@media (min-width: 860px) { .fp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fp-fact { background: var(--fp-bg); padding: 16px 16px 18px; display: grid; gap: 2px; align-content: start; }
.fp-fact-label { font-size: 0.8rem; color: var(--fp-muted); font-weight: 600; }
.fp-fact-value { font-size: 1rem; font-weight: 850; line-height: 1.6; }

/* ---------- Instructor (bound; photo slot) ---------- */
.fp-person { display: flex; gap: 18px; align-items: flex-start; }
.fp-avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; background: linear-gradient(135deg, var(--fp-accent), var(--fp-accent-2)); color: var(--fp-on-accent); overflow: hidden; }
.fp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fp-person-name { font-size: 1.18rem; font-weight: 850; line-height: 1.6; }
.fp-person-role { font-size: 0.84rem; color: var(--fp-accent); font-weight: 800; }
.fp-person-bio { margin-top: 8px; color: var(--fp-text-soft); font-size: 0.95rem; line-height: 1.9; white-space: pre-line; }
@media (max-width: 420px) { .fp-person { flex-direction: column; gap: 14px; } }

/* ---------- Process (how registration works — the truth, shared) ---------- */
.fp-steps { display: grid; gap: 14px; counter-reset: fp-step; }
@media (min-width: 860px) { .fp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.fp-step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 18px; border-radius: var(--fp-radius); background: var(--fp-surface); border: 1px solid var(--fp-border); }
.fp-step::before { counter-increment: fp-step; content: counter(fp-step, persian); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--fp-accent); color: var(--fp-on-accent); }
.fp-step-title { font-weight: 850; font-size: 1rem; line-height: 1.7; }
.fp-step-text { color: var(--fp-text-soft); font-size: 0.9rem; line-height: 1.85; }

/* ---------- Offer card (in-page price + CTA, shared) ---------- */
.fp-offer { position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center; background: var(--fp-surface-strong); border: 1px solid var(--fp-border); border-radius: calc(var(--fp-radius) + 8px); padding: clamp(22px, 5vw, 40px); box-shadow: var(--fp-shadow); }
@media (min-width: 760px) { .fp-offer { grid-template-columns: 1fr auto; gap: 28px; } }
.fp-offer-title { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 850; line-height: 1.6; }
.fp-offer-price { font-size: clamp(1.7rem, 5.5vw, 2.4rem); font-weight: 900; line-height: 1.4; color: var(--fp-text); margin-top: 6px; }
.fp-offer-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; font-size: 0.9rem; color: var(--fp-muted); }
.fp-offer .fp-assure { margin-top: 14px; }
.fp-offer-cta { display: grid; gap: 10px; justify-items: stretch; }
@media (min-width: 760px) { .fp-offer-cta { min-width: 250px; } }

/* ---------- Buttons ---------- */
.fp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 28px; border-radius: var(--fp-btn-radius); border: 0; cursor: pointer; font-weight: 850; font-size: 1.02rem; line-height: 1.4; text-decoration: none; text-align: center; background: var(--fp-accent); color: var(--fp-on-accent); box-shadow: 0 12px 32px var(--fp-accent-glow); transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.fp-btn:active { transform: scale(0.98); }
@media (hover: hover) { .fp-btn:hover { filter: brightness(1.07); box-shadow: 0 16px 40px var(--fp-accent-glow); } }
.fp-btn-block { width: 100%; }
@media (max-width: 520px) { .fp-hero-actions .fp-btn { width: 100%; } }
.fp-btn-ghost { background: transparent; color: var(--fp-text); border: 1.5px solid var(--fp-border); box-shadow: none; }
.fp-btn svg { width: 20px; height: 20px; flex: none; }
.fp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 0.92rem; color: var(--fp-text-soft); text-decoration: none; }

/* ---------- Clinic footer (bound) ---------- */
.fp-footer { margin-top: clamp(20px, 4vw, 40px); padding-block: 30px 20px; border-top: 1px solid var(--fp-border); display: grid; gap: 6px; font-size: 0.88rem; color: var(--fp-muted); }
.fp-footer strong { color: var(--fp-text); font-size: 0.98rem; }
.fp-footer a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; font-weight: 700; color: var(--fp-text-soft); }

/* ---------- Sticky action bar (appears once the hero button is out of view) ---------- */
.fp-sticky-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; background: var(--fp-bar-bg); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--fp-border); padding: 10px clamp(14px, 4vw, 28px) calc(10px + env(safe-area-inset-bottom, 0px)); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1); }
body.fp-bar-away .fp-sticky-bar { transform: translateY(115%); }
.fp-bar-content { max-width: var(--fp-wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-bar-info { min-width: 0; display: grid; gap: 0; }
.fp-bar-title { font-size: 0.86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fp-text-soft); }
.fp-bar-price-box { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.fp-bar-price { font-size: 1.1rem; font-weight: 900; color: var(--fp-text); white-space: nowrap; }
.fp-bar-old-price { font-size: 0.8rem; color: var(--fp-muted); text-decoration: line-through; white-space: nowrap; }
.fp-bar-badge { font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--fp-success-soft); color: var(--fp-success); white-space: nowrap; }
.fp-bar-capacity { font-size: 0.76rem; color: var(--fp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-bar-cta { flex: none; min-height: 50px; padding-inline: 24px; }
@media (max-width: 480px) {
  .fp-bar-title, .fp-bar-old-price { display: none; }
  .fp-bar-cta { padding-inline: 20px; font-size: 0.96rem; }
}
body[data-fp-state="full"] .fp-bar-cta { background: var(--fp-surface-strong); color: var(--fp-text); box-shadow: none; border: 1.5px solid var(--fp-border); }

/* ---------- Registration sheet ---------- */
.fp-drawer-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 6, 16, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.fp-drawer-overlay.open { opacity: 1; visibility: visible; }
.fp-drawer-modal { position: fixed; z-index: 1001; inset-inline: 0; bottom: 0; margin-inline: auto; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--fp-sheet-bg); color: var(--fp-text); border: 1px solid var(--fp-border); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px clamp(18px, 5vw, 28px) calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.45); transform: translateY(104%); visibility: hidden; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0.35s; }
.fp-drawer-modal.open { transform: translateY(0); visibility: visible; }
.fp-drawer-modal::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--fp-border); margin: 4px auto 14px; }
@media (min-width: 760px) {
  .fp-drawer-modal { top: 50%; bottom: auto; border-bottom: 1px solid var(--fp-border); border-radius: 28px; transform: translateY(-46%) scale(0.97); opacity: 0; transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.3s; }
  .fp-drawer-modal.open { transform: translateY(-50%) scale(1); opacity: 1; }
  .fp-drawer-modal::before { display: none; }
}
.fp-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fp-drawer-title { font-size: 1.15rem; line-height: 1.65; font-weight: 850; }
.fp-drawer-sub { font-size: 0.86rem; line-height: 1.8; color: var(--fp-muted); margin-top: 2px; }
.fp-drawer-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fp-border); background: var(--fp-input-bg); color: var(--fp-text-soft); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.fp-drawer-close svg { width: 20px; height: 20px; }
.fp-field { display: grid; gap: 6px; margin-bottom: 14px; }
.fp-label { font-size: 0.9rem; font-weight: 700; color: var(--fp-text-soft); }
.fp-optional { font-weight: 500; color: var(--fp-muted); font-size: 0.8rem; }
.fp-input, .fp-select, .fp-textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--fp-border); background: var(--fp-input-bg); color: var(--fp-text); font-size: 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.fp-select option { color: #0f172a; }
.fp-textarea { min-height: 92px; resize: vertical; line-height: 1.8; }
.fp-input::placeholder, .fp-textarea::placeholder { color: var(--fp-muted); opacity: 0.85; }
.fp-input:focus, .fp-select:focus, .fp-textarea:focus { outline: none; border-color: var(--fp-accent); box-shadow: 0 0 0 4px var(--fp-accent-soft); }
.fp-input[aria-invalid="true"] { border-color: var(--fp-danger); box-shadow: 0 0 0 4px var(--fp-danger-soft); }
.fp-input[dir="ltr"] { text-align: left; letter-spacing: 0.05em; }
.fp-input[data-fp-locked-mobile] { color: var(--fp-muted); border-style: dashed; cursor: not-allowed; }
.fp-hint { font-size: 0.8rem; line-height: 1.7; color: var(--fp-muted); }
body:not([data-fp-mode="token"]) .fp-lock-hint { display: none; }
.fp-submit-btn { width: 100%; min-height: 56px; border: 0; border-radius: 16px; cursor: pointer; font-size: 1.04rem; font-weight: 900; background: var(--fp-accent); color: var(--fp-on-accent); box-shadow: 0 12px 28px var(--fp-accent-glow); }
.fp-submit-btn:disabled { opacity: 0.6; cursor: progress; }
.fp-privacy { margin-top: 12px; text-align: center; font-size: 0.8rem; line-height: 1.8; color: var(--fp-muted); }
.fp-form-message { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 0.9rem; font-weight: 700; line-height: 1.8; }
.fp-form-message--error { background: var(--fp-danger-soft); color: var(--fp-danger); }
.fp-success { text-align: center; padding: 18px 4px 6px; display: grid; gap: 10px; justify-items: center; }
.fp-success-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; font-weight: 900; background: var(--fp-success-soft); color: var(--fp-success); }
.fp-success-title { font-size: 1.22rem; font-weight: 900; }
.fp-success-text { color: var(--fp-text-soft); font-size: 0.96rem; line-height: 1.9; max-width: 36ch; }
.fp-success-call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--fp-border); background: var(--fp-surface); color: var(--fp-text-soft); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.fp-success .fp-submit-btn { margin-top: 8px; }

/* ---------- Status page (closed / not found) ---------- */
.fp-status-body { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 0%, #1e293b, #0b0f19 70%); }
.fp-status-card { width: 100%; max-width: 440px; text-align: center; background: rgba(15, 23, 42, 0.85); border: 1px solid var(--fp-border); border-radius: 26px; padding: 36px 24px; display: grid; gap: 12px; box-shadow: var(--fp-shadow); }
.fp-status-clinic { color: var(--fp-accent); font-weight: 800; font-size: 0.9rem; }
.fp-status-title { font-size: 1.35rem; line-height: 1.6; font-weight: 900; }
.fp-status-message { color: var(--fp-text-soft); line-height: 1.9; }
.fp-status-phone { justify-self: center; margin-top: 6px; display: inline-flex; min-height: 50px; align-items: center; padding: 0 24px; border-radius: 999px; background: var(--fp-accent); color: var(--fp-on-accent); font-weight: 850; text-decoration: none; }

/* ---------- Entrance motion (CSS only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fp-rise { animation: fpRise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .fp-rise-2 { animation-delay: 0.08s; }
  .fp-rise-3 { animation-delay: 0.16s; }
  .fp-rise-4 { animation-delay: 0.24s; }
  @keyframes fpRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
