.cake-form-wrap {
	--cake-form-accent: #a9762f;
	--cake-form-accent-dark: #8a5e22;
	max-width: 980px;
	margin: 32px auto;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #222;
}

.cake-form {
	background: #fff;
	border: 1px solid #eee7e3;
	border-radius: 22px;
	padding: 34px;
	box-shadow: 0 18px 55px rgba(35, 25, 20, .08);
	box-sizing: border-box;
}

.cake-form__section {
	padding: 0 0 34px;
	margin: 0 0 34px;
	border-bottom: 1px solid #eee7e3;
}

.cake-form__section:last-of-type {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.cake-form__title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 22px;
	color: #222;
}

.cake-form__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cake-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cake-form__field--full {
	grid-column: 1 / -1;
	margin-top: 20px;
}

.cake-form__field label,
.cake-form__upload label {
	font-size: 14px;
	font-weight: 650;
	color: #393532;
}

.cake-form input[type="text"],
.cake-form input[type="email"],
.cake-form input[type="tel"],
.cake-form input[type="date"],
.cake-form select,
.cake-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #dcd5d1;
	border-radius: 11px;
	background-color: #fff;
	padding: 14px 15px;
	font: inherit;
	line-height: 1.35;
	color: #222;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.cake-form select {
	appearance: auto;
	padding-right: 38px;
}

.cake-form input:focus,
.cake-form select:focus,
.cake-form textarea:focus {
	border-color: var(--cake-form-accent);
	box-shadow: 0 0 0 3px rgba(169, 118, 47, .16);
}

.cake-form textarea {
	resize: vertical;
	min-height: 120px;
}

.cake-form__phone {
	display: flex;
	border: 1px solid #dcd5d1;
	border-radius: 11px;
	overflow: hidden;
	background: #fff;
}

.cake-form__phone span {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: #f7f3f1;
	border-right: 1px solid #dcd5d1;
	font-weight: 600;
	color: #58514c;
}

.cake-form__phone input {
	border: 0 !important;
	border-radius: 0 !important;
}

.cake-form__upload {
	margin-top: 20px;
	border: 1.5px dashed #d6cbc5;
	border-radius: 14px;
	padding: 20px;
	background: #fcfaf9;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cake-form__upload input[type="file"] {
	max-width: 100%;
	font-size: 13px;
}

.cake-form__hint {
	font-size: 12px;
	color: #817873;
	font-weight: 400;
}

.cake-form__checkbox {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	cursor: pointer;
}

.cake-form__checkbox input {
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin-top: 3px;
}

.cake-form__checkbox span {
	display: flex;
	flex-direction: column;
}

.cake-form__checkbox small {
	font-weight: 400;
	color: #736c68;
}

.cake-form__delivery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 22px;
}

.cake-form__delivery-option {
	cursor: pointer;
}

.cake-form__delivery-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.cake-form__delivery-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 21px;
	border: 1.5px solid #ddd5d1;
	border-radius: 15px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.cake-form__delivery-option input:checked + .cake-form__delivery-card {
	border-color: var(--cake-form-accent);
	background: #fbf5ec;
	box-shadow: 0 0 0 3px rgba(169, 118, 47, .12);
}

.cake-form__delivery-option input:focus-visible + .cake-form__delivery-card {
	outline: 2px solid var(--cake-form-accent);
	outline-offset: 2px;
}

.cake-form__delivery-card b {
	font-size: 17px;
}

.cake-form__delivery-card small {
	font-weight: 400;
	color: #736c68;
}

.cake-form__actions {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.cake-form .cake-form__submit {
	appearance: none;
	border: 0;
	border-radius: 999px;
	min-width: 310px;
	min-height: 60px;
	padding: 16px 32px;
	background: #a47628 !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: opacity .2s, transform .2s;
}

.cake-form .cake-form__submit:hover {
	transform: translateY(-1px);
	opacity: .92;
}

.cake-form .cake-form__submit:disabled {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
}

.cake-form-alert {
	margin-bottom: 18px;
	padding: 16px 18px;
	border-radius: 12px;
	font-size: 14px;
}

.cake-form-alert--success {
	background: #eaf7ee;
	color: #216b35;
}

.cake-form-alert--error {
	background: #fff0ef;
	color: #a52b20;
}

.cake-form-success-panel {
	background: #fff;
	border: 1px solid #eee7e3;
	border-radius: 22px;
	padding: 40px 34px;
	box-shadow: 0 18px 55px rgba(35, 25, 20, .08);
	text-align: center;
}

.cake-form-success-panel h3 {
	margin: 0 0 10px;
	font-size: 22px;
}

.cake-form-success-panel p {
	margin: 0 0 6px;
	color: #4a453f;
}

.cake-form-success-panel .cake-form-reference {
	font-weight: 700;
	color: var(--cake-form-accent-dark);
}

.cake-form__hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.cake-form__field--invalid input,
.cake-form__field--invalid select,
.cake-form__field--invalid textarea {
	border-color: #d33 !important;
	box-shadow: 0 0 0 3px rgba(221, 51, 51, .14) !important;
}

.cake-form__field-error {
	display: block;
	margin-top: 4px;
	color: #a52b20;
	font-weight: 500;
	font-size: 12px;
}

@media (max-width: 700px) {
	.cake-form-wrap {
		margin: 18px auto;
	}

	.cake-form {
		padding: 22px 17px;
		border-radius: 16px;
	}

	.cake-form__grid,
	.cake-form__delivery-grid {
		grid-template-columns: 1fr;
	}

	.cake-form__title {
		font-size: 19px;
	}

	.cake-form__section {
		padding-bottom: 26px;
		margin-bottom: 26px;
	}

	.cake-form__actions {
		display: block;
	}

	.cake-form__submit {
		width: 100%;
	}
}
