/* =========================================================
   Contact page — extends style.css tokens
   ========================================================= */

.contact { display: grid; grid-template-columns: minmax(0, 801fr) minmax(0, 639fr); min-height: 910px; }

/* Info panel: photo + dark green overlay */
.contact__info { position: relative; color: #fff; background: #1d2b22 url("../img/contact-hero.webp") center / cover no-repeat; isolation: isolate; }
.contact__info::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 34, 32, .5) 0%, rgba(22, 48, 32, .55) 55%, rgba(16, 40, 26, .72) 100%); }
.contact__info-inner { padding: 44px var(--gutter) 96px max(var(--gutter), calc((100vw - var(--container)) / 2)); }

.breadcrumb ol { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.breadcrumb li { display: flex; align-items: center; gap: 16px; }
.breadcrumb li + li::before { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .9; }
.breadcrumb a { font-weight: 500; }
.breadcrumb a:hover { color: var(--green-400); }

.contact__title { margin-top: 96px; font-size: clamp(2.25rem, 1.3rem + 2.8vw, 4rem); line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }

.contact__grid { margin-top: 44px; display: grid; grid-template-columns: 298px 1fr; gap: 66px 0; }
.cinfo__label { font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--green-100); }
.cinfo__value { margin-top: 18px; font-size: 28px; line-height: 1.36; font-weight: 500; }
.cinfo__value a:hover { color: var(--green-400); }
.cinfo__meta { margin-top: 12px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .92); }

/* Form panel */
.contact__form-wrap { display: flex; flex-direction: column; align-items: flex-start; padding: 100px var(--gutter) 64px 79px; background: var(--white); }
.cform, .csuccess { width: 100%; max-width: 480px; }
.cform__title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem); line-height: 1.18; font-weight: 500; color: var(--ink); text-wrap: balance; margin-bottom: 40px; }

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .phone { height: 44px; width: 100%; border: 1px solid #ececeb; border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input { padding: 0 16px; }
.field input::placeholder { color: #8f8e88; }
.field input:hover, .phone:hover { border-color: #d6d6d3; }
.field input:focus, .phone:focus-within { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px rgba(152, 229, 103, .35); }
.field__error { display: none; font-size: 13px; color: #b42318; }
.field.is-invalid .field__error, .field__error--consent.is-visible { display: block; }
.field.is-invalid input, .field.is-invalid .phone { border-color: #d92d20; }

.phone { display: flex; align-items: center; padding: 0 12px 0 16px; gap: 8px; }
.phone input { border: 0; height: 100%; padding: 0; box-shadow: none !important; flex: 1; min-width: 0; }
.phone__country { position: relative; display: flex; align-items: center; gap: 6px; flex: none; }
.phone__country select { position: absolute; inset: -10px -4px; opacity: 0; cursor: pointer; font-size: 16px; }
.phone__flag { display: grid; }
.flag { width: 28px; height: 20px; }
.flag--il { box-shadow: 0 0 0 1px #ececeb; }
.flag--globe { display: none; width: 22px; height: 22px; color: var(--muted); }
.phone.is-other .flag--il { display: none; }
.phone.is-other .flag--globe { display: block; }
.phone .ico--chev { width: 16px; height: 16px; color: var(--muted); }
.phone__code { color: var(--ink); font-size: 15px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin-top: 34px; align-items: start; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid #d9d9d6; border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background-color .15s, border-color .15s; }
.consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s; }
.consent input:checked { background: var(--green-800); border-color: var(--green-800); }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent.is-invalid input { border-color: #d92d20; }
.consent label { font-size: 16px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--green-800); }
.field__error--consent { margin: 8px 0 0 32px; }

.cform__actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.cform__submit { min-width: 160px; }
.cform__submit[disabled] { opacity: .7; cursor: progress; }

/* Success */
.csuccess[hidden], .cform[hidden] { display: none; }
.csuccess { align-self: center; margin-top: 140px; display: grid; justify-items: center; text-align: center; gap: 0; outline: none; animation: fadeUp .45s var(--ease) both; }
.csuccess__icon { width: 100px; height: 100px; border-radius: 50%; background: var(--green-100); color: var(--green-500); display: grid; place-items: center; }
.csuccess__icon .ico { width: 52px; height: 52px; }
.csuccess h2 { margin-top: 64px; font-size: clamp(2rem, 1.5rem + 1.3vw, 2.75rem); line-height: 1.18; font-weight: 500; color: var(--ink); max-width: 340px; text-wrap: balance; }
.csuccess p { margin-top: 24px; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 460px; }
.csuccess .btn { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .contact__form-wrap { padding-left: 48px; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
}

@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact__info-inner { margin: 0; max-width: none; padding: 56px var(--gutter) 64px; }
  .contact__title { margin-top: 56px; }
  .contact__form-wrap { padding: 72px var(--gutter) 64px; align-items: center; }
  .cform, .csuccess { max-width: 640px; }
  .csuccess { margin-top: 0; }
}

@media (max-width: 767px) {
  .contact__info-inner { padding: 48px var(--gutter) 52px; }
  .breadcrumb ol, .breadcrumb li { gap: 14px; }
  .contact__title { margin-top: 44px; font-size: 32px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .cinfo__label { font-size: 17px; }
  .cinfo__value { margin-top: 14px; font-size: 19px; }
  .cinfo__meta { margin-top: 10px; font-size: 15px; }

  .contact__form-wrap { padding: 72px var(--gutter) 64px; }
  .cform__title { font-size: 28px; margin-bottom: 28px; text-wrap: auto; }
  .field { margin-bottom: 20px; }
  .consent { margin-top: 24px; }
  .csuccess h2 { margin-top: 40px; font-size: 30px; }
  .csuccess p { font-size: 16px; }
}
/* Compact info panel without opening hours (Nov 2026) */
.contact__grid { gap: 40px 0; }
.contact__info-inner { padding-bottom: 72px; }
.cinfo__value { margin-top: 12px; }
.phone--plain { padding: 0 16px; }
@media (max-width: 1100px) { .contact__grid { gap: 36px 32px; } .contact__info-inner { padding-bottom: 48px; } }
@media (max-width: 767px) { .contact__grid { gap: 28px; } .contact__info-inner { padding-bottom: 40px; } }

/* Nov 2026 update: 720/720 split, 16px inputs everywhere, people-focused photo */
.field input, .phone { border-radius: 16px; }
.contact__info { background-position: right top; }
@media (min-width: 1101px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__title { margin-top: 134px; }
  .contact__form-wrap { padding-left: 80px; padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .cform, .csuccess { max-width: 560px; }
}
@media (min-width: 1101px) { [dir="rtl"] .contact__form-wrap { padding-right: 80px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); } }
