/* ==========================================================================
   FOOTER CTA — טופס "תאמו פגישת ייעוץ" גלובלי (template-parts/cta-footer.php)
   מנוהל ב-ACF Options: הגדרות תבנית → FOOTER CTA
   ========================================================================== */

.porc-consult, .porc-consult * { box-sizing: border-box; }
.porc-consult { font-family: var(--nzm-header-font); }
.porc-container { width: min(1595px, 100% - 48px); margin-inline: auto; }
/* ---------------- H. טופס "תאמו פגישת ייעוץ" ---------------- */
.porc-consult {
	position: relative;
	width: 100%;
	background-color: #161616;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	padding: clamp(56px, 7vw, 110px) 0;
}
.porc-consult__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); z-index: 0; }
.porc-consult__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(32px, 5vw, 90px);
}

/* info (right) */
.porc-consult__info { flex: 1 1 46%; color: #fff; text-align: right; }
.porc-consult__heading { margin: 0 0 18px; font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.1; }
.porc-consult__sub { margin: 0 0 22px; font-weight: 400; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; max-width: 520px; }
.porc-consult__benefits { margin: 0 0 26px; padding-inline-start: 24px; list-style: disc; }
.porc-consult__benefits li { margin-bottom: 8px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; }
.porc-consult__phone { margin: 0; font-weight: 300; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.porc-consult__phone a { color: #fff; font-weight: 500; text-decoration: none; }

/* form card (left) */
.porc-consult__form {
	flex: 0 0 clamp(340px, 46%, 700px);
	background: #fff;
	color: #000;
	border-radius: 8px;
	padding: clamp(26px, 2.6vw, 44px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.porc-consult__form-title { margin: 0 0 10px; font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; text-align: right; }
.porc-consult__form-sub { margin: 0 0 24px; font-weight: 400; font-size: clamp(16px, 1.5vw, 21px); color: #000; text-align: right; }

.porc-consult__row { display: flex; gap: 16px; margin-bottom: 16px; }
.porc-field { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; text-align: right; min-width: 0; }
.porc-field__label { font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); color: #000; }
.porc-field input,
.porc-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 14px 16px;
	font-family: inherit;
	font-size: clamp(16px, 1.4vw, 20px);
	color: #1a1a1a;
	background: #f6f6f6;
	text-align: right;
}
.porc-field input::placeholder { color: #4a4a4a; opacity: 1; }
.porc-field input:focus, .porc-field select:focus { outline: none; border-color: #000; }

.porc-consult__chips { border: 0; padding: 0; margin: 0 0 18px; }
.porc-consult__chips legend { padding: 0; margin-bottom: 12px; font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); color: #000; }
.porc-consult__chips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.porc-chip {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 54px;
	border: 1px solid #000;
	border-radius: 6px;
	padding: 8px 6px;
	font-size: clamp(13px, 1.2vw, 18px);
	line-height: 1.15;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.porc-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.porc-chip:has(input:checked) { background: #000; color: #fff; border-color: #000; }
.porc-chip input:focus-visible + span { text-decoration: underline; }

.porc-consult__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 60px;
	padding: 17px 24px;
	margin-top: 4px;
	font-family: inherit;
	font-weight: 500;
	font-size: clamp(17px, 1.5vw, 20px);
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.porc-consult__submit:hover { opacity: 0.88; }
.porc-consult__submit:disabled { opacity: 0.6; cursor: default; }
.porc-consult__submit-arrow { display: inline-flex; }

.porc-consult__note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #444; text-align: center; }
.porc-consult__consent { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.porc-consult__consent input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; accent-color: #000; cursor: pointer; }
.porc-consult__consent span { text-align: right; }

.porc-consult__msg { margin: 14px 0 0; font-size: 14px; text-align: center; }
.porc-consult__msg.is-ok { color: #157a3e; }
.porc-consult__msg.is-err { color: #c0392b; }

@media (max-width: 1024px) {
	.porc-consult__inner { flex-direction: column; align-items: stretch; }
	.porc-consult__info { text-align: right; }
	.porc-consult__form { flex-basis: auto; }
}
@media (max-width: 560px) {
	.porc-consult__row { flex-direction: column; gap: 14px; }
	.porc-consult__chips-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   STANDALONE — כרטיס הטופס בעמוד "צור קשר" (template-content.php), רקע לבן.
   אותו טופס porc-consult, ללא הרקע הכהה / טור המידע — רק הכרטיס, ממורכז.
   ========================================================================== */
.contact-consult {
	width: min(760px, 100% - 48px);
	margin: clamp(8px, 2vw, 24px) auto clamp(40px, 6vw, 72px);
	font-family: var(--nzm-header-font);
}
.contact-consult .porc-consult__form {
	flex: none;
	max-width: none;
	width: 100%;
	border: 1px solid #ececec;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.10);
}

/* ולידציה בעברית — הודעה אדומה בתוך השדה, פינה שמאל-עליונה */
.porc-field { position: relative; }
.porc-field__error { position: absolute; top: 7px; left: 12px; right: auto; display: none; margin: 0; color: #c0392b; font-size: 11px; line-height: 1.2; text-align: left; max-width: calc(100% - 24px); pointer-events: none; z-index: 2; }
.porc-field.is-error .porc-field__error { display: block; }
.porc-field.is-error input { border-color: #c0392b; padding-top: 24px; }
.porc-field.is-error input::placeholder { color: #c0392b; opacity: 1; }
