/* Shemesh Lead Form - "בואו נתחיל". Shemesh design language: ink/paper, magenta accent, yellow spot, zero radius, hard shadows. */

.slf {
	--slf-ink: #111111;
	--slf-paper: #F7F6F2;
	--slf-white: #FFFFFF;
	--slf-magenta: #EC00C6;
	--slf-yellow: #FFF200;
	--slf-muted: #D0D0CC;
	--slf-line: rgba(255, 255, 255, .22);

	position: relative;
	padding: 88px 20px 72px;
	background-color: var(--slf-ink);
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 40px 40px;
	color: var(--slf-white);
	font-family: 'Rubik', sans-serif;
	text-align: right;
	box-sizing: border-box;
}

.slf *,
.slf *::before,
.slf *::after {
	box-sizing: border-box;
}

.slf-inner {
	max-width: 920px;
	margin: 0 auto;
}

/* Heading */
.slf .slf-head {
	position: static;
	z-index: auto;
	margin: 0 0 40px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	text-align: center;
}

.slf-title {
	margin: 0;
	color: var(--slf-white);
	font-family: inherit;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

/* Highlighted word. The style is picked in the settings (slf-mark--{style}). */
.slf-mark {
	position: relative;
	display: inline-block;
	z-index: 0;
}

/* sticker: small tilted tag above the word + thin yellow underline */
.slf-mark--sticker {
	border-bottom: .08em solid var(--slf-yellow);
	line-height: 1;
}

.slf .slf-tag {
	position: absolute;
	/* Pops out of the word's top-left corner, centred over the end of the word, just clear of the tall ל. */
	bottom: 98%;
	left: -19%;
	padding: 4px 9px;
	background: var(--slf-magenta);
	color: var(--slf-white);
	font-family: inherit;
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate(-4deg);
	transform-origin: left bottom;
}

.slf-head--sticker {
	padding-top: 22px !important;
}

/* strike: "yes, and" - a crossed-out word, then the highlighted word */
.slf .slf-strike {
	position: relative;
	display: inline-block;
	margin-left: .1em;
	color: rgba(255, 255, 255, .38);
	font-size: .72em;
	font-weight: 500;
	text-decoration: none;
	vertical-align: .08em;
}

.slf .slf-strike::after {
	content: "";
	position: absolute;
	right: -4%;
	left: -4%;
	top: 52%;
	height: .12em;
	background: var(--slf-magenta);
	transform: rotate(-6deg);
}

.slf-mark--strike {
	color: var(--slf-yellow);
}

/* circle: hand-drawn marker loop */
.slf-mark--circle {
	padding: 0 .12em;
}

.slf-circle {
	position: absolute;
	top: -.18em;
	right: -.28em;
	width: calc(100% + .56em);
	height: calc(100% + .3em);
	overflow: visible;
	pointer-events: none;
}

.slf-circle path {
	fill: none;
	stroke: var(--slf-yellow);
	stroke-width: 4;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

/* echo: hard shadows on the letters themselves */
.slf-mark--echo {
	text-shadow: 4px 4px 0 var(--slf-magenta), 8px 8px 0 var(--slf-yellow);
}

/* ticket: admission ticket with punched sides */
.slf-mark--ticket {
	padding: .02em .3em .06em;
	background: var(--slf-paper);
	color: var(--slf-ink);
}

.slf-mark--ticket::before,
.slf-mark--ticket::after {
	content: "";
	position: absolute;
	top: 50%;
	width: .36em;
	height: .36em;
	margin-top: -.18em;
	border-radius: 50%;
	background: var(--slf-ink);
}

.slf-mark--ticket::before { right: -.18em; }
.slf-mark--ticket::after  { left: -.18em; }

.slf-ticket-line {
	position: absolute;
	inset: .12em .14em;
	border: 2px dashed rgba(17, 17, 17, .35);
	pointer-events: none;
}

/* plate: tilted paper plate, magenta hard shadow, straight word */
.slf-mark--plate {
	padding: 0 .16em;
	color: var(--slf-ink);
}

.slf-mark--plate::before {
	content: "";
	position: absolute;
	inset: .14em -.04em .02em;
	background: var(--slf-paper);
	box-shadow: 5px 5px 0 var(--slf-magenta);
	transform: rotate(-1.5deg);
	z-index: -1;
}

/* marker: same as .sb-marker in Shemesh Blocks */
.slf-mark--marker {
	padding: 0 10px;
	background: linear-gradient(transparent 14%, var(--slf-yellow) 14%);
	color: var(--slf-ink);
	transform: rotate(-1deg);
}

/* optional blinking caret after the title */
.slf-caret {
	display: inline-block;
	width: .09em;
	height: .85em;
	margin-right: .12em;
	background: var(--slf-magenta);
	vertical-align: -.06em;
	animation: slfBlink 1s steps(1) infinite;
}

@keyframes slfBlink {
	50% { opacity: 0; }
}

.slf-sub {
	max-width: 560px;
	margin: 16px auto 0;
	color: rgba(255, 255, 255, .78);
	font-size: 18px;
	line-height: 1.6;
}

/* Progress */
.slf-progress {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

.slf-progress-bar {
	display: block;
	height: 6px;
	background: var(--slf-line);
	transition: background .25s ease;
}

.slf-progress-bar.is-done {
	background: var(--slf-white);
}

.slf-progress-bar.is-active {
	background: var(--slf-magenta);
}

.slf-step-count {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
	font-weight: 700;
}

/* Steps */
.slf-step {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.slf-step[hidden] {
	display: none;
}

.slf-step.is-entering {
	animation: slfIn .28s ease both;
}

@keyframes slfIn {
	from { opacity: 0; transform: translateX(-24px); }
	to   { opacity: 1; transform: none; }
}

.slf-step-title {
	display: block;
	float: right;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	color: var(--slf-white);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
}

.slf-step-title::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 6px;
	margin-left: 10px;
	vertical-align: middle;
	background: var(--slf-magenta);
}

.slf-step-title small {
	margin-right: 8px;
	color: rgba(255, 255, 255, .55);
	font-size: 14px;
	font-weight: 500;
}

.slf-step-title + * {
	clear: both;
}

/* Option cards */
.slf-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.slf-options--audience {
	grid-template-columns: repeat(4, 1fr);
}

.slf-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 16px 20px;
	background: var(--slf-white);
	color: var(--slf-ink);
	border: 2px solid var(--slf-white);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.slf-option--wide {
	grid-column: 1 / -1;
}

.slf-option:hover {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 var(--slf-magenta);
}

.slf-option input,
.slf-consent input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.slf-option-label {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

/* Square checkbox / radio */
.slf-box {
	position: relative;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: 2px solid var(--slf-ink);
	background: var(--slf-white);
	transition: background .15s ease;
}

.slf-box::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 7px;
	width: 6px;
	height: 11px;
	border: solid var(--slf-white);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}

.slf-box--radio::after {
	top: 4px;
	right: 4px;
	width: 12px;
	height: 12px;
	border: 0;
	background: var(--slf-white);
	transform: scale(0);
}

input:checked + .slf-box {
	background: var(--slf-magenta);
	border-color: var(--slf-ink);
}

input:checked + .slf-box::after {
	transform: rotate(45deg) scale(1);
}

input:checked + .slf-box--radio::after {
	transform: scale(1);
}

.slf-option:has(input:checked) {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 var(--slf-magenta);
}

.slf-option:has(input:focus-visible),
.slf-consent:has(input:focus-visible) .slf-box {
	outline: 3px solid var(--slf-yellow);
	outline-offset: 3px;
}

/* Contact fields */
.slf-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 16px;
}

.slf-field--wide {
	grid-column: 1 / -1;
}

.slf-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--slf-white);
	font-size: 14px;
	font-weight: 700;
}

.slf-field label span {
	color: var(--slf-magenta);
}

.slf .slf-field input,
.slf .slf-field textarea {
	display: block;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 14px 16px;
	background: var(--slf-white);
	color: var(--slf-ink);
	border: 2px solid var(--slf-white);
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.4;
	text-align: right;
}

.slf .slf-field textarea {
	min-height: 96px;
	resize: vertical;
}

.slf .slf-field input[dir="ltr"] {
	text-align: right;
}

.slf .slf-field input:focus,
.slf .slf-field textarea:focus {
	outline: none;
	border-color: var(--slf-magenta);
	box-shadow: 6px 6px 0 var(--slf-magenta);
}

.slf .slf-field.has-error input {
	border-color: var(--slf-yellow);
}

.slf-field textarea::placeholder {
	color: #77776f;
}

/* Consent */
.slf-consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 18px;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}

.slf-consent .slf-box {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-color: var(--slf-white);
	background: transparent;
}

.slf-consent .slf-box::after {
	top: 1px;
	right: 5px;
	width: 5px;
	height: 10px;
}

/* Honeypot */
.slf-hp {
	position: absolute !important;
	right: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Errors */
.slf-error {
	margin: 8px 0 0;
	color: var(--slf-yellow);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.slf-error:empty {
	display: none;
}

.slf-error--global {
	text-align: center;
}

/* Nav buttons */
.slf-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
}

.slf .slf-btn {
	appearance: none;
	margin: 0;
	border-radius: 0;
	font-family: inherit;
	cursor: pointer;
}

.slf .slf-btn[hidden] {
	display: none;
}

.slf .slf-btn--next {
	flex: 1;
	min-height: 60px;
	padding: 14px 28px;
	background: var(--slf-magenta);
	color: var(--slf-white);
	border: 0;
	font-size: 20px;
	font-weight: 900;
	transition: transform .15s ease, box-shadow .15s ease;
}

.slf .slf-btn--next:hover,
.slf .slf-btn--next:focus-visible {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 var(--slf-white);
	outline: none;
}

.slf .slf-btn--next:disabled {
	opacity: .6;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

.slf .slf-btn--back {
	flex: 0 0 auto;
	min-height: 60px;
	padding: 0 6px;
	background: transparent;
	color: var(--slf-white);
	border: 0;
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.slf .slf-btn--back:hover,
.slf .slf-btn--back:focus-visible {
	color: var(--slf-yellow);
	outline: none;
}

/* Success */
.slf-success {
	padding: 40px 36px;
	background: var(--slf-paper);
	color: var(--slf-ink);
	box-shadow: 14px 14px 0 var(--slf-magenta);
	text-align: center;
	outline: none;
}

.slf-success[hidden] {
	display: none;
}

.slf-success-tag {
	display: inline-block;
	padding: 4px 10px;
	background: var(--slf-magenta);
	color: var(--slf-white);
	font-size: 13px;
	font-weight: 800;
}

.slf-success-title {
	margin: 14px 0 10px;
	color: var(--slf-ink);
	font-family: inherit;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 900;
	line-height: 1.1;
}

.slf-success p {
	max-width: 480px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.6;
}

/* Contact row */
.slf-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 30px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--slf-line);
}

.slf .slf-phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--slf-white) !important;
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 900;
	letter-spacing: -0.02em;
	text-decoration: none !important;
}

.slf-phone svg {
	width: 30px;
	height: 30px;
	fill: var(--slf-magenta);
}

.slf .slf-phone:hover span,
.slf .slf-phone:focus-visible span {
	text-decoration: underline;
	text-decoration-color: var(--slf-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.slf .slf-wa {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px 24px;
	background: transparent;
	color: var(--slf-white) !important;
	border: 2px solid var(--slf-white);
	font-size: 18px;
	font-weight: 800;
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.slf-wa svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.slf .slf-wa:hover,
.slf .slf-wa:focus-visible {
	background: var(--slf-white);
	color: var(--slf-ink) !important;
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 var(--slf-magenta);
	outline: none;
}

/* Responsive */
@media (max-width: 900px) {
	.slf-options--audience {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.slf {
		padding: 56px 16px 40px;
	}

	.slf .slf-head {
		margin-bottom: 26px;
	}

	.slf-title {
		font-size: 40px;
	}

	.slf-sub {
		margin-top: 12px;
		font-size: 16px;
		line-height: 1.5;
	}

	.slf-mark--plate::before {
		box-shadow: 4px 4px 0 var(--slf-magenta);
	}

	.slf-mark--echo {
		text-shadow: 3px 3px 0 var(--slf-magenta), 6px 6px 0 var(--slf-yellow);
	}

	.slf .slf-tag {
		bottom: 100%;
		font-size: 13px;
		padding: 3px 7px;
	}

	/* Progress + step heading: tighter, so the options start higher on the screen */
	.slf-progress {
		gap: 6px;
	}

	.slf-progress-bar {
		height: 5px;
	}

	.slf-step-count {
		margin-bottom: 18px;
		font-size: 12px;
	}

	.slf-step-title {
		margin-bottom: 14px;
		font-size: 20px;
	}

	.slf-step-title::before {
		width: 22px;
		height: 5px;
		margin-left: 8px;
	}

	.slf-step-title small {
		display: block;
		margin: 6px 0 0;
		font-size: 13px;
	}

	/* Options: always two compact columns, so all of step 1 fits on one screen */
	.slf-options,
	.slf-options--audience {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.slf-option {
		min-height: 58px;
		padding: 10px 12px;
		gap: 10px;
		border-width: 0;
	}

	.slf-option-label {
		font-size: 15px;
		line-height: 1.2;
		overflow-wrap: anywhere;
	}

	.slf-box {
		width: 22px;
		height: 22px;
	}

	.slf-box::after {
		top: 2px;
		right: 6px;
		width: 6px;
		height: 10px;
	}

	/* Touch screens have no hover: keep the "lift" for the checked state only */
	.slf-option:hover {
		transform: none;
		box-shadow: none;
	}

	.slf-option:has(input:checked) {
		transform: translate(-2px, -2px);
		box-shadow: 4px 4px 0 var(--slf-magenta);
	}

	/* Contact fields */
	.slf-fields {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.slf .slf-field input,
	.slf .slf-field textarea {
		min-height: 50px;
		padding: 12px 14px;
		font-size: 16px; /* 16px+ stops iOS from zooming into the field */
	}

	.slf .slf-field textarea {
		min-height: 84px;
	}

	.slf-consent {
		margin-top: 14px;
		font-size: 12px;
		line-height: 1.55;
	}

	/* Buttons */
	.slf-nav {
		gap: 14px;
		margin-top: 22px;
	}

	.slf .slf-btn--next {
		min-height: 56px;
		font-size: 18px;
	}

	.slf .slf-btn--back {
		min-height: 56px;
		font-size: 15px;
	}

	.slf .slf-btn--next:hover {
		transform: none;
		box-shadow: none;
	}

	/* Phone + WhatsApp */
	.slf-contact {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-top: 36px;
		padding-top: 26px;
		text-align: center;
	}

	.slf .slf-phone {
		justify-content: center;
		font-size: 30px;
	}

	.slf-phone svg {
		width: 26px;
		height: 26px;
	}

	.slf .slf-wa {
		justify-content: center;
		min-height: 52px;
		padding: 12px 16px;
		font-size: 16px;
	}

	.slf-success {
		padding: 30px 20px;
		box-shadow: 8px 8px 0 var(--slf-magenta);
	}
}

/* Very narrow phones (iPhone SE, Galaxy Fold): still two columns, slightly smaller */
@media (max-width: 360px) {
	.slf {
		padding-right: 12px;
		padding-left: 12px;
	}

	.slf-title {
		font-size: 34px;
	}

	.slf-options,
	.slf-options--audience {
		gap: 8px;
	}

	.slf-option {
		min-height: 54px;
		padding: 8px 10px;
		gap: 8px;
	}

	.slf-option-label {
		font-size: 14px;
	}

	.slf-box {
		width: 20px;
		height: 20px;
	}

	.slf-box::after {
		right: 5px;
		width: 5px;
		height: 9px;
	}

	.slf .slf-wa {
		gap: 8px;
		padding: 12px 10px;
		font-size: 15px;
		white-space: nowrap;
	}

	.slf .slf-phone {
		font-size: 27px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slf *,
	.slf *::before,
	.slf *::after {
		animation: none !important;
		transition: none !important;
	}
}
