:root {
  --ink: #173934;
  --muted: #667975;
  --primary: #174c45;
  --primary-dark: #103833;
  --accent: #df965b;
  --paper: #f5f2ec;
  --surface: #ffffff;
  --line: #dce4e1;
  --soft-green: #e8f0ed;
  --danger: #a83838;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(23, 76, 69, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(223, 150, 91, 0.12), transparent 25%),
    var(--paper);
  color: var(--ink);
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
label,
input[type="file"],
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  padding: 10px 15px;
  background: #111111;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  padding-block: 20px;
  background: rgba(245, 242, 236, 0.95);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.app-title {
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.local-badge {
  padding: 7px 12px;
  background: var(--soft-green);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.restart-button {
  padding: 7px 12px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.restart-button:hover {
  border-color: var(--primary);
}

.landing-header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.landing-header-nav a {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-header-nav a:hover {
  color: var(--accent);
}

.is-marketing {
  background: var(--paper);
}

.is-marketing .app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.marketing-site {
  overflow: clip;
}

.marketing-hero {
  padding-block: clamp(65px, 9vw, 125px);
  background:
    radial-gradient(circle at 12% 15%, rgba(223, 150, 91, 0.24), transparent 30%),
    linear-gradient(135deg, #f8f4ed, #eef4f1);
}

.marketing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.marketing-kicker,
.marketing-section-heading > p,
.marketing-policy-card > div:first-child > p,
.marketing-cta p {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.marketing-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.marketing-lead {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marketing-primary,
.marketing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.marketing-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(23, 76, 69, 0.2);
}

.marketing-primary:hover {
  background: var(--primary-dark);
}

.marketing-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.hero-trust-list li::before {
  margin-inline-end: 7px;
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

.marketing-hero-card {
  padding: clamp(28px, 4vw, 45px);
  background: var(--primary);
  color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(16, 56, 51, 0.22);
  transform: rotate(-1.5deg);
}

.marketing-hero-card > p {
  margin-bottom: 6px;
  color: #f6bc89;
  font-size: 0.82rem;
  font-weight: 900;
}

.marketing-hero-card > strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.marketing-hero-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.marketing-hero-card li::before {
  margin-inline-end: 9px;
  content: "✓";
  color: #f6bc89;
  font-weight: 900;
}

.marketing-hero-card > span {
  display: block;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #dce9e6;
  font-size: 0.83rem;
}

.marketing-section {
  padding-block: clamp(65px, 8vw, 105px);
}

.marketing-section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.marketing-section-heading h2,
.marketing-policy-card h2,
.marketing-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.marketing-section-heading > span {
  color: var(--muted);
}

.marketing-package-grid,
.marketing-addon-grid,
.public-portfolio,
.marketing-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketing-package-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 260px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(23, 76, 69, 0.06);
}

.marketing-package-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(223, 150, 91, 0.18);
}

.marketing-package-card p {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.marketing-package-card h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.marketing-package-card strong {
  font-size: 2.35rem;
  line-height: 1.1;
}

.marketing-package-card span {
  color: var(--muted);
}

.marketing-included-section,
.marketing-portfolio-section {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.marketing-split,
.marketing-policy-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(35px, 7vw, 90px);
  align-items: start;
}

.marketing-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-check-grid li {
  padding: 16px 18px;
  background: var(--soft-green);
  border-radius: 12px;
  font-weight: 800;
}

.marketing-check-grid li::before {
  margin-inline-end: 8px;
  content: "✓";
  color: var(--primary);
}

.marketing-addon-grid div {
  display: grid;
  gap: 4px;
  padding: 19px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.marketing-addon-grid span {
  color: var(--muted);
}

.marketing-addon-grid strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.marketing-small-print {
  max-width: 850px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.portfolio-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portfolio-card:hover {
  box-shadow: 0 18px 45px rgba(23, 76, 69, 0.14);
  transform: translateY(-4px);
}

.portfolio-card-visual {
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    radial-gradient(circle at 20% 25%, var(--portfolio-accent), transparent 24%),
    linear-gradient(135deg, var(--portfolio-primary), #ffffff);
}

.portfolio-card-visual span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  color: var(--portfolio-primary);
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.portfolio-card-copy {
  display: grid;
  gap: 7px;
  padding: 20px;
}

.portfolio-card-copy small {
  color: var(--accent);
  font-weight: 900;
}

.portfolio-card-copy strong {
  font-size: 1.2rem;
}

.portfolio-card-copy p {
  min-height: 52px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-card-copy span {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
}

.portfolio-loading,
.portfolio-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.marketing-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-process-grid li {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.marketing-process-grid li > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  place-items: center;
  background: var(--soft-green);
  border-radius: 50%;
  color: var(--primary);
  font-weight: 900;
}

.marketing-process-grid strong {
  display: block;
  margin-bottom: 5px;
}

.marketing-process-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.marketing-policy-section {
  background: var(--primary);
  color: #ffffff;
}

.marketing-policy-card > div:last-child {
  padding: 26px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
}

.marketing-policy-card > div:last-child p:last-child {
  margin-bottom: 0;
  color: #dce9e6;
}

.marketing-cta {
  padding-block: clamp(70px, 9vw, 120px);
  text-align: center;
}

.marketing-cta .shell {
  max-width: 850px;
}

.marketing-cta .marketing-primary {
  margin-top: 20px;
}

.questionnaire-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 35px;
  align-items: start;
  padding-block: 44px 80px;
}

.questionnaire-layout.is-intro {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.questionnaire-layout.is-intro .progress-panel,
.questionnaire-layout.is-intro .mobile-progress {
  display: none;
}

.progress-panel {
  position: sticky;
  top: 24px;
  padding: 25px;
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-title {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 800;
}

.progress-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  color: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  font-size: 0.92rem;
}

.progress-list button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  background: transparent;
  color: inherit;
  border-radius: inherit;
  text-align: right;
}

.progress-list li:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

.progress-list button > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.78rem;
}

.progress-list li.is-current {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
}

.progress-list li.is-current button > span:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c2d2a;
}

.progress-list li.is-complete {
  color: rgba(255, 255, 255, 0.88);
}

.progress-list li.is-complete button > span:first-child {
  background: rgba(255, 255, 255, 0.16);
}

.progress-list li.is-skipped {
  color: rgba(255, 255, 255, 0.82);
}

.progress-list li.is-skipped button > span:first-child {
  border-color: var(--accent);
}

.progress-list li.is-skipped .progress-label::after {
  content: "להשלמה";
  display: block;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
}

.progress-list li.is-locked {
  opacity: 0.42;
}

.progress-list li.is-locked:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

.progress-list li.is-locked button {
  cursor: not-allowed;
}

.form-panel {
  min-width: 0;
  padding: clamp(28px, 5vw, 60px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.questionnaire-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.intro-lead {
  max-width: 720px;
  color: var(--muted);
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 18px;
}

.preflight-card {
  padding: 22px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.preflight-required {
  background: var(--soft-green);
  border-color: #bfd2cc;
}

.preflight-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.preflight-recommended {
  background: var(--accent);
  color: #172724;
}

.preflight-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-inline-start: 22px;
}

.preflight-optional-note {
  padding: 16px 18px;
  background: #fff8ec;
  border-right: 4px solid var(--accent);
  border-radius: 12px;
}

.preflight-optional-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.intro-start {
  margin-top: 24px;
  margin-right: 0;
}

.mobile-progress {
  display: none;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  background: var(--soft-green);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 14.28%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 180ms ease;
}

.mobile-step-buttons {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 13px;
}

.mobile-step-buttons button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #ffffff;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-step-buttons button.is-current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.mobile-step-buttons button.is-skipped {
  color: var(--danger);
  border-color: var(--accent);
}

.mobile-step-buttons button.is-locked {
  cursor: not-allowed;
  opacity: 0.42;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: step-in 180ms ease both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.step-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.step-number {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.step-header h1,
.step-header h2 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.step-header > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.field {
  display: grid;
  align-content: start;
  gap: 7px;
  margin-bottom: 22px;
}

.field > span:first-child,
.color-field > span:first-child {
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.field-with-ai input,
.field-with-ai textarea,
.color-input-row input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #cbd7d3;
  border-radius: 11px;
  outline: 0;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.field input,
.field select,
.field-with-ai input,
.color-input-row input[type="text"] {
  min-height: 52px;
}

.field select,
.field select option,
.field select optgroup {
  background-color: #ffffff;
  color: var(--ink);
  color-scheme: light;
  -webkit-text-fill-color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field-with-ai textarea {
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover,
.field-with-ai input:hover,
.field-with-ai textarea:hover,
.color-input-row input[type="text"]:hover {
  border-color: #9db2ac;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.field-with-ai input:focus,
.field-with-ai textarea:focus,
.color-input-row input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 76, 69, 0.1);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.field-with-ai {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.field-title-row,
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.field-title-row label {
  font-weight: 800;
}

.ai-field-button {
  flex: 0 0 auto;
  padding: 6px 10px;
  background: #eef3ff;
  color: #324f8a;
  border: 1px solid #cbd8f4;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.ai-field-button:disabled,
.ai-primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.ai-suggestions {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f7f9ff;
  border: 1px solid #dce4f7;
  border-radius: 12px;
}

.ai-suggestions button {
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #dce4f7;
  border-radius: 9px;
  text-align: right;
}

.ai-suggestions button:hover {
  border-color: #829bd0;
}

.field small,
.upload-card small,
.template-card small,
.radio-stack small,
.help-text,
.fieldset-help {
  color: var(--muted);
  font-size: 0.84rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.field-small {
  max-width: 340px;
}

.choice-fieldset {
  margin: 12px 0 30px;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 16px;
  font-size: 1.12rem;
  font-weight: 900;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.template-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 17px;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.template-card:hover {
  border-color: #a8bbb6;
  transform: translateY(-2px);
}

.template-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 76, 69, 0.09);
}

.template-card input {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.template-card strong,
.template-card small {
  padding-inline: 5px;
}

.product-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-type-card {
  display: flex;
  min-height: 145px;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 16px;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.product-type-card:hover {
  border-color: #a8bbb6;
  transform: translateY(-2px);
}

.product-type-card:has(input:checked) {
  background: var(--soft-green);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 76, 69, 0.08);
}

.product-type-card input {
  margin-top: 5px;
}

.product-type-card span {
  display: grid;
  gap: 7px;
}

.product-type-card small {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-price {
  margin-top: auto;
  color: var(--primary);
  font-size: 1.05rem;
}

.configuration-panel {
  margin: 0 0 26px;
  padding: 22px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.selection-count {
  flex: 0 0 auto;
  padding: 5px 10px;
  background: var(--soft-green);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.82rem;
}

.selection-count.is-over-limit {
  background: #f8e9e9;
  color: var(--danger);
}

.delivery-note {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: #fff8ec;
  border-right: 4px solid var(--accent);
  border-radius: 12px;
}

.delivery-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lead-form-fieldset {
  margin-top: 34px;
}

.lead-form-fieldset .configuration-panel {
  margin: 16px 0 0;
}

.nested-fieldset {
  margin-block: 20px;
}

.privacy-form-note {
  margin: 4px 0 0;
  padding: 13px 15px;
  background: var(--soft-green);
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.86rem;
}

.template-preview {
  position: relative;
  display: block;
  height: 120px;
  overflow: hidden;
  border-radius: 10px;
}

.template-preview i,
.template-preview b,
.template-preview em {
  position: absolute;
  display: block;
}

.preview-clean {
  background: #f7f4ee;
}

.preview-clean i {
  top: 24px;
  right: 16px;
  width: 62%;
  height: 10px;
  background: #18302d;
}

.preview-clean b {
  top: 43px;
  right: 16px;
  width: 74%;
  height: 6px;
  background: #93a19e;
}

.preview-clean em {
  right: 16px;
  bottom: 20px;
  width: 45px;
  height: 18px;
  background: #174c45;
  border-radius: 999px;
}

.preview-bold {
  background: #171717;
}

.preview-bold i {
  top: 22px;
  right: 14px;
  width: 70%;
  height: 19px;
  background: #ffffff;
}

.preview-bold b {
  top: 48px;
  right: 14px;
  width: 50%;
  height: 12px;
  background: #d9ff43;
}

.preview-bold em {
  right: 14px;
  bottom: 16px;
  width: 55px;
  height: 22px;
  background: #d9ff43;
}

.preview-warm {
  background: #fbf4ea;
}

.preview-warm i {
  top: 16px;
  left: 22px;
  width: 64px;
  height: 64px;
  background: #c7d7bf;
  border-radius: 50%;
}

.preview-warm b {
  top: 32px;
  right: 14px;
  width: 54%;
  height: 12px;
  background: #563445;
}

.preview-warm em {
  right: 14px;
  bottom: 24px;
  width: 48px;
  height: 20px;
  background: #d8765f;
  border-radius: 999px;
}

.radio-stack {
  display: grid;
  gap: 10px;
}

.radio-stack label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.radio-stack label:has(input:checked) {
  background: var(--soft-green);
  border-color: var(--primary);
}

.radio-stack input {
  margin-top: 5px;
}

.radio-stack span {
  display: grid;
}

.brand-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  margin-block: 28px;
}

.upload-card {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 25px;
  background: #fbfcfb;
  border: 2px dashed #b8c8c4;
  border-radius: 18px;
  text-align: center;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.upload-card:hover {
  background: var(--soft-green);
  border-color: var(--primary);
}

.drop-zone.is-dragover {
  background: #deebe6;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(23, 76, 69, 0.1);
}

.upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}

.upload-card-wide {
  min-height: 150px;
}

.logo-preview {
  display: grid;
  min-height: 120px;
  margin-top: 14px;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(45deg, #eef1f0 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f0 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f0 75%),
    #ffffff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.logo-preview img {
  max-width: 220px;
  max-height: 110px;
}

.about-image-selection {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 10px;
  place-items: center;
}

.about-image-selection[hidden] {
  display: none;
}

.about-image-selection img {
  display: block;
  width: min(180px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.about-image-selection small {
  overflow-wrap: anywhere;
  color: var(--primary);
  font-weight: 800;
}

.palette-panel {
  padding: 20px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.panel-label {
  margin-bottom: 0;
  font-weight: 900;
}

.panel-title-row {
  margin-bottom: 14px;
}

.palette-swatches {
  display: flex;
  min-height: 62px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.palette-swatch {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #b9c8c4;
  transition: transform 140ms ease;
}

.palette-swatch:hover {
  transform: scale(1.08);
}

.palette-swatch.is-primary::after,
.palette-swatch.is-accent::after {
  position: absolute;
  right: 50%;
  bottom: -24px;
  padding: 2px 6px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 5px;
  font-size: 0.65rem;
  transform: translateX(50%);
  white-space: nowrap;
}

.palette-swatch.is-primary::after {
  content: "ראשי";
}

.palette-swatch.is-accent::after {
  content: "הדגשה";
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.help-text {
  margin: 19px 0 0;
}

.color-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: end;
  margin-block: 30px;
  padding: 20px;
  background: var(--soft-green);
  border-radius: 16px;
}

.color-controls.is-disabled {
  opacity: 0.5;
}

.color-field {
  display: grid;
  gap: 8px;
}

.color-input-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 9px;
}

.color-input-row input[type="color"] {
  width: 48px;
  height: 48px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid #cbd7d3;
  border-radius: 10px;
}

.swap-button {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  place-items: center;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
}

.brand-preview {
  --preview-primary: #174c45;
  --preview-accent: #d99055;
  padding: 30px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--preview-primary) 8%, white), #ffffff);
  border: 1px solid color-mix(in srgb, var(--preview-primary) 24%, white);
  border-right: 7px solid var(--preview-accent);
  border-radius: 18px;
}

.preview-label {
  color: var(--preview-primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-preview h3 {
  margin: 9px 0;
  color: var(--preview-primary);
  font-size: 1.7rem;
}

.brand-preview p {
  color: #5e6d69;
}

.preview-button {
  display: inline-flex;
  padding: 9px 17px;
  background: var(--preview-primary);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 800;
}

.subsection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.subsection-heading h3 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.subsection-heading p {
  margin: 0;
  color: var(--muted);
}

.subsection-heading-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.brief-card {
  margin-bottom: 28px;
  padding: 24px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.brief-card .field:last-child {
  margin-bottom: 0;
}

.ai-copy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px;
  background:
    linear-gradient(120deg, #edf3ff, #faf7ff);
  border: 1px solid #d5dff5;
  border-radius: 18px;
}

.ai-copy-card h3 {
  margin: 6px 0;
}

.ai-copy-card p {
  margin-bottom: 0;
  color: #5d6881;
}

.ai-badge {
  display: inline-flex;
  padding: 3px 8px;
  background: #375a9e;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ai-primary-button {
  min-height: 48px;
  padding: 10px 18px;
  background: #375a9e;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
}

.ai-primary-button:hover {
  background: #29477f;
}

.ai-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.ai-status[data-mode="offline"] {
  color: #72531b;
}

.ai-status[data-mode="error"] {
  color: var(--danger);
}

.text-button {
  padding: 8px 12px;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}

.services-editor {
  display: grid;
  gap: 16px;
}

.service-editor-item {
  padding: 20px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.service-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.remove-service {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: transparent;
  color: var(--danger);
  border-radius: 50%;
  font-size: 1.25rem;
}

.remove-service:hover {
  background: #f8e9e9;
}

.optional-section {
  margin-top: 35px;
  padding: 18px 20px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.optional-section summary {
  font-weight: 800;
  cursor: pointer;
}

.optional-section[open] summary {
  margin-bottom: 22px;
}

.gallery-editor {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.gallery-editor-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 15px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.gallery-editor-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.client-pricing {
  margin-bottom: 28px;
  padding: 22px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-inline-start: 28px;
}

.included-list li::before {
  position: absolute;
  inset-inline-start: 0;
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

.domain-cost-note {
  padding: 15px 17px;
  background: #fff8ec;
  border: 1px solid #ead3a8;
  border-right: 4px solid var(--accent);
  border-radius: 12px;
}

.domain-cost-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.addons-heading {
  margin-top: 30px;
}

.client-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.client-addon-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.client-addon-card:has(input:checked) {
  background: var(--soft-green);
  border-color: var(--primary);
}

.client-addon-card input {
  margin-top: 4px;
}

.client-addon-card span {
  display: grid;
  gap: 3px;
}

.client-addon-card small,
.pricing-disclaimer,
.automatic-lead-price {
  color: var(--muted);
  font-size: 0.82rem;
}

.client-addon-card > b {
  white-space: nowrap;
  color: var(--primary);
}

.client-price-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.client-price-summary div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-inline-start: 1px solid var(--line);
}

.client-price-summary div:last-child {
  border-inline-start: 0;
}

.client-price-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.client-price-total {
  background: var(--soft-green);
}

.automatic-lead-price {
  margin: 12px 0 0;
  font-weight: 800;
}

.pricing-disclaimer {
  margin: 8px 0 0;
}

.payment-note {
  border: 1px solid #d8b27d;
  border-right-width: 5px;
}

.editing-note {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-right-width: 5px;
}

.completion-summary {
  margin-bottom: 20px;
  padding: 17px 19px;
  background: #fff8ec;
  border: 1px solid #ead3a8;
  border-right: 4px solid var(--accent);
  border-radius: 12px;
}

.completion-summary.is-ready {
  background: var(--soft-green);
  border-color: #bfd2cc;
  border-right-color: var(--primary);
}

.completion-summary p {
  margin: 4px 0 0;
  color: var(--muted);
}

.completion-step-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.completion-step-buttons button {
  padding: 7px 12px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #d8bea0;
  border-radius: 999px;
  font-weight: 800;
}

.completion-step-buttons button:hover {
  border-color: var(--primary);
}

.review-item {
  padding: 15px 17px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.review-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.review-item strong {
  overflow-wrap: anywhere;
}

.review-colors {
  display: inline-flex;
  gap: 7px;
  vertical-align: middle;
}

.review-colors i {
  display: block;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.final-note {
  margin-top: 25px;
  padding: 18px 20px;
  background: var(--soft-green);
  border-right: 4px solid var(--accent);
  border-radius: 12px;
}

.final-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.draft-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.primary-action,
.secondary-action,
.preview-action,
.skip-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  margin-right: auto;
  background: var(--primary);
  color: #ffffff;
}

.primary-action:hover {
  background: var(--primary-dark);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.secondary-action {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.skip-action {
  background: transparent;
  color: var(--muted);
  border: 1px dashed #b9c8c4;
}

.skip-action:hover {
  background: #fafbf9;
  color: var(--primary);
  border-color: var(--primary);
}

.preview-action {
  background: var(--accent);
  color: #172724;
}

.preview-action:hover {
  filter: brightness(0.96);
}

.preview-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.success-panel {
  padding-block: 45px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  place-items: center;
  background: var(--soft-green);
  color: var(--primary);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
}

.success-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.success-panel > p {
  color: var(--muted);
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.success-actions .primary-action {
  margin: 0;
}

@media (max-width: 980px) {
  .marketing-hero-grid,
  .marketing-split,
  .marketing-policy-card {
    grid-template-columns: 1fr;
  }

  .marketing-package-grid,
  .public-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-hero-card {
    transform: none;
  }

  .questionnaire-layout {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    display: none;
  }

  .mobile-progress {
    display: block;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .questionnaire-layout {
    padding-block: 22px 55px;
  }

  .landing-header-nav {
    display: none;
  }

  .marketing-hero-grid,
  .marketing-package-grid,
  .marketing-addon-grid,
  .public-portfolio,
  .marketing-process-grid,
  .marketing-check-grid {
    grid-template-columns: 1fr;
  }

  .marketing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-primary,
  .marketing-secondary {
    width: 100%;
  }

  .marketing-package-card {
    min-height: auto;
  }

  .form-panel {
    padding: 25px 18px;
    border-radius: 20px;
  }

  .field-grid,
  .template-grid,
  .product-type-grid,
  .brand-grid,
  .checkbox-grid,
  .review-summary,
  .client-addons-grid,
  .client-price-summary,
  .included-list,
  .preflight-grid {
    grid-template-columns: 1fr;
  }

  .client-price-summary div {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .client-price-summary div:last-child {
    border-top: 0;
  }

  .ai-copy-card {
    grid-template-columns: 1fr;
  }

  .ai-status {
    grid-column: 1;
  }

  .template-preview {
    height: 100px;
  }

  .color-controls {
    grid-template-columns: 1fr;
  }

  .swap-button {
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .gallery-editor-item {
    grid-template-columns: 1fr;
  }

  .gallery-editor-item img {
    width: 100%;
    height: 190px;
  }

  .gallery-editor-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 20px, 1240px);
  }

  .local-badge {
    display: none;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .primary-action,
  .secondary-action,
  .preview-action,
  .skip-action {
    width: 100%;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
