.cff-form-shell {
	--cff-ink: #0b0b0b;
	--cff-muted: #6e625b;
	--cff-line: #ded7d2;
	--cff-panel: #ffffff;
	--cff-accent: #ff5a1f;
	--cff-accent-dark: #e84b15;
	--cff-bg: #fff0e6;
	--cff-radius: 8px;
	background: var(--cff-bg);
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--cff-ink);
	font-family: "Montserrat", "Segoe UI", sans-serif;
	margin: 0 auto;
	max-width: none;
	padding: 24px 22px 30px;
	width: 100%;
}

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

.cff-form {
	display: grid;
	gap: 28px;
	margin: 0;
	width: 100%;
}

.cff-progress {
	color: var(--cff-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.cff-progress-meta {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	line-height: 1;
	margin-bottom: 16px;
}

.cff-progress-track {
	background: #ffd5c4;
	border-radius: 999px;
	height: 6px;
	overflow: hidden;
	width: 100%;
}

.cff-progress-track span {
	background: var(--cff-accent);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 180ms ease-out;
	width: 0;
}

.cff-step {
	animation: cffFadeIn 160ms ease-out;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.cff-step h2 {
	color: var(--cff-ink);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 0.98;
	margin: 0 0 12px;
}

.cff-section-description {
	color: var(--cff-muted);
	font-size: 13px;
	line-height: 1.45;
	margin: 0 0 26px;
}

.cff-fields-grid {
	--cff-field-gap: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px var(--cff-field-gap);
	width: 100%;
}

.cff-field {
	display: grid;
	flex: 0 1 calc(var(--cff-field-width, 100%) - var(--cff-field-gap));
	gap: 8px;
	min-width: min(100%, 250px);
}

.cff-field > label,
.cff-field-label {
	color: var(--cff-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.cff-required {
	color: var(--cff-accent);
	font-weight: 800;
}

.cff-field input[type="text"],
.cff-field input[type="email"],
.cff-field input[type="tel"],
.cff-field input[type="number"],
.cff-field select,
.cff-field textarea {
	appearance: none;
	background: var(--cff-panel);
	border: 1px solid var(--cff-line);
	border-radius: var(--cff-radius);
	color: var(--cff-ink);
	font: inherit;
	font-size: 13px;
	height: 56px;
	line-height: 1.25;
	outline: none;
	padding: 0 20px;
	transition: border-color 140ms ease, box-shadow 140ms ease;
	width: 100%;
}

.cff-field select {
	background-image: linear-gradient(45deg, transparent 50%, #9b928c 50%), linear-gradient(135deg, #9b928c 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 44px;
}

.cff-field textarea {
	height: 196px;
	padding: 18px 20px;
	resize: vertical;
}

.cff-field input::placeholder,
.cff-field textarea::placeholder {
	color: #9b928c;
	opacity: 1;
}

.cff-field input:focus,
.cff-field select:focus,
.cff-field textarea:focus {
	border-color: var(--cff-accent);
	box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.13);
}

.cff-choice-list {
	display: grid;
	gap: 12px 16px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	width: 100%;
}

.cff-choice {
	align-items: center;
	background: var(--cff-panel);
	border: 1px solid transparent;
	border-radius: var(--cff-radius);
	color: var(--cff-muted);
	display: flex;
	font-size: 13px;
	font-weight: 500;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.cff-choice input {
	accent-color: var(--cff-accent);
	height: 18px;
	margin: 0;
	width: 18px;
}

.cff-choice-checked {
	border-color: rgba(255, 90, 31, 0.22);
	box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.16);
	color: var(--cff-ink);
}

.cff-class-selector {
	display: grid;
	gap: 14px;
	width: 100%;
}

.cff-class-selector-header {
	align-items: start;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.cff-class-selector-title {
	margin: 0;
}

.cff-class-selector-header p {
	color: var(--cff-muted);
	font-size: 12px;
	margin: 5px 0 0;
}

.cff-class-meta {
	display: grid;
	gap: 10px;
	justify-items: end;
}

.cff-class-price {
	align-items: baseline;
	color: var(--cff-muted);
	display: inline-flex;
	font-size: 11px;
	gap: 10px;
	justify-content: flex-end;
	line-height: 1.2;
	text-align: right;
	white-space: nowrap;
}

.cff-class-price strong {
	color: var(--cff-accent);
	font-size: 16px;
	font-weight: 900;
}

.cff-class-price span {
	white-space: nowrap;
}

.cff-class-note {
	color: var(--cff-ink);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
	text-align: right;
}

.cff-class-group-heading {
	background: #e5e2df;
	border-radius: 5px;
	color: #262626;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 11px 14px;
	text-align: center;
}

.cff-class-options {
	display: grid;
	gap: 12px 16px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cff-class-selector-columns-1 .cff-class-options {
	grid-template-columns: 1fr;
}

.cff-class-selector-columns-2 .cff-class-options {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cff-class-option {
	align-items: center;
	background: var(--cff-panel);
	border: 1px solid transparent;
	border-radius: var(--cff-radius);
	color: var(--cff-muted);
	display: flex;
	font-size: 13px;
	font-weight: 500;
	gap: 10px;
	min-height: 42px;
	padding: 0 16px;
	transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.cff-class-option input {
	accent-color: var(--cff-accent);
	height: 18px;
	margin: 0;
	width: 18px;
}

.cff-class-option-checked {
	border-color: rgba(255, 90, 31, 0.24);
	box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.16);
	color: var(--cff-ink);
}

.cff-actions {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-top: -2px;
	width: 100%;
}

.cff-button {
	background: var(--cff-accent);
	border: 0;
	border-radius: var(--cff-radius);
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	height: 56px;
	padding: 0 24px;
	text-align: center;
	transition: background-color 140ms ease, transform 140ms ease;
	width: 100%;
}

.cff-button:hover,
.cff-button:focus {
	background: var(--cff-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.cff-button-secondary {
	background: #fff;
	border: 1px solid var(--cff-line);
	color: var(--cff-ink);
}

.cff-button-secondary:hover,
.cff-button-secondary:focus {
	background: #fff8f3;
	color: var(--cff-ink);
}

.cff-message {
	border-radius: var(--cff-radius);
	margin: 0 0 18px;
	padding: 14px 16px;
}

.cff-message-success {
	background: #e6f5eb;
	border: 1px solid #badfc5;
}

.cff-message-error {
	background: #fff;
	border: 1px solid #f0b99e;
}

.cff-message ul {
	margin-bottom: 0;
}

.cff-redirecting {
	display: grid;
	gap: 10px;
}

.cff-redirecting p {
	margin: 0;
}

.cff-redirect-actions .cff-button {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	max-width: 280px;
	text-decoration: none;
}

[hidden] {
	display: none !important;
}

@keyframes cffFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	.cff-form-shell {
		padding: 20px 16px 24px;
	}

	.cff-step h2 {
		font-size: 34px;
	}

	.cff-field {
		flex-basis: 100%;
		min-width: 100%;
	}

	.cff-choice-list {
		grid-template-columns: 1fr;
	}

	.cff-class-selector-header {
		grid-template-columns: 1fr;
	}

	.cff-class-price,
	.cff-class-note {
		justify-content: flex-start;
		text-align: left;
	}

	.cff-class-meta {
		justify-items: start;
	}

	.cff-class-price {
		flex-wrap: wrap;
		white-space: normal;
	}

	.cff-class-price span {
		white-space: normal;
	}

	.cff-class-selector-columns-2 .cff-class-options,
	.cff-class-options {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.cff-progress-meta {
		font-size: 11px;
		margin-bottom: 12px;
	}

	.cff-step h2 {
		font-size: 30px;
	}
}
