#fw-block {
    --label-color: rgb(71, 71, 71);
    --note-color: rgba(71, 71, 71, 0.7);
    --primary-blue: #c9475f;
    --primary-blue-hover: #AE273F;
    --accent-teal: #0284c7;
    --qc-brand: #8b2b3b;          /* ribbon, check icons, CTA button */
    --qc-brand-hover: var(--primary-blue-hover, #AE273F);
    --qc-brand-dark: #561722;     /* ribbon fold */
    --qc-link: var(--primary-blue, #c9475f);
    --qc-muted: rgb(71, 71, 71);
    --qc-border: #e6e8eb;
    --qc-divider: rgba(68, 68, 68, 0.5);
    --qc-star: #f5b301;
    --qc-star-empty: #d9dce0;
    --qc-radius: 16px;
    --rt-box-shadow: 0 3px 12px 0 rgba(51, 51, 51, 0.25), 0 1px 2px 0 rgba(51, 51, 51, 0.05);
    --primary-text-color: #474747;
    --qc-text: var(--primary-text-color, #474747);
}
 
.article-page #fw-block #page-header {
    background-image: none;
    height: 140px;
}

#fw-block {
    text-align: start;
    /* The top 110px stay white for the site's menu and logo (desktop and mobile);
       the headline image starts below them. */
    margin-top: 0;
    padding-top: 110px;
    color: var(--primary-text-color);
    line-height: 1.5;
    tab-size: 4;
    /* Headline image at 50% strength: a half-white layer over the photo gives the same
       look as opacity .5 on white. Both layers are clipped to the content box, so
       they start under the 110px padding.
       No position/z-index here on purpose: a stacking context on #fw-block would trap
       the open panels (z-index 31 / 9999) under the article content that follows the block. */
    background:
        linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8  )) content-box,
        url("/themes/_dec20/images/foreign_workers.jpeg") center / cover no-repeat content-box;
}

#fw-block[dir="ltr"] {
    font-family: 'Inter', 'Heebo', sans-serif;
}

/* The hero heading and subheading are always Hebrew (dir="rtl" lang="he" in block.php): keep the site font in English too */
#fw-block[dir="ltr"] .fw-hero { font-family: "FbCoherentiSans Regular", Helvetica, Arial, sans-serif; }

/*
 * utilities.css — self-hosted utility classes (replaces the Tailwind CDN).
 *
 * Only the classes actually used in index.html and script.js are defined here,
 * using the same names and values Tailwind used, so markup and JS are unchanged.
 * Load AFTER style.css (same cascade order the Tailwind CDN had).
 *
 * If you add a new utility class in HTML/JS, add its rule here as well.
 * Breakpoints: sm = 640px, lg = 1024px.
 */

/* ------------------------------------------------------------------ */
/* Base reset (minimal equivalent of Tailwind "preflight")             */
/* ------------------------------------------------------------------ */
#fw-block *, #fw-block ::before, #fw-block ::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}
#fw-block h1, #fw-block h2, #fw-block h3, #fw-block p, #fw-block pre { margin: 0; }
#fw-block h1, #fw-block h2, #fw-block h3 { font-size: inherit; font-weight: inherit; }
#fw-block button, #fw-block input {
  font-family: inherit; font-size: 100%; font-weight: inherit;
  line-height: inherit; color: inherit; margin: 0; padding: 0;
}
#fw-block button { background-color: transparent; background-image: none; text-transform: none; -webkit-appearance: button; }
#fw-block button, #fw-block [role="button"] { cursor: pointer; }
#fw-block input::placeholder { opacity: 1; color: #9ca3af; }
#fw-block img, #fw-block svg { display: block; vertical-align: middle; }
#fw-block img { max-width: 100%; height: auto; }
#fw-block pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; }

/* ------------------------------------------------------------------ */
/* Layout & display                                                    */
/* ------------------------------------------------------------------ */
#fw-block .block { display: block; }
#fw-block .flex { display: flex; }
#fw-block .inline-flex { display: inline-flex; }
#fw-block .grid { display: grid; }
#fw-block .hidden { display: none !important; }

#fw-block .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

#fw-block .relative { position: relative; }
#fw-block .absolute { position: absolute; }
#fw-block .sticky { position: sticky; }
#fw-block .top-0 { top: 0; }
#fw-block .top-full { top: 100%; }
#fw-block .start-0 { inset-inline-start: 0; }
#fw-block .right-2\.5 { right: 0.625rem; }
#fw-block .z-30 { z-index: 30; }
#fw-block .z-40 { z-index: 40; }

#fw-block .overflow-hidden { overflow: hidden; }
#fw-block .overflow-x-auto { overflow-x: auto; }

/* Flexbox & grid */
#fw-block .flex-col { flex-direction: column; }
#fw-block .flex-wrap { flex-wrap: wrap; }
#fw-block .flex-1 { flex: 1 1 0%; }
#fw-block .shrink-0 { flex-shrink: 0; }
#fw-block .items-center { align-items: center; }
#fw-block .items-start { align-items: flex-start; }
#fw-block .items-stretch { align-items: stretch; }
#fw-block .justify-between { justify-content: space-between; }
#fw-block .justify-center { justify-content: center; }
#fw-block .justify-end { justify-content: flex-end; }
#fw-block .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
#fw-block .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#fw-block .gap-1 { gap: 0.25rem; }
#fw-block .gap-2 { gap: 0.5rem; }
#fw-block .gap-2\.5 { gap: 0.625rem; }
#fw-block .gap-3 { gap: 0.75rem; }
#fw-block .gap-4 { gap: 1rem; }
#fw-block .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* ------------------------------------------------------------------ */
/* Sizing                                                              */
/* ------------------------------------------------------------------ */
#fw-block .w-1\.5 { width: 0.375rem; }
#fw-block .w-2 { width: 0.5rem; }
#fw-block .w-4 { width: 1rem; }
#fw-block .w-5 { width: 1.25rem; }
#fw-block .w-7 { width: 1.75rem; }
#fw-block .w-10 { width: 2.5rem; }
#fw-block .w-24 { width: 6rem; }
#fw-block .w-full { width: 100%; }
#fw-block .h-2 { height: 0.5rem; }
#fw-block .h-4 { height: 1rem; }
#fw-block .h-5 { height: 1.25rem; }
#fw-block .h-7 { height: 1.75rem; }
#fw-block .h-10 { height: 2.5rem; }
#fw-block .h-16 { height: 4rem; }
#fw-block .max-w-2xl { max-width: 42rem; }
#fw-block .max-w-3xl { max-width: 48rem; }
#fw-block .max-w-5xl { max-width: 64rem; }
#fw-block .max-w-6xl { max-width: 72rem; }

/* ------------------------------------------------------------------ */
/* Spacing                                                             */
/* ------------------------------------------------------------------ */
#fw-block .mx-auto { margin-left: auto; margin-right: auto; }
#fw-block .mt-0\.5 { margin-top: 0.125rem; }
#fw-block .mt-1 { margin-top: 0.25rem; }
#fw-block .mt-1\.5 { margin-top: 0.375rem; }
#fw-block .mt-2\.5 { margin-top: 0.625rem; }
#fw-block .mt-3 { margin-top: 0.75rem; }
#fw-block .mt-4 { margin-top: 1rem; }
#fw-block .mt-5 { margin-top: 1.25rem; }
#fw-block .mt-10 { margin-top: 2.5rem; }
#fw-block .mt-14 { margin-top: 3.5rem; }
#fw-block .mb-1\.5 { margin-bottom: 0.375rem; }
#fw-block .mb-2 { margin-bottom: 0.5rem; }
#fw-block .mb-2\.5 { margin-bottom: 0.625rem; }
#fw-block .mb-3 { margin-bottom: 0.75rem; }
#fw-block .mb-4 { margin-bottom: 1rem; }
#fw-block .mb-5 { margin-bottom: 1.25rem; }
#fw-block .mb-8 { margin-bottom: 2rem; }

#fw-block .p-1 { padding: 0.25rem; }
#fw-block .p-1\.5 { padding: 0.375rem; }
#fw-block .p-2\.5 { padding: 0.625rem; }
#fw-block .p-4 { padding: 1rem; }
#fw-block .p-5 { padding: 1.25rem; }
#fw-block .p-6 { padding: 1.5rem; }
#fw-block .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
#fw-block .px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
#fw-block .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
#fw-block .px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
#fw-block .px-4 { padding-left: 1rem; padding-right: 1rem; }
#fw-block .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
#fw-block .px-8 { padding-left: 1rem; padding-right: 1rem; }
#fw-block .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
#fw-block .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
#fw-block .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
#fw-block .py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
#fw-block .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
#fw-block .py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
#fw-block .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
#fw-block .pt-3 { padding-top: 0.75rem; }
#fw-block .pt-10 { padding-top: 2.5rem; }
#fw-block .pb-2\.5 { padding-bottom: 0.625rem; }
#fw-block .pb-20 { padding-bottom: 5rem; }

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */
#fw-block .text-xs { font-size: 0.75rem; line-height: 1rem; }
#fw-block .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
#fw-block .text-base { font-size: 1rem; line-height: 1.5rem; }
#fw-block .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
#fw-block .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
#fw-block .text-2xl { font-size: 1.5rem; line-height: 2rem; }
#fw-block .leading-tight { line-height: 1.25; }

#fw-block .font-light { font-weight: 300; }
#fw-block .font-normal { font-weight: 400; }
#fw-block .font-medium { font-weight: 500; }
#fw-block .font-semibold { font-weight: 600; }
#fw-block .font-bold { font-weight: 700; }
#fw-block .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

#fw-block .tracking-tight { letter-spacing: -0.025em; }
#fw-block .tracking-wide { letter-spacing: 0.025em; }
#fw-block .tracking-wider { letter-spacing: 0.05em; }
#fw-block .uppercase { text-transform: uppercase; }
#fw-block .text-center { text-align: center; }
#fw-block .whitespace-nowrap { white-space: nowrap; }
#fw-block .antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Text colors */
#fw-block .text-white { color: #fff; }
#fw-block .text-\[\#c9475f\] { color: #c9475f; }
#fw-block .text-slate-400 { color: #94a3b8; }
#fw-block .text-slate-500 { color: #64748b; }
#fw-block .text-slate-600 { color: #475569; }
#fw-block .text-slate-700 { color: #334155; }
#fw-block .text-slate-800 { color: var(--primary-text-color); }
#fw-block .text-sky-300 { color: #7dd3fc; }
#fw-block .text-sky-600 { color: #0284c7; }
#fw-block .text-red-400 { color: #f87171; }
#fw-block .text-red-500 { color: #ef4444; }
#fw-block .text-red-700 { color: #b91c1c; }
#fw-block .text-emerald-600 { color: #059669; }
#fw-block .text-emerald-700 { color: #047857; }

/* ------------------------------------------------------------------ */
/* Backgrounds                                                         */
/* ------------------------------------------------------------------ */
#fw-block .bg-transparent { background-color: transparent; }
#fw-block .bg-white { background-color: #fff; }
#fw-block .bg-white\/70 { background-color: rgb(255 255 255 / 0.7); }
#fw-block .bg-white\/90 { background-color: rgb(255 255 255 / 0.9); }
#fw-block .bg-\[\#c9475f\] { background-color: #c9475f; }
#fw-block .bg-slate-50 { background-color: #f8fafc; }
#fw-block .bg-slate-100 { background-color: #f1f5f9; }
#fw-block .bg-slate-100\/80 { background-color: rgb(241 245 249 / 0.8); }
#fw-block .bg-slate-800 { background-color: var(--primary-text-color); }
#fw-block .bg-slate-900 { background-color: #0f172a; }
#fw-block .bg-sky-50 { background-color: #f0f9ff; }
#fw-block .bg-sky-500 { background-color: #0ea5e9; }
#fw-block .bg-red-50 { background-color: #fef2f2; }
#fw-block .bg-emerald-100 { background-color: #d1fae5; }

/* ------------------------------------------------------------------ */
/* Borders & radius                                                    */
/* ------------------------------------------------------------------ */
#fw-block .border { border-width: 1px; }
#fw-block .border-t { border-top-width: 1px; }
#fw-block .border-b { border-bottom-width: 1px; }
#fw-block .border-dashed { border-style: dashed; }

#fw-block .border-\[\#c9475f\] { border-color: #c9475f; }
#fw-block .border-slate-100 { border-color: #f1f5f9; }
#fw-block .border-slate-200 { border-color: #e2e8f0; }
#fw-block .border-slate-200\/70 { border-color: rgb(226 232 240 / 0.7); }
#fw-block .border-slate-200\/80 { border-color: rgb(226 232 240 / 0.8); }
#fw-block .border-slate-200\/90 { border-color: rgb(226 232 240 / 0.9); }
#fw-block .border-slate-300 { border-color: #cbd5e1; }
#fw-block .border-sky-200 { border-color: #bae6fd; }
#fw-block .border-sky-200\/80 { border-color: rgb(186 230 253 / 0.8); }
#fw-block .border-sky-300 { border-color: #7dd3fc; }
#fw-block .border-red-200 { border-color: #fecaca; }
#fw-block .border-red-400 { border-color: #f87171; }
#fw-block .border-emerald-500 { border-color: #10b981; }

#fw-block .rounded-lg { border-radius: 0.5rem; }
#fw-block .rounded-xl { border-radius: 0.75rem; }
#fw-block .rounded-2xl { border-radius: 1rem; }
#fw-block .rounded-full { border-radius: 9999px; }
#fw-block .rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
#fw-block .rounded-b-2xl { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }

/* ------------------------------------------------------------------ */
/* Shadows & rings (composed through CSS variables, like Tailwind)     */
/* ------------------------------------------------------------------ */
#fw-block .shadow-sm  { --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05)); }
#fw-block .shadow-lg  { --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1)); }
#fw-block .shadow-xl  { --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1)); }
#fw-block .shadow-2xl { --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25)); }
#fw-block .shadow-slate-300\/50 { --tw-shadow-color: rgb(203 213 225 / 0.5); }

#fw-block .ring-1 { --tw-ring-shadow: 0 0 0 1px var(--tw-ring-color, rgb(59 130 246 / 0.5)); }
#fw-block .ring-\[\#c9475f\]\/30 { --tw-ring-color: rgb(201 71 95 / 0.3); }

#fw-block .shadow-sm, #fw-block .shadow-lg, #fw-block .shadow-xl, #fw-block .shadow-2xl, #fw-block .ring-1 {
  box-shadow: var(--tw-ring-shadow), var(--tw-shadow);
}

/* ------------------------------------------------------------------ */
/* Effects, transforms, transitions, interactivity                     */
/* ------------------------------------------------------------------ */
#fw-block .backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#fw-block .backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

#fw-block .rotate-180 { transform: rotate(180deg); }
#fw-block[dir="rtl"] .rtl\:rotate-180 { transform: rotate(180deg); }

#fw-block .transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
#fw-block .transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
#fw-block .transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
#fw-block .duration-200 { transition-duration: 200ms; }

#fw-block .animate-pulse { animation: fw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes fw-pulse { 50% { opacity: 0.5; } }

#fw-block .cursor-pointer { cursor: pointer; }
#fw-block .pointer-events-none { pointer-events: none; }
#fw-block .select-none { -webkit-user-select: none; user-select: none; }

#fw-block .selection\:bg-sky-100 ::selection, #fw-block .selection\:bg-sky-100::selection { background-color: #e0f2fe; }
#fw-block .selection\:text-sky-900 ::selection, #fw-block .selection\:text-sky-900::selection { color: #0c4a6e; }

/* ------------------------------------------------------------------ */
/* Hover / focus states                                                */
/* ------------------------------------------------------------------ */
#fw-block .hover\:bg-transparent:hover { background-color: transparent; }
#fw-block .hover\:bg-slate-100:hover { background-color: #f1f5f9; }
#fw-block .hover\:bg-slate-900:hover { background-color: #0f172a; }
#fw-block .hover\:bg-slate-50\/80:hover { background-color: rgb(248 250 252 / 0.8); }
#fw-block .hover\:bg-sky-50\/60:hover { background-color: rgb(240 249 255 / 0.6); }
#fw-block .hover\:border-sky-400:hover { border-color: #38bdf8; }
#fw-block .hover\:text-\[\#c9475f\]:hover { color: #c9475f; }
#fw-block .hover\:text-slate-600:hover { color: #475569; }
#fw-block .hover\:text-slate-800:hover { color: var(--primary-text-color); }
#fw-block .hover\:text-slate-900:hover { color: #0f172a; }
#fw-block .hover\:text-red-600:hover { color: #dc2626; }

#fw-block .focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
#fw-block .focus\:border-\[\#c9475f\]:focus { border-color: #c9475f; }
#fw-block .focus\:ring-2:focus {
  --tw-ring-shadow: 0 0 0 2px var(--tw-ring-color, rgb(59 130 246 / 0.5));
  box-shadow: var(--tw-ring-shadow), var(--tw-shadow);
}
#fw-block .focus\:ring-sky-500\/20:focus { --tw-ring-color: rgb(14 165 233 / 0.2); }
#fw-block .focus\:ring-sky-500\/40:focus { --tw-ring-color: rgb(14 165 233 / 0.4); }

/* ------------------------------------------------------------------ */
/* sm: ≥ 640px                                                         */
/* ------------------------------------------------------------------ */
@media (min-width: 640px) {
  #fw-block .sm\:flex-row { flex-direction: row; }
  #fw-block .sm\:items-center { align-items: center; }
  #fw-block .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #fw-block .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #fw-block .sm\:w-\[400px\] { width: 400px; }
  #fw-block .sm\:w-\[420px\] { width: 420px; }
  #fw-block .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  #fw-block .sm\:pt-16 { padding-top: 4rem; }
  #fw-block .sm\:mb-10 { margin-bottom: 2.5rem; }
  #fw-block .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  #fw-block .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  #fw-block .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  #fw-block .sm\:text-end { text-align: end; }
}

/* ------------------------------------------------------------------ */
/* lg: ≥ 1024px                                                        */
/* ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  #fw-block .lg\:flex-row { flex-direction: row; }
  #fw-block .lg\:w-auto { width: auto; }
  #fw-block .lg\:start-\[24\%\] { inset-inline-start: 24%; }
  #fw-block .lg\:p-2 { padding: 0.5rem; }
  #fw-block .lg\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  #fw-block .lg\:border-b-0 { border-bottom-width: 0; }
  #fw-block .lg\:border-e { border-inline-end-width: 1px; }
  #fw-block .lg\:rounded-none { border-radius: 0; }
  #fw-block .lg\:rounded-full { border-radius: 9999px; }
  #fw-block .lg\:first\:rounded-s-full:first-child { border-start-start-radius: 9999px; border-end-start-radius: 9999px; }
  #fw-block .lg\:last\:rounded-e-full:last-child { border-start-end-radius: 9999px; border-end-end-radius: 9999px; }
}


/* =========================================================================
   Search bar - matches the site's travel-insurance search bar
   (shukabit.co.il/node/8, sargel_rashi_in_page.css).
   Desktop >= 1000px: one rounded bar, each field opens a panel under it.
   Phones  <  1000px: a summary pill that opens a full-screen overlay
                       of field cards (accordion) with a bottom bar.
   ========================================================================= */
#fw-block .fw-app {
    --fw-text: #474747;
    --fw-muted: rgba(71, 71, 71, 0.7);
    --fw-red: #c9475f;
    --fw-red-dark: #AE273F;
    --fw-error: #d93025;
    --fw-field-border: rgba(71, 71, 71, 0.15);
    font-family: "FbCoherentiSans Regular", Helvetica, Arial, sans-serif;
    color: var(--fw-text);
    position: relative;
}
#fw-block .fw-app button,
#fw-block .fw-app input { font-family: inherit; color: inherit; }
#fw-block .qc-col--price button {color: #fff !important;}
/* ---------- Language switcher (quiet text links) ---------- */
#fw-block .fw-lang {
    display: flex;
    align-items: center;
    justify-content: flex-end;   /* end side: left in RTL */
    gap: .5rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 16px 1rem 0;
    font-size: 14px;
}
#fw-block .fw-lang__btn {
    padding: 2px 0;
    color: var(--fw-muted);
    cursor: pointer;
    border-bottom: 1px solid transparent;
}
#fw-block .fw-lang__btn:hover { color: var(--fw-text); }
#fw-block .fw-lang__btn.is-active { color: var(--fw-red); font-weight: 600; border-bottom-color: var(--fw-red); }
#fw-block .fw-lang__sep { color: rgba(71, 71, 71, .3); }

/* Row under the search form: the language switcher at its start (right in Hebrew) + the results title.
   Same width as the results card; the title shows only while there are results. */
#fw-block .fw-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 48rem;
    margin: 24px auto 0;
}
/* order -1: the switcher comes first - at the row's start (right in Hebrew), the title at its end */
#fw-block .fw-results-head .fw-lang { order: -1; flex-shrink: 0; max-width: none; margin: 0; padding: 0; }
#fw-block .fw-app:has(#submit-result-card.hidden) .fw-results-head__title { visibility: hidden; }
#fw-block #submit-result-card { margin-top: 0; }
/* "לחץ להשוואה חדשה" under the quotes: at the row's start (right in Hebrew) */
#fw-block .fw-new-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
    margin-inline-end: auto;
    padding: 8px 16px;
    border: 0;
    border-radius: 10px;   
        background: var(--primary-blue);
    color: #fff !important;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s;
}
#fw-block .fw-new-search * {
    color: #fff!important;
}
#fw-block .fw-new-search:hover { background: var(--fw-red); }
#fw-block .fw-new-search:focus-visible { outline: 2px solid var(--fw-red-dark); outline-offset: 2px; }
#fw-block .fw-new-search__icon { width: 32px; height: 32px; flex-shrink: 0; }
@media (min-width: 1024px) {
    #fw-block .fw-results-head { max-width: 72rem; }
}
/* Desktop: the form is 800px wide and centred, the row is wider - push the switcher in so its edge
   lines up with the form's edge (% margins are relative to the row's width;
   negative while the row is narrower than the form, 1000-1023px) */
@media (min-width: 1000px) {
    #fw-block .fw-results-head .fw-lang { margin-inline-start: calc((100% - 800px) / 2); }
}

/* ---------- Hero ---------- */
#fw-block .fw-hero { margin-bottom: 32px; }
#fw-block .fw-hero__title {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--fw-text);
}
#fw-block .fw-hero__sub {
    max-width: 300px;          /* narrow and centred: the line wraps to two */
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    color: var(--fw-text);
}
@media (min-width: 1000px) {
    #fw-block .fw-hero { margin-bottom: 40px; }
    #fw-block .fw-hero__title { font-size: 40px; }
}

/* ---------- Shared field parts ---------- */
#fw-block .flexy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-align: start;
}
#fw-block .flexy label {
    color: var(--fw-text);
    font-weight: 600;
    font-size: 16px;
    line-height: 18.4px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
#fw-block .flexy .note {
    color: var(--fw-muted);
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#fw-block .fw-col { position: relative; }
#fw-block .fw-col__head { cursor: pointer; outline: none; }
#fw-block .fw-col__head:focus-visible { box-shadow: inset 0 0 0 2px rgba(201, 71, 95, .5); }

#fw-block .fw-pop { display: none; text-align: start; cursor: default; }
#fw-block .fw-col.is-open .fw-pop { display: block; }

#fw-block .fw-pop__title {
    margin: 0 0 12px;
    padding: 10px 5px 3px;
    font-family: "FbCoherentiSans Medium", "FbCoherentiSans Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
#fw-block .fw-pop__group {
    margin: 14px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fw-muted);
}
#fw-block .fw-pop__title + .fw-pop__group { margin-top: 0; }

#fw-block .fw-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fw-text);
}
#fw-block .fw-input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 2px solid var(--fw-field-border);
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    color: var(--fw-text);
    outline: none;
    transition: border-color .15s ease;
}
#fw-block .fw-input:focus { border-color: var(--fw-red); }
#fw-block .fw-input.is-valid { border-color: #2e7d32; }
#fw-block .fw-input.is-invalid { border-color: var(--fw-error); }

#fw-block .fw-date { position: relative; }
#fw-block .fw-help { margin: 6px 0 16px; font-size: 13px; line-height: 1.35; color: var(--fw-muted); }
#fw-block .fw-help.is-valid { color: #2e7d32; }
#fw-block .fw-help.is-invalid { color: var(--fw-error); }

/* option chips (occupation / duration) */
#fw-block .fw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
#fw-block .fw-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--fw-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#fw-block .fw-chip:hover { color: var(--fw-text); }
#fw-block .fw-chip.is-selected { color: var(--fw-red); }
#fw-block .fw-chip:focus-visible { outline: 2px solid rgba(201, 71, 95, .5); outline-offset: 2px; }

/* workers stepper: [+] [ n ] [-] */
#fw-block .fw-stepper { display: flex; align-items: center; gap: 10px; }
#fw-block .fw-stepper__input { width: 96px; flex: 0 0 96px; text-align: center; }
#fw-block .fw-step {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--rt-box-shadow);
    color: var(--fw-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
#fw-block .fw-step:hover { color: var(--fw-red); }
#fw-block .fw-step:disabled { opacity: .35; cursor: default; color: var(--fw-text); }

/* ---------- Number of workers: quick-range tiles + exact number ---------- */
#fw-block .fw-wk-sub { margin: -6px 5px 14px; font-size: 14px; color: var(--fw-muted); }
#fw-block .fw-wk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#fw-block .fw-wk-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    border: 2px solid var(--fw-field-border);
    border-radius: 10px;
    background: #fff;
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
#fw-block .fw-wk-tile:hover { border-color: rgba(201, 71, 95, .45); }
#fw-block .fw-wk-tile:focus-visible { outline: 2px solid rgba(201, 71, 95, .5); outline-offset: 2px; }
#fw-block .fw-wk-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #f3f3f5;
    color: var(--fw-text);
}
#fw-block .fw-wk-tile__icon svg { width: 21px; height: 21px; }
#fw-block .fw-wk-tile__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
#fw-block .fw-wk-tile__label { font-size: 16px; font-weight: 600; color: var(--fw-text); white-space: nowrap; }
#fw-block .fw-wk-tile__sub { font-size: 13px; color: var(--fw-muted); }
/* Badge under the sub-label (6-10: "הנחת קבוצה", 11+: "תעריף מוסדי") - the site's dark red on a light tint of it */
#fw-block .fw-wk-tile__badge {
    align-self: flex-start;
    margin-top: 4px;
    padding: 0 7px;
    border: 1px solid var(--fw-red-dark);
    border-radius: 999px;
    background: rgba(174, 39, 63, .1);   /* --fw-red-dark (#AE273F), 90% transparent */
    color: var(--fw-red-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
#fw-block .fw-wk-tile__check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-inline-start: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--fw-red);
    color: #fff;
}
#fw-block .fw-wk-tile__check svg { width: 13px; height: 13px; }
/* chosen tile */
#fw-block .fw-wk-tile.is-selected { border-color: var(--fw-red); background: rgba(201, 71, 95, .06); }
#fw-block .fw-wk-tile.is-selected .fw-wk-tile__icon { background: var(--fw-red); color: #fff; }
#fw-block .fw-wk-tile.is-selected .fw-wk-tile__label { color: var(--fw-red); }
#fw-block .fw-wk-tile.is-selected .fw-wk-tile__check { display: flex; }

#fw-block .fw-wk-exact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(71, 71, 71, .08);
    border-radius: 10px;
    background: #f7f7f8;
}
#fw-block .fw-wk-exact__label { font-size: 15px; font-weight: 600; color: var(--fw-text); cursor: pointer; }
#fw-block .fw-wk-exact .fw-help { margin: 0; }

/* ---------- Occupation cards: icon box + name, check when chosen ---------- */
#fw-block .fw-occ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#fw-block .fw-occ-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 12px;
    border: 2px solid var(--fw-field-border);
    border-radius: 12px;
    background: #fff;
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
#fw-block .fw-occ-card:hover { border-color: rgba(174, 39, 63, .45); }
#fw-block .fw-occ-card:focus-visible { outline: 2px solid rgba(201, 71, 95, .5); outline-offset: 2px; }
#fw-block .fw-occ-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f1f3f7;
    color: #5b6472;
}
#fw-block .fw-occ-card__icon svg { width: 20px; height: 20px; }
#fw-block .fw-occ-card__label { min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--fw-text); }
#fw-block .fw-occ-card__check {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-inline-start: auto;
    border-radius: 50%;
    background: var(--fw-red-dark);
    color: #fff;
}
#fw-block .fw-occ-card__check svg { width: 13px; height: 13px; }
/* chosen card */
#fw-block .fw-occ-card.is-selected { border-color: var(--fw-red-dark); background: rgba(174, 39, 63, .06); }
#fw-block .fw-occ-card.is-selected .fw-occ-card__icon { background: var(--fw-red-dark); color: #fff; }
#fw-block .fw-occ-card.is-selected .fw-occ-card__label { color: var(--fw-red-dark); }
#fw-block .fw-occ-card.is-selected .fw-occ-card__check { display: flex; }

/* ---------- Period: duration cards ---------- */
#fw-block .fw-dur-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;                       /* room for the "most popular" badge */
}
#fw-block .fw-dur-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 96px;
    padding: 18px 8px 14px;
    border: 2px solid var(--fw-field-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
#fw-block .fw-dur-card:hover { border-color: rgba(174, 39, 63, .45); }
#fw-block .fw-dur-card:focus-visible { outline: 2px solid rgba(201, 71, 95, .5); outline-offset: 2px; }
#fw-block .fw-dur-card__title { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--fw-text); white-space: nowrap; }
#fw-block .fw-dur-card__sub { font-size: 14px; line-height: 1.3; color: var(--fw-muted); }
/* "הכי נפוץ": a dark-red pill sitting on the card's top edge */
#fw-block .fw-dur-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--fw-red-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
#fw-block .fw-dur-card__check {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--fw-red-dark);
    color: #fff;
}
#fw-block .fw-dur-card__check svg { width: 13px; height: 13px; }
/* chosen card */
#fw-block .fw-dur-card.is-selected { border-color: var(--fw-red-dark); background: rgba(174, 39, 63, .06); }
#fw-block .fw-dur-card.is-selected .fw-dur-card__title { color: var(--fw-red-dark); }
#fw-block .fw-dur-card.is-selected .fw-dur-card__sub { color: rgba(174, 39, 63, .8); }
#fw-block .fw-dur-card.is-selected .fw-dur-card__check { display: flex; }

/* "Next" in a desktop panel (appears once the step is filled, like the site) */
#fw-block .fw-pop__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
#fw-block .fw-next {
    min-width: 75px;
    height: 33px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--fw-red-dark);
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    visibility: hidden;
}
#fw-block .fw-next.is-ready { visibility: visible; }
#fw-block .fw-next:hover { background: var(--fw-red); }

/* errors */
#fw-block .fw-error { display: none; margin: 0; color: var(--fw-error); font-size: 14px; }
#fw-block .fw-col.error-cell .note { color: var(--fw-error); }

#fw-block .fw-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 800px;
    margin: 12px auto 0;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--rt-box-shadow);
    color: var(--fw-error);
    font-size: 14px;
}
#fw-block .fw-banner__close { color: var(--fw-muted); padding: 4px; cursor: pointer; }

/* submit */
#fw-block .submit.submit-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    height: 48px;
    border-radius: 24px;
    background: var(--fw-red-dark);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease;
}
#fw-block .submit.submit-main:hover { background: var(--fw-red); }

/* parts that only exist on one layout */
#fw-block .fw-summary,
#fw-block .fw-close,
#fw-block .fw-footer { display: none; }

/* =========================================================================
   Desktop (>= 1000px)
   ========================================================================= */
@media (min-width: 1000px) {
    #fw-block .fw-search { position: relative; z-index: 31; max-width: 800px; margin: 0 auto; }

    #fw-block .fw-bar {
        display: flex;
        align-items: stretch;
        height: 80px;
        background: #fff;
        border-radius: 40px;
        box-shadow: var(--rt-box-shadow);
    }
    #fw-block .fw-col { flex: 1 1 0; min-width: 0; }
    #fw-block #col-0 { flex-grow: 1; }
    #fw-block #col-1 { flex-grow: 1; }
    #fw-block #col-2 { flex-grow: 1; }

    #fw-block .fw-col__head {
        display: flex;
        align-items: center;
        height: 100%;
        padding-block: 16px 12px;
        padding-inline: 32px 8px;
        transition: background-color .2s linear;
    }
    #fw-block #col-0 .fw-col__head { border-start-start-radius: 40px; border-end-start-radius: 40px; }
    #fw-block .fw-col__head:hover { background-color: #ededed; }
    #fw-block .fw-col.is-open .fw-col__head { background-color: #fff; }
    #fw-block .flexy { gap: 2px; }

    #fw-block .fw-col-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-inline: 16px 10px;
    }

    /* panel hanging under its field */
    #fw-block .fw-pop {
        position: absolute;
        top: calc(100% + 5px);
        inset-inline-start: 24px;
        width: 480px;
        padding: 16px 32px 24px;   /* no button row any more - the panel ends with its options */
        background: #fff;
        border-start-start-radius: 0;
        border-start-end-radius: 22px;
        border-end-start-radius: 32px;
        border-end-end-radius: 32px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 8px 16px rgba(0, 0, 0, .15);
        z-index: 2;
        animation: fwPanelIn .18s ease-out;
    }
    /* The workers field is near the end of the bar: its (wider) panel opens toward the bar's
       middle - anchored to the field's end edge - so it never runs off narrow screens */
    #fw-block #workers-popover {
        width: 480px;
        inset-inline-start: auto;
        inset-inline-end: 0;
        border-start-start-radius: 22px;
        border-start-end-radius: 0;
    }

    /* desktop chips: bordered tiles */
    #fw-block .fw-chips--dur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    #fw-block .fw-chip {
        height: 44px;
        padding: 0 12px;
        border: 2px solid var(--fw-field-border);
        border-radius: 6px;
        color: rgba(71, 71, 71, .85);
    }
    #fw-block .fw-chip:hover { border-color: rgba(201, 71, 95, .45); }
    #fw-block .fw-chip.is-selected { border-color: var(--fw-red); color: var(--fw-red); }

    #fw-block .fw-banner { position: absolute; inset-inline: 0; top: 100%; }

    /* page dim while a panel is open */
    #fw-block .fw-dim {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .1);
        z-index: 30;
    }
    #fw-block .fw-app.has-open-panel .fw-dim { display: block; }
}

@keyframes fwPanelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Phones & tablets (< 1000px)
   ========================================================================= */
@media (max-width: 999.98px) {
    #fw-block .fw-dim { display: none; }

    /* summary pill */
    #fw-block .fw-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        width: calc(100% - 16px);
        max-width: 400px;
        height: 60px;
        margin: 0 auto;
        padding-inline: 24px 20px;
        border: 1px solid rgba(51, 51, 51, .15);
        border-radius: 30px;
        background: #fff;
        box-shadow: 0 3px 15px rgba(51, 51, 51, .35), 0 1px 2px rgba(51, 51, 51, .05);
        cursor: pointer;
        text-align: start;
    }
    #fw-block .fw-summary__text {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        height: 60px;
        overflow: hidden;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: -.1px;
        line-height: 60px;
        color: var(--fw-text);
    }
    #fw-block .fw-summary__roll { display: block; animation: fwRoll 10s ease-in-out infinite; }
    #fw-block .fw-summary__line,
    #fw-block .fw-summary__values {
        display: block;
        height: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #fw-block .fw-summary__values { font-weight: 400; }
    #fw-block .fw-summary__icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--fw-red); }

    /* full-screen overlay */
    #fw-block .fw-panel { display: none; }
    #fw-block .fw-panel.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000000; /* above the site's fixed header (#header, z-index 9999999) */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 50px 20px 120px;
        background: rgba(255, 255, 255, .85);
    }
    #fw-block .fw-close {
        display: block;
        position: absolute;
        top: 8px;
        inset-inline-end: 20px;
        width: 32px;
        height: 32px;
        border: 1px solid rgba(71, 71, 71, .5);
        border-radius: 50%;
        background: #fff;
        color: rgba(71, 71, 71, .5) !important;
        font-family: monospace !important;
        font-size: 18px;
        line-height: 28px;
        text-align: center;
        cursor: pointer;
    }

    /* field cards */
    #fw-block .fw-bar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-width: 400px;
        margin: 0 auto;
    }
    #fw-block .fw-col {
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--rt-box-shadow);
    }
    #fw-block .fw-col__head { display: flex; align-items: center; min-height: 50px; padding-inline: 24px 16px; }
    #fw-block .flexy { flex-direction: row; align-items: center; gap: 16px; }
    #fw-block .flexy label { flex: 0 0 auto; min-width: 72px; line-height: 50px; }
    #fw-block .flexy .note { flex: 1 1 auto; line-height: 50px; }

    #fw-block .fw-pop { padding: 4px 24px 20px; }
    #fw-block .fw-pop__title,
    #fw-block .fw-pop__actions { display: none; }

    #fw-block .fw-chip {
        height: 32px;
        padding: 0 14px;
        border-radius: 16px;
        box-shadow: var(--rt-box-shadow);
    }
    #fw-block .fw-chip { white-space: nowrap; }

    /* Workers tiles: tighter, the check becomes a small badge on the tile's corner */
    #fw-block .fw-wk-sub { margin: 0 0 12px; }
    #fw-block .fw-wk-grid { gap: 8px; }
    #fw-block .fw-wk-tile { gap: 8px; padding: 8px 10px; min-height: 58px; }
    #fw-block .fw-wk-tile__icon { flex-basis: 32px; width: 32px; height: 32px; }
    #fw-block .fw-wk-tile__icon svg { width: 18px; height: 18px; }
    #fw-block .fw-wk-tile__label { font-size: 15px; }
    #fw-block .fw-wk-tile__check { position: absolute; top: -8px; inset-inline-end: -8px; box-shadow: 0 0 0 2px #fff; }
    #fw-block .fw-chips--dur .fw-chip { flex: 1 1 0; padding: 0 8px; }

    /* Occupation cards: tighter, the check becomes a small badge on the card's corner */
    #fw-block .fw-occ-grid { gap: 8px; }
    #fw-block .fw-occ-card { gap: 8px; min-height: 52px; padding: 7px 9px; border-radius: 10px; }
    #fw-block .fw-occ-card__icon { flex-basis: 32px; width: 32px; height: 32px; }
    #fw-block .fw-occ-card__icon svg { width: 18px; height: 18px; }
    #fw-block .fw-occ-card__label { font-size: 15px; }
    #fw-block .fw-occ-card__check { position: absolute; top: -8px; inset-inline-end: -8px; box-shadow: 0 0 0 2px #fff; }

    /* Period cards: tighter */
    #fw-block .fw-dur-grid { gap: 8px; }
    #fw-block .fw-dur-card { min-height: 84px; padding: 16px 4px 12px; border-radius: 12px; }
    #fw-block .fw-dur-card__title { font-size: 17px; }
    #fw-block .fw-dur-card__sub { font-size: 13px; }
    /* No check on narrow cards (it would hit the "most popular" badge or the text) -
       the chosen card is marked by its red border, tint and title */
    #fw-block .fw-dur-card.is-selected .fw-dur-card__check { display: none; }

    #fw-block .fw-col.error-cell { box-shadow: 0 0 0 1px var(--fw-error), var(--rt-box-shadow); }
    #fw-block .fw-col.error-cell .fw-error { display: block; padding: 0 24px 12px; margin-top: -8px; }

    #fw-block .fw-col-submit { display: none; }

    /* bottom bar */
    #fw-block .fw-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        height: 82px;
        padding: 0 24px;
        background: #fff;
        z-index: 1;
    }
    #fw-block .fw-reset {
        height: 46px;
        padding: 0 4px;
        color: var(--fw-red) !important;
        font-size: 18px;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }
    #fw-block .fw-footer-next {
        width: 140px;
        height: 46px;
        border-radius: 24px;
        background: var(--fw-text);
        color: #fff !important;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color .2s ease;
    }
    #fw-block .fw-footer-next.is-ready { background: var(--fw-red); }

    #fw-block .fw-banner { display: none !important; }   /* phones show the error on the card itself */

    body.fw-lock { overflow: hidden; }
}

/* rolling texts in the summary pill (3 lines + a copy of the first) */
@keyframes fwRoll {
    0%, 26%   { transform: translateY(0); }
    33%, 59%  { transform: translateY(-60px); }
    66%, 92%  { transform: translateY(-120px); }
    100%      { transform: translateY(-180px); }
}
@media (prefers-reduced-motion: reduce) {
    #fw-block .fw-summary__roll { animation: none; }
}

/* Remove default spin buttons on numeric inputs */
#fw-block input[type="number"]::-webkit-inner-spin-button,
#fw-block input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#fw-block input[type="number"] {
    -moz-appearance: textfield;
}

#fw-block #submit-result-card {padding-top: 0;padding-right: 0;padding-bottom: 0;padding-left: 0;box-shadow:none !important; border-radius:0;border:0!important;box-shadow:var(--rt-box-shadow);}
/* The results wrapper is max-w-3xl (768px); the card design needs room */
@media (min-width: 1024px) {
    #fw-block #submit-result-card { max-width: 72rem; }
}

/* ---------- Card ---------- */
#fw-block .qc-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--qc-border);
    border-radius: var(--qc-radius);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06);
    color: var(--qc-text);
    text-align: start;
}

/* room above the best card for the ribbon (beats Tailwind's space-y-3) */
#fw-block #quotes-list .qc-card--ribbon,
#fw-block .qc-card--ribbon { margin-top: 2.25rem; }

/* ---------- Ribbon (best offer only) ---------- */
#fw-block .qc-ribbon {
    position: absolute;
    top: -22px;
    inset-inline-start: -10px;    /* overhangs the card edge */
    inset-inline-end: 5%;
    min-height: 36px; height: 36px; max-height: 36px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-block: .5rem;
    padding-inline-start: calc(10px + 1.5rem);
    padding-inline-end: 64px;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    line-height: 36px;
    isolation: isolate;
    z-index: 2;
}

/* ribbon body with arrow tip (RTL: tip on the left) */
#fw-block .qc-ribbon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--primary-blue);
    clip-path: polygon(0 50%, 44px 0, 100% 0, 100% 100%, 44px 100%);
}

/* folded corner under the overhang */
#fw-block .qc-ribbon::after {
    content: "";
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    width: 10px;
    height: 12px;
    background: var(--qc-brand-dark);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

#fw-block[dir="ltr"] .qc-ribbon::before {
    background: linear-gradient(to right, var(--primary-blue),  var(--primary-blue));
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 50%, calc(100% - 44px) 100%, 0 100%);
}
#fw-block[dir="ltr"] .qc-ribbon::after {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

#fw-block .qc-ribbon__text { display: flex; flex-direction: column; min-width: 0; }
#fw-block .qc-ribbon__main { display: inline-flex; align-items: center; gap: .6rem; }
#fw-block .qc-ribbon__sub { display: none; }          /* 2nd line: phones only (see the mobile block) */
#fw-block .qc-ribbon__icon { display: inline-flex; flex-shrink: 0; cursor: help; }
/* Ribbon with a note line (e.g. Maccabi's yearly saving): grows to 2 lines on all screens */
#fw-block .qc-ribbon.qc-ribbon--note {
    top: -20px;
    height: auto;
    max-height: none;
    padding-block: .35rem;
    line-height: 1.3;
}
#fw-block .qc-ribbon__note { display: block; font-size: .9rem; }
#fw-block .qc-ribbon__icon svg { width: 16px; height: 16px; }

/* ---------- Body: 3 columns ---------- */
#fw-block .qc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
}
#fw-block .qc-card--ribbon .qc-body { padding-top: 4.75rem; }   /* ribbon may wrap to 2 lines on phones */

#fw-block .qc-col + .qc-col {
    border-top: 1px solid var(--qc-divider);
    padding-top: 2rem;
    height: 212px; 
    max-height: 212px; 
    overflow: hidden;
}

@media (min-width: 900px) {
    #fw-block .qc-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.1fr);
        gap: 0;
        padding: 1.75rem 0;
        padding-top: 0;
        height: 212px; 
        max-height: 212px; 
        overflow: hidden;
    }
    #fw-block .qc-card--ribbon .qc-body { padding-top:0; }
    #fw-block .qc-col { padding-inline: 2rem; padding-top: 47px;}
    #fw-block .qc-col.qc-col--price{padding-top: 40px;}
    #fw-block .qc-col + .qc-col { border-top: 0; }
    #fw-block .qc-col--coverage { border-inline: 1px solid var(--qc-divider); }
}

/* ---------- Column 1: provider ---------- */
#fw-block .qc-col--provider {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
#fw-block .qc-logo {
    display: block;
    max-width: 210px;
    max-height: 24px;
    object-fit: contain;
    object-position: center center;
    margin-bottom: 0;
    margin-right: auto;
    margin-left: auto;
}
#fw-block[dir="ltr"] .qc-logo { object-position: left center; }
/* Wide screens (3-column cards): the logo is the card's main element */
@media (min-width: 900px) {
    #fw-block .qc-logo {
        max-width: 90%;
        max-height: none;
        margin-right: auto;
        margin-left: auto;
    }
}

#fw-block .qc-name {
    font-size: 26px;
    font-weight: 600;
    color: var(--qc-text);
    line-height: 1.2;
    text-align: center;
    margin: 0 0 0;
}
#fw-block .qc-subtitle {
    font-size: 0.9rem;
    line-height: 1.05;
    text-align: center;
    margin: 0;
}
#fw-block .fw-app .qc-subtitle a {
    color: var(--qc-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#fw-block .fw-app .qc-subtitle a:hover { color: var(--primary-blue-hover, #AE273F); }
#fw-block .qc-collective {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}
#fw-block .qc-clinics { font-size: 1.1rem; color: var(--qc-text); margin: 0; }

#fw-block .qc-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: 1.1rem;
}
#fw-block .qc-rating__num { color: var(--qc-text); }

#fw-block .qc-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--qc-star-empty);
    white-space: nowrap;
}
#fw-block .qc-stars::before { content: "★★★★★"; }
#fw-block .qc-stars::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: var(--qc-rating, 0%);
    overflow: hidden;
    color: var(--qc-star);
}

#fw-block .qc-reviews {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: var(--qc-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#fw-block .qc-reviews svg { width: 16px; height: 16px; flex-shrink: 0; }
#fw-block .qc-reviews:hover { color: var(--primary-blue-hover, #AE273F); }

/* ---------- Column 2: coverages ---------- */
#fw-block .qc-cov-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--qc-text);
    margin: 0 0 .75rem;
}
#fw-block .qc-cov-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#fw-block .qc-cov-list li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.1rem;
    line-height: 1.35;
}
#fw-block .qc-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#fw-block .qc-check svg { width: 15px; height: 15px; }

#fw-block .qc-details-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 0;
    padding: .25rem 0;
    background: none;
    border: 0;
    color: var(--qc-link);
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}
#fw-block .qc-details-btn svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; }
#fw-block .qc-details-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
/* hide the chevron on the right side (keeps its space: visibility, not display) */
#fw-block[dir="rtl"] .qc-details-btn svg:first-of-type,
#fw-block[dir="ltr"] .qc-details-btn svg:last-of-type { visibility: hidden; }
/* "פרטי הכיסויים" sits at the end side of the column: left in RTL, right in LTR.
   .fw-app prefix: beats "#fw-block .fw-app button { color: inherit }" */
#fw-block .fw-app .qc-details-btn { color: var(--primary-blue); }
#fw-block[dir="rtl"] .qc-details-btn { float: left; }
#fw-block[dir="ltr"] .qc-details-btn { float: right; }


/* ---------- Column 3: price ---------- */
#fw-block .qc-col--price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#fw-block .qc-price__main {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
    color: var(--primary-text-color);
    font-weight: 800;
    line-height: 1;
    font-size: 30px !important;
}
#fw-block .qc-price__amount { font-size: 3.4rem; letter-spacing: -1px; }
#fw-block .qc-price__cur { font-size: 2rem; }
/* Small grey label above the price: "סה״כ לתקופה (שנה • עובד 1)" */
#fw-block .qc-price__label {
    font-size: 13px;
    color: var(--qc-muted);
    opacity: .8;
    line-height: 1.3;
    margin-bottom: .2rem;
}
/* Price + the pre-discount price struck through, side by side */
#fw-block .qc-price__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: .2rem .6rem;
}
#fw-block .qc-price__was {
    font-size: 17px;
    font-weight: 600;
    color: var(--qc-muted);
    opacity: .6;
    text-decoration-thickness: 2px;
}
/* Row under the price: per-day pill + "עד 10 תשלומים" */
#fw-block .qc-price__extras {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    margin-top: .45rem;
}
#fw-block .qc-price__payments {
    font-size: 14px;
    color: var(--qc-muted);
    opacity: .8;
}
/* Per worker per day: a soft pill in the site's pink */
#fw-block .qc-price__unit {
    display: inline-block;
    padding: .1rem .75rem;
    border: 1px solid rgba(201, 71, 95, .3);
    border-radius: 999px;
    background: rgba(201, 71, 95, .08);
    color: var(--primary-blue-hover, #AE273F);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}
#fw-block .qc-price__top, #fw-block .qc-price__amount-box { display: flex; flex-direction: column; align-items: center; }
#fw-block .qc-price__lines { margin: 0 0; padding: 0; list-style: none; margin-top: 0; margin-bottom: 0; }
#fw-block .qc-price__lines li { font-size: 1.05rem; color: var(--qc-muted); line-height: 1.7; }
#fw-block .qc-price__lines strong { color: var(--qc-text); font-weight: 600; }

#fw-block .qc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 130px;
    max-width: 130px;
    border: 0;
    border-radius: 20px;
    background: var(--primary-blue);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
    margin-top: 12px;
    max-height: 40px;
    line-height: 40px;
    padding-right: 6px;
}
#fw-block .qc-cta:hover { background: var(--qc-brand-hover); box-shadow: 0 10px 22px rgba(139, 43, 59, .38); }
#fw-block .qc-cta:active { transform: translateY(1px); }
#fw-block .qc-cta svg { width: 20px; height: 20px; margin-right: -10px;}


/* ---------- Coverage-details accordion (full width, above the tips) ---------- */
#fw-block .qc-details-panel {
    display: grid;
    grid-template-rows: 0fr;                /* closed; animates to the content's height */
    transition: grid-template-rows .3s ease;
    background-color: #fff;
    color: rgb(71, 71, 71);
}
#fw-block .qc-details-panel.is-open {
    grid-template-rows: 1fr;
    border-top: 1px solid var(--qc-border); /* separates it from the card body */
}
#fw-block .qc-details-panel__inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 1.75rem;
    font-size: .95rem;
    transition: padding .3s ease;
}
#fw-block .qc-details-panel.is-open .qc-details-panel__inner { padding-top: 1rem; padding-bottom: 1rem; }
#fw-block .qc-details-panel__inner h2 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700; color: inherit; }
#fw-block .qc-details-panel__inner p { margin: 0 0 .5rem; }
#fw-block .qc-details-panel__inner ul { margin: 0 0 .5rem; padding-inline-start: 1.1rem; list-style: disc; }

/* Q&A inside the details: "+" question, "−" when its answer is open */
#fw-block .qc-qa { display: flex; flex-direction: column; gap: .15rem; }
#fw-block .qc-qa__heading {
    margin: .9rem 0 .2rem;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-blue);
}
#fw-block .qc-qa__heading:first-child { margin-top: 0; }
#fw-block .qc-qa__passage { margin: 0 0 .5rem; font-size: 15px; line-height: 1.5; color: rgb(71, 71, 71); }
#fw-block .qc-qa__q {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    width: 100%;
    padding: .35rem 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: rgb(71, 71, 71);
    text-align: start;
    cursor: pointer;
}
#fw-block .qc-qa__sign {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1;
}
#fw-block .qc-qa__sign::before { content: "+"; }
#fw-block .qc-qa__q[aria-expanded="true"] .qc-qa__sign::before { content: "\2212"; }   /* − */

#fw-block .qc-qa__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}
#fw-block .qc-qa__a.is-open { grid-template-rows: 1fr; }
#fw-block .qc-qa__a-inner {
    min-height: 0;
    overflow: hidden;
    padding-inline-start: 1.6rem;           /* lines up with the question text */
    font-size: 15px;
    line-height: 1.5;
    color: rgb(71, 71, 71);
    transition: padding .25s ease;
}
#fw-block .qc-qa__a.is-open .qc-qa__a-inner { padding-bottom: .5rem; }

/* Policy PDF link + note */
#fw-block .qc-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    margin: 1.5rem auto 1rem;
    text-decoration: none;
}
#fw-block .qc-pdf__icon { width: 40px; height: 48px; }
#fw-block .qc-pdf__label {
    padding: .1rem .8rem;
    background: var(--primary-blue);
    color: #fff;
    font-size: 15px;
}
#fw-block .qc-pdf:hover .qc-pdf__label { background: var(--qc-brand-hover); }
#fw-block .qc-pdf__note { margin: 0; font-size: 14px; line-height: 1.45; color: rgb(71, 71, 71); }

/* ---------- "Fine print" tips accordion (bottom of the card) ---------- */
#fw-block .policy-tips {
    margin: 0;                       /* flush with the card's sides and bottom */
    width: 100%;
    background-color: rgba(201, 71, 95, 0.4);
    color: rgb(71, 71, 71);
    border-radius: 0 0 calc(var(--qc-radius) - 1px) calc(var(--qc-radius) - 1px);  /* inside the card's 1px border */
    overflow: hidden;
}
#fw-block .policy-tips__header {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    cursor: pointer;
    user-select: none;
}
#fw-block .policy-tips__header p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    width: 100%;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#fw-block .policy-tips__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-inline-start: auto;
    transition: transform .25s ease;
}
#fw-block .policy-tips.is-open .policy-tips__icon { transform: rotate(180deg); }

/* height animates from 0 to the content's natural height - no max-height cap */
#fw-block .policy-tips__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
#fw-block .policy-tips.is-open .policy-tips__content { grid-template-rows: 1fr; }
#fw-block .policy-tips__content-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 1.75rem;
    font-size: .95rem;
    transition: padding .3s ease;
    background-color: #fff;
}
#fw-block .policy-tips.is-open .policy-tips__content-inner { padding-top: 1rem; padding-bottom: 1rem; }
#fw-block .policy-tips__content-inner h2 { margin: .25rem 0 0; font-size: 1.6rem; font-weight: 700; line-height: 1.25; color: var(--qc-text); }
#fw-block .policy-tips__content-inner p { margin: 0 0 .5rem; }
#fw-block .policy-tips__content-inner .policy-tips__intro { margin: 0 0 1.25rem; font-size: 1rem; color: var(--qc-text); }
#fw-block .policy-tips__content-inner h3 {
    margin: 0 0 .6rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--qc-divider);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--qc-text);
}
/* "Reasons to buy": grey text with pink dots */
#fw-block .policy-tips__content-inner .policy-tips__list { margin: 0 0 .5rem; padding: 0; list-style: none; }
#fw-block .policy-tips__list li {
    position: relative;
    padding-inline-start: 1.1rem;
    font-size: 15px;
    line-height: 2.1;
    color: var(--qc-muted);
    opacity: .85;
}
#fw-block .policy-tips__list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-blue);
}

#fw-block .policy-tips__header:focus-visible {
    outline: 2px solid var(--qc-link);
    outline-offset: -2px;
}

/* chevrons that point "forward" (left in RTL) */
#fw-block[dir="ltr"] .qc-chev-fwd { transform: scaleX(-1); }

#fw-block .qc-focus:focus-visible,
#fw-block .qc-card a:focus-visible,
#fw-block .qc-card button:focus-visible {
    outline: 2px solid var(--qc-link);
    outline-offset: 2px;
    border-radius: 6px;
}


/* ---------- Search icon on the submit button ---------- */
/* Play with these values: rotation, horizontal (x) and vertical (y) offset, size */
#fw-block #submit-arrow {
    --icon-rotate: 180deg;
    --icon-x: 0px;
    --icon-y: 0px;
    --icon-size: 1rem;
    width: var(--icon-size);
    height: var(--icon-size);
    color: #fff;
    flex-shrink: 0;
    /* transform: translate(var(--icon-x), var(--icon-y)) rotate(var(--icon-rotate)); */
    transition: transform .2s ease;
}
/* mirror instead of rotate (handle bottom-left)? use:  transform: scaleX(-1); */


/* =========================================================================
   Quote cards - phones (< 640px)
   ========================================================================= */
@media (max-width: 639.98px) {
    /* Ribbon: two lines (title + (i) icon, then the sub text) */
    #fw-block .qc-ribbon {
        height: auto;
        max-height: none;
        min-height: 36px;
        padding-block: .4rem;
        line-height: 1.3;
        align-items: center;
    }
    #fw-block .qc-ribbon__sub {
        display: block;
        min-height: 1.3em;                   /* keeps the 2nd line while its text is still empty */
    }
    /* Card becomes one column; the body's columns and the details panel are ordered together:
       provider > coverages > details (when open) > price > tips */
    #fw-block .qc-card { display: flex; flex-direction: column; }
    #fw-block .qc-body { display: contents; }
    #fw-block .qc-col { padding-inline: 1.25rem; }
    #fw-block .qc-col--provider { order: 1; padding-top: 1.25rem; }
    #fw-block .qc-card--ribbon .qc-col--provider { padding-top: 4rem; }
    #fw-block .qc-col--coverage { order: 2; }
    #fw-block .qc-details-panel { order: 3; }
    #fw-block .qc-col--price { order: 4; }
    #fw-block .policy-tips { order: 5; }

    /* No divider lines; columns grow with their content */
    #fw-block .qc-col + .qc-col {
        border-top: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    /* Provider: logo only, bigger and centred */
    #fw-block .qc-col--provider { align-items: center; padding-bottom: 1rem; }
    #fw-block .qc-logo {
        max-width: 200px;
        max-height: 60px;
        object-position: center center;
    }
    #fw-block[dir="ltr"] .qc-logo { object-position: center center; }
    #fw-block .qc-name { display: none; }

    /* Coverages: bigger text, block centred in the card, text aligned to the start */
    #fw-block .qc-col--coverage {
        align-self: center;                  /* card is a flex column on phones */
        width: fit-content;
        max-width: 100%;
    }
    #fw-block .qc-cov-title { font-size: 20px; margin-bottom: .9rem; }
    #fw-block .qc-cov-list { gap: .45rem; }
    #fw-block .qc-cov-list li { font-size: 17px; gap: .75rem; }
    #fw-block .qc-check { width: 22px; height: 22px; }
    #fw-block .qc-check svg { width: 16px; height: 16px; }
    #fw-block .qc-details-btn { font-size: 17px; margin-top: .5rem; }

    /* Details panel, between the coverages and the price */
    #fw-block .qc-details-panel.is-open { border-top: 0; }
    #fw-block .qc-details-panel__inner { padding-inline: 1.25rem; }
    #fw-block .qc-details-panel.is-open .qc-details-panel__inner { padding-top: .75rem; padding-bottom: 1.25rem; }
    #fw-block .qc-card:has(.qc-details-panel.is-open) .qc-col--price {
        border-top: 1px solid var(--qc-divider);
        padding-top: 1.5rem;
    }

    #fw-block .qc-col--price { padding-top: 1.25rem; padding-bottom: 0; }
    /* Price: only the total, full width and centred (the per-worker lines are hidden) */
    #fw-block .qc-price__top {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin-bottom: 1.25rem;
    }
    #fw-block .qc-price__main { font-size: 34px !important; }
    #fw-block .qc-price__lines { display: none; }

    /* Buy button: full card width, small radius */
    #fw-block .qc-cta {
        min-width: 95%;
        width: 95%;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
        height: 49px;
        max-height: none;
        line-height: 50px;
        font-weight: 600;
        font-size: 1rem;
        border-radius: 6px;
        margin-top: 0;
        margin-bottom: 12px;
    }
}

#fw-block #submit-result-card {
    background-color: transparent !important;
}


/* =========================================================================
   Preloader before the results (built by runPreloader() in script.js)
   ========================================================================= */
@property --fw-progress {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}
@keyframes fwPreloaderProgress { to { --fw-progress: 100; } }
@keyframes fwPreloaderIn { from { opacity: 0; } to { opacity: 1; } }

#fw-block .fw-preloader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000001;                       /* above the site's fixed header (9999999) */
    overflow-y: auto;
    background: rgba(255, 255, 255, .92);
}
#fw-block .fw-preloader.is-open {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(70px, 13vh, 140px) 1rem 2rem;
    animation: fwPreloaderIn .2s ease-out;
}
#fw-block .fw-preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 5vh, 2.75rem);
    width: 100%;
    max-width: 900px;
    text-align: center;
}
#fw-block .fw-preloader__head { margin: 0; }
#fw-block .fw-preloader__title {
    display: block;
    padding-bottom: .5rem;
    color: var(--primary-blue);
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.15;
}
#fw-block .fw-preloader__line {
    display: block;
    color: var(--primary-text-color);
    font-size: clamp(1rem, 3.4vw, 1.7rem);
    font-weight: 600;
    line-height: 1.4;
}

/* Ring: a conic gradient that fills from 0 to 100% over the preloader's run */
#fw-block .fw-preloader__ring {
    --size: clamp(220px, 70vw, 340px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background:
        radial-gradient(closest-side, #fff 89%, transparent 90% 100%),
        conic-gradient(var(--primary-blue) calc(var(--fw-progress) * 1%), #f2f2f2 0);
}
#fw-block .fw-preloader__ring.is-running {
    animation: fwPreloaderProgress var(--fw-preloader-ms, 4s) linear forwards;
}

/* Flip card with a logo on each face */
#fw-block .fw-preloader__card { width: 72%; height: 72%; perspective: 1000px; }
#fw-block .fw-preloader__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .6s ease;
}
#fw-block .fw-preloader__face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
#fw-block .fw-preloader__face--back { transform: rotateY(180deg); }
#fw-block .fw-preloader__face img {
    width: auto;
    max-width: 85%;
    max-height: 42%;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    #fw-block .fw-preloader__card-inner { transition: none; }
    #fw-block .fw-preloader__ring.is-running { animation: none; --fw-progress: 100; }
}

/* Short animation for later searches: a 3x3 grid of pink cubes in the middle of the screen */
#fw-block .fw-quickloader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000001;
    background: rgba(255, 255, 255, .85);
}
#fw-block .fw-quickloader.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fwPreloaderIn .15s ease-out;
}
#fw-block .fw-cube-grid { width: 40px; height: 40px; }
#fw-block .fw-cube {
    float: left;
    width: 33%;
    height: 33%;
    background-color: var(--primary-blue);
    animation: fwCubeGridScaleDelay 1.3s infinite ease-in-out;
}
#fw-block .fw-cube1, #fw-block .fw-cube5, #fw-block .fw-cube9 { animation-delay: .2s; }
#fw-block .fw-cube2, #fw-block .fw-cube6 { animation-delay: .3s; }
#fw-block .fw-cube3 { animation-delay: .4s; }
#fw-block .fw-cube4, #fw-block .fw-cube8 { animation-delay: .1s; }
#fw-block .fw-cube7 { animation-delay: 0s; }

@keyframes fwCubeGridScaleDelay {
    0%, 70%, 100% { transform: scale3d(1, 1, 1); }
    35% { transform: scale3d(0, 0, 1); }
}
@media (prefers-reduced-motion: reduce) {
    #fw-block .fw-cube { animation: none; }
}


#fw-block h1#main-heading.fw-hero__title {    
    width: 100%;
    max-width: 90%;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 0 0 0;
    line-height: 1;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    
    margin-right: auto;
    margin-left: auto;
    padding-bottom: .75rem;
    
    font-size: 48px;
    color: #5e5e5e;
    font-weight: 600;
}
#fw-block h2#main-subheading.fw-hero__sub { 
    margin-top: 0;
    margin-bottom: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 0 0 0 0;
    line-height: 1;
    text-align: center;

    max-width: 453px;
    font-size: 1.5rem;   font-weight: 400;  padding-bottom: 1.5rem;
    font-family: 'FbCoherentiSans Regular';
    color: #5e5e5e;
}

@media screen and (max-width: 760px) {

   #fw-block h1#main-heading.fw-hero__title {
        font-size: 30.4px;
        line-height: 1;
        padding-bottom: .5rem;
    }
    #fw-block h2#main-subheading.fw-hero__sub {
        max-width: 90%;
        font-size: 1.2rem;
    }
}