/* Enquiry Forms Pro - front end
   Styles: .cef-s-modern (floating) | .cef-s-classic | .cef-s-minimal | .cef-s-dark  */

.cef-form {
	--cef: #16235a;
	--cef-r: 12px;
	--cef-text: #101828;
	--cef-mut: #667085;
	--cef-line: #d9dfea;
	--cef-fill: #f4f6fb;
	--cef-bg: #fff;
	--cef-err: #e5484d;
	--cef-ok: #12a150;
	--cef-soft: color-mix(in srgb, var(--cef) 12%, transparent);
	position: relative;
	width: 100%;
	max-width: 720px;
	color: var(--cef-text);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
}
.cef-form *, .cef-form *::before, .cef-form *::after { box-sizing: border-box; }

/* ---------- grid ---------- */
.cef-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cef-field { grid-column: span 6; min-width: 0; position: relative; }
.cef-w-half { grid-column: span 3; }
.cef-w-third { grid-column: span 2; }
@media (max-width: 600px) { .cef-w-half, .cef-w-third { grid-column: span 6; } }

/* ---------- controls (shared) ---------- */
.cef-control { position: relative; display: flex; flex-direction: column; }
.cef-themed input[type=text], .cef-themed input[type=email], .cef-themed input[type=tel], .cef-themed input[type=number],
.cef-themed input[type=date], .cef-themed input[type=url], .cef-themed select, .cef-themed textarea {
	display: block; width: 100%; margin: 0; min-height: 52px; padding: 14px 16px;
	border: 1.5px solid var(--cef-line); border-radius: var(--cef-r); background: var(--cef-bg);
	color: var(--cef-text); font: inherit; font-size: 15px; line-height: 1.4;
	box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none;
	transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.cef-themed textarea { min-height: 130px; resize: vertical; }
.cef-themed select { padding-right: 42px; cursor: pointer; }
.cef-themed input::placeholder, .cef-themed textarea::placeholder { color: #98a2b3; opacity: 1; }
.cef-themed input:hover, .cef-themed select:hover, .cef-themed textarea:hover { border-color: color-mix(in srgb, var(--cef) 35%, var(--cef-line)); }
.cef-themed input:focus, .cef-themed select:focus, .cef-themed textarea:focus { border-color: var(--cef); box-shadow: 0 0 0 4px var(--cef-soft); background: var(--cef-bg); }
.cef-caret { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--cef-mut); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.cef-label { order: -1; display: block; margin: 0 0 7px; color: #344054; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cef-star { margin-left: 2px; color: var(--cef-err); }

/* icons */
.cef-ico { position: absolute; left: 15px; top: 50%; z-index: 1; width: 19px; height: 19px; margin-top: -9.5px; fill: none; stroke: var(--cef-mut); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .18s; }
.cef-t-textarea .cef-ico { top: 26px; }
.has-ico input, .has-ico select, .has-ico textarea { padding-left: 46px !important; }
.has-ico .cef-control:focus-within .cef-ico { stroke: var(--cef); }

/* ---------- floating labels (modern / minimal / dark) ---------- */
.cef-float .cef-control .cef-label {
	position: absolute; left: 17px; top: 18px; z-index: 1; margin: 0; max-width: calc(100% - 34px);
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
	color: var(--cef-mut); font-size: 15px; font-weight: 500; pointer-events: none;
	transform-origin: left top; transition: transform .18s ease, color .18s ease, top .18s ease;
}
.cef-float .has-ico .cef-control .cef-label { left: 47px; }
.cef-float .cef-control input, .cef-float .cef-control select, .cef-float .cef-control textarea { min-height: 58px; padding-top: 24px; padding-bottom: 8px; }
.cef-float .cef-control textarea { padding-top: 28px; }
.cef-float .cef-control input::placeholder, .cef-float .cef-control textarea::placeholder { color: transparent; transition: color .18s; }
.cef-float .cef-control input:focus::placeholder, .cef-float .cef-control textarea:focus::placeholder { color: #98a2b3; }
.cef-float .cef-control:focus-within .cef-label,
.cef-float .cef-control input:not(:placeholder-shown) ~ .cef-label,
.cef-float .cef-control textarea:not(:placeholder-shown) ~ .cef-label,
.cef-float .cef-control.is-fixed .cef-label { top: 8px; transform: scale(.78); font-weight: 600; }
.cef-float .cef-control:focus-within .cef-label { color: var(--cef); }

/* modern: soft filled fields */
.cef-s-modern input[type=text], .cef-s-modern input[type=email], .cef-s-modern input[type=tel], .cef-s-modern input[type=number],
.cef-s-modern input[type=date], .cef-s-modern input[type=url], .cef-s-modern select, .cef-s-modern textarea { background: var(--cef-fill); border-color: transparent; }
.cef-s-modern input:hover, .cef-s-modern select:hover, .cef-s-modern textarea:hover { background: color-mix(in srgb, var(--cef-fill) 70%, #e6eaf2); border-color: transparent; }
.cef-s-modern input:focus, .cef-s-modern select:focus, .cef-s-modern textarea:focus { background: #fff; border-color: var(--cef); }

/* minimal: underline only */
.cef-s-minimal { --cef-r: 0px; }
.cef-s-minimal input[type=text], .cef-s-minimal input[type=email], .cef-s-minimal input[type=tel], .cef-s-minimal input[type=number],
.cef-s-minimal input[type=date], .cef-s-minimal input[type=url], .cef-s-minimal select, .cef-s-minimal textarea {
	border-width: 0 0 1.5px; border-radius: 0; background: transparent; padding-left: 2px; padding-right: 2px;
}
.cef-s-minimal .cef-control .cef-label { left: 2px; }
.cef-s-minimal .has-ico .cef-control .cef-label { left: 32px; }
.cef-s-minimal .has-ico input, .cef-s-minimal .has-ico select, .cef-s-minimal .has-ico textarea { padding-left: 32px !important; }
.cef-s-minimal .cef-ico { left: 2px; }
.cef-s-minimal input:focus, .cef-s-minimal select:focus, .cef-s-minimal textarea:focus { box-shadow: 0 1.5px 0 0 var(--cef); background: transparent; }
.cef-s-minimal .cef-caret { right: 2px; }

/* dark: for dark sections / hero banners */
.cef-s-dark {
	--cef-text: #f2f4f8; --cef-mut: #9aa4bf; --cef-line: rgb(255 255 255 / .14); --cef-fill: rgb(255 255 255 / .06);
	--cef-bg: rgb(255 255 255 / .06); --cef-soft: color-mix(in srgb, var(--cef) 35%, transparent);
}
.cef-s-dark input:focus, .cef-s-dark select:focus, .cef-s-dark textarea:focus { background: rgb(255 255 255 / .1); }
.cef-s-dark select option { color: #101828; }
.cef-s-dark input[type=date] { color-scheme: dark; }
.cef-s-dark .cef-glabel, .cef-s-dark .cef-label { color: #d0d5e2; }
.cef-s-dark.cef-float .cef-control .cef-label { color: var(--cef-mut); }
.cef-s-dark.cef-float .cef-control:focus-within .cef-label { color: #fff; }
.cef-s-dark .cef-opt { background: rgb(255 255 255 / .04); }

/* ---------- radio / checkbox / consent ---------- */
.cef-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.cef-glabel { display: block; margin: 0 0 10px; padding: 0; color: #344054; font-size: 14px; font-weight: 600; }
.cef-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.cef-opt { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 11px 16px 11px 13px; border: 1.5px solid var(--cef-line); border-radius: var(--cef-r); background: var(--cef-bg); font-size: 14.5px; cursor: pointer; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.cef-opt:hover { border-color: color-mix(in srgb, var(--cef) 40%, var(--cef-line)); }
.cef-opt:has(input:checked) { border-color: var(--cef); background: color-mix(in srgb, var(--cef) 7%, var(--cef-bg)); }
.cef-opt input, .cef-accept input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cef-mark { position: relative; flex: none; width: 20px; height: 20px; border: 1.5px solid #b9c1d1; border-radius: 6px; background: #fff; transition: all .18s; }
.cef-t-radio .cef-mark { border-radius: 50%; }
.cef-mark::after { content: ""; position: absolute; inset: 0; margin: auto; opacity: 0; transform: scale(.4); transition: all .18s; }
.cef-t-checkbox .cef-mark::after, .cef-accept .cef-mark::after { width: 10px; height: 6px; margin-top: 5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) scale(.4); }
.cef-t-radio .cef-mark::after { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
input:checked + .cef-mark { border-color: var(--cef); background: var(--cef); }
input:checked + .cef-mark::after { opacity: 1; transform: scale(1); }
.cef-t-checkbox input:checked + .cef-mark::after, .cef-accept input:checked + .cef-mark::after { transform: rotate(-45deg) scale(1); }
input:focus-visible + .cef-mark { box-shadow: 0 0 0 4px var(--cef-soft); }
.cef-accept { display: flex; align-items: flex-start; gap: 11px; margin: 0; font-size: 14px; color: var(--cef-mut); cursor: pointer; }
.cef-accept .cef-mark { margin-top: 1px; }

/* ---------- errors ---------- */
.cef-err { display: block; margin-top: 6px; color: var(--cef-err); font-size: 12.5px; font-weight: 500; }
.cef-err:empty { display: none; }
.cef-field.has-error input, .cef-field.has-error select, .cef-field.has-error textarea,
.cef-field.has-error .cef-opt, .cef-field.has-error .cef-mark { border-color: var(--cef-err) !important; }
.cef-field.has-error input:focus, .cef-field.has-error select:focus, .cef-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgb(229 72 77 / .15); }
.cef-field.has-error .cef-label { color: var(--cef-err) !important; }
.cef-field.is-shake { animation: cef-shake .38s; }
@keyframes cef-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- reCAPTCHA ---------- */
.cef-rc { margin: 4px 0 16px; min-height: 0; max-width: 100%; overflow-x: auto; }
.cef-rc:empty { display: none; }

/* ---------- honeypot ---------- */
.cef-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- button ---------- */
.cef-actions { margin-top: 22px; }
.cef-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 0 30px; border: 0; border-radius: var(--cef-r);
	background: var(--cef); color: #fff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .01em;
	cursor: pointer; box-shadow: 0 10px 24px -12px var(--cef); transition: transform .18s, box-shadow .18s, filter .18s;
}
.cef-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 30px -14px var(--cef); }
.cef-btn:active { transform: translateY(0); }
.cef-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--cef-soft); }
.cef-btn__i svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.cef-btn:hover .cef-btn__i svg { transform: translateX(3px); }
.cef-spin { display: none; width: 18px; height: 18px; border: 2.2px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%; animation: cef-spin .7s linear infinite; }
.cef-form.is-sending .cef-btn { pointer-events: none; filter: saturate(.8); }
.cef-form.is-sending .cef-btn__i { display: none; }
.cef-form.is-sending .cef-spin { display: block; }
@keyframes cef-spin { to { transform: rotate(360deg); } }
.cef-btn-full .cef-btn { width: 100%; }

/* ---------- messages ---------- */
.cef-msg { margin-top: 16px; padding: 12px 14px 12px 42px; border-radius: var(--cef-r); font-size: 14px; font-weight: 500; position: relative; }
.cef-msg:empty { display: none; }
.cef-msg::before { content: "!"; position: absolute; left: 13px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.cef-msg.is-err { background: #fef1f1; color: #b42318; }
.cef-msg.is-err::before { background: var(--cef-err); color: #fff; }
.cef-s-dark .cef-msg.is-err { background: rgb(229 72 77 / .14); color: #ffb4b4; }

/* ---------- success card ---------- */
.cef-success { padding: 34px 20px; text-align: center; animation: cef-in .45s ease both; }
.cef-success[hidden] { display: none; }
.cef-form.is-done .cef-grid, .cef-form.is-done .cef-actions, .cef-form.is-done .cef-msg { display: none; }
.cef-success__ic { width: 76px; height: 76px; margin: 0 auto 18px; }
.cef-success__ic svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cef-success__ic circle { stroke: var(--cef-ok); stroke-width: 2.5; fill: color-mix(in srgb, var(--cef-ok) 10%, transparent); stroke-dasharray: 152; stroke-dashoffset: 152; animation: cef-draw .6s ease forwards; }
.cef-success__ic path { stroke: var(--cef-ok); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cef-draw .35s .45s ease forwards; }
.cef-success__h { margin: 0 0 8px; color: var(--cef-text); font-size: 24px; font-weight: 700; line-height: 1.25; }
.cef-success__p { margin: 0 auto; max-width: 440px; color: var(--cef-mut); font-size: 15.5px; }
.cef-success__r { margin: 14px 0 0; color: var(--cef-mut); font-size: 13px; }
.cef-success__r[hidden] { display: none; }
.cef-again { margin-top: 22px; padding: 10px 20px; border: 1.5px solid var(--cef-line); border-radius: var(--cef-r); background: transparent; color: var(--cef-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .18s, color .18s; }
.cef-again:hover { border-color: var(--cef); color: var(--cef); }
.cef-form.is-redirecting .cef-again { display: none; }
@keyframes cef-draw { to { stroke-dashoffset: 0; } }
@keyframes cef-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.cef-form *, .cef-form *::before, .cef-form *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- v1.2: CF7 style code templates ---------- */
.cef-code .cef-code-body > :first-child { margin-top: 0; }
.cef-code .cef-code-body p { margin: 0 0 16px; }
.cef-code .cef-code-body label { display: block; margin: 0 0 16px; color: #344054; font-size: 14px; font-weight: 600; }
.cef-code .cef-code-body p > label, .cef-code .cef-code-body label:last-child { margin-bottom: 0; }
.cef-code .cef-field { display: block; margin-top: 7px; font-weight: 400; }
.cef-code .cef-control, .cef-code .cef-group, .cef-code .cef-opts { display: flex; }
.cef-code .cef-control { flex-direction: column; }
.cef-code .cef-opts { flex-wrap: wrap; gap: 10px; }
.cef-code label.cef-opt, .cef-code label.cef-accept { margin: 0; font-weight: 400; }
.cef-code label.cef-opt { display: inline-flex; }
.cef-code label.cef-accept { display: flex; color: var(--cef-mut); }
.cef-code .cef-accept a { color: var(--cef); }
.cef-code .cef-err { font-weight: 500; }
.cef-code .cef-actions { display: block; margin-top: 22px; }
.cef-code .cef-code-body p .cef-actions { margin-top: 6px; }
.cef-form.is-done .cef-code-body { display: none; }
.cef-code .cef-code-body .cef-row > br, .cef-code .cef-code-body .cef-cols-2 > br { display: none; }
.cef-code .cef-code-body .cef-row, .cef-code .cef-code-body .cef-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .cef-code .cef-code-body .cef-row, .cef-code .cef-code-body .cef-cols-2 { grid-template-columns: 1fr; } }
.cef-s-dark.cef-code .cef-code-body label { color: #d0d5e2; }

/* ---------- v1.2: "Custom" style = plain controls, you style them ---------- */
.cef-s-custom input[type=text], .cef-s-custom input[type=email], .cef-s-custom input[type=tel], .cef-s-custom input[type=number],
.cef-s-custom input[type=date], .cef-s-custom input[type=url], .cef-s-custom select, .cef-s-custom textarea { width: 100%; max-width: 100%; font: inherit; }
.cef-s-custom .cef-caret { display: none; }
