/*!
 * Frooition Lead Form v1.1.0
 *
 * 1. footer preset — the .froo-hcf-* rules, moved here unchanged from the footer
 *    layout's Code Block (matched to the old Avada #contact-form, form 506).
 *    Delete the <style> copy from the footer layout once the plugin is live.
 * 2. fld preset — the InkFrog pages' inline style="" attributes, as classes.
 * 3. Shared — honeypot, error notice, card error state.
 *
 * card / contact / audit presets are styled by their pages' own CSS (class names
 * are unchanged), so there's nothing for them here beyond section 3.
 */

/* ===================================================== 1. footer (.froo-hcf-*) */
.froo-hcf-scope {
	--hcf-accent: #333773;
	--hcf-accent-hover: #031120;
	--hcf-sep: #a28ccf;
	--hcf-border: #e4e7f0;
	--hcf-focus: #70b7f6;
	--hcf-text: #141617;
	--hcf-muted: #5d5f8a;
	--hcf-link: #71b7f6;
	--hcf-eyebrow: #8462c0;
	--hcf-heading: #333773;
	--hcf-font: "Poppins", Arial, Helvetica, sans-serif;
	padding: 0 1.92%;
}
.froo-hcf-scope *,
.froo-hcf-scope *::before,
.froo-hcf-scope *::after { box-sizing: border-box; }
.froo-hcf-wrap { margin-top: 14px; margin-bottom: 34px; }
.froo-hcf-title {
	text-align: center; color: var(--hcf-eyebrow); font-family: var(--hcf-font);
	font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em;
	text-transform: uppercase; margin: 0 !important;
}
.froo-hcf-sub {
	text-align: center; color: var(--hcf-heading); font-family: var(--hcf-font);
	font-size: 30px; font-weight: 400; line-height: 1.72; letter-spacing: -0.015em;
	margin: 10px 0 !important;
}
.froo-hcf-sep { width: 100%; max-width: 112px; border-top: 2px solid var(--hcf-sep); margin: 0 auto 20px; }
/* Field rows sit one gutter right of the heading/button block, as on the old Avada form. */
.froo-hcf-row { display: flex; gap: 2%; width: 100%; margin-left: 2%; }
.froo-hcf-row .froo-hcf-field { flex: 1; min-width: 0; }
.froo-hcf-field { position: relative; margin: 5px 0; }
.froo-hcf-field-icon {
	position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	font-size: 16px; line-height: 50px; color: var(--hcf-accent); pointer-events: none; z-index: 1;
}
.froo-hcf-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.froo-hcf-field input,
.froo-hcf-field select {
	background: #fff; border: 2px solid var(--hcf-border) !important; border-radius: 50px !important;
	height: 50px; padding: 0 14px 0 42px !important; color: var(--hcf-text); font-size: 14px !important;
	font-family: var(--hcf-font); font-weight: 400; line-height: normal; letter-spacing: normal;
	outline: none; transition: border-color .2s; appearance: none; -webkit-appearance: none;
	width: 100%; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.froo-hcf-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%23141617' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.froo-hcf-field select option { color: var(--hcf-text); }
.froo-hcf-field input:focus,
.froo-hcf-field select:focus { border-color: var(--hcf-focus) !important; }
.froo-hcf-field input::placeholder { color: var(--hcf-text); opacity: 1; }
.froo-hcf-privacy {
	font-family: var(--hcf-font); text-transform: uppercase; font-size: 11px; font-weight: 400;
	line-height: 1.72; letter-spacing: 0.21px; color: var(--hcf-muted); text-align: center;
	margin: 20px 0 0 !important;
}
.froo-hcf-privacy a { color: var(--hcf-link) !important; text-decoration: none !important; }
.froo-hcf-optin-row { display: block; margin: 39px 0 57px; }
.froo-hcf-optin-row input[type="checkbox"] { position: absolute; opacity: 0; width: 14px; height: 14px; margin: 0; }
.froo-hcf-optin-text {
	display: block; position: relative; padding: 0 0 0 44px; margin: 0; font-family: var(--hcf-font);
	font-size: 11px !important; font-weight: 400; line-height: 1.72; letter-spacing: 0.21px;
	color: var(--hcf-muted) !important; text-transform: none; cursor: pointer;
}
.froo-hcf-optin-text strong { font-weight: 400; color: inherit; }
.froo-hcf-optin-text::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; min-width: 28px; box-sizing: content-box;
	border: 2px solid var(--hcf-border); border-radius: 0; background: #fff; transition: border-color .2s;
}
.froo-hcf-optin-row input[type="checkbox"]:checked + .froo-hcf-optin-text::after {
	content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px; background: var(--hcf-accent); border-radius: 2px;
}
.froo-hcf-optin-row input[type="checkbox"]:checked + .froo-hcf-optin-text::before,
.froo-hcf-optin-row input[type="checkbox"]:focus + .froo-hcf-optin-text::before,
.froo-hcf-optin-row input[type="checkbox"]:hover + .froo-hcf-optin-text::before { border-color: var(--hcf-focus); }
.froo-hcf-submit {
	display: block; background: var(--hcf-accent); color: #fff; border: 0; padding: 25px 60px;
	border-radius: 5px; font-family: var(--hcf-font); font-size: 16px; font-weight: 300; line-height: 1.2;
	letter-spacing: 0.015em; text-transform: none; cursor: pointer; width: 100%; margin: 0;
	transition: background .2s;
}
.froo-hcf-submit:hover { background: var(--hcf-accent-hover); color: #fff; }
.froo-hcf-submit:disabled { opacity: .6; cursor: not-allowed; }
.froo-hcf-success {
	display: none; padding: 20px; background: rgba(0, 80, 30, 1); border: 1px solid rgba(74, 222, 128, 1);
	border-radius: 12px; text-align: center; margin-bottom: 12px;
}
.froo-hcf-success p { margin: 0; font-family: var(--hcf-font); color: #fff; font-weight: 600; font-size: 14px; }
.froo-hcf-success.is-error { background: rgba(80, 0, 0, 1); border-color: rgba(222, 74, 74, 1); }
.froo-hcf-success.is-error p { color: #fca5a5; }
.froo-hcf-hp {
	position: absolute !important; left: -9999px !important; top: -9999px !important;
	width: 1px !important; height: 1px !important; overflow: hidden !important;
}
@media (max-width: 480px) {
	.froo-hcf-row { flex-direction: column; gap: 0; margin-left: 0; }
}

/* ===================================================== 2. fld (InkFrog pages) */
.froo-lf--fld .froo-lf-fld-form { display: grid; gap: 12px; }
.froo-lf--fld .froo-lf-fld-optin {
	display: flex; gap: 8px; align-items: flex-start; font-size: 11px;
	color: var(--c-muted); margin-top: 8px; cursor: pointer;
}
.froo-lf--fld .froo-lf-fld-optin input { margin-top: 2px; }
.froo-lf--fld .froo-lf-fld-btn {
	margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 13px 22px; font-size: 14px; font-weight: 700; border: none;
	cursor: pointer; font-family: inherit; letter-spacing: -.1px; transition: background .15s;
}
.froo-lf--lime .froo-lf-fld-btn {
	background: var(--c-lime); color: var(--c-ink); border-radius: 10px;
	box-shadow: 0 8px 24px -8px rgba(159, 232, 112, .53);
}
.froo-lf--red .froo-lf-fld-btn {
	background: var(--c-red); color: #fff; border-radius: 9px;
	box-shadow: 0 4px 14px rgba(237, 28, 36, .26);
}
.froo-lf--fld .froo-lf-fld-btn:disabled { opacity: .7; cursor: not-allowed; }
.froo-lf--fld .froo-lf-fld-secure {
	display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-muted);
	justify-content: center; margin-top: 2px;
}
.froo-lf--fld .froo-lf-fld-legal {
	font-size: 10px; color: var(--c-muted); text-align: center; margin-top: 12px; line-height: 1.4;
}
.froo-lf--fld .froo-lf-fld-legal a { color: var(--c-blue); }
.froo-lf--fld .froo-lf-fld-success { padding: 48px 24px; text-align: center; }
.froo-lf--fld .froo-lf-fld-success-icon {
	width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center;
	justify-content: center; margin: 0 auto 16px;
}
.froo-lf--lime .froo-lf-fld-success-icon { background: var(--c-lime); color: var(--c-ink); }
.froo-lf--red .froo-lf-fld-success-icon { background: #e8f5ee; color: #1a7f4b; }
.froo-lf--fld .froo-lf-fld-success-icon svg { stroke-width: 2.5; }
.froo-lf--fld .froo-lf-fld-success-title {
	font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700;
	color: var(--c-ink); margin-bottom: 8px;
}
.froo-lf--fld .froo-lf-fld-success-text { font-size: 14px; color: var(--c-muted); line-height: 1.65; }

/* ===================================================== 3. shared */
.froo-lf [hidden] { display: none !important; }
.froo-lf .froo-hp-field {
	position: absolute !important; left: -9999px !important; top: -9999px !important;
	width: 1px !important; height: 1px !important; overflow: hidden !important;
}
.froo-lf-notice {
	padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5;
	background: rgba(222, 74, 74, .08); border: 1px solid rgba(222, 74, 74, .35); color: #b42318;
}
.froo-lf-notice p { margin: 0; }
/* card preset: the homepage script set these inline on error */
.froo-form-card .froo-form-success.is-error { background: rgba(80, 0, 0, .4); border-color: rgba(222, 74, 74, .3); }
