﻿/* =====================================================================
   snapir.co.il - forms shown inside the content frame (Contact.aspx, Careers.aspx)
   ===================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body {
  padding: 30px 36px 40px;
  font-family: 'Heebo', Arial, Helvetica, sans-serif;
  color: #334155; direction: rtl;
  -webkit-font-smoothing: antialiased;
}
html[dir="ltr"] body { direction: ltr; }   /* ?lang=en|fr */
a { color: #0763f2; }
.sf-done p a, .sf-alert a { font-weight: 700; text-decoration: none; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.sf-title {
  font-size: 28px; font-weight: 800; color: #0b2a5b; line-height: 1.3;
  margin: 0 0 12px; padding-bottom: 14px; border-bottom: 3px solid #e6f0ff;
}
.sf-lead { font-size: 17px; color: #475569; line-height: 1.75; margin: 0 0 24px; max-width: 640px; }
.sf-lead a { font-weight: 700; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 680px; }
.sf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-field.wide { grid-column: 1 / -1; }
.sf-field label { font-weight: 600; font-size: 15px; color: #0b2a5b; }
.sf-field label i { font-style: normal; color: #0763f2; }
.sf-field label small { font-weight: 400; color: #94a3b8; }
.sf-field input[type="text"], .sf-field input[type="email"], .sf-field input[type="tel"],
.sf-field select, .sf-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: #0b2a5b;
  padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.sf-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
  outline: none; border-color: #0763f2; box-shadow: 0 0 0 4px #e6f0ff;
}
.sf-err { color: #dc2626; font-size: 13px; font-weight: 600; }

/* file upload */
.sf-file {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 2px dashed #bcd4fb; border-radius: 12px; background: #f4f8fe;
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s;
}
.sf-file:hover { border-color: #0763f2; background: #eef5ff; }
.sf-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.sf-file svg { width: 28px; height: 28px; stroke: #0763f2; flex: none; }
.sf-file b { display: block; color: #0b2a5b; font-size: 15px; }
.sf-file span { display: block; color: #64748b; font-size: 13px; }
.sf-file.has-file { border-style: solid; border-color: #0763f2; }

.sf-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sf-btn {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  background: #0763f2; color: #fff; border: 0; border-radius: 12px;
  padding: 13px 44px; box-shadow: 0 6px 18px rgba(7, 99, 242, .25);
  transition: background .15s, transform .15s;
}
.sf-btn:hover { background: #0553cc; transform: translateY(-1px); }
.sf-note { color: #94a3b8; font-size: 13px; }
.sf-alert {
  display: block; margin-top: 18px; max-width: 680px;
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: 10px; padding: 12px 14px; font-weight: 600;
}
/* hidden anti-bot field. Not moved off-screen: in an RTL page left:-9999px widens the page (sideways scrollbar) */
.sf-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html { overflow-x: hidden; }

/* thank-you panel */
.sf-done { text-align: center; padding: 50px 20px; max-width: 520px; margin: 0 auto; }
.sf-done .ok {
  width: 64px; height: 64px; border-radius: 50%; background: #e6f0ff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.sf-done .ok svg { width: 32px; height: 32px; stroke: #0763f2; }
.sf-done h2 { font-size: 26px; color: #0b2a5b; margin: 0 0 8px; }
.sf-done p { font-size: 16px; color: #64748b; line-height: 1.7; margin: 0; }

@media (max-width: 640px) {
  body { padding: 20px 18px 28px; }
  .sf-title { font-size: 22px; }
  .sf-grid { grid-template-columns: 1fr; }
  .sf-btn { width: 100%; }
}
