/**
 * RFP multi-step form — preview parity.
 */

.hahxmia-rfp {
	max-width: 920px;
	margin: 0 auto;
	text-align: left;
}

.hahxmia-rfp__notice {
	padding: 1rem 1.1rem;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(212, 175, 55, 0.45);
	background: rgba(212, 175, 55, 0.08);
	color: #1c1c1b;
	font-size: 0.92rem;
}

.hahxmia-rfp__notice.is-success {
	border-color: rgba(85, 107, 47, 0.45);
	background: rgba(85, 107, 47, 0.08);
}

.rfp-progress {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.6rem;
	margin: 0 0 2.2rem;
	list-style: none;
	padding: 0;
}

.rfp-progress__item {
	position: relative;
	padding: 1rem 0.85rem 0.95rem;
	border: 1px solid rgba(28, 28, 27, 0.12);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.3s, background 0.3s;
}

.rfp-progress__item span {
	display: block;
	font-family: var(--hahxmia-font-label);
	font-size: 0.55rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #d4af37;
	margin-bottom: 0.35rem;
}

.rfp-progress__item strong {
	display: block;
	font-family: var(--hahxmia-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.25;
	color: #1c1c1b;
}

.rfp-progress__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: transparent;
	transition: background 0.3s;
}

.rfp-progress__item.is-active {
	border-color: rgba(212, 175, 55, 0.55);
	background: rgba(212, 175, 55, 0.06);
}

.rfp-progress__item.is-active::before,
.rfp-progress__item.is-done::before {
	background: #d4af37;
}

.rfp-form {
	display: grid;
	gap: 1.6rem;
}

.rfp-step {
	display: grid;
	gap: 1.25rem;
}

.rfp-step[hidden],
.rfp-step.is-rfp-hidden,
.rfp-btn[hidden],
.rfp-btn.is-rfp-hidden,
.btn-red[hidden],
.btn-ghost[hidden],
button[hidden],
button.is-rfp-hidden,
.rfp-nav [hidden] {
	display: none !important;
}

.rfp-section-title {
	font-family: var(--hahxmia-font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	margin: 0 0 0.15rem;
}

.rfp-section-lead {
	color: #6b6560;
	margin: 0 0 0.4rem;
	font-size: 0.98rem;
}

.rfp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.1rem;
}

.rfp-grid .full {
	grid-column: 1 / -1;
}

.rfp-field {
	display: grid;
	gap: 0.4rem;
}

.rfp-field > span,
.rfp-field > label {
	font-family: var(--hahxmia-font-label);
	font-size: 0.58rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #d4af37;
}

.rfp-field input,
.rfp-field textarea,
.rfp-field select {
	width: 100%;
	padding: 0.88rem 1rem;
	border: 1px solid rgba(28, 28, 27, 0.14);
	background: #fff;
	font: inherit;
	color: #1c1c1b;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.rfp-field input:focus,
.rfp-field textarea:focus,
.rfp-field select:focus {
	outline: none;
	border-color: rgba(212, 175, 55, 0.7);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.rfp-field textarea {
	min-height: 110px;
	resize: vertical;
}

.rfp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.rfp-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(28, 28, 27, 0.14);
	background: #fff;
	font-family: var(--hahxmia-font-sans);
	font-size: 0.76rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.25s, background 0.25s;
	user-select: none;
}

.rfp-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rfp-chip:has(input:checked),
.rfp-chip.is-on {
	border-color: rgba(212, 175, 55, 0.65);
	background: rgba(212, 175, 55, 0.1);
}

.rfp-sub {
	margin-top: 0.35rem;
	padding: 1.15rem;
	border: 1px solid rgba(28, 28, 27, 0.1);
	background: rgba(250, 248, 244, 0.7);
	display: grid;
	gap: 1rem;
}

.rfp-sub h4 {
	margin: 0;
	font-family: var(--hahxmia-font-sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rfp-row3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.rfp-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.4rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(28, 28, 27, 0.1);
}

.rfp-nav__right {
	display: flex;
	gap: 0.7rem;
	margin-left: auto;
}

.rfp-btn {
	display: inline-flex;
	align-items: center;
	font-family: var(--hahxmia-font-sans);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.72rem 1.05rem;
	border: 0;
	cursor: pointer;
	transition: background 0.35s, transform 0.35s, color 0.35s;
}

.rfp-btn--primary {
	background: #d4af37;
	color: #0a0a0b;
}

.rfp-btn--primary:hover {
	background: #e8c968;
	transform: translateY(-2px);
}

.rfp-btn--ghost {
	background: transparent;
	color: #1c1c1b;
	border: 1px solid rgba(28, 28, 27, 0.2);
}

.rfp-btn--ghost:hover {
	border-color: #d4af37;
	color: #d4af37;
}

@media (max-width: 782px) {
	.hahxmia-rfp {
		max-width: 100%;
		padding: 0;
	}

	.rfp-progress {
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
		margin-bottom: 1.5rem;
	}

	.rfp-progress__item {
		padding: 0.75rem 0.65rem;
	}

	.rfp-progress__item strong {
		font-size: 0.7rem;
	}

	.rfp-grid,
	.rfp-row3 {
		grid-template-columns: 1fr;
	}

	.rfp-field input,
	.rfp-field textarea,
	.rfp-field select {
		padding: 0.8rem 0.85rem;
		font-size: 16px;
		max-width: 100%;
		box-sizing: border-box;
	}

	.rfp-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 0.85rem;
	}

	.rfp-nav__right {
		margin-left: 0;
		width: 100%;
		flex-direction: column;
	}

	.rfp-nav__right .btn-red,
	.rfp-nav__right .btn-ghost,
	.rfp-nav__right .rfp-btn {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.rfp-chips {
		gap: 0.4rem;
	}

	.rfp-chip {
		font-size: 0.72rem;
		padding: 0.5rem 0.7rem;
	}

	.rfp-sub {
		padding: 0.9rem;
	}
}

@media (max-width: 480px) {
	.rfp-progress {
		grid-template-columns: 1fr;
	}
}
