/* GGD Form v0.1 — טופס יצירת הקשר + פופאפ (במקום טופס/פופאפ אלמנטור) */

.ggd-form { font-family: "Rubik", sans-serif; margin: 0; }
.ggd-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ggd-form--popup .ggd-form__fields { gap: 10px; }
.ggd-form__f { grid-column: 1 / -1; min-width: 0; }
.ggd-form__f--half { grid-column: auto; }

.ggd-form .ggd-form__f input[type="text"],
.ggd-form .ggd-form__f input[type="tel"],
.ggd-form .ggd-form__f input[type="email"],
.ggd-form .ggd-form__f textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	margin: 0;
	padding: 8px 16px;
	font: 400 16px/1.4 "Rubik", sans-serif;
	color: #2a2a2a;
	background: #fff;
	border: .8px solid #69727d;
	border-radius: 3px;
	box-shadow: none;
}
.ggd-form .ggd-form__f textarea { padding: 5px 14px; height: auto; resize: vertical; }
.ggd-form .ggd-form__f input:focus,
.ggd-form .ggd-form__f textarea:focus { outline: none; border-color: #290644; box-shadow: inset 0 0 0 1px #290644; }
.ggd-form .ggd-form__f input::placeholder,
.ggd-form .ggd-form__f textarea::placeholder { color: #69727d; opacity: 1; }
.ggd-form .iti { width: 100%; display: block; }

/* מלכודת דבש — מחוץ למסך */
.ggd-form__hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* סיורים נוספים */
.ggd-form .ggd-form__related-title {
	margin: 10px 0;
	padding: 0;
	background: none;
	text-align: center;
	font: 400 14px/1.2 "Rubik", sans-serif;
	color: #000;
}
.ggd-form__related-list {
	display: grid;
	gap: 10px;
	box-sizing: border-box;
	height: 112px;
	margin: 0 5px;
	padding: 10px 20px;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	background: #f7f7f7;
	border: 2px solid #d0d0d0;
	border-radius: 8px;
}
.ggd-form__related-list::-webkit-scrollbar { width: 14px; background: #e6e6e6; }
.ggd-form__related-list::-webkit-scrollbar-thumb { background: #a3a3a3; border-radius: 6px; }
.ggd-form__related-list::-webkit-scrollbar-thumb:hover { background: #8e8e8e; }
.ggd-form .ggd-form__chk { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 16px/1 "Rubik", sans-serif; color: #000; cursor: pointer; }
.ggd-form .ggd-form__chk input { flex: 0 0 auto; width: auto; margin: 0; }

/* כפתור */
.ggd-form__submit { margin-top: 10px; }
.ggd-form .ggd-form__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0 24px;
	font: 500 15px/1 "Rubik", sans-serif;
	color: #2a2a2a;
	background: #ffae16;
	border: 1.6px solid #2a2a2a;
	border-radius: 20px;
	cursor: pointer;
	transition: background-color .2s;
}
.ggd-form .ggd-form__btn:hover,
.ggd-form .ggd-form__btn:focus { color: #2a2a2a; background: #f29d00; border-color: #2a2a2a; }
.ggd-form .ggd-form__btn[disabled] { opacity: .6; cursor: wait; }
.ggd-form__btn-icon { width: 15px; height: 15px; fill: currentColor; }

/* שגיאות */
.ggd-form__err { width: 100%; margin-top: 5px; color: #d63638; font-size: 14px; }
.ggd-form [aria-invalid="true"] { border-color: #d63638 !important; }
.ggd-form__msg { grid-column: 1 / -1; margin-top: 10px; color: #d63638; font-size: 14px; text-align: center; }

/* ---------- פופאפ ---------- */
.ggd-popup[hidden] { display: none !important; }
.ggd-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ggd-popup__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); }
.ggd-popup__dialog {
	position: relative;
	width: 640px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.ggd-popup__inner { padding: 50px; background: rgba(61, 66, 111, .38); }
.ggd-popup .ggd-popup__title {
	margin: 0 0 20px;
	text-align: center;
	font: 600 32px/1 "Rubik", sans-serif;
	color: #2a2a2a;
}
.ggd-popup .ggd-popup__close {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
	display: flex;
	padding: 2px;
	color: #2a2a2a;
	background: transparent;
	border: 1.5px solid #2a2a2a;
	border-radius: 3px;
	cursor: pointer;
	line-height: 0;
}
.ggd-popup .ggd-popup__close:hover,
.ggd-popup .ggd-popup__close:focus { background: rgba(255, 255, 255, .5); color: #2a2a2a; }
html:not([dir="rtl"]) .ggd-popup .ggd-popup__close { left: auto; right: 15px; }
html.ggd-popup-open { overflow: hidden; }

@media (max-width: 767px) {
	.ggd-popup__inner { padding: 45px 20px 30px; }
	.ggd-popup .ggd-popup__title { font-size: 22px; line-height: 1.2; }
	.ggd-form--popup .ggd-form__f--half { grid-column: 1 / -1; }
	.ggd-form--popup .ggd-form__f--half:nth-child(-n+2) { grid-column: auto; }
}