/* =================================================================
   Naya order form (Contact Form 7)
   ================================================================= */

.naya-order-wrap {
	box-sizing: border-box;
	width: min(100%, 820px);
	margin: 0 auto;
	padding: 28px 20px 88px;
}

.wpcf7 .naya-order {
	box-sizing: border-box;
	padding: 28px 28px 32px;
	border: 1px solid #e6dccb;
	border-radius: 18px;
	background: #fffdf8;
}

.naya-order__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.naya-field--wide,
.naya-order__checks,
.naya-order__submit {
	grid-column: 1 / -1;
}

.naya-field {
	position: relative;
	min-width: 0;
}

.naya-field:has(.naya-selectbox.is-open) {
	z-index: 20;
}

.naya-field__label {
	position: absolute;
	z-index: 2;
	top: 9px;
	left: 16px;
	color: #8d887c;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	pointer-events: none;
}

.naya-field .wpcf7-form-control-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
}

.wpcf7 .naya-order input[type="text"],
.wpcf7 .naya-order input[type="email"],
.wpcf7 .naya-order input[type="tel"],
.wpcf7 .naya-order textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 28px 16px 10px;
	border: 1px solid #e4d9c8;
	border-radius: 10px;
	background: #ffffff;
	color: #2b2a24;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
	appearance: none;
}

.wpcf7 .naya-order textarea {
	min-height: 148px;
	resize: vertical;
}

.wpcf7 .naya-order input::placeholder,
.wpcf7 .naya-order textarea::placeholder {
	color: #6e6a60;
	opacity: 1;
}

.wpcf7 .naya-order input:focus,
.wpcf7 .naya-order textarea:focus,
.naya-select__trigger:focus-visible {
	border-color: #0c3219;
	outline: none;
	box-shadow: 0 0 0 3px rgba(12, 50, 25, 0.12);
}

.wpcf7 .naya-order select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.naya-selectbox {
	position: relative;
}

.naya-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 28px 14px 10px 16px;
	border: 1px solid #e4d9c8;
	border-radius: 10px;
	background: #ffffff;
	color: #2b2a24;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.naya-select__trigger.is-placeholder .naya-select__value {
	color: #6e6a60;
}

.naya-select__chevron {
	flex: none;
	color: #6e6a60;
	transition: transform 0.15s ease;
}

.naya-selectbox.is-open .naya-select__chevron {
	transform: rotate(180deg);
}

.naya-select__menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 280px;
	margin: 0;
	padding: 4px;
	overflow: auto;
	border: 1px solid #e7e0d4;
	border-radius: 8px;
	background: #ffffff;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.08),
		0 12px 24px -8px rgba(43, 42, 36, 0.16);
}

.naya-selectbox.is-up .naya-select__menu {
	top: auto;
	bottom: calc(100% + 6px);
}

.naya-select__menu[hidden] {
	display: none;
}

.naya-selectbox.is-open .naya-select__menu {
	animation: naya-select-in 0.12s ease;
}

@keyframes naya-select-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.naya-select__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #2b2a24;
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.naya-select__option:hover,
.naya-select__option.is-active,
.naya-select__option:focus-visible {
	background: #f4efe6;
	outline: none;
}

.naya-select__check {
	display: inline-flex;
	flex: none;
	width: 16px;
	height: 16px;
	color: #0c3219;
	opacity: 0;
}

.naya-select__option.is-selected .naya-select__check {
	opacity: 1;
}

.naya-selectbox.is-invalid .naya-select__trigger,
.wpcf7 .naya-order input.wpcf7-not-valid,
.wpcf7 .naya-order textarea.wpcf7-not-valid {
	border-color: #b42318;
}

.wpcf7 .naya-order .wpcf7-not-valid-tip {
	display: block;
	margin: 6px 0 0;
	color: #b42318;
	font-family: Inter, sans-serif;
	font-size: 12px;
	line-height: 1.3;
}

.naya-order__checks {
	display: flex;
	flex-direction: column;
	margin-top: 6px;
}

.naya-check + .naya-check {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e7e0d4;
}

.naya-check .wpcf7-form-control-wrap,
.naya-check .wpcf7-acceptance,
.naya-check .wpcf7-list-item,
.naya-check .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.naya-check .wpcf7-list-item-label {
	color: #0c3219;
	font-family: Inter, sans-serif;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.45;
}

.naya-check .wpcf7-list-item-label a {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.naya-check .wpcf7-list-item-label a:hover,
.naya-check .wpcf7-list-item-label a:focus {
	color: inherit;
}

.naya-check input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 1.5px solid #0c3219;
	border-radius: 4px;
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	appearance: none;
	cursor: pointer;
}

.naya-check input[type="checkbox"]:checked {
	border-color: #0c3219;
	background-color: #0c3219;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 8.2 6.4 11.4 12.8 4.6' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.naya-check input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(12, 50, 25, 0.16);
}

.naya-order__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 10px;
}

.wpcf7 .naya-order input[type="submit"] {
	width: auto;
	min-width: 168px;
	margin: 0;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: #0c3219;
	color: #ffffff;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.wpcf7 .naya-order input[type="submit"]:hover,
.wpcf7 .naya-order input[type="submit"]:focus-visible {
	background: #164626;
	transform: translateY(-2px);
	outline: none;
}

.wpcf7 .naya-order input[type="submit"]:disabled {
	opacity: 0.45;
	transform: none;
	cursor: not-allowed;
}

.wpcf7 .naya-order .wpcf7-spinner {
	margin: 0;
}

.wpcf7 .naya-order .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-width: 1px;
	border-radius: 10px;
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

@media (max-width: 767px) {
	.naya-order-wrap {
		padding: 12px 16px 64px;
	}

	.wpcf7 .naya-order {
		padding: 18px 16px 22px;
		border-radius: 16px;
	}

	.naya-order__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.naya-field__label {
		position: static;
		display: block;
		margin: 0 0 8px;
		color: #2b2a24;
		font-size: 14px;
		font-weight: 500;
		pointer-events: auto;
	}

	.wpcf7 .naya-order input[type="text"],
	.wpcf7 .naya-order input[type="email"],
	.wpcf7 .naya-order input[type="tel"],
	.wpcf7 .naya-order textarea,
	.naya-select__trigger {
		min-height: 0;
		padding: 12px 14px;
	}

	.wpcf7 .naya-order textarea {
		min-height: 112px;
	}

	.naya-order__submit {
		display: block;
	}

	.wpcf7 .naya-order input[type="submit"] {
		width: 100%;
	}

	.naya-check .wpcf7-list-item-label {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.naya-selectbox.is-open .naya-select__menu,
	.wpcf7 .naya-order input[type="submit"] {
		animation: none;
		transition: none;
	}
}
