/* Smart Contact Form — scoped styles, theme-proof resets. */
.scf-wrap {
	--scf-accent: #2563eb;
	--scf-accent-contrast: #ffffff;
	--scf-bg: #ffffff;
	--scf-text: #0f172a;
	--scf-muted: #64748b;
	--scf-border: #e2e8f0;
	--scf-field-bg: #f8fafc;
	--scf-error: #dc2626;
	--scf-radius: 10px;
	--scf-card-radius: 18px;
	--scf-counter-color: var(--scf-accent);
	--scf-ease: cubic-bezier(.22, 1, .36, 1);

	width: 100%;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	color: var(--scf-text);
	font-family: inherit;
	line-height: 1.5;
	text-align: left;
}
.alignwide .scf-wrap, .alignfull .scf-wrap, .elementor-widget-smart_contact_form .scf-wrap { max-width: none; }
.scf-wrap *, .scf-wrap *::before, .scf-wrap *::after { box-sizing: border-box; }

.scf-wrap .scf-card {
	background: var(--scf-bg);
	border: 1px solid var(--scf-border);
	border-radius: var(--scf-card-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .14);
	padding: clamp(20px, 4vw, 36px);
	overflow: hidden;
}

.scf-wrap .scf-stage {
	position: relative;
	transition: height .55s var(--scf-ease);
}

/* ---------- Headings ---------- */
.scf-wrap .scf-title,
.scf-wrap .scf-thanks-title {
	margin: 0 0 6px;
	padding: 0;
	color: var(--scf-text);
	font-size: clamp(1.35rem, 2.6vw, 1.7rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-transform: none;
}
.scf-wrap .scf-desc { margin: 0 0 22px; color: var(--scf-muted); font-size: .95rem; }

/* ---------- Grid & fields ---------- */
.scf-wrap .scf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}
.scf-wrap .scf-col-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .scf-wrap .scf-grid { grid-template-columns: 1fr; } }

.scf-wrap .scf-field { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.scf-wrap .scf-label {
	display: block;
	margin: 0 0 6px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--scf-text);
	text-transform: none;
	letter-spacing: normal;
}
.scf-wrap .scf-req { color: var(--scf-error); }

.scf-wrap .scf-input {
	display: block;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--scf-text);
	background: var(--scf-field-bg);
	border: 1.5px solid var(--scf-border);
	border-radius: var(--scf-radius);
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.scf-wrap .scf-input::placeholder { color: var(--scf-muted); opacity: .7; }
.scf-wrap .scf-input:hover { border-color: color-mix(in srgb, var(--scf-accent) 35%, var(--scf-border)); }
.scf-wrap .scf-input:focus {
	background: var(--scf-bg);
	border-color: var(--scf-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--scf-accent) 16%, transparent);
}

.scf-wrap .scf-input-group { position: relative; display: flex; align-items: stretch; }
.scf-wrap .scf-input-group.has-prefix .scf-input { padding-left: 58px; }
.scf-wrap .scf-prefix {
	position: absolute;
	left: 1.5px; top: 1.5px; bottom: 1.5px;
	display: flex; align-items: center;
	padding: 0 12px;
	font-weight: 600;
	font-size: .95rem;
	color: var(--scf-muted);
	border-right: 1px solid var(--scf-border);
	border-radius: var(--scf-radius) 0 0 var(--scf-radius);
	pointer-events: none;
}

/* Select & textarea */
.scf-wrap select.scf-select {
	padding-right: 42px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}
.scf-wrap select.scf-select:has(option[value=""]:checked) { color: var(--scf-muted); }
.scf-wrap select.scf-select option { color: var(--scf-text); }
.scf-wrap textarea.scf-textarea { min-height: 120px; resize: vertical; }

/* Errors */
.scf-wrap .scf-error {
	display: block;
	min-height: 0;
	max-height: 0;
	overflow: hidden;
	margin: 0;
	font-size: .8rem;
	color: var(--scf-error);
	opacity: 0;
	transition: max-height .25s, opacity .25s, margin .25s;
}
.scf-wrap .scf-field.is-invalid .scf-error { max-height: 40px; opacity: 1; margin-top: 6px; }
.scf-wrap .scf-field.is-invalid .scf-input { border-color: var(--scf-error); background: color-mix(in srgb, var(--scf-error) 4%, var(--scf-bg)); }
.scf-wrap .scf-field.is-invalid .scf-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--scf-error) 14%, transparent); }
.scf-wrap .scf-field.is-valid .scf-input { border-color: color-mix(in srgb, #16a34a 55%, var(--scf-border)); }

.scf-wrap .scf-alert {
	margin: 18px 0 0;
	padding: 11px 14px;
	font-size: .9rem;
	color: var(--scf-error);
	background: color-mix(in srgb, var(--scf-error) 8%, var(--scf-bg));
	border: 1px solid color-mix(in srgb, var(--scf-error) 25%, transparent);
	border-radius: var(--scf-radius);
}
.scf-wrap .scf-alert[hidden] { display: none; }

/* Honeypot */
.scf-wrap .scf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.scf-wrap .scf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

/* ---------- Buttons ---------- */
.scf-wrap .scf-btn,
.scf-wrap .scf-reset {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	border-radius: var(--scf-radius);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform .2s var(--scf-ease), box-shadow .2s, background-color .2s, opacity .2s;
}
.scf-wrap .scf-btn {
	width: 100%;
	min-height: 52px;
	margin-top: 22px;
	padding: 14px 24px;
	font-size: 1rem;
	color: var(--scf-accent-contrast);
	background: var(--scf-accent);
	border: 0;
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--scf-accent) 70%, transparent);
}
.scf-wrap .scf-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--scf-accent) 80%, transparent); background: color-mix(in srgb, var(--scf-accent) 90%, #000); color: var(--scf-accent-contrast); }
.scf-wrap .scf-btn:active { transform: translateY(0); }
.scf-wrap .scf-btn:focus-visible, .scf-wrap .scf-reset:focus-visible { outline: 3px solid color-mix(in srgb, var(--scf-accent) 40%, transparent); outline-offset: 2px; }
.scf-wrap .scf-btn[disabled] { cursor: progress; opacity: .85; transform: none; }

.scf-wrap .scf-spinner {
	display: none;
	width: 18px; height: 18px;
	border: 2.5px solid color-mix(in srgb, var(--scf-accent-contrast) 35%, transparent);
	border-top-color: var(--scf-accent-contrast);
	border-radius: 50%;
	animation: scf-spin .7s linear infinite;
}
.scf-wrap .scf-form.is-loading .scf-spinner { display: inline-block; }
.scf-wrap .scf-btn.scf-shake { animation: scf-shake .4s; }

.scf-wrap .scf-reset {
	margin-top: 26px;
	padding: 11px 20px;
	font-size: .92rem;
	color: var(--scf-accent);
	background: transparent;
	border: 1.5px solid color-mix(in srgb, var(--scf-accent) 35%, transparent);
}
.scf-wrap .scf-reset:hover { background: color-mix(in srgb, var(--scf-accent) 8%, transparent); color: var(--scf-accent); }

/* ---------- Transitions between form and thank-you ---------- */
.scf-wrap .scf-form,
.scf-wrap .scf-thanks { transition: opacity .35s var(--scf-ease), transform .45s var(--scf-ease); }
.scf-wrap .scf-form.scf-leave { opacity: 0; transform: translateY(-14px) scale(.98); }
.scf-wrap .scf-thanks { opacity: 0; transform: translateY(18px) scale(.97); text-align: center; padding: 12px 0 4px; outline: none; }
.scf-wrap .scf-thanks.scf-enter { opacity: 1; transform: none; }
.scf-wrap .scf-form[hidden], .scf-wrap .scf-thanks[hidden] { display: none; }

.scf-wrap .scf-thanks-msg { max-width: 440px; margin: 0 auto; color: var(--scf-muted); }

/* Standalone thank-you page card */
.scf-wrap.scf-standalone .scf-thanks { opacity: 1; transform: none; }
.scf-wrap.scf-standalone .scf-reset { display: inline-flex; }
a.scf-reset, a.scf-reset:hover, a.scf-reset:focus { text-decoration: none; }

/* Animated check */
.scf-wrap .scf-check-wrap { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; }
.scf-wrap .scf-check-wrap::before {
	content: "";
	position: absolute; inset: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--scf-accent) 14%, transparent);
	transform: scale(0);
}
.scf-wrap .scf-check { position: relative; width: 100%; height: 100%; }
.scf-wrap .scf-check-circle { stroke: var(--scf-accent); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.scf-wrap .scf-check-mark { stroke: var(--scf-accent); stroke-width: 3.5; stroke-dasharray: 36; stroke-dashoffset: 36; stroke-linecap: round; stroke-linejoin: round; }
.scf-wrap.scf-is-done .scf-check-circle { animation: scf-draw .6s var(--scf-ease) .15s forwards; }
.scf-wrap.scf-is-done .scf-check-mark { animation: scf-draw .4s var(--scf-ease) .6s forwards; }
.scf-wrap.scf-is-done .scf-check-wrap::before { animation: scf-pulse 1.1s var(--scf-ease) .55s forwards; }

/* Elementor-style counter */
.scf-wrap .scf-counter {
	margin: 26px auto 0;
	padding: 18px 22px;
	max-width: 340px;
	border-radius: calc(var(--scf-radius) + 4px);
	background: color-mix(in srgb, var(--scf-accent) 7%, var(--scf-bg));
	border: 1px dashed color-mix(in srgb, var(--scf-accent) 30%, transparent);
}
.scf-wrap .scf-counter[hidden] { display: none; }
.scf-wrap .scf-counter-number {
	display: flex;
	align-items: baseline;
	justify-content: center;
	color: var(--scf-counter-color);
	font-size: clamp(2.4rem, 7vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}
.scf-wrap .scf-counter-prefix, .scf-wrap .scf-counter-suffix { font-size: .62em; font-weight: 700; opacity: .8; }
.scf-wrap .scf-counter-label { margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--scf-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Keyframes ---------- */
@keyframes scf-spin { to { transform: rotate(360deg); } }
@keyframes scf-draw { to { stroke-dashoffset: 0; } }
@keyframes scf-pulse { 0% { transform: scale(0); opacity: 1; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes scf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Fallback for browsers without color-mix() */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.scf-wrap .scf-input:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
	.scf-wrap .scf-counter, .scf-wrap .scf-check-wrap::before { background: rgba(37, 99, 235, .08); }
}

@media (prefers-reduced-motion: reduce) {
	.scf-wrap *, .scf-wrap *::before { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Full-width thank-you page template */
.scf-ty-page {
	display: block;
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: clamp(40px, 8vw, 96px) 16px;
	box-sizing: border-box;
	float: none;
}
.scf-ty-page.scf-ty-elementor { padding: 0; }
.scf-ty-page > .scf-wrap.scf-standalone { max-width: 640px; }
/* Hide any theme / theme-builder sidebar on the thank-you page */
body.scf-thankyou-fullwidth #secondary,
body.scf-thankyou-fullwidth #sidebar,
body.scf-thankyou-fullwidth aside.widget-area,
body.scf-thankyou-fullwidth aside.sidebar,
body.scf-thankyou-fullwidth .widget-area,
body.scf-thankyou-fullwidth .site-sidebar,
body.scf-thankyou-fullwidth .sidebar-main,
body.scf-thankyou-fullwidth .scf-hidden-sidebar { display: none !important; }
body.scf-thankyou-fullwidth #primary,
body.scf-thankyou-fullwidth .content-area,
body.scf-thankyou-fullwidth .scf-grow {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	float: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.scf-thankyou-fullwidth .scf-wrap.scf-standalone { margin-left: auto; margin-right: auto; }
body.scf-thankyou-fullwidth .entry-header .entry-title,
body.scf-thankyou-fullwidth header.page-header .page-title { display: none !important; }
