/*
 * theme.css - E-Drone WordPress theme
 * Design tokens + base styles. Migrated from edrone-site/themes/edrone/theme.css
 * Fonts: Noto Sans Hebrew + Poppins via Google Fonts (enqueued in functions.php)
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Brand colors */
  --color-bg-dark:     #242424;
  --color-bg-light:    #f5f5f5;
  --color-bg-white:    #ffffff;
  --color-text-dark:   #111111;
  --color-text-light:  #ffffff;
  --color-text-muted:  #6b7280;
  --color-text-muted-dark: rgba(255,255,255,.6);
  --color-border:      #e4e4e7;
  --color-border-dark: rgba(255,255,255,.12);

  /* CTA */
  --color-cta:         #c3e85b;
  --color-cta-dark:    #acd148;
  --color-cta-text:    #111111;

  /* Division colors */
  --color-ewash:       #2EB0CE;
  --color-evision:     #20C7A0;
  --color-erd:         #7A4EFF;
  --color-ewash-dark:  #2495af;
  --color-evision-dark:#1aa787;
  --color-erd-dark:    #6334e6;

  /* Typography */
  --font-hebrew:   'Noto Sans Hebrew', 'David Libre', system-ui, sans-serif;
  --font-english:  'Poppins', 'Inter', system-ui, sans-serif;
  --font-base:     var(--font-hebrew);

  --size-xs:    0.75rem;
  --size-sm:    0.875rem;
  --size-base:  1rem;
  --size-lg:    1.125rem;
  --size-xl:    1.25rem;
  --size-2xl:   1.5rem;
  --size-3xl:   1.875rem;
  --size-4xl:   2.25rem;
  --size-5xl:   3rem;
  --size-6xl:   3.75rem;
  --size-hero:  clamp(2.5rem, 5vw + 0.5rem, 4rem);

  --weight-light:  300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi:   600;
  --weight-bold:   700;
  --weight-black:  900;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --section-pad:    clamp(3.5rem, 8vw, 6rem);
  --container-max:  1320px; /* רוחב תוכן אחיד לכל האתר (גיא: לא לעבור 1350) */
  --container-pad:  clamp(1rem, 4vw, 2rem);

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:  0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.14);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;

  /* Navbar */
  --nav-height: 72px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  overflow-x: clip; /* P0: רשת ביטחון - מונע גלישה אופקית גם ברמת ה-documentElement */
}

body {
  font-family: var(--font-base);
  font-size: var(--size-base);
  font-weight: var(--weight-normal);
  color: var(--color-text-dark);
  background: var(--color-bg-light); /* בסיס האתר #f5f5f5, לא לבן */
  line-height: 1.65;
  direction: rtl;
  overflow-x: clip; /* P0: מונע גלישה אופקית - clip לא חוסם sticky/position:fixed כמו hidden */
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.font-en {
  font-family: var(--font-english);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-pad   { padding-block: var(--section-pad); }
.section-dark  { background: var(--color-bg-dark); color: var(--color-text-light); }
.section-light { background: var(--color-bg-light); }
.section-white { background: var(--color-bg-white); }

/* ============================================================
   TYPOGRAPHY
   Weights (QA 2026-06-24): h1 global=700, section h2=600, h3=600, body=400
   hero h1 overrides back to higher weights inline where Figma demands it.
   ============================================================ */
.h1, h1 { font-size: var(--size-hero);  font-weight: 700;                 line-height: 1.15; }
.h2, h2 { font-size: var(--size-5xl);   font-weight: var(--weight-semi);  line-height: 1.2; }
.h3, h3 { font-size: var(--size-3xl);   font-weight: var(--weight-semi);  line-height: 1.25; }
.h4, h4 { font-size: var(--size-2xl);   font-weight: var(--weight-semi);  line-height: 1.3; }

@media (max-width: 768px) {
  .h2, h2 { font-size: var(--size-4xl); }
  .h3, h3 { font-size: var(--size-2xl); }
}
@media (max-width: 480px) {
  .h2, h2 { font-size: var(--size-3xl); }
}

/* ============================================================
   TEXT-WRAP - מונע יתומות (widows) בכותרות ופסקאות
   ============================================================ */
h1, h2, h3, h4,
.section-title, .hp-section-title, .svc-section-title,
.abt-section-title, .abt-hero__title, .abt-story__title,
.faq-hero__title, .faq-cta__title,
.sp-hero__title, .mzn-big__title,
.slh-hero__title, .svc-hero__title, .svc-cta__title,
.hp-tab-panel__title, .hp-cta-form__title,
.cpage-hero__title, .mag-featured-title, .magazine-featured-title {
  text-wrap: balance;
}

p, .svc-hero__sub, .slh-hero__sub, .hp-hero__sub,
.abt-hero__sub, .abt-story__text p,
.section-subtitle, .hp-section-sub, .svc-section-head p,
.mzn-head__sub, .cpage-hero__sub, .mag-featured-excerpt,
.magazine-featured-excerpt, .svc-split__body, .svc-cta__sub,
.svc-value-card__body, .value-body {
  text-wrap: pretty;
}

/* ============================================================
   SITE BREADCRUMB - קנוני לכל ה-templates
   ============================================================ */
.site-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1; direction: rtl; flex-wrap: wrap; }
.site-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s ease; }
.site-breadcrumb a:hover { color: #fff; }
.site-breadcrumb span[aria-current="page"] { color: rgba(255,255,255,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.site-breadcrumb__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); flex-shrink: 0; }
/* על רקע בהיר - צבעים כהים אמיתיים (AA). הקודמים (#8b8b8b/#aaa) נעלמו על #f5f5f5.
   שני מבני שימוש: המחלקה על עוטף (.breadcrumb-on-light .site-breadcrumb) או ישירות
   על ה-nav (.site-breadcrumb.breadcrumb-on-light) - העמודים משתמשים בשני. */
.section-light .site-breadcrumb a, .breadcrumb-on-light .site-breadcrumb a, .site-breadcrumb.breadcrumb-on-light a { color: #585858; }
.section-light .site-breadcrumb a:hover, .breadcrumb-on-light .site-breadcrumb a:hover, .site-breadcrumb.breadcrumb-on-light a:hover { color: #242424; }
.section-light .site-breadcrumb span[aria-current="page"], .breadcrumb-on-light .site-breadcrumb span[aria-current="page"], .site-breadcrumb.breadcrumb-on-light span[aria-current="page"] { color: #242424; }
.section-light .site-breadcrumb__dot, .breadcrumb-on-light .site-breadcrumb__dot, .site-breadcrumb.breadcrumb-on-light .site-breadcrumb__dot { background: #9e9e9e; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--size-base);
  font-weight: var(--weight-semi);
  font-family: inherit;
  border: 2px solid transparent;
  transition:
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-color: var(--color-cta);
}
.btn-primary:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  box-shadow: 0 4px 16px rgba(195,232,91,.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-text-light);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}
.btn-outline-dark:hover {
  background: var(--color-text-dark);
  color: var(--color-text-light);
}

/* Solid dark pill (Figma: "לכל הפרויקטים" CTA). */
.btn-dark {
  background: var(--color-text-dark);
  color: var(--color-text-light);
  border-color: var(--color-text-dark);
}
.btn-dark:hover {
  background: #000;
  border-color: #000;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--size-sm); }
.btn-lg { padding: 1rem 2.25rem;   font-size: var(--size-lg); }

/* Division CTA buttons */
.btn-ewash {
  background: var(--color-ewash);
  color: #fff;
  border-color: var(--color-ewash);
}
.btn-ewash:hover {
  background: var(--color-ewash-dark);
  border-color: var(--color-ewash-dark);
  box-shadow: 0 4px 16px rgba(44,176,204,.35);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-body { padding: var(--space-6); }

/* ============================================================
   DIVISION UTILITIES
   ============================================================ */
.div-ewash   { --division-color: var(--color-ewash);   --division-color-dark: var(--color-ewash-dark); }
.div-evision { --division-color: var(--color-evision); --division-color-dark: var(--color-evision-dark); }
.div-erd     { --division-color: var(--color-erd);     --division-color-dark: var(--color-erd-dark); }

.division-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: var(--weight-semi);
  font-family: var(--font-english);
  background: var(--division-color, var(--color-cta));
  color: #fff;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title-block { margin-bottom: var(--space-10); }

.section-label {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: var(--weight-semi);
  color: var(--color-cta);
  margin-bottom: var(--space-3);
}
.section-label-light { color: rgba(255,255,255,.7); }

.section-subtitle {
  font-size: var(--size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-top: var(--space-4);
  line-height: 1.7;
}

.section-cta-wrap {
  margin-top: var(--space-8);
  text-align: center;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider      { height: 1px; background: var(--color-border); }
.divider-dark { background: var(--color-border-dark); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes marquee-rtl { from, to { transform: none; } }
}

/* ============================================================
   SKIP LINK (a11y)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  right: var(--space-4);
  background: var(--color-cta);
  color: var(--color-cta-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semi);
  z-index: 9999;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ============================================================
   FLOATING CTA BUTTON (site-wide)
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-cta);
  color: var(--color-cta-text);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: var(--weight-semi);
  font-size: var(--size-sm);
  box-shadow: 0 4px 20px rgba(195,232,91,.4);
  transition:
    background var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    transform var(--dur-fast) var(--ease);
  border: none;
  cursor: pointer;
}
.floating-cta:hover {
  background: var(--color-cta-dark);
  box-shadow: 0 6px 24px rgba(195,232,91,.5);
  transform: translateY(-2px);
}
.floating-cta:active { transform: translateY(0); }
.floating-cta.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Corner toast - bottom-left, replaces the floating CTA on form success */
.site-toast {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-dark, #242424);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: var(--weight-semi);
  font-size: var(--size-sm);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 2 * var(--space-8));
}
.site-toast.is-visible { opacity: 1; transform: translateY(0); }
.site-toast__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cta);
  color: #242424;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .site-toast { bottom: var(--space-5); left: var(--space-5); }
}

@media (max-width: 640px) {
  .floating-cta {
    bottom: var(--space-5);
    left: var(--space-5);
    padding: 0.75rem 1.25rem;
  }
  /* מניעת חסימת תוכן ע"י FAB במובייל */
  body { padding-bottom: 5rem; }
}

/* ============================================================
   CONTACT POPUP MODAL
   ============================================================ */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.contact-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  background: var(--color-bg-light); /* רקע אפור כמו האתר; השדות הלבנים בולטים עליו */
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-cta);
  padding: var(--space-10);
  max-width: 520px;
  width: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(.95);
  transition:
    transform .5s cubic-bezier(.2,.9,.25,1.15),
    opacity .4s ease;
}
.contact-modal-overlay.open .contact-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Drone loader - covers the form fields while the lead is sent */
.modal-loader {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(245, 245, 245, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-loader.is-visible { opacity: 1; pointer-events: auto; }
.modal-loader__drone { animation: drone-bob 1.7s ease-in-out infinite; }
.modal-loader__drone svg { display: block; }
.modal-loader__drone .rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: drone-rotor .26s linear infinite;
}
.modal-loader__text {
  font-weight: var(--weight-semi);
  color: var(--color-bg-dark, #242424);
  font-size: 1rem;
}
@keyframes drone-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes drone-rotor { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .modal-loader__drone,
  .modal-loader__drone .rotor { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-modal { transition: opacity .2s ease; transform: none; }
}

.contact-modal-close {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: none;
  border: none;
  font-size: var(--size-xl);
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease);
}
.contact-modal-close:hover { color: var(--color-text-dark); }

.contact-modal-head { margin-bottom: var(--space-6); }
.contact-modal h2 {
  font-size: var(--size-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
}
.contact-modal-sub {
  font-size: var(--size-base);
  color: var(--color-text-muted);
}

/* CF7 inside modal */
.contact-modal .wpcf7-form p { margin-bottom: var(--space-4); }
.contact-modal .wpcf7-form input,
.contact-modal .wpcf7-form textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--size-base);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-modal .wpcf7-form input:focus,
.contact-modal .wpcf7-form textarea:focus,
.contact-modal .wpcf7-form select:focus {
  outline: none;
  border-color: var(--color-cta);
}
.contact-modal .wpcf7-form textarea { min-height: 120px; resize: vertical; }

/* Styled select (נושא הפנייה) - matches inputs, custom chevron */
.contact-modal .wpcf7-form select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--size-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}

/* Success state - shown on wpcf7mailsent */
.contact-modal__success { display: none; text-align: center; padding: var(--space-6) 0; }
.contact-modal.is-sent .contact-modal__success { display: block; animation: modal-success-in .4s var(--ease) both; }
.contact-modal.is-sent .contact-modal-head,
.contact-modal.is-sent .wpcf7 { display: none; }
.contact-modal__success-icon {
  width: 68px; height: 68px; margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-cta) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.contact-modal__success h3 { font-size: var(--size-2xl); font-weight: var(--weight-bold); margin-bottom: 4px; }
.contact-modal__success p { color: var(--color-text-muted); }
@keyframes modal-success-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
.contact-modal .wpcf7-form input[type="submit"] {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semi);
  cursor: pointer;
  padding: 0.75rem 1.75rem;
  width: auto;
  transition: background var(--dur-base) var(--ease);
}
.contact-modal .wpcf7-form input[type="submit"]:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
}

/* ============================================================
   CONTACT MODAL - שיפור עיצוב CF7 (יונתן + ולאד, 2026-06-19)
   ============================================================ */

/* רקע הטופס - אפור כמו האתר */
.contact-modal .wpcf7 {
  background: transparent; /* ה-modal עצמו אפור - בלי פאנל מקונן */
  padding: 0;
  margin-top: 8px;
}

/* כותרת */
.contact-modal-head { text-align: right; }
.contact-modal h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #242424;
  margin-bottom: 4px;
}
.contact-modal-sub {
  font-size: 0.9375rem;
  color: #7a7a7a;
}

/* label עוטף את ה-input ב-CF7 - display:block מסדר את הסטאק */
.contact-modal .wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #242424;
  margin-bottom: 6px;
  text-align: right;
}
.contact-modal .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

/* שדות - לבנים עם בורדר */
.contact-modal .wpcf7-form input[type="text"],
.contact-modal .wpcf7-form input[type="email"],
.contact-modal .wpcf7-form input[type="tel"],
.contact-modal .wpcf7-form select,
.contact-modal .wpcf7-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #c4c4c4; /* בורדר נראה כדי שהשדה הלבן יבלוט על ה-modal האפור */
  border-radius: 10px;
  padding: 0 18px;
  height: 52px;
  font-family: var(--font-base);
  font-size: 0.9375rem;
  color: #242424;
  text-align: right;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05); /* הרמה - השדה הלבן בולט על ה-modal האפור */
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

/* placeholders */
.contact-modal .wpcf7-form input::placeholder,
.contact-modal .wpcf7-form textarea::placeholder {
  color: #9e9e9e;
}

/* focus */
.contact-modal .wpcf7-form input[type="text"]:focus,
.contact-modal .wpcf7-form input[type="email"]:focus,
.contact-modal .wpcf7-form input[type="tel"]:focus,
.contact-modal .wpcf7-form select:focus,
.contact-modal .wpcf7-form textarea:focus {
  border-color: #242424;
  outline: none;
}

/* textarea */
.contact-modal .wpcf7-form textarea {
  height: 130px; /* קבוע - היה auto עם rows=10 (גבוה מדי) */
  min-height: 110px;
  max-height: 240px;
  padding: 14px 18px;
  resize: vertical;
  line-height: 1.6;
}

/* select - חץ בצד שמאל (RTL), placeholder אפור */
.contact-modal .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}
/* select במצב placeholder - אפור */
.contact-modal .wpcf7-form select.placeholder-selected {
  color: #9e9e9e;
}

/* ריווח בין שדות */
.contact-modal .wpcf7-form p {
  margin-bottom: 18px;
}
.contact-modal .wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

/* כפתור שליחה - ליים, מלא-רוחב */
.contact-modal .wpcf7-form input[type="submit"] {
  width: auto; /* לא על כל הרוחב */
  min-width: 160px;
  height: 48px;
  padding: 0 40px;
  background: #c3e85b;
  color: #111;
  border: none;
  border-radius: 80px;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
  margin-top: 4px;
}
.contact-modal .wpcf7-form input[type="submit"]:hover {
  background: #acd148;
  border-color: transparent;
}
/* שורת ה-submit מיושרת לימין (RTL טבעי) */
.contact-modal .wpcf7-form p:last-of-type { text-align: right; }

/* צ'קבוקס הסכמה לדיוור */
.contact-modal .wpcf7-acceptance { display: block; margin: 4px 0 8px; }
.contact-modal .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact-modal .wpcf7-acceptance label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6a6a6a;
  line-height: 1.5;
  cursor: pointer;
}
.contact-modal .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #c3e85b;
  margin-top: 1px;
}

/* טואסט הצלחה - מופיע במקום כפתור השליחה, נמוג, והכפתור חוזר */
.contact-modal__toast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 28px;
  border-radius: 80px;
  background: #c3e85b;
  color: #111;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.contact-modal__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* שגיאות שדה */
.contact-modal .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 4px;
  text-align: right;
}
.contact-modal .wpcf7-form-control.wpcf7-not-valid {
  border-color: #e6b3b3 !important;
}

/* הודעות תגובה */
.contact-modal .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-align: right;
}
.contact-modal .wpcf7-form.invalid .wpcf7-response-output,
.contact-modal .wpcf7-form.unaccepted .wpcf7-response-output {
  border-color: #e6b3b3;
  background: #fdf2f2;
  color: #7a2020;
}
.contact-modal .wpcf7-form.sent .wpcf7-response-output {
  border-color: #b8d96a;
  background: #f4fae5;
  color: #2c3a12;
}

/* mobile */
@media (max-width: 560px) {
  .contact-modal { padding: 24px 20px; }
  .contact-modal .wpcf7 { padding: 20px 16px; }
}
