/* ============================================================
   LK Finance — שער הפרטים של המחשבונים (calc gate)
   מופיע פעם אחת לגולש, לפני שהתוצאה של מחשבון כלשהו נחשפת.
   עצמאי לחלוטין — לא תלוי ב-calculators.css, כדי שיעבוד גם
   בעמודים אחרים (tichnun-ai) שלא טוענים אותו.
   ============================================================ */

.lkg-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.lkg-overlay.open { display: flex; }

.lkg-modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 34px 28px 26px;
  text-align: center;
  direction: rtl;
  background: #FFFFFF;
  box-shadow: 0 40px 90px -24px rgba(10, 22, 40, 0.5);
  animation: lkg-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes lkg-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lkg-modal { animation: none; }
}

.lkg-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: #5B6B85;
  background: rgba(10, 22, 40, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}
.lkg-close:hover { background: rgba(10, 22, 40, 0.12); color: #0A1628; }

.lkg-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: block;
  object-fit: contain;
  background: #FFFFFF;
  box-shadow: 0 10px 26px -10px rgba(46, 164, 160, 0.55);
}

.lkg-title {
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
  color: #0A1628;
  margin: 0 0 10px;
}
.lkg-sub {
  font-size: 15px;
  line-height: 1.65;
  color: #5B6B85;
  margin: 0 0 22px;
}

.lkg-form { text-align: right; }
.lkg-field { margin-bottom: 13px; }
.lkg-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1F2A44;
  margin-bottom: 6px;
}
.lkg-field input[type="text"],
.lkg-field input[type="tel"],
.lkg-field input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 16px; /* 16px = בלי זום אוטומטי ב-iOS */
  color: #0A1628;
  background: #FAFCFF;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  border-radius: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lkg-field input:focus {
  outline: none;
  border-color: #2EA4A0;
  box-shadow: 0 0 0 3px rgba(46, 164, 160, 0.16);
}
.lkg-field input.lkg-invalid {
  border-color: #D9534F;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.14);
}

.lkg-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5B6B85;
  cursor: pointer;
}
.lkg-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #2EA4A0;
  cursor: pointer;
}

.lkg-submit {
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #1B7BB8, #2EA4A0);
  box-shadow: 0 12px 32px -10px rgba(27, 123, 184, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.lkg-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 38px -10px rgba(27, 123, 184, 0.6); }
.lkg-submit[disabled] { opacity: 0.65; cursor: default; transform: none; }

.lkg-error {
  display: none;
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #C0392B;
}
.lkg-error.show { display: block; }

.lkg-fine {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8494AB;
}

@media (max-width: 520px) {
  .lkg-modal { padding: 30px 20px 22px; border-radius: 20px; }
  .lkg-title { font-size: 22px; }
  .lkg-sub { font-size: 14px; margin-bottom: 18px; }
}
