/*
 * The lead form card (black, dashed yellow border), shared by the registration page and the
 * watch page's call-request form. Desktop sizes from the registration Figma frame (101:470);
 * each page sets where the card sits. Mobile: form-mobile.css.
 */

/*
 * Figma draws the 3px inside stroke with 70/60 dashes, a half dash at every corner,
 * and stretches the pattern so each side ends evenly: the nearest whole number of 130px
 * periods (measured on the watch page's 780×636 card: 5 periods of 127.2px down the sides).
 * formbox.js keeps the periods in step with the box size; 130px / 122.6px are the values
 * for the registration card (780×613).
 */
.sqp .sqp-formbox {
	--sqp-box-w: 780; /* read by formbox.js to undo the page zoom */
	--sqp-dash-round: 1;
	--sqp-dash-x: 130px;
	--sqp-dash-y: 122.6px;
	position: relative;
	width: 780px;
	margin: 0 auto;
	padding: 55px 0 81px;
	background-color: #000;
	background-image:
		repeating-linear-gradient(90deg, #ffe5a9 0 calc(var(--sqp-dash-x) * 0.2692308), transparent 0 calc(var(--sqp-dash-x) * 0.7307692), #ffe5a9 0 var(--sqp-dash-x)),
		repeating-linear-gradient(90deg, #ffe5a9 0 calc(var(--sqp-dash-x) * 0.2692308), transparent 0 calc(var(--sqp-dash-x) * 0.7307692), #ffe5a9 0 var(--sqp-dash-x)),
		repeating-linear-gradient(180deg, #ffe5a9 0 calc(var(--sqp-dash-y) * 0.2692308), transparent 0 calc(var(--sqp-dash-y) * 0.7307692), #ffe5a9 0 var(--sqp-dash-y)),
		repeating-linear-gradient(180deg, #ffe5a9 0 calc(var(--sqp-dash-y) * 0.2692308), transparent 0 calc(var(--sqp-dash-y) * 0.7307692), #ffe5a9 0 var(--sqp-dash-y));
	background-position: left top, left bottom, left top, right top;
	background-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%;
	background-repeat: no-repeat;
	color: #fff;
	scroll-margin-top: 40px;
}

.sqp .sqp-form__title {
	width: 696px;
	margin: 0 42px 0 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 47px;
	text-align: center;
}

.sqp .sqp-form__fields {
	width: 650.52px;
	margin: 58px 58px 0 0;
}
/* Step 2 swaps the name + email fields for the phone field; everything else stays put. */
.sqp .sqp-input {
	display: block;
	width: 650.52px;
	height: 56.16px;
	margin: 0;
	padding: 10px 25.52px 15.16px 20px;
	border: 1px solid #da9877;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: #000;
	font-family: inherit;
	font-size: 22px;
	font-weight: 400;
	line-height: 29px;
	text-align: right;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.sqp .sqp-input + .sqp-sr + .sqp-input {
	margin-top: 14.84px;
}
.sqp .sqp-input::placeholder {
	color: #000;
	opacity: 1;
}
.sqp .sqp-input:focus {
	box-shadow: 0 0 0 3px rgba(182, 205, 150, 0.75);
}
.sqp .sqp-input.is-invalid {
	border-color: #e5484d;
	box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.45);
}

.sqp .sqp-consent {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	width: 655px;
	margin: 20.84px 58px 0 0;
	cursor: pointer;
}
.sqp .sqp-consent__box {
	flex: none;
	width: 30px;
	height: 30px;
	margin: 0;
	border: 0;
	background: url(../img/checkbox-empty.svg) center / 30px 30px no-repeat;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.sqp .sqp-consent__box:checked {
	background-image: url(../img/checkbox-checked.svg);
}
.sqp .sqp-consent__box:focus-visible {
	outline: 2px solid #b6cd96;
	outline-offset: 1px;
}
.sqp .sqp-consent__box.is-invalid {
	outline: 2px solid #e5484d;
	outline-offset: 1px;
}
.sqp .sqp-consent__text {
	width: 621px;
	font-size: 20px;
	line-height: 26px;
	text-align: right; /* the card also sits in centred sections (watch page) */
	white-space: pre-wrap;
}
.sqp .sqp-consent__link {
	color: inherit;
	text-decoration: none;
}
/* With a privacy page set, "מדיניות הפרטיות" is a link, always underlined. */
.sqp a.sqp-consent__link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	white-space: normal; /* when it wraps, the space at the line end isn't underlined */
}

.sqp .sqp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sqp .sqp-form__submit {
	width: 651px;
	height: 71px;
	margin: 30px 58px 0 0;
}
.sqp .sqp-form__submit > span {
	top: 14.96px;
	left: 17.24px;
	right: 14.4px;
}
.sqp .sqp-form__submit:disabled {
	cursor: progress;
	opacity: 0.7;
}

.sqp .sqp-form__msg {
	position: absolute;
	right: 0;
	bottom: 26px;
	left: 0;
	font-size: 18px;
	line-height: 24px;
	text-align: center;
	color: #ffb4a8;
}
.sqp .sqp-form__msg.is-success {
	color: #b6cd96;
}

.sqp .sqp-form.is-done > *:not(.sqp-form__title):not(.sqp-form__msg) {
	display: none;
}
.sqp .sqp-form.is-done .sqp-form__msg {
	position: static;
	margin-top: 40px;
	font-size: 26px;
	line-height: 34px;
}
