/* Sunflower contact form.
   The wrapper .sf-form comes from the Contact Form 7 template. The same form is shown in three places:
   the contact page (full card, two columns), the footer block (.block5) and the order pop-up (.modal_div). */

.sf-form {
	--sf-accent: #f8c12c;
	--sf-accent-deep: #c79200;
	--sf-ink: #111111;
	--sf-line: #cfcfcf;
	--sf-muted: #666666;
	--sf-error: #b3261e;
	max-width: 760px;
	margin: 32px auto 0;
	padding: 28px;
	background: #ffffff;
	border: 1px solid #e4e4e4;
	border-top: 3px solid var(--sf-accent);
	border-radius: 4px;
	color: var(--sf-ink);
	line-height: 1.5;
	text-align: start;
}

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

.sf-field {
	min-width: 0;
}

.sf-field--wide {
	grid-column: 1 / -1;
}

.sf-field > label {
	display: block;
}

.sf-label {
	display: block;
	margin: 0 0 7px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sf-ink);
}

.sf-req {
	color: #8a6100;
}

.sf-opt {
	font-weight: 400;
	color: var(--sf-muted);
}

.sf-form .wpcf7-form-control-wrap {
	display: block;
	position: relative;
}

/* Fields */
.sf-form input.wpcf7-text,
.sf-form input.wpcf7-email,
.sf-form input.wpcf7-tel,
.sf-form textarea.wpcf7-textarea {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	background: #ffffff;
	border: 1px solid var(--sf-line);
	border-radius: 3px;
	box-shadow: none;
	color: var(--sf-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	text-align: start;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sf-form textarea.wpcf7-textarea {
	height: 150px;
	min-height: 96px;
	padding: 12px 14px;
	resize: vertical;
}

.sf-form input.wpcf7-text:focus,
.sf-form input.wpcf7-email:focus,
.sf-form input.wpcf7-tel:focus,
.sf-form textarea.wpcf7-textarea:focus {
	border-color: var(--sf-accent-deep);
	box-shadow: 0 0 0 3px rgba(248, 193, 44, 0.35);
}

.sf-form input.wpcf7-email {
	direction: ltr;
	text-align: right;
}

.sf-form ::placeholder {
	color: #8c8c8c;
	opacity: 1;
}

/* Phone: flag and country code on the left, digits typed left to right. */
.sf-form .iti {
	display: block;
	width: 100%;
}

.sf-form input.wpcf7-tel.sf-phone {
	direction: ltr;
	text-align: left;
}

.sf-form .iti__selected-country {
	border-radius: 3px 0 0 3px;
	cursor: pointer;
}

.sf-form .iti__selected-country:focus-visible {
	outline: 2px solid var(--sf-accent-deep);
	outline-offset: -2px;
}

.sf-form .iti__selected-dial-code {
	font-size: 16px;
	color: var(--sf-ink);
}

/* Country list and its search box. On phones and in the pop-up the list opens outside the form, so these are not scoped. */
.iti__country-selector {
	color: #111111;
	font-size: 15px;
	line-height: 1.4;
	text-align: start;
}

.iti__country-selector .iti__country-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.iti--inline-country-selector .iti__country-list {
	max-height: 232px;
}

.iti__country-selector .iti__country {
	padding-top: 9px;
	padding-bottom: 9px;
}

.iti__country-selector .iti__country.iti__highlight {
	background-color: #fdf1c7;
}

.iti__country-selector .iti__dial-code {
	color: #666666;
}

.iti__country-selector input.iti__search-input {
	height: 44px;
	margin: 0;
	background-color: #ffffff;
	border: 0;
	border-radius: 3px 3px 0 0;
	box-shadow: none;
	color: #111111;
	font-family: inherit;
	text-align: start;
}

.iti__country-selector input.iti__search-input:focus {
	outline: 2px solid #f8c12c;
	outline-offset: -2px;
}

/* Validation */
.sf-form .wpcf7-not-valid {
	border-color: var(--sf-error) !important;
}

.sf-form .wpcf7-not-valid-tip,
.sf-form .sf-phone-tip {
	display: block;
	position: static;
	width: auto;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--sf-error);
	text-align: start;
	direction: rtl;
}

/* Verification box and send button */
.sf-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
}

.sf-verify {
	min-width: 0;
	max-width: 100%;
}

.sf-form .wpcf7-turnstile {
	min-height: 65px;
}

.sf-send {
	position: relative;
}

.sf-form .wpcf7-submit {
	display: block;
	width: auto;
	min-width: 200px;
	height: 52px;
	margin: 0;
	padding: 0 34px;
	background: var(--sf-accent);
	border: 1px solid var(--sf-accent);
	border-radius: 3px;
	color: var(--sf-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sf-form .wpcf7-submit:hover,
.sf-form .wpcf7-submit:focus-visible {
	background: var(--sf-ink);
	border-color: var(--sf-ink);
	color: #ffffff;
}

.sf-form .wpcf7-submit:focus-visible {
	outline: 3px solid rgba(248, 193, 44, 0.7);
	outline-offset: 2px;
}

.sf-form .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

/* The "sending" indicator sits inside the button instead of pushing the layout. */
.sf-form .wpcf7-spinner {
	position: absolute;
	top: 50%;
	inset-inline-end: 12px;
	margin: -12px 0 0;
}

/* The message Contact Form 7 shows after sending. */
.sf-form ~ .wpcf7-response-output {
	max-width: 760px;
	margin: 14px auto 0 !important;
	padding: 12px 16px !important;
	border-width: 1px !important;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.6;
	text-align: start;
	color: #111111;
	background: #ffffff;
}

@media (max-width: 720px) {
	.sf-form {
		margin-top: 24px;
		padding: 18px 16px;
	}
	.sf-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.sf-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.sf-verify {
		display: flex;
		justify-content: center;
	}
	.sf-form .wpcf7-submit {
		width: 100%;
	}
}

/* Footer block and order pop-up: one narrow column, no card around the form. */
.block5 .sf-form,
.modal_div .sf-form {
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.block5 .sf-grid,
.modal_div .sf-grid {
	grid-template-columns: minmax(0, 1fr);
}

.block5 .sf-label,
.modal_div .sf-label {
	margin-bottom: 4px;
	font-size: 13px;
}

.block5 .sf-actions,
.modal_div .sf-actions {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin-top: 12px;
}

.block5 .sf-verify,
.modal_div .sf-verify {
	display: flex;
	justify-content: center;
}

.block5 .sf-form .wpcf7-submit,
.modal_div .sf-form .wpcf7-submit {
	width: 100%;
	height: 48px;
}

.block5 .sf-form ~ .wpcf7-response-output,
.modal_div .sf-form ~ .wpcf7-response-output {
	max-width: none;
}

/* Footer block keeps the theme's underlined fields. */
.block5 .sf-grid {
	gap: 2px;
}

.block5 .sf-actions {
	gap: 10px;
	margin-top: 8px;
}

/* The theme caps this block at 560px; with one more field the form needs the room. */
.block5 .wrapper:has(.sf-form) {
	max-height: none;
}

.block5 .form .sf-form .iti {
	margin-bottom: 13px;
}

.block5 .form .sf-form input.wpcf7-tel.sf-phone {
	direction: ltr;
	text-align: left;
}

.block5 .form .sf-form textarea.wpcf7-textarea {
	height: 92px;
	min-height: 0;
	margin-bottom: 0;
	padding: 10px;
	border: 0;
	border-bottom: 1px solid #e3e3e3;
	border-radius: 0;
	resize: none;
}

.block5 .form .sf-form textarea.wpcf7-textarea:focus {
	border-bottom-color: #f8c12c;
	box-shadow: none;
}

/* Order pop-up: slightly lower fields, and the box stays inside the screen with one more field in it. */
.modal_div .sf-grid {
	gap: 10px;
}

.modal_div .sf-form input.wpcf7-text,
.modal_div .sf-form input.wpcf7-email,
.modal_div .sf-form input.wpcf7-tel {
	height: 44px;
}

.modal_div .sf-form textarea.wpcf7-textarea {
	height: 92px;
	max-width: none;
	resize: none;
}

.modal_div:has(.sf-form) {
	top: 50% !important;
	margin-top: 0;
	-webkit-transform: translate(50%, -50%);
	transform: translate(50%, -50%);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
}
