/*
 * Ofixotech Leads — main form + thank-you page styles.
 * Brand orange #E04E1F. Mobile-first. Two-column on >= 768px.
 */

.ofx-form {
	font-family: inherit;
	color: #1f1f1f;
	max-width: 720px;
	margin: 0 auto;
}

.ofx-form * { box-sizing: border-box; }

.ofx-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) {
	.ofx-form__row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.ofx-form__field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.ofx-form__field { margin-bottom: 20px; }
}

.ofx-form label,
.ofx-form__label-as-legend {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
	display: block;
}

.ofx-req { color: #E04E1F; }

.ofx-form input[type="text"],
.ofx-form input[type="email"],
.ofx-form input[type="tel"],
.ofx-form input[type="date"],
.ofx-form select,
.ofx-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	font-size: 16px;
	font-family: inherit;
	color: #1f1f1f;
	background: #fff;
	border: 1px solid #D0D0D0;
	border-radius: 6px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ofx-form textarea {
	min-height: 120px;
	resize: vertical;
}

.ofx-form input:focus,
.ofx-form select:focus,
.ofx-form textarea:focus {
	outline: none;
	border-color: #E04E1F;
	box-shadow: 0 0 0 3px rgba(224, 78, 31, 0.15);
}

.ofx-form input::placeholder,
.ofx-form textarea::placeholder {
	color: #999;
}

.ofx-form__radios {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.ofx-form__radios label {
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ofx-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 14px;
	color: #555;
	cursor: pointer;
}

.ofx-form__consent input { margin-top: 2px; flex-shrink: 0; }
.ofx-form__consent a { color: #E04E1F; }

.ofx-form__submit {
	display: inline-block;
	width: 100%;
	min-height: 52px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #E04E1F;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

@media (min-width: 768px) {
	.ofx-form__submit { width: auto; }
}

.ofx-form__submit:hover:not([disabled]) { background: #B83E14; }
.ofx-form__submit:active { transform: translateY(1px); }
.ofx-form__submit[disabled] { opacity: 0.7; cursor: wait; }

.ofx-form__error {
	display: block;
	font-size: 13px;
	color: #D32F2F;
	margin-top: 6px;
	min-height: 0;
}

.ofx-form .is-invalid input,
.ofx-form .is-invalid select,
.ofx-form .is-invalid textarea,
.ofx-form .is-invalid {
	border-color: #D32F2F;
}

.ofx-form__global-error {
	background: #fef4f2;
	border-left: 4px solid #D32F2F;
	color: #b71c1c;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

/* Inline success banner shown above the form after a successful submit. */
.ofx-form__success {
	background: #ecf7ed;
	border-left: 4px solid #2e7d32;
	color: #1b5e20;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
}

/* Small helper text under a field (e.g. "use a real email"). */
.ofx-form__hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #666;
}

/* Honeypot — visually hidden but not display:none so bots fill it */
.ofx-honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ----------------------------------------------------------------
   Thank-you page — three stacked full-bleed sections:
     1. .ofx-ty-hero   — light surface, centred check + headline + ref
     2. .ofx-ty-next   — white, eyebrow + heading + 3-step explainer
     3. .ofx-ty-cards  — light surface, two side-by-side cards
   The page lives inside .wp-block-post-content, so we negate WP's
   constrained-content side padding with margin trick and pull the
   sections full-width.
   ---------------------------------------------------------------- */

.ofx-ty {
	/* The thank-you page uses the `page-full-width` template, so its
	 * post-content already spans the viewport. Each child section then
	 * lays out full-width naturally — no viewport-math breakout needed. */
	display: block;
	width: 100%;
	margin: 0;
	color: #1f1f1f;
	font-family: inherit;
}

/* Section 1 — hero */
.ofx-ty-hero {
	background: #f6f7f7;
	padding: clamp( 48px, 8vw, 88px ) 24px;
	text-align: center;
}

.ofx-ty-hero__check {
	display: inline-flex;
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
}

.ofx-ty-hero h1 {
	margin: 0 auto 16px;
	max-width: 760px;
	font-size: clamp( 1.75rem, 4vw, 2.5rem );
	font-weight: 800;
	line-height: 1.2;
	color: #1f1f1f;
}

.ofx-ty-hero__sub {
	max-width: 640px;
	margin: 0 auto 28px;
	color: #555;
	font-size: 1rem;
	line-height: 1.55;
}

.ofx-ty-hero__ref {
	display: inline-block;
	padding: 10px 22px;
	background: #fff;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
}

.ofx-ty-hero__ref strong {
	margin-left: 6px;
	color: #1f1f1f;
	letter-spacing: 0.04em;
}

/* Section 2 — what happens next */
.ofx-ty-next {
	background: #fff;
	padding: clamp( 56px, 8vw, 96px ) 24px;
	text-align: center;
}

.ofx-ty-next__eyebrow {
	margin: 0 0 12px;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ofx-ty-next__heading {
	margin: 0 auto 56px;
	max-width: 720px;
	font-size: clamp( 1.5rem, 3.5vw, 2.25rem );
	font-weight: 800;
	line-height: 1.2;
	color: #1f1f1f;
}

.ofx-ty-steps {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1080px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px 16px;
	position: relative;
	text-align: center;
}

@media ( min-width: 768px ) {
	.ofx-ty-steps {
		grid-template-columns: repeat( 3, 1fr );
		gap: 0 32px;
	}

	/* Horizontal connector line between the 3 numbered circles. */
	.ofx-ty-steps::before {
		content: '';
		position: absolute;
		top: 24px; /* half of 48px circle */
		left: calc( ( 100% / 6 ) + 8px );
		right: calc( ( 100% / 6 ) + 8px );
		height: 1px;
		background: #e0e0e0;
		z-index: 0;
	}
}

.ofx-ty-step {
	position: relative;
	z-index: 1;
	padding: 0 12px;
}

.ofx-ty-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 20px;
	background: #E04E1F;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 999px;
	box-shadow: 0 0 0 6px #fff;
}

.ofx-ty-step__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1f1f1f;
}

.ofx-ty-step__body {
	margin: 0 auto;
	max-width: 280px;
	color: #6a6a6a;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Section 3 — paired cards */
.ofx-ty-cards {
	background: #f6f7f7;
	padding: clamp( 40px, 7vw, 72px ) 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	max-width: none;
}

@media ( min-width: 860px ) {
	.ofx-ty-cards {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
		padding-left: clamp( 24px, 8vw, 96px );
		padding-right: clamp( 24px, 8vw, 96px );
	}
}

/* Both cards: brand-orange background, white text + accents. The two cards
 * share the same orange so the section reads as a single CTA band split
 * into "while you wait" and "urgent" tracks. Distinction comes from the
 * tag pill, headline and content — not background colour. */
.ofx-ty-card {
	background: #E04E1F;
	border: 1px solid #E04E1F;
	border-radius: 12px;
	padding: clamp( 24px, 4vw, 36px );
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: #fff;
	box-shadow: 0 10px 30px rgba( 184, 62, 20, 0.18 );
}

.ofx-ty-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 6px 14px;
	background: rgba( 255, 255, 255, 0.18 );
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.ofx-ty-card__tag.is-warn {
	background: rgba( 0, 0, 0, 0.2 );
	color: #ffd166;
}

.ofx-ty-card__title {
	margin: 0;
	font-size: clamp( 1.25rem, 2.2vw, 1.5rem );
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
}

.ofx-ty-card__body {
	margin: 0;
	color: rgba( 255, 255, 255, 0.92 );
	font-size: 0.95rem;
	line-height: 1.55;
}

.ofx-ty-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

.ofx-ty-card__link {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.ofx-ty-card__link:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ofx-ty-card__link span { display: inline-block; margin-left: 4px; transition: transform 150ms ease; }
.ofx-ty-card__link:hover span { transform: translateX( 4px ); }

.ofx-ty-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #fff;
	color: #0a66c2;
	border-radius: 8px;
	transition: background 150ms ease, transform 150ms ease, color 150ms ease;
}

.ofx-ty-card__icon:hover {
	background: #f1f1f1;
	color: #084d8f;
	transform: translateY( -2px );
}

/* Urgent-help card — same orange background, just keeps the dark accent
 * row at the bottom (phone + WhatsApp + hours) on a darker translucent
 * strip so the contact details still read as the focal element. */
.ofx-ty-card__phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
	color: #fff;
	font-size: clamp( 1.25rem, 2.4vw, 1.5rem );
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: color 150ms ease, transform 150ms ease;
}

.ofx-ty-card__phone:hover { color: rgba( 255, 255, 255, 0.85 ); transform: translateX( 2px ); }
.ofx-ty-card__phone svg { flex-shrink: 0; }

.ofx-ty-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba( 255, 255, 255, 0.22 );
}

.ofx-ty-card__alt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.ofx-ty-card__alt:hover { color: rgba( 255, 255, 255, 0.85 ); }

.ofx-ty-card__hours {
	color: rgba( 255, 255, 255, 0.75 );
	font-size: 0.8rem;
}
