/* ===========================================================
   Page — Contact (template-content.php)
   Header has solid/white background (no on-hero class), so the
   site-wrap padding-top already pushes content below the header.
   The breadcrumb sits at --nzm-page-breadcrumb-offset below the
   bottom of the header — same offset as in page-thank.css.
   =========================================================== */

:root {
	--nzm-page-breadcrumb-offset: clamp(16px, 2vw, 28px);
	--nzm-container: 1600px;
	--nzm-container-pad: clamp(16px, 4vw, 50px);
	--nzm-page-field: #f6f6f6;
	--nzm-page-radius-field: 6.45px;
}

.contact {
	width: 100%;
	overflow-x: clip;
	padding-top: var(--nzm-page-breadcrumb-offset);
}

/* ============================================
   Breadcrumb — shared structure with thank page,
   but dark text on white background.
   ============================================ */
.contact-breadcrumb.nzm-page-breadcrumb {
	max-width: var(--nzm-container);
	margin: 0 auto;
	padding: 0 var(--nzm-container-pad) clamp(16px, 2vw, 24px);
	display: flex;
	justify-content: flex-start;
	color: var(--nzm-text-black, #000);
	font-size: 17px;
}

.contact-breadcrumb__inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.contact-breadcrumb__current {
	font-weight: 500;
}

.contact-breadcrumb a {
	display: inline-flex;
	align-items: center;
	color: inherit;
}

/* ============================================
   Head (title + lead + sub)
   ============================================ */
.contact-head {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--nzm-container-pad) clamp(12px, 1.6vw, 20px);
	text-align: center;
}

.contact-head__title {
	margin: 0 0 clamp(16px, 2vw, 28px);
	color: var(--nzm-text-black, #000);
	font-size: clamp(36px, 5vw, 60px);
	font-weight: 400;
	line-height: 1.17;
	text-align: center;
}

.contact-head__lead {
	margin: 0 0 clamp(12px, 1.4vw, 18px);
	color: var(--nzm-text-black, #000);
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 500;
	line-height: 1.33;
	text-align: center;
}

.contact-head__sub {
	margin: 0;
	color: var(--nzm-text-dark-gray, #4a4a4a);
	font-size: clamp(15px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.33;
	text-align: center;
}

.contact-head__sub a {
	color: var(--nzm-text-black, #000);
	text-decoration: underline;
}

/* ============================================
   Form
   ============================================ */
.contact-form {
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 var(--nzm-container-pad) clamp(48px, 7vw, 96px);
}

.contact-form__notice {
	max-width: 1060px;
	margin: 0 auto clamp(16px, 2vw, 24px);
	padding: 14px 18px;
	background: #0a3d0a;
	color: #fff;
	border-radius: var(--nzm-page-radius-field);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	text-align: center;
}

.contact-form__notice--error {
	background: #6b1010;
}

.contact-form__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
	margin-bottom: clamp(12px, 1.6vw, 20px);
}

.contact-form__field {
	position: relative;
	width: 100%;
}

.contact-form__input,
.contact-form__textarea {
	width: 100%;
	height: 56px;
	padding: 0 18px;
	background: var(--nzm-page-field);
	border: 0;
	border-radius: var(--nzm-page-radius-field);
	font-family: inherit;
	font-size: clamp(16px, 1.4vw, 20px);
	color: var(--nzm-text-black, #000);
	text-align: right;
	direction: rtl;
	outline: none;
	transition: box-shadow 0.2s ease;
}

.contact-form__textarea {
	height: clamp(120px, 16vw, 160px);
	padding: 16px 18px;
	resize: vertical;
	line-height: 1.4;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
	color: var(--nzm-text-dark-gray, #4a4a4a);
	font-weight: 400;
	opacity: 1;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

/* ולידציה — שדה שגוי: מסגרת אדומה + הודעה בעברית בפינה שמאל-עליונה (כמו ה-CTA בפוטר) */
.contact-form__error {
	position: absolute;
	top: 6px;
	left: 14px;
	font-size: 11px;
	line-height: 1;
	color: #c0392b;
	pointer-events: none;
	z-index: 2;
}
.contact-form__field.is-error .contact-form__input {
	box-shadow: 0 0 0 2px #c0392b;
	padding-top: 20px;
}

.contact-form__submit-wrap {
	display: flex;
	justify-content: center;
	margin-top: clamp(20px, 3vw, 32px);
}

.contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 150px;
	height: 56px;
	padding: 0 24px;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 60px;
	font-family: inherit;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-form__submit:hover {
	opacity: 0.92;
}

.contact-form__submit:active {
	transform: translateY(1px);
}

.contact-form__submit svg {
	flex-shrink: 0;
}

/* ============================================
   Locations — two dark cards side-by-side
   ============================================ */
.contact-locations {
	max-width: var(--nzm-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(20px, 2.4vw, 32px);
}

.location {
	position: relative;
	background: #000;
	color: #fff;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	container-type: inline-size;
	container-name: location;
}

.location__top {
	display: flex;
	align-items: stretch;
}

.location__info {
	flex: 1 1 0;
	min-width: 0;
	padding: clamp(20px, 4.81cqw, 38px) clamp(18px, 5.32cqw, 42px);
	display: flex;
	flex-direction: column;
	text-align: right;
}

.location__media {
	flex: 0 0 55.77%;
	min-width: 0;
	overflow: hidden;
	aspect-ratio: 440 / 505;
	align-self: flex-start;
	margin: 0;
	padding: 0;
}

.location__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.location__title {
	margin: 0 0 clamp(10px, 2.22cqw, 17.5px);
	color: #fff;
	font-size: clamp(22px, 5.07cqw, 40px);
	font-weight: 300;
	line-height: 1;
	text-align: right;
}

.location__title strong {
	font-weight: 500;
}

.location__row {
	color: #fff;
	font-size: clamp(14px, 2.41cqw, 19px);
	line-height: 1.37;
	margin-top: clamp(10px, 2.03cqw, 16px);
}

.location__row:first-of-type {
	margin-top: 0;
}

.location__row--address {
	margin-top: clamp(24px, 5.7cqw, 45px);
}

.location__row-label {
	font-weight: 700;
	display: block;
}

.location__row-value {
	font-weight: 400;
}

.location__row-value a {
	text-decoration: underline;
}

.location__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: clamp(6px, 1.09cqw, 8.6px);
}

.location__btn {
	direction: ltr;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
	border-radius: 60px;
	border: 1px solid #fff;
	color: #fff;
	font-size: clamp(14px, 2.15cqw, 17px);
	font-weight: 700;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.location__btn:hover {
	background: #fff;
	color: #000;
}

.location__btn svg {
	flex-shrink: 0;
}

/* Waze: "eye" cutouts בצבע הרקע של הכרטיס (שחור) כדי להבחין מהסילואט הלבן.
   ב-hover הכפתור הופך לרקע לבן + טקסט שחור — אז ה-eye עוברות ללבן (קונטרסט הפוך). */
.location__btn--waze .location__btn-waze-eye {
	fill: #000;
	transition: fill 0.2s ease;
}

.location__btn--waze:hover .location__btn-waze-eye,
.location__btn--waze:focus-visible .location__btn-waze-eye {
	fill: #fff;
}

.location__map {
	position: relative;
	margin: clamp(16px, 5.32cqw, 42px);
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 705 / 266;
}

.location__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.location__map-pin {
	position: absolute;
	top: 43.8%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	line-height: 0;
}

.location__map-pin svg {
	width: clamp(28px, 7.22cqw, 57px);
	height: auto;
	display: block;
}

.location__map-label {
	position: absolute;
	top: calc(50% + clamp(18px, 2vw, 28px));
	left: 50%;
	transform: translate(-50%, 0);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	background: #fff;
	border-radius: 2px;
	font-size: 14px;
	line-height: 14px;
	color: #000;
	white-space: nowrap;
}

.location__map-label strong {
	font-weight: 700;
}

/* Visually hidden form labels */
.contact-form .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;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
	.contact-form__row {
		grid-template-columns: 1fr 1fr;
	}

	.location__top {
		flex-direction: column;
	}

	.location__media {
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 16 / 9;
		order: -1;
		align-self: stretch;
	}

	.location__info {
		flex: 1 1 auto;
	}
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
	.contact-form__row {
		grid-template-columns: 1fr;
	}

	.contact-locations {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.location__media {
		aspect-ratio: 16 / 10;
	}

	.location__map {
		margin: 0 16px 20px;
		aspect-ratio: 16 / 10;
	}

	.location__actions {
		justify-content: flex-end;
	}
}

@media (max-width: 480px) {
	.contact-breadcrumb.nzm-page-breadcrumb {
		font-size: 14px;
	}

	.contact-form__submit {
		width: 100%;
	}
}
