/* Швидке замовлення в 1 клік — червоний блок за макетом Figma */
.quick-order-form {
	background: var(--wp--preset--color--primary-500, #ff2200);
	color: #fff;
	border-radius: var(--border-radius, 0.375rem);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.quick-order-form__heading {
	margin: 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	color: #fff;
}

.quick-order-form__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.quick-order-form__input {
	/* Big flex-grow so the two inputs soak up the row and the button stays at
	   its natural width when everything fits on one line. `min-width` is the
	   wrap threshold: once two inputs can't shrink below it next to the button,
	   the button (last item) wraps to its own full-width row. */
	flex: 100 1 8rem;
	min-width: 7rem;
	padding: 0.6875rem 1rem;
	border: 1px solid color-mix(in srgb, currentcolor 50%, transparent);
	border-radius: var(--border-radius, 0.375rem);
	background: var(--wp--preset--color--primary-600, #cc1a00);
	color: #fff;
	font: inherit;
	transition: all 0.3s ease-out;
	will-change: border-color;
	&:hover, &:focus{
		border-color: currentColor;
	}
}

.quick-order-form__input::placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.quick-order-form__input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.6);
}

.quick-order-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.quick-order-form__submit {
	/* Natural width when inline (inputs soak up the row); grows to fill the whole
	   row when it wraps to its own line. So: one row on wide screens, button
	   drops to full width once the inputs reach their min-width. */
	flex: 1 1 auto;
	padding: 0.6875rem 1.5rem;
	background: #fff;
	color: var(--wp--preset--color--primary-500, #ff2200);
	border: none;
	border-radius: var(--border-radius, 0.375rem);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.quick-order-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.quick-order-form__error {
	flex: 1 1 100%;
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: #fff;
	font-weight: 500;
}

/* Кроки з цифрами та лінією прогресу */
.quick-order-form__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.5rem;
	position: relative;
}

/* горизонтальна лінія за крапками */
.quick-order-form__steps::before {
	content: "";
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	right: 0.5rem;
	height: 1px;
	background: rgba(255, 255, 255, 0.35);
}

.quick-order-form__step {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.35;
	position: relative;
}

.quick-order-form__step-num {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: #fff;
	color: var(--wp--preset--color--primary-500, #ff2200);
	font-size: 0.625rem;
	font-weight: 700;
	flex: none;
}

@media (max-width: 480px) {
	.quick-order-form__steps {
		flex-direction: column;
		gap: 0.75rem;
	}
	.quick-order-form__steps::before {
		display: none;
	}
	.quick-order-form__step {
		flex-direction: row;
		align-items: center;
		gap: 0.5rem;
	}
}
