/* ═══════════════════════════════════════════════════════════════
   Heusinkveld Law – Intake Forms
   Brand: heusinkveldlawfirm.com
   Primary: #991b1f  |  Fonts: Oswald (headings), Inter (body)
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared Wrapper Base ──────────────────────────────────────── */
#hein-intake-wrapper,
#hein-contact-wrapper {
	max-width: 640px;
	margin: 0 auto;
	font-family: 'Inter', 'Hind', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1a1a1a;
}

/* ── Progress Bar ─────────────────────────────────────────────── */
.hein-progress-bar {
	height: 5px;
	background: #e5e7eb;
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 8px;
}

.hein-progress-fill {
	height: 100%;
	width: 14.28%; /* 1/7 */
	background: #991b1f;
	border-radius: 99px;
	transition: width 0.4s ease;
}

.hein-step-counter {
	font-size: 0.8rem;
	color: #6b7280;
	margin: 0 0 28px;
	text-align: right;
	font-family: 'Inter', sans-serif;
}

/* ── Step Container ───────────────────────────────────────────── */
.hein-step {
	animation: heinFadeIn 0.3s ease;
}

@keyframes heinFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hein-step-title {
	font-family: 'Oswald', sans-serif;
	font-size: 1.45rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: #2d0507;
	line-height: 1.2;
}

.hein-step-subtitle {
	font-size: 0.95rem;
	color: #6b7280;
	margin: 0 0 24px;
}

/* ── Field Layout ─────────────────────────────────────────────── */
.hein-field {
	margin-bottom: 18px;
}

.hein-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 0;
}

.hein-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #374151;
}

.hein-required {
	color: #991b1f;
}

.hein-field input[type="text"],
.hein-field input[type="email"],
.hein-field input[type="tel"],
.hein-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	font-family: 'Inter', sans-serif;
	color: #1a1a1a;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.hein-field input:focus,
.hein-field textarea:focus {
	outline: none;
	border-color: #991b1f;
	box-shadow: 0 0 0 3px rgba(153, 27, 31, 0.12);
}

.hein-field input.hein-error,
.hein-field textarea.hein-error {
	border-color: #991b1f;
}

/* ── Radio Group ──────────────────────────────────────────────── */
.hein-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.hein-radio-group.hein-radio-inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
}

.hein-radio-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	background: #fff;
}

.hein-radio-option:hover {
	border-color: #991b1f;
	background: #fdf2f2;
}

.hein-radio-option input[type="radio"] {
	accent-color: #991b1f;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	cursor: pointer;
}

.hein-radio-option input[type="radio"]:checked + .hein-radio-label {
	font-weight: 600;
	color: #2d0507;
}

.hein-radio-option:has(input:checked) {
	border-color: #991b1f;
	background: #faeaea;
}

.hein-radio-label {
	font-size: 0.97rem;
	color: #374151;
}

/* ── Navigation Buttons ───────────────────────────────────────── */
.hein-nav-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	gap: 12px;
}

/* Contact form: single right-aligned button */
.hein-nav-single {
	justify-content: flex-end;
}

.hein-btn {
	padding: 12px 32px;
	font-size: 0.95rem;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: none;
	border-radius: 2rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.1s;
}

.hein-btn:active {
	transform: scale(0.98);
}

.hein-btn-primary {
	background: #991b1f;
	color: #fff;
	margin-left: auto;
}

.hein-btn-primary:hover {
	background: #7a1518;
}

.hein-btn-secondary {
	background: #f3f4f6;
	color: #374151;
	margin-left: 0;
}

.hein-btn-secondary:hover {
	background: #e5e7eb;
	color: #1a1a1a;
}

/* ── Alerts ───────────────────────────────────────────────────── */
.hein-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-top: 16px;
	font-size: 0.93rem;
}

.hein-alert-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1f;
}

/* ── Loading Spinner ──────────────────────────────────────────── */
.hein-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: #6b7280;
	margin-top: 16px;
}

.hein-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2.5px solid #e5e7eb;
	border-top-color: #991b1f;
	border-radius: 50%;
	animation: heinSpin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes heinSpin {
	to { transform: rotate(360deg); }
}

/* ── Success Message ──────────────────────────────────────────── */
.hein-success {
	text-align: center;
	padding: 48px 24px;
	animation: heinFadeIn 0.5s ease;
}

.hein-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: #991b1f;
	color: #fff;
	font-size: 2rem;
	border-radius: 50%;
	margin-bottom: 20px;
}

.hein-success h2 {
	font-family: 'Oswald', sans-serif;
	font-size: 1.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: #2d0507;
	margin: 0 0 10px;
}

.hein-success p {
	font-size: 1rem;
	color: #6b7280;
	max-width: 400px;
	margin: 0 auto;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
	.hein-field-row {
		grid-template-columns: 1fr;
	}
	.hein-radio-group.hein-radio-inline {
		flex-direction: column;
	}
	.hein-step-title {
		font-size: 1.2rem;
	}
	.hein-btn {
		padding: 11px 24px;
		font-size: 0.9rem;
	}
}
