:root {
	--jhk-fb-accent: #009fe3;
}

body.jhk-fb-no-scroll {
	overflow: hidden;
}

.jhk-fb-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.jhk-fb-overlay.is-open {
	display: flex;
}

.jhk-fb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.6);
}

.jhk-fb-modal {
	position: relative;
	z-index: 1;
	background: #fff;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1.5rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

#jhk-fb-form {
	min-width: 0;
}

@media (min-width: 640px) {
	.jhk-fb-modal {
		width: 100%;
		max-width: 560px;
		height: auto;
		max-height: 90vh;
		border-radius: 12px;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
		padding: 2rem;
	}
}

.jhk-fb-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.jhk-fb-title {
	margin: 0 1.5rem 1.25rem 0;
	font-size: 1.4rem;
}

.jhk-fb-progress {
	display: flex;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	gap: 0.25rem;
}

.jhk-fb-progress__step {
	flex: 1;
	text-align: center;
	font-size: 0.75rem;
	color: #999;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #e5e5e5;
	position: relative;
}

.jhk-fb-progress__step.is-active,
.jhk-fb-progress__step.is-done {
	color: var(--jhk-fb-accent);
	border-bottom-color: var(--jhk-fb-accent);
	font-weight: 600;
}

.jhk-fb-step {
	display: none;
	flex: 1;
}

.jhk-fb-step.is-active {
	display: block;
}

.jhk-fb-trust-strip {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 0.9rem;
	margin: 0 0 1.25rem;
	padding: 0.5rem 0.75rem;
	background: rgba(0, 159, 227, 0.06);
	border-radius: 8px;
	font-size: 0.72rem;
	color: #444;
}

.jhk-fb-trust-strip li {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	white-space: nowrap;
}

.jhk-fb-trust-strip li::before {
	content: "✓";
	color: var(--jhk-fb-accent);
	font-weight: 700;
}

.jhk-fb-field {
	margin-bottom: 1.1rem;
}

.jhk-fb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.jhk-fb-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
}

.jhk-fb-field--checkbox input {
	margin-top: 0.2rem;
}

.jhk-fb-field input[type="text"],
.jhk-fb-field input[type="email"],
.jhk-fb-field input[type="tel"],
.jhk-fb-field input[type="date"],
.jhk-fb-field select,
.jhk-fb-field textarea {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0.65rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.jhk-fb-field input[type="date"] {
	min-height: calc(1.2em + 1.3rem + 2px);
}

.jhk-fb-field input:focus,
.jhk-fb-field select:focus,
.jhk-fb-field textarea:focus {
	outline: none;
	border-color: var(--jhk-fb-accent);
	box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2);
}

.jhk-fb-error {
	color: #c0392b;
	font-size: 0.8rem;
	margin: 0.3rem 0 0;
	min-height: 1em;
}

.jhk-fb-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.jhk-fb-extras {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.jhk-fb-extra {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	cursor: pointer;
}

.jhk-fb-extra:has(input:checked) {
	border-color: var(--jhk-fb-accent);
	background: rgba(0, 159, 227, 0.06);
}

.jhk-fb-extra__name {
	flex: 1;
}

.jhk-fb-extra__price {
	font-weight: 600;
	color: var(--jhk-fb-accent);
}

.jhk-fb-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.4rem 1rem;
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

.jhk-fb-summary dt {
	font-weight: 600;
	color: #666;
}

.jhk-fb-summary dd {
	margin: 0;
}

.jhk-fb-note {
	font-size: 0.8rem;
	color: #777;
}

.jhk-fb-submit-error {
	color: #c0392b;
	font-size: 0.85rem;
	min-height: 1em;
}

.jhk-fb-price-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background: #f7f7f7;
	border-radius: 8px;
	margin: 1rem 0;
	position: sticky;
	bottom: 0;
}

.jhk-fb-price-bar__label {
	font-size: 0.85rem;
	color: #555;
}

.jhk-fb-price-bar__value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--jhk-fb-accent);
}

.jhk-fb-actions {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.jhk-fb-btn {
	flex: 1;
	padding: 0.8rem 1rem;
	border-radius: 999px;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.jhk-fb-btn--primary {
	background: var(--jhk-fb-accent);
	color: #fff;
}

.jhk-fb-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.jhk-fb-btn--secondary {
	background: #eee;
	color: #333;
}

.jhk-fb-success {
	text-align: center;
	padding: 1.5rem 0;
}

.jhk-fb-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 0.75rem;
	color: #2e9e5b;
}

.jhk-fb-success h3 {
	color: var(--jhk-fb-accent);
	margin-top: 0;
}

.jhk-fb-success__promise {
	font-size: 0.9rem;
	color: #444;
	max-width: 32rem;
	margin-left: auto;
	margin-right: auto;
}

.jhk-fb-trust-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
	margin: 1rem 0;
	padding: 0;
	font-size: 0.8rem;
	color: #555;
}

.jhk-fb-trust-list li {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.jhk-fb-trust-list li::before {
	content: "✓";
	color: #2e9e5b;
	font-weight: 700;
}

.jhk-fb-hint {
	font-size: 0.85rem;
	color: #777;
}
