/* ===== מחדשים · שאלון בדיקת התאמה · design system ===== */
:root {
  --ink: #12352C;
  --ink-soft: #56655B;
  --ink-faint: #8B8676;
  --bg: #F8F4EC;
  --card: #FFFDF8;
  --line: #E4DCCB;
  --brand: #103E34;
  --brand-deep: #0B2A23;
  --accent: #AE8625;
  --accent-dark: #8F6E1C;
  --accent-soft: #F7F0DD;
  --gold: #C6A667;
  --gold-hi: #D6B978;
  --danger: #C22F3E;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 50, 42, 0.10);
  --shadow-soft: 0 4px 14px rgba(24, 50, 42, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Assistant', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }

/* ===== top bar ===== */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #E7DCC0;
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120, 92, 34, 0.34); }
  50% { box-shadow: 0 0 0 6px rgba(174, 134, 37, 0); }
}

/* ===== hero ===== */
.hero { padding: 52px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1EADB;
  color: var(--brand-deep);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 12px;
  line-height: 1.4;
}
.hero-text {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 34em;
}

.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gold);
  color: #10352B;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 18px 42px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(120, 92, 34, 0.34);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover { background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120, 92, 34, 0.42); }
.btn-cta:active { transform: translateY(0); }
.btn-cta svg { width: 22px; height: 22px; }

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 16px;
  color: var(--ink-soft);
}
.cta-meta span { display: inline-flex; align-items: center; gap: 7px; }
.cta-meta svg { width: 18px; height: 18px; flex-shrink: 0; }

.owners-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #F7F0DD;
  border: 1px solid #EFE3C6;
  color: #7a5c14;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 16px;
}
.owners-note svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ===== system card (hero visual) ===== */
.system-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}
.system-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.system-card-title { font-weight: 700; font-size: 16px; }
.system-card-badge {
  font-size: 13px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 600;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #F0EADD;
  font-size: 16.5px;
  font-weight: 500;
}
.check-row:last-of-type { border-bottom: none; }
.check-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon svg { width: 15px; height: 15px; }
.score-row {
  margin-top: 10px;
  background: #F4EFE4;
  border-radius: 12px;
  padding: 14px 16px;
}
.score-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.score-bar { height: 10px; background: #E4DCCB; border-radius: 999px; overflow: hidden; }
.score-fill {
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: linear-gradient(270deg, var(--gold), var(--accent));
}
.card-disclaimer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

/* ===== sections ===== */
.section { padding: 44px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 36em;
  margin: 0 auto 36px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.section-alt .step-card { background: var(--bg); box-shadow: none; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 19.5px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 16.5px; color: var(--ink-soft); }

.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.check-item .check-icon { width: 34px; height: 34px; margin-top: 2px; }
.check-item .check-icon svg { width: 18px; height: 18px; }
.check-item h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 2px; }
.check-item p { font-size: 15.5px; color: var(--ink-soft); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  padding: 26px 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-deep);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip svg { width: 21px; height: 21px; flex-shrink: 0; }

.final-cta {
  text-align: center;
  padding: 54px 20px 62px;
}
.final-cta h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.final-cta p { color: var(--ink-soft); font-size: 18px; margin-bottom: 26px; }

footer {
  background: var(--brand);
  color: #CFC6B4;
  padding: 26px 0;
  font-size: 14.5px;
  text-align: center;
  line-height: 1.7;
}

/* ===== form page ===== */
.form-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.form-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
}
.progress-meta { font-size: 15px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 600px) {
  .form-topbar .brand { font-size: 14px; gap: 8px; }
  .form-topbar .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .form-topbar .brand-mark svg { width: 17px; height: 17px; }
}
.progress-track { height: 6px; background: #EFE8DB; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, var(--gold), var(--accent));
  transition: width 0.35s ease;
}

.form-stage {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}
.q-card { animation: slideIn 0.3s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-title {
  font-size: clamp(1.45rem, 4.6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}
.q-sub { font-size: 17px; color: var(--ink-soft); margin-bottom: 26px; }

.options { display: flex; flex-direction: column; gap: 13px; }
.opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  font-family: inherit;
  font-size: 19.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  box-shadow: var(--shadow-soft);
}
.opt-btn:hover { border-color: var(--brand); }
.opt-btn:active { transform: scale(0.99); }
.opt-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt-check {
  width: 28px; height: 28px;
  border: 2px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.opt-btn.selected .opt-check {
  border-color: var(--accent);
  background: var(--accent);
}
.opt-check svg { width: 15px; height: 15px; opacity: 0; }
.opt-btn.selected .opt-check svg { opacity: 1; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 20px;
  padding: 15px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(16, 62, 52, 0.12);
}
.field input.invalid { border-color: var(--danger); }
.field input:disabled { background: #F0EADD; color: var(--ink-faint); cursor: not-allowed; }

/* searchable dropdown (combobox) */
.combo { position: relative; }
.combo-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  max-height: 288px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 40;
  display: none;
  -webkit-overflow-scrolling: touch;
}
.combo.open .combo-list { display: block; }
.combo-item {
  padding: 14px 18px;
  font-size: 18.5px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid #F0EADD;
}
.combo-item:last-child { border-bottom: none; }
.combo-item:hover, .combo-item.active { background: var(--accent-soft); }
.combo-note {
  padding: 12px 18px;
  color: var(--ink-faint);
  font-size: 15px;
  border-bottom: 1px solid #F0EADD;
}
.field-error {
  display: none;
  color: var(--danger);
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}
.field-error.show { display: block; }

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  gap: 14px;
}
.btn-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #10352B;
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 17px 30px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(120, 92, 34, 0.3);
  transition: transform 0.15s ease;
}
.btn-next:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 8px;
}
.btn-back:hover { color: var(--ink); }
.btn-back svg { width: 18px; height: 18px; }
.form-owners-note {
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--ink-faint);
  text-align: center;
}

/* thank-you */
.thanks { text-align: center; padding-top: 16px; }
.thanks-icon {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thanks-icon svg { width: 46px; height: 46px; }
@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.thanks h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.thanks p { font-size: 18.5px; color: var(--ink-soft); max-width: 30em; margin: 0 auto 10px; }
.next-steps {
  margin: 30px auto 0;
  max-width: 460px;
  text-align: right;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.next-steps h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 14px; }
.next-steps .check-row { font-size: 16px; }

.submit-error {
  display: none;
  background: #FBEDEE;
  border: 1px solid #EFC9CE;
  color: var(--danger);
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 18px;
  text-align: center;
}
.submit-error.show { display: block; }

/* ===== responsive ===== */
@media (max-width: 860px) {
  .hero { padding: 36px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .steps-grid { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: 1fr; }
  .btn-cta { width: 100%; font-size: 21px; }
  .cta-block { align-items: stretch; }
  .cta-meta { justify-content: center; }
  .owners-note { justify-content: center; width: 100%; }
  .brand small { display: none; }
}
