.fdf {
	--fdf-bg: transparent;
	--fdf-heading: #39393e;
	--fdf-text: #39393e;
	--fdf-border: #cfcfd4;
	--fdf-accent: #f21818;
	--fdf-accent-text: #ffffff;
	background: var(--fdf-bg);
	color: var(--fdf-text);
	font-family: inherit;
	box-sizing: border-box;
	width: 100%;
}
.fdf *, .fdf *::before, .fdf *::after { box-sizing: border-box; }
.fdf-inner { max-width: 860px; margin: 0 auto; padding: 8px 0; }
.fdf-heading { margin: 0 0 10px; color: var(--fdf-heading); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; font-weight: 800; text-transform: none; text-align: left; }
.fdf-heading .fdf-accent-text { color: var(--fdf-accent); }
.fdf-sub { margin: 0 0 26px; font-size: 18px; line-height: 1.5; color: var(--fdf-text); text-align: left; }

.fdf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fdf-field { margin-bottom: 18px; min-width: 0; }
.fdf label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--fdf-text); }
.fdf-req { color: var(--fdf-accent); }
.fdf-opt { font-weight: 400; opacity: .65; font-size: 13px; }
.fdf input[type="text"], .fdf input[type="email"], .fdf input[type="tel"], .fdf textarea {
	display: block; width: 100% !important; max-width: none !important; margin: 0 !important;
	padding: 13px 14px !important; font: inherit; font-size: 16px; color: var(--fdf-text) !important;
	background: #fff !important; border: 1.5px solid var(--fdf-border) !important; border-radius: 4px !important;
	box-shadow: none !important; transition: border-color .2s, box-shadow .2s;
}
.fdf textarea { resize: vertical; min-height: 140px; }
.fdf input[type="text"]:focus, .fdf input[type="email"]:focus, .fdf input[type="tel"]:focus, .fdf textarea:focus { outline: none; border-color: var(--fdf-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fdf-accent) 22%, transparent) !important; }
.fdf .is-invalid { border-color: #c40d0d !important; }
.fdf-count { margin-top: 4px; font-size: 12px; text-align: right; opacity: .6; }
.fdf-err { min-height: 0; margin-top: 4px; font-size: 13px; color: #c40d0d; }
.fdf-err:empty { display: none; }

.fdf-drop { position: relative; padding: 22px 16px; text-align: center; background: #fff; border: 2px dashed var(--fdf-border); border-radius: 4px; transition: border-color .2s, background .2s; }
.fdf-drop.is-over, .fdf-drop:hover { border-color: var(--fdf-accent); background: color-mix(in srgb, var(--fdf-accent) 4%, #fff); }
.fdf-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fdf-drop-text { font-size: 15px; color: var(--fdf-text); }
.fdf-files { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; }
.fdf-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; padding: 8px 12px; font-size: 14px; background: #f6f6f7; border-radius: 4px; }
.fdf-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdf-files button { flex-shrink: 0; width: 26px; height: 26px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--fdf-accent) !important; color: var(--fdf-accent-text) !important; font-size: 16px; line-height: 1; cursor: pointer; }

.fdf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.fdf-consent { margin: 4px 0 18px; }
.fdf-consent label { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.fdf-consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--fdf-accent); }

.fdf .cf-turnstile { margin: 0 0 18px; min-height: 65px; }

.fdf button.fdf-submit {
	display: inline-block; width: auto; min-width: 260px; padding: 16px 34px !important; border: 0 !important; border-radius: 4px !important;
	background: var(--fdf-accent) !important; color: var(--fdf-accent-text) !important; font: inherit; font-size: 17px; font-weight: 700;
	box-shadow: none !important; cursor: pointer; transition: filter .2s, transform .2s;
}
.fdf button.fdf-submit:hover { filter: brightness(.92); }
.fdf button.fdf-submit[disabled] { opacity: .6; cursor: wait; }
.fdf-status { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.fdf-status.is-ok { padding: 16px 18px; background: #eaf7ee; border-left: 4px solid #1f9d4a; color: #14532d; }
.fdf-status.is-error { padding: 12px 16px; background: #fdecec; border-left: 4px solid #c40d0d; color: #7a0a0a; }
.fdf-form.is-done .fdf-row, .fdf-form.is-done .fdf-field, .fdf-form.is-done .fdf-consent, .fdf-form.is-done .cf-turnstile, .fdf-form.is-done .fdf-submit { display: none; }

@media (max-width: 640px) {
	.fdf-row { grid-template-columns: 1fr; gap: 0; }
	.fdf button.fdf-submit { width: 100%; min-width: 0; }
	.fdf-sub { font-size: 16px; }
}
