.rpf-wrap,
.rpf-wrap * {
	box-sizing: border-box;
}

.rpf-wrap {
	--rpf-orange: #f05a28;
	--rpf-dark: #303133;
	--rpf-text: #404041;
	--rpf-muted: #666a70;
	--rpf-line: #d9dadd;
	--rpf-soft: #f6f6f7;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto 56px;
	color: var(--rpf-text);
}

.rpf-form {
	position: relative;
	margin: 0;
	padding: 0;
}

.rpf-form__header {
	margin-bottom: 28px;
	padding: 32px;
	border-left: 6px solid var(--rpf-orange);
	border-radius: 8px;
	background: var(--rpf-dark);
	color: #fff;
}

.rpf-form__header--expo {
	background: linear-gradient(120deg, #303133 0%, #454649 100%);
}

.rpf-form__header h2 {
	margin: 4px 0 12px;
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.55rem);
	font-weight: 750;
	letter-spacing: -.025em;
	line-height: 1.08;
}

.rpf-form__header p {
	max-width: 850px;
	margin: 0;
	color: #f1f1f2;
	font-size: 1.02rem;
	line-height: 1.6;
}

.rpf-form__header .rpf-eyebrow {
	margin: 0 0 6px;
	color: #ff8057;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.rpf-section {
	min-width: 0;
	margin: 0 0 22px;
	padding: 25px;
	border: 1px solid var(--rpf-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(32, 34, 36, .04);
}

.rpf-section legend {
	padding: 0 9px;
	color: var(--rpf-dark);
	font-size: 1.25rem;
	font-weight: 800;
}

.rpf-help {
	margin: 0 0 18px;
	color: var(--rpf-muted);
	font-size: .94rem;
}

.rpf-grid {
	display: grid;
	gap: 18px 20px;
	margin-bottom: 18px;
}

.rpf-grid:last-child {
	margin-bottom: 0;
}

.rpf-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rpf-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rpf-grid--parts {
	grid-template-columns: minmax(90px, .55fr) minmax(160px, 1fr) minmax(240px, 2fr);
	margin: 0;
}

.rpf-field {
	min-width: 0;
	margin: 0 0 18px;
}

.rpf-grid .rpf-field {
	margin: 0;
}

.rpf-field label,
.rpf-label {
	display: block;
	margin: 0 0 7px;
	color: var(--rpf-dark);
	font-size: .94rem;
	font-weight: 700;
}

.rpf-field label span,
.rpf-consent b,
.rpf-required-note span {
	color: var(--rpf-orange);
}

.rpf-field input[type="text"],
.rpf-field input[type="email"],
.rpf-field input[type="tel"],
.rpf-field input[type="number"],
.rpf-field input[type="file"],
.rpf-field select,
.rpf-field textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #b9bcc1;
	border-radius: 5px;
	background: #fff;
	box-shadow: none;
	color: var(--rpf-text);
	font: inherit;
	line-height: 1.35;
}

.rpf-field textarea {
	min-height: 125px;
	resize: vertical;
}

.rpf-field input[type="file"] {
	padding: 9px;
	background: var(--rpf-soft);
}

.rpf-field input:focus,
.rpf-field select:focus,
.rpf-field textarea:focus {
	border-color: var(--rpf-orange);
	box-shadow: 0 0 0 3px rgba(240, 90, 40, .16);
	outline: none;
}

.rpf-field small {
	display: block;
	margin-top: 6px;
	color: var(--rpf-muted);
	font-size: .82rem;
	line-height: 1.45;
}

.rpf-parts {
	display: grid;
	gap: 12px;
	margin-bottom: 14px;
}

.rpf-part {
	position: relative;
	padding: 16px;
	border: 1px solid #e0e1e3;
	border-radius: 6px;
	background: var(--rpf-soft);
}

.rpf-link-button,
.rpf-secondary-button,
.rpf-submit {
	appearance: none;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.rpf-secondary-button {
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid var(--rpf-orange);
	border-radius: 4px;
	background: #fff;
	color: #cf3e0d;
	font-weight: 750;
}

.rpf-secondary-button:hover,
.rpf-secondary-button:focus-visible {
	background: #fff3ef;
}

.rpf-link-button {
	display: block;
	margin: 10px 0 0 auto;
	padding: 3px;
	background: transparent;
	color: #a32800;
	font-size: .86rem;
	text-decoration: underline;
}

.rpf-choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	margin: 0 0 22px;
}

.rpf-choice,
.rpf-inline-choices label,
.rpf-consent label {
	display: flex;
	margin: 0;
	align-items: flex-start;
	gap: 9px;
	font-weight: 500;
	line-height: 1.4;
}

.rpf-choice input,
.rpf-inline-choices input,
.rpf-consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: 0 0 auto;
	accent-color: var(--rpf-orange);
}

.rpf-inline-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
}

.rpf-consent {
	margin: 20px 0;
	padding: 17px 18px;
	border-left: 4px solid var(--rpf-orange);
	background: #fff6f2;
	font-size: .92rem;
}

.rpf-consent a {
	color: #a82c04;
	font-weight: 700;
}

.rpf-disclaimer {
	margin: -5px 0 18px;
	color: var(--rpf-muted);
	font-size: .83rem;
	line-height: 1.5;
}

.rpf-submit {
	display: inline-flex;
	min-height: 50px;
	padding: 12px 24px;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: var(--rpf-orange);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
}

.rpf-submit:hover,
.rpf-submit:focus-visible {
	background: #d94716;
	color: #fff;
}

.rpf-submit[disabled] {
	cursor: wait;
	opacity: .7;
}

.rpf-submit:focus-visible,
.rpf-secondary-button:focus-visible,
.rpf-link-button:focus-visible {
	outline: 3px solid rgba(240, 90, 40, .28);
	outline-offset: 3px;
}

.rpf-required-note {
	margin: 12px 0 0;
	color: var(--rpf-muted);
	font-size: .8rem;
}

.rpf-notice {
	max-width: 1040px;
	margin: 0 auto 22px;
	padding: 18px 20px;
	border-radius: 6px;
	line-height: 1.5;
}

.rpf-notice strong,
.rpf-notice span {
	display: block;
}

.rpf-notice--success {
	border: 1px solid #73a982;
	background: #f0faf3;
	color: #1f5b30;
}

.rpf-notice--error {
	border: 1px solid #d98585;
	background: #fff3f3;
	color: #8e1d1d;
}

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

@media (max-width: 820px) {
	.rpf-wrap {
		margin-bottom: 42px;
	}

	.rpf-form__header {
		padding: 27px 24px;
	}

	.rpf-section {
		padding: 22px;
	}

	.rpf-grid--3,
	.rpf-grid--parts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rpf-grid--parts .rpf-field:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.rpf-wrap {
		width: 100%;
		margin-bottom: 32px;
	}

	.rpf-form__header {
		margin-bottom: 18px;
		padding: 23px 18px;
		border-left-width: 4px;
	}

	.rpf-form__header h2 {
		font-size: 1.75rem;
	}

	.rpf-form__header p {
		font-size: .95rem;
	}

	.rpf-section {
		margin-bottom: 16px;
		padding: 18px 15px;
	}

	.rpf-section legend {
		font-size: 1.1rem;
	}

	.rpf-grid,
	.rpf-grid--2,
	.rpf-grid--3,
	.rpf-grid--parts,
	.rpf-choice-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.rpf-grid--parts .rpf-field:last-child {
		grid-column: auto;
	}

	.rpf-part {
		padding: 14px 12px;
	}

	.rpf-inline-choices {
		display: grid;
		gap: 10px;
	}

	.rpf-submit {
		width: 100%;
	}

	.rpf-notice {
		margin-bottom: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rpf-wrap *,
	.rpf-wrap *::before,
	.rpf-wrap *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
