/* Site-wide: no browser tap highlight (the blue/grey box mobile browsers flash over a tapped link or button). */
* {
	-webkit-tap-highlight-color: transparent;
}

/* Footer contact form - phone field with country code (intl-tel-input). */

/* Flag button only as tall as the text line (41px input minus its 14px bottom padding); fixed height so an
   error message added to the container doesn't move it. */
.elementor-field-group .iti .iti__country-container {
	top: 0;
	bottom: auto;
	height: 27px !important;
	padding: 0;
}

.elementor-field-group .iti .iti__selected-country {
	height: 100%;
}

.elementor-field-group .iti .iti__selected-country,
.elementor-field-group .iti .iti__selected-country:hover,
.elementor-field-group .iti .iti__selected-country:focus {
	background: none !important;
	outline: none;
	box-shadow: none;
}

.elementor-field-group .iti .iti__selected-country:focus-visible {
	outline: 1px solid #3F513D;
	outline-offset: 2px;
}

/* Search in the country list. */
.elementor-field-group .iti .iti__search-input {
	box-sizing: border-box;
	height: auto;
	padding: 10px 14px !important;
	border: 1px solid #CCCCCC;
	border-radius: 0;
	font-size: 16px;
	line-height: 1.4;
	color: #3F513D;
}

.elementor-field-group .iti .iti__search-input:focus {
	border-color: #3F513D;
	outline: none;
	box-shadow: none;
}

/* "Dominantis butas" select: bold (placeholder and the chosen apartment), list items normal; chevron instead of
   Elementor's caret. */
.elementor-field-group select#form-field-domina {
	font-weight: 700;
	padding-right: 32px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233F513D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px top 9px;
	cursor: pointer;
}

.elementor-field-group select#form-field-domina option {
	font-weight: 400;
}

/* The open list: Chrome / Edge 135+ (desktop and Android) support the customizable select, whose list is drawn by
   the page - side padding (the values touched the edges of the native list, which ignores option padding on
   Windows), site colours. The closed field keeps its look. Other browsers keep their native list. */
@supports (appearance: base-select) {
	.elementor-field-group select#form-field-domina,
	.elementor-field-group select#form-field-domina::picker(select) {
		appearance: base-select;
	}

	.elementor-field-group select#form-field-domina::picker-icon {
		display: none;   /* our own chevron (background) stays */
	}

	.elementor-field-group select#form-field-domina::picker(select) {
		max-height: min(320px, 50vh);
		margin-top: 4px;
		padding: 6px 0;
		border: 1px solid rgba(63, 81, 61, 0.25);
		background: #FBF5F0;
		box-shadow: 0 8px 24px rgba(18, 33, 16, 0.12);
		overflow-y: auto;
	}

	.elementor-field-group select#form-field-domina option {
		padding: 8px 14px;
		font-family: "DM Sans", sans-serif;
		font-size: 16px;
		line-height: 1.4;
		color: #3F513D;
		background: none;
	}

	.elementor-field-group select#form-field-domina option::checkmark {
		display: none;
	}

	.elementor-field-group select#form-field-domina option:hover,
	.elementor-field-group select#form-field-domina option:focus-visible,
	.elementor-field-group select#form-field-domina option:checked {
		background: #EDE6DB;
		outline: none;
	}
}

.elementor-field-group .elementor-select-wrapper:has(#form-field-domina) .select-caret-down-wrapper {
	display: none;
}

/* Elementor puts the "required" error inside the select wrapper (a flex row -> it landed to the right) and
   inside the phone plugin's container (inline -> no gap). Show both under the field like the e-mail error. */
.elementor-field-group .elementor-select-wrapper {
	flex-wrap: wrap;
}

.elementor-field-group .elementor-select-wrapper > select {
	flex: 1 1 100%;
}

.elementor-field-group .elementor-select-wrapper > .elementor-form-help-inline,
.elementor-field-group .iti > .elementor-form-help-inline {
	display: block;
	flex: 1 1 100%;
}

/* Field errors: no bottom margin, red like the form's own error message (Elementor sets them to the text colour). */
.elementor-form .elementor-message.elementor-help-inline {
	margin-bottom: 0 !important;
	color: #661111 !important;
}

/* Mobile: the form's 45px column gap (22.5px side padding per field + -22.5px wrapper margins) made the
   fields wrapper 6.5px wider than the screen on each side (16px container padding) -> sideways scroll on
   browsers without overflow-x: clip. Fields are stacked on mobile, so no column gap is needed there. */
@media (max-width: 767px) {
	.elementor-form .elementor-form-fields-wrapper {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.elementor-form .elementor-form-fields-wrapper > .elementor-field-group {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* Footer form "Sutinku…" checkbox (the square is the label's ::before, from the footer's custom CSS): square on the
   left, the text as its own column, so the second line starts under the first, not under the square
   (bugai/Screenshot_2.png). As in that screenshot the text sits higher than the square: the square's top ~5px
   below the first line's letters, its bottom where the second line starts. */
.elementor-field-type-acceptance .elementor-field-option input[type="checkbox"] + label {
	display: flex !important;
	align-items: flex-start;
}

.elementor-field-type-acceptance .elementor-field-option input[type="checkbox"] + label::before {
	flex: 0 0 auto;
	margin-top: 11px !important;
}

/* Form messages (field errors, error / success message): no icon - Elementor puts an "eicons" glyph before them,
   but that icon font isn't loaded on the site, so it showed as an empty box. */
.elementor-form .elementor-message::before {
	display: none !important;
}

/* "Sutinku…" required error: Elementor puts it inside the option row (flex, no wrap -> it landed to the right of the
   text, squeezing it). Show it on its own line under the text (checkbox 20px + 18px gap). */
.elementor-field-type-acceptance .elementor-field-option {
	flex-wrap: wrap;
}

.elementor-field-type-acceptance .elementor-field-option > .elementor-form-help-inline {
	display: block;
	flex: 1 1 100%;
	padding-left: 38px;
}
