.arf-form,
.arf-form * {
	box-sizing: border-box;
}

.arf-form {
	--arf-bg: rgba(255, 255, 255, 0.94);
	--arf-bg-strong: #ffffff;
	--arf-text: #14211c;
	--arf-muted: #68746f;
	--arf-line: rgba(20, 33, 28, 0.12);
	--arf-accent: #183f31;
	--arf-accent-2: #2f7a5d;
	--arf-error: #b3261e;
	--arf-success: #166534;
	width: 100%;
	padding: clamp(18px, 3vw, 30px);
	border: 1px solid var(--arf-line);
	border-radius: 28px;
	background:
		linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,248,246,.93)),
		var(--arf-bg);
	color: var(--arf-text);
}

.arf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: end;
}

.arf-form--no-date .arf-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.arf-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	color: var(--arf-text);
}

.arf-input {
	width: 100%;
	min-height: 54px;
	padding: 0 16px;
	border: 1px solid var(--arf-line);
	border-radius: 16px;
	background: var(--arf-bg-strong);
	color: var(--arf-text);
	font: inherit;
	font-size: 16px;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.arf-input::placeholder {
	color: rgba(104, 116, 111, .8);
}

.arf-input:hover {
	border-color: rgba(47, 122, 93, .38);
}

.arf-input:focus {
	border-color: var(--arf-accent-2);
	box-shadow: 0 0 0 4px rgba(47, 122, 93, .13);
	background: #fff;
}

.arf-input.arf-is-invalid,
.arf-checkbox.arf-is-invalid {
	border-color: var(--arf-error);
	box-shadow: 0 0 0 4px rgba(179, 38, 30, .1);
}

.arf-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 18px;
}

.arf-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--arf-muted);
	font-size: 14px;
	line-height: 1.45;
}

.arf-consent a {
	color: var(--arf-accent-2);
	text-decoration: none;
	font-weight: 700;
	border-bottom: 1px solid rgba(47, 122, 93, .25);
}

.arf-consent a:hover {
	border-bottom-color: currentColor;
}

.arf-checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: var(--arf-accent-2);
}

.arf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: #1463bf;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .01em;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(24, 63, 49, .24);
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.arf-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(24, 63, 49, .28);
}

.arf-submit:focus-visible {
	outline: 3px solid rgba(47, 122, 93, .26);
	outline-offset: 3px;
}

.arf-submit:disabled {
	cursor: not-allowed;
	opacity: .72;
	transform: none;
}

.arf-submit.is-loading .arf-submit__text::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: -2px;
	animation: arf-spin .75s linear infinite;
}

.arf-message {
	display: none;
	margin-top: 16px;
	padding: 13px 15px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.arf-message.is-visible {
	display: block;
}

.arf-message.is-success {
	background: rgba(22, 101, 52, .09);
	color: var(--arf-success);
	border: 1px solid rgba(22, 101, 52, .18);
}

.arf-message.is-error {
	background: rgba(179, 38, 30, .08);
	color: var(--arf-error);
	border: 1px solid rgba(179, 38, 30, .16);
}

.arf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

@keyframes arf-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 900px) {
	.arf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.arf-field:first-child {
		grid-column: span 2;
	}

	.arf-form--no-date .arf-field:first-child {
		grid-column: auto;
	}
}

@media (max-width: 640px) {
	.arf-form {
		border-radius: 22px;
		padding: 18px;
	}

	.arf-grid,
	.arf-form--no-date .arf-grid {
		grid-template-columns: 1fr;
	}

	.arf-field:first-child {
		grid-column: auto;
	}

	.arf-bottom {
		align-items: stretch;
		flex-direction: column;
	}

	.arf-submit {
		width: 100%;
	}
}

.arf-form__body[hidden] {
	display: none !important;
}

.arf-form.arf-is-sent .arf-message {
	margin-top: 0;
}
