/* LOCKED DESIGN as of v1.3.0 — user-confirmed "works perfect", 2026-08-07.
   Field spacing/rhythm, the 100% form width, and the confirmation
   popup styles below are all intentional. Don't change any of this as
   a side effect of unrelated work — see MEMORY (odf-quick-registration
   project memory) for the full list of what's locked and why. */
.odfq-form-wrap, .odfq-form-wrap * { box-sizing: border-box; }
.odfq-form-wrap { max-width: 100%; margin: 0 auto; font-family: inherit; padding: 0 .25rem; }

.odfq-form .odfq-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.75rem; /* leaves room for .odfq-counter, which is
	                            absolutely positioned below and doesn't
	                            add to this field's own flow height —
	                            see .odfq-counter below for why. */
}
.odfq-form .odfq-input-wrap {
	position: relative;
	display: block;
}
.odfq-form label {
	font-weight: 700;
	font-size: .8rem;
	margin-bottom: .5rem;
}
.odfq-form .odfq-required-mark { color: #c0392b; }

.odfq-form input[type="text"],
.odfq-form input[type="tel"],
.odfq-form input[type="email"] {
	width: 100%;
	background: #ececec;
	border: 1px solid #ececec;
	border-radius: 2px;
	padding: .85rem 1rem;
	font-size: 1rem; /* 16px — stops iOS Safari auto-zooming in on focus */
	min-height: 44px; /* comfortable tap target */
	color: #333;
}
.odfq-form input::placeholder { color: #9a9a9a; }
.odfq-form input:focus {
	outline: none;
	border-color: #a11;
	background: #fff;
}
.odfq-form input:invalid.odfq-touched {
	border-color: #c0392b;
}

.odfq-form .odfq-counter {
	/* Absolutely positioned relative to .odfq-input-wrap (NOT the whole
	   .odfq-field) so it floats under the input WITHOUT adding to
	   either the input-wrap's or the field's flow height. Anchoring to
	   the input-wrap specifically (rather than the field) means the
	   counter's position stays put even when a .odfq-field-error gets
	   appended below it on the same field — the error lives outside
	   the input-wrap, so it can't push the counter down or make it
	   overlap the next field.
	   Without this absolute positioning, fields that show a counter
	   (ID Number, Surname, Cell Number) end up visibly taller than
	   fields that don't (Name, Email), and the label-to-label gap
	   between fields becomes uneven even though every field's own
	   margin-bottom is identical. This keeps every field's vertical
	   rhythm the same regardless of whether it has a counter. */
	position: absolute;
	right: 0;
	bottom: -1.3rem;
	font-size: .75rem;
	color: #7a7a7a;
}
.odfq-form .odfq-field[data-counter-max] .odfq-counter.odfq-limit-reached {
	color: #c0392b;
	font-weight: 600;
}

.odfq-form .odfq-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.odfq-form .odfq-btn {
	display: block;
	width: 100%;
	background: #a11;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: .9rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .03em;
	min-height: 48px;
	cursor: pointer;
}
.odfq-form .odfq-btn:hover { background: #810; }
.odfq-form .odfq-btn:disabled { background: #c99; cursor: not-allowed; }

.odfq-errors {
	color: #b00020;
	font-weight: 600;
	min-height: 1.25em;
	margin: 0 0 1rem;
}
.odfq-field-error {
	color: #b00020;
	font-size: .8rem;
	margin-top: .35rem;
}

/* ---- Confirmation popup ------------------------------------------------
   Fixed-position overlay, independent of .odfq-form-wrap's own width/
   layout, so it always centers in the viewport regardless of where the
   form sits on the page or how far the visitor has scrolled. */
.odfq-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 100000; /* above Divi's fixed header/nav */
}
.odfq-modal-overlay[hidden] { display: none; }

.odfq-modal {
	position: relative;
	background: #fff;
	border-radius: 6px;
	max-width: 420px;
	width: 100%;
	padding: 2.25rem 1.75rem 1.75rem;
	text-align: center;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, .25 );
	font-family: inherit;
}
.odfq-modal:focus { outline: none; }

.odfq-modal-close {
	position: absolute;
	top: .35rem;
	right: .35rem;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	color: #9a9a9a;
	cursor: pointer;
	padding: .5rem;
}
.odfq-modal-close:hover,
.odfq-modal-close:focus { color: #333; }

.odfq-modal-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto .75rem;
	border-radius: 50%;
	background: #1a7a3c;
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
}

.odfq-modal-title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
	color: #1a1a1a;
}

.odfq-modal-message {
	margin: 0 0 1.5rem;
	color: #444;
	font-size: 1rem;
	line-height: 1.5;
}

.odfq-modal-btn {
	display: inline-block;
	background: #a11;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: .75rem 2rem;
	font-size: .95rem;
	font-weight: 700;
	cursor: pointer;
}
.odfq-modal-btn:hover,
.odfq-modal-btn:focus { background: #810; }

/* ---- Abandonment prompt ------------------------------------------------
   NEW — a separate overlay/modal from the confirmation popup above (own
   classes throughout), so its styling can evolve independently and
   nothing here risks touching the locked confirmation-popup rules. Same
   fixed-position/centering approach as the confirmation popup, but a
   lower z-index isn't needed since the two are never shown at the same
   time (the form is either being submitted or being abandoned, not
   both). */
.odfq-abandon-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 100000;
}
.odfq-abandon-overlay[hidden] { display: none; }

.odfq-abandon-modal {
	position: relative;
	background: #fff;
	border-radius: 6px;
	max-width: 420px;
	width: 100%;
	padding: 2.25rem 1.75rem 1.75rem;
	text-align: center;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, .25 );
	font-family: inherit;
}
.odfq-abandon-modal:focus { outline: none; }

.odfq-abandon-close {
	position: absolute;
	top: .35rem;
	right: .35rem;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	color: #9a9a9a;
	cursor: pointer;
	padding: .5rem;
}
.odfq-abandon-close:hover,
.odfq-abandon-close:focus { color: #333; }

.odfq-abandon-title {
	margin: 0 0 .5rem;
	font-size: 1.15rem;
	color: #1a1a1a;
}

.odfq-abandon-message {
	margin: 0 0 1.25rem;
	color: #444;
	font-size: .95rem;
	line-height: 1.5;
}

.odfq-abandon-reasons {
	display: flex;
	flex-direction: column;
	gap: .6rem;
}
.odfq-abandon-reason {
	display: block;
	width: 100%;
	background: #ececec;
	color: #333;
	border: 1px solid #ececec;
	border-radius: 3px;
	padding: .7rem 1rem;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px; /* comfortable tap target, matches the form's own inputs */
}
.odfq-abandon-reason:hover,
.odfq-abandon-reason:focus {
	background: #e0e0e0;
	outline: none;
	border-color: #a11;
}

.odfq-abandon-other-wrap {
	margin-top: 1rem;
	text-align: left;
}
.odfq-abandon-other-wrap[hidden] { display: none; }
.odfq-abandon-other-label {
	display: block;
	font-weight: 700;
	font-size: .8rem;
	margin-bottom: .4rem;
}
.odfq-abandon-other-text {
	width: 100%;
	background: #ececec;
	border: 1px solid #ececec;
	border-radius: 2px;
	padding: .6rem .75rem;
	font-size: .9rem;
	color: #333;
	resize: vertical;
	box-sizing: border-box;
}
.odfq-abandon-other-text:focus {
	outline: none;
	border-color: #a11;
	background: #fff;
}
.odfq-abandon-btn {
	display: block;
	width: 100%;
	margin-top: .6rem;
	background: #a11;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: .7rem 1.5rem;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
}
.odfq-abandon-btn:hover,
.odfq-abandon-btn:focus { background: #810; }
