/* טופס יצירת קשר — חלון מודאלי נגיש, משותף לכל עמודי האתר */

.cf-backdrop{
  position:fixed;inset:0;z-index:300;
  background:rgba(4,7,14,.72);backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;padding:20px;
}
.cf-backdrop[hidden]{display:none}

.cf-modal{
  width:100%;max-width:480px;max-height:calc(100dvh - 40px);overflow-y:auto;
  background:#111726;border:1px solid rgba(255,255,255,.16);border-radius:20px;
  padding:28px 28px 24px;color:#eef1f8;
  font-family:'Heebo',system-ui,'Segoe UI',sans-serif;
  box-shadow:0 30px 80px rgba(0,0,0,.7);
}
.cf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:6px}
.cf-modal h2{font-size:1.3rem;font-weight:900;margin:0;letter-spacing:-.4px}
.cf-modal .cf-sub{color:#98a3bd;font-size:.92rem;margin-bottom:20px}
.cf-close{
  flex:none;width:34px;height:34px;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);
  color:#eef1f8;font-size:1.15rem;line-height:1;font-family:inherit;
}
.cf-close:hover{background:rgba(255,255,255,.14)}

.cf-field{margin-bottom:15px}
.cf-field label{display:block;font-size:.9rem;font-weight:700;margin-bottom:6px}
.cf-field .req{color:#f5c518}
.cf-field input,.cf-field select,.cf-field textarea{
  width:100%;padding:12px 14px;border-radius:12px;
  background:#0a0e1a;border:1px solid rgba(255,255,255,.2);
  color:#eef1f8;font:inherit;font-size:1rem;
}
.cf-field textarea{min-height:96px;resize:vertical}
.cf-field select{cursor:pointer}
.cf-field input::placeholder,.cf-field textarea::placeholder{color:#7d88a3}
.cf-field input:focus,.cf-field select:focus,.cf-field textarea:focus{
  outline:3px solid #f5c518;outline-offset:2px;border-color:#f5c518;
}
.cf-field .hint{font-size:.82rem;color:#98a3bd;margin-top:5px}
.cf-field .err{font-size:.85rem;color:#ff9c8a;margin-top:6px;font-weight:600}
.cf-field .err[hidden]{display:none}
.cf-field.bad input,.cf-field.bad select,.cf-field.bad textarea{border-color:#ff9c8a}

/* מלכודת ספאם, מוסתרת מהעין ומקוראי מסך כאחד */
.cf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.cf-submit{
  width:100%;margin-top:6px;padding:14px;border-radius:999px;border:0;cursor:pointer;
  background:#f5c518;color:#1a1400;font:inherit;font-weight:800;font-size:1.04rem;
}
.cf-submit:disabled{opacity:.6;cursor:default}
.cf-note{font-size:.82rem;color:#98a3bd;text-align:center;margin-top:12px}

.cf-result{text-align:center;padding:14px 0 4px}
.cf-result h3{font-size:1.2rem;font-weight:900;margin-bottom:8px}
.cf-result p{color:#98a3bd;font-size:.95rem}
.cf-result.ok h3{color:#6ee7a8}
.cf-result.fail h3{color:#ff9c8a}
.cf-result a{color:#f5c518}

html.a11y-contrast .cf-modal{background:#000;border-color:#fff}
html.a11y-contrast .cf-field input,
html.a11y-contrast .cf-field select,
html.a11y-contrast .cf-field textarea{background:#000;border-color:#fff;color:#fff}
html.a11y-contrast .cf-modal .cf-sub,
html.a11y-contrast .cf-field .hint,
html.a11y-contrast .cf-note,
html.a11y-contrast .cf-result p{color:#fff}

@media (max-width:520px){
  .cf-modal{padding:22px 20px 20px;border-radius:16px}
}
