.htr-wrapper {
	--htr-accent: #b5763a;
	--htr-ink: #1c1a17;
	--htr-muted: #767068;
	--htr-border: #e5e0d8;
	max-width: 560px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--htr-ink);
}

.htr-form {
	background: #fff;
	border: 1px solid var(--htr-border);
	border-radius: 14px;
	padding: 34px;
	box-shadow: 0 1px 2px rgba(20,17,10,0.04), 0 12px 32px -16px rgba(20,17,10,0.12);
	animation: htr-fade-in 0.35s ease both;
	position: relative;
}

@keyframes htr-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.htr-layout-minimal .htr-form { border: none; box-shadow: none; padding: 0; }
.htr-layout-elegant .htr-form {
	border-radius: 3px;
	font-family: 'Georgia', 'Times New Roman', serif;
	border-color: #dcd5c8;
}
.htr-layout-elegant .htr-submit-btn { border-radius: 2px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }

.htr-honeypot { position: absolute; left: -9999px; top: -9999px; }
.htr-honeypot-input { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.htr-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.htr-step-dot { height: 3px; flex: 1; background: #ece7de; border-radius: 3px; transition: background 0.2s ease; }
.htr-step-dot.is-active { background: var(--htr-accent); }

.htr-field { margin-bottom: 20px; }
.htr-field-row { display: flex; gap: 16px; }
.htr-field-row .htr-field { flex: 1; }

.htr-field label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 7px;
	color: var(--htr-ink);
	letter-spacing: 0.01em;
}

.htr-field input[type="text"],
.htr-field input[type="email"],
.htr-field input[type="tel"],
.htr-field input[type="date"],
.htr-field select,
.htr-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--htr-border);
	border-radius: 8px;
	font-size: 15.5px;
	box-sizing: border-box;
	background: #fdfcfa;
	color: var(--htr-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	font-family: inherit;
}

.htr-field input:hover,
.htr-field select:hover,
.htr-field textarea:hover {
	border-color: #cfc7b8;
}

.htr-field input:focus,
.htr-field select:focus,
.htr-field textarea:focus {
	outline: none;
	border-color: var(--htr-accent);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(181,118,58,0.12);
}

.htr-radio-group { display: flex; gap: 22px; }
.htr-radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.htr-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; font-size: 14px; }
.htr-checkbox-grid label { display: flex; align-items: center; gap: 7px; font-weight: 400; cursor: pointer; }
.htr-checkbox-field label { font-weight: 400; display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; cursor: pointer; }

.htr-submit-btn {
	width: 100%;
	background: var(--htr-accent);
	color: #fff;
	border: none;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	box-shadow: 0 8px 20px -8px rgba(181,118,58,0.55);
}
.htr-submit-btn:hover { filter: brightness(0.88); transform: translateY(-1px); }
.htr-submit-btn:active { transform: translateY(0); }
.htr-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

.htr-form-message {
	margin-top: 18px;
	font-size: 14px;
	padding: 0;
	border-radius: 8px;
	transition: all 0.2s ease;
}
.htr-form-message:not(:empty) { padding: 13px 16px; }
.htr-form-message.is-success {
	color: #1e7a45;
	background: #edf8f1;
	border: 1px solid #cdeadb;
	display: flex;
	align-items: center;
	gap: 8px;
	animation: htr-pop-in 0.3s ease both;
}
.htr-form-message.is-success::before { content: "✓"; font-weight: 700; color: #2e9e5b; }
.htr-form-message.is-error {
	color: #a5301f;
	background: #fbecea;
	border: 1px solid #f3d2cc;
}

@keyframes htr-pop-in {
	from { opacity: 0; transform: scale(0.97); }
	to { opacity: 1; transform: scale(1); }
}

.htr-slot-status { font-size: 13px; color: var(--htr-muted); margin: 7px 0 0; }

.htr-download-btn {
	--htr-accent: #b5763a;
	display: inline-block;
	background: var(--htr-accent);
	color: #fff;
	padding: 15px 28px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 8px 20px -8px rgba(181,118,58,0.55);
	transition: transform 0.1s ease, background 0.15s ease;
}
.htr-download-btn:hover { filter: brightness(0.88); color: #fff; transform: translateY(-1px); }
.htr-download-btn-missing { color: #a5301f; font-size: 14px; border: 1px dashed #a5301f; padding: 10px; border-radius: 8px; }

@media (max-width: 480px) {
	.htr-field-row { flex-direction: column; gap: 0; }
	.htr-form { padding: 22px; border-radius: 12px; }
}
