.hpaf-form {
	--hpaf-primary: #004775;
	--hpaf-accent: #39A8DC;
	--hpaf-text: #000;
	--hpaf-border: #d5dde4;
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem;
	background: #fff;
	color: var(--hpaf-text);
	border-radius: 16px;
	border-top: 5px solid var(--hpaf-accent);
	box-shadow: 0 10px 40px rgba(0, 71, 117, .12);
	font-family: inherit;
	box-sizing: border-box;
}
.hpaf-form *, .hpaf-form *::before, .hpaf-form *::after { box-sizing: border-box; }
.hpaf-field { margin-bottom: 1.25rem; }
.hpaf-field > label,
.hpaf-field legend {
	display: block;
	margin-bottom: .4rem;
	font-weight: 600;
	font-size: .95rem;
	color: var(--hpaf-primary);
}
.hpaf-field input[type=text],
.hpaf-field input[type=email],
.hpaf-field input[type=tel],
.hpaf-field select,
.hpaf-field textarea {
	width: 100%;
	padding: .75rem .9rem;
	background: #f7fafc;
	color: var(--hpaf-text);
	border: 1.5px solid var(--hpaf-border);
	border-radius: 10px;
	font: inherit;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.hpaf-field input:focus,
.hpaf-field select:focus,
.hpaf-field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--hpaf-accent);
	box-shadow: 0 0 0 4px rgba(57, 168, 220, .2);
}
.hpaf-field fieldset { border: 0; padding: 0; margin: 0; }
.hpaf-opt {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	margin: .35rem 0;
	font-weight: 400;
	color: var(--hpaf-text);
	cursor: pointer;
}
.hpaf-opt input { accent-color: var(--hpaf-primary); width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: none; }
.hpaf-req { color: var(--hpaf-accent); }

.hpaf-file {
	width: 100%;
	padding: 1rem;
	background: #f7fafc;
	border: 2px dashed var(--hpaf-accent);
	border-radius: 10px;
	font: inherit;
	color: var(--hpaf-text);
	cursor: pointer;
	transition: background .2s;
}
.hpaf-file:hover { background: rgba(57, 168, 220, .08); }
.hpaf-file::file-selector-button {
	margin-right: 1rem;
	padding: .5rem 1rem;
	background: var(--hpaf-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
}
.hpaf-file::file-selector-button:hover { background: var(--hpaf-accent); }
.hpaf-hint { display: block; margin-top: .35rem; font-size: .8rem; color: #444; }

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

.hpaf-submit {
	display: inline-block;
	padding: .85rem 2rem;
	background: var(--hpaf-primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
}
.hpaf-submit:hover { background: var(--hpaf-accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(57, 168, 220, .4); }
.hpaf-submit:focus-visible { outline: 3px solid var(--hpaf-accent); outline-offset: 2px; }
.hpaf-submit:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.hpaf-msg:empty { display: none; }
.hpaf-msg { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: 10px; color: var(--hpaf-text); }
.hpaf-ok { background: rgba(57, 168, 220, .12); border-left: 5px solid var(--hpaf-accent); }
.hpaf-err { background: #fff1f1; border-left: 5px solid #c62828; }
.hpaf-done .hpaf-field { display: none; }
.hpaf-notice:empty { display: none; }
.hpaf-notice { margin: 1rem 0 0; padding: .8rem 1rem; background: rgba(57, 168, 220, .12); border-left: 5px solid var(--hpaf-accent); border-radius: 10px; color: var(--hpaf-text); font-size: .95rem; }

@media (max-width: 600px) { .hpaf-form { padding: 1.25rem; border-radius: 12px; } }
