/* The inquiry, contact and post a free ad forms. The fields and labels take
   the site's own Elementor styles; this lays them out and styles what is the
   form's own: the red star, the country code, the messages under the fields
   and the send button. */
.crc-inquiry {
	--crc-inquiry-error: #d93025;
	--crc-inquiry-gap: 16px; /* Between one field and the next. */
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--crc-inquiry-gap);
	margin: 0;
}

.crc-inquiry [hidden] {
	display: none !important;
}

/* A field only robots fill in, kept out of sight. */
.crc-inquiry .crc-inquiry-trap {
	position: absolute;
	top: auto;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* First and last name side by side, or one under the other (see the end of the file). */
.crc-inquiry .crc-inquiry-names {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--crc-inquiry-gap) 24px;
}

.crc-inquiry .crc-inquiry-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0;
}

/* Other fields in a row: side by side in equal columns, or one under the other (see the end of the file). */
.crc-inquiry .crc-inquiry-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--crc-inquiry-gap) 24px;
}

/* A little more room above the message, as in the design. */
.crc-inquiry .crc-inquiry-field[data-crc-field="message"],
.crc-inquiry .crc-inquiry-field[data-crc-field="description"] {
	margin-top: 8px;
}

/* The star after a required field's name */
.crc-inquiry .crc-inquiry-required {
	color: var(--crc-inquiry-error);
}

/* Fields use the page's font, not the browser's (a monospace one in the message box).
   :where() makes this the weakest rule, so any font the site's styles give fields wins. */
:where(.crc-inquiry) :where(.crc-inquiry-input, .crc-inquiry-countries-search) {
	font: inherit;
	letter-spacing: inherit;
}

/* Fields fill their column. */
.crc-inquiry .crc-inquiry-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
}

.crc-inquiry .crc-inquiry-message {
	resize: vertical;
}

/* No outline around a field while typing, from the browser or the theme:
   only the site's own Elementor field style shows. */
.crc-inquiry .crc-inquiry-input:focus,
.crc-inquiry .crc-inquiry-input:focus-visible,
.crc-inquiry .crc-inquiry-countries-search:focus,
.crc-inquiry .crc-inquiry-countries-search:focus-visible {
	outline: none !important;
}

/* Phone number: the flag and the country code sit at the start of the box, before a thin line.
   The script gives them the text style of the site's fields and makes room for them; these are the starting values. */
.crc-inquiry .crc-inquiry-phone {
	position: relative;
}

.crc-inquiry .crc-inquiry-country {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 0 24px;
	color: var(--e-global-color-6e3d619);
	font-size: 16px;
	line-height: 24px;
}

.crc-inquiry .crc-inquiry-country::after {
	content: "";
	position: absolute;
	top: 25%;
	right: 0;
	bottom: 25%;
	width: 1px;
	background: currentColor;
	opacity: 0.25;
}

.crc-inquiry .crc-inquiry-country-flag {
	display: block;
	flex: none;
	width: 20px;
	height: 15px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	object-fit: cover;
}

.crc-inquiry .crc-inquiry-country-code {
	white-space: nowrap;
}

/* Reached with the keyboard: the code is underlined. */
.crc-inquiry .crc-inquiry-country:has(:focus-visible) .crc-inquiry-country-code {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.crc-inquiry .crc-inquiry-country-icon {
	flex: none;
	width: 12px;
	height: auto;
	fill: currentColor;
}

/* Without the script, the browser's own list of countries opens from the code; it stays invisible over it. */
.crc-inquiry .crc-inquiry-country .crc-inquiry-country-select {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
	opacity: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* With the script, a button over the flag and code opens the country list: normal */
.crc-inquiry .crc-inquiry-country .crc-inquiry-country-button {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: inherit;
	opacity: 1;
	transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* The button: hover, focus and pressed. The theme's button hover styles don't apply. */
.crc-inquiry .crc-inquiry-country .crc-inquiry-country-button:hover,
.crc-inquiry .crc-inquiry-country .crc-inquiry-country-button:focus,
.crc-inquiry .crc-inquiry-country .crc-inquiry-country-button:active {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: inherit;
	opacity: 1;
	transform: none;
}

/* The country list: always under the phone box, with a search, a flag, the name and the code. */
.crc-inquiry .crc-inquiry-countries {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid color-mix(in srgb, var(--e-global-color-text) 15%, var(--e-global-color-bb33687));
	border-radius: 12px;
	background: var(--e-global-color-3581a59);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.crc-inquiry .crc-inquiry-countries-search {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
}

.crc-inquiry .crc-inquiry-countries-list {
	position: relative;
	max-height: min(264px, 45vh);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.crc-inquiry .crc-inquiry-countries-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--e-global-color-6e3d619);
	line-height: 24px;
	cursor: pointer;
}

.crc-inquiry .crc-inquiry-countries-item.is-active {
	background: color-mix(in srgb, var(--e-global-color-text) 10%, var(--e-global-color-bb33687));
}

.crc-inquiry .crc-inquiry-countries-item[aria-selected="true"] {
	font-weight: 600;
}

.crc-inquiry .crc-inquiry-countries-flag {
	display: block;
	flex: none;
	width: 20px;
	height: 15px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--e-global-color-text) 10%, var(--e-global-color-bb33687));
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	object-fit: cover;
}

.crc-inquiry .crc-inquiry-countries-name {
	flex: 1 1 auto;
	min-width: 0;
}

.crc-inquiry .crc-inquiry-countries-dial {
	flex: none;
	color: var(--e-global-color-text);
}

.crc-inquiry .crc-inquiry-countries-empty {
	margin: 0;
	padding: 8px 12px;
	color: var(--e-global-color-text);
}

/* Room for the flag and the country code before the number. */
.crc-inquiry .crc-inquiry-phone .crc-inquiry-number:not([type="button"]):not([type="submit"]) {
	padding-left: 136px;
}

/* Messages under a field */
.crc-inquiry .crc-inquiry-error,
.crc-inquiry .crc-inquiry-hint {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
}

.crc-inquiry .crc-inquiry-error {
	color: var(--crc-inquiry-error);
}

.crc-inquiry .crc-inquiry-hint {
	color: var(--e-global-color-text);
}

/* "Did you mean …?" address: normal */
.crc-inquiry .crc-inquiry-hint-button {
	display: inline;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--e-global-color-6e3d619);
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-shadow: none;
	text-transform: none;
	opacity: 1;
	transform: none;
	cursor: pointer;
}

/* "Did you mean …?" address: hover, focus and pressed. The theme's button hover styles don't apply. */
.crc-inquiry .crc-inquiry-hint-button:hover,
.crc-inquiry .crc-inquiry-hint-button:focus,
.crc-inquiry .crc-inquiry-hint-button:active {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: var(--e-global-color-primary);
	font-weight: 600;
	letter-spacing: normal;
	text-decoration: underline;
	text-shadow: none;
	text-transform: none;
	opacity: 1;
	transform: none;
}

.crc-inquiry .crc-inquiry-hint-button:focus-visible {
	outline: 2px solid var(--e-global-color-6e3d619);
	outline-offset: 2px;
}

/* A choice of one, such as the category of a free ad: the label above, the options in a row that wraps. */
.crc-inquiry .crc-inquiry-choices {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.crc-inquiry .crc-inquiry-legend {
	float: none;
	width: auto;
	margin: 0 0 4px;
	padding: 0;
}

.crc-inquiry .crc-inquiry-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding: 4px 0;
}

.crc-inquiry .crc-inquiry-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
}

/* The browser's own round buttons, in the site's main colour. They don't take the text fields' size or look. */
.crc-inquiry .crc-inquiry-choice input[type="radio"]:not([type="button"]):not([type="submit"]) {
	flex: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	accent-color: var(--e-global-color-primary);
	cursor: pointer;
	-webkit-appearance: auto;
	appearance: auto;
}

/* A short note under the fields, such as "we'll collect the photos". */
.crc-inquiry .crc-inquiry-note {
	margin: 8px 0 0;
	padding: 0;
	color: var(--e-global-color-text);
	font-size: 14px;
	line-height: 20px;
}

/* Post a free ad: the photos box. An Upload Photos button outlined in the site's colour, with the rules
   in a small line under it; the file field lies invisibly over the button. Photos can also be dropped on the box. */
.crc-inquiry .crc-ad-photos-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 24px;
	border: 1.5px solid var(--e-global-color-primary);
	border-radius: 8px;
	background: var(--e-global-color-3581a59);
	color: var(--e-global-color-primary);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.crc-inquiry .crc-ad-photos-button:hover,
.crc-inquiry .crc-ad-photos.is-dragging .crc-ad-photos-button {
	background: color-mix(in srgb, var(--e-global-color-primary) 8%, var(--e-global-color-3581a59));
}

/* Reached with the keyboard */
.crc-inquiry .crc-ad-photos-button:has(.crc-ad-photos-input:focus-visible) {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-global-color-primary) 25%, transparent);
}

.crc-inquiry .crc-ad-photos-button.is-full {
	border-color: color-mix(in srgb, var(--e-global-color-text) 30%, transparent);
	background: color-mix(in srgb, var(--e-global-color-text) 4%, var(--e-global-color-3581a59));
	color: var(--e-global-color-text);
	opacity: 0.7;
}

.crc-inquiry .crc-ad-photos-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.crc-inquiry .crc-ad-photos-input:disabled {
	cursor: not-allowed;
}

.crc-inquiry .crc-ad-photos-add {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
}

.crc-inquiry .crc-ad-photos-icon {
	flex: none;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.crc-inquiry .crc-ad-photos-hint,
.crc-inquiry .crc-ad-photos-status {
	margin: 0;
	padding: 0;
	color: var(--e-global-color-text);
	font-size: 14px;
	line-height: 20px;
}

.crc-inquiry .crc-ad-photos-hint {
	font-size: 13px;
	line-height: 18px;
	opacity: 0.85;
}

.crc-inquiry .crc-ad-photos-status {
	color: var(--e-global-color-primary);
}

/* The photos chosen: square tiles, each with a bar while it sends. */
.crc-inquiry .crc-ad-photos-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 12px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.crc-inquiry .crc-ad-photos-item {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	margin: 0;
	border-radius: 8px;
	background: color-mix(in srgb, var(--e-global-color-text) 8%, var(--e-global-color-3581a59));
}

.crc-inquiry .crc-ad-photos-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.crc-inquiry .crc-ad-photos-bar {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.75);
}

.crc-inquiry .crc-ad-photos-bar span {
	display: block;
	width: var(--crc-progress, 0%);
	height: 100%;
	background: var(--e-global-color-primary);
	transition: width 0.2s ease;
}

.crc-inquiry .crc-ad-photos-item.is-working .crc-ad-photos-bar span {
	width: 30%;
	animation: crc-ad-photos-working 1.2s ease-in-out infinite;
}

.crc-inquiry .crc-ad-photos-item.is-done .crc-ad-photos-bar {
	display: none;
}

.crc-inquiry .crc-ad-photos-item.is-failed::after {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--crc-inquiry-error) 35%, transparent);
	pointer-events: none;
}

@keyframes crc-ad-photos-working {
	from {
		transform: translateX(-100%);
	}

	to {
		transform: translateX(340%);
	}
}

/* Remove and Try again: round buttons on the photo. The theme's button styles don't apply. */
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove:hover,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove:focus,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove:active {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	box-shadow: none;
	color: #fff;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transform: none;
	-webkit-appearance: none;
	appearance: none;
}

.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove:hover,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove:focus-visible {
	background: rgba(0, 0, 0, 0.8);
}

.crc-inquiry .crc-ad-photos-item .crc-ad-photos-remove svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.crc-inquiry .crc-ad-photos-item .crc-ad-photos-retry,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-retry:hover,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-retry:focus,
.crc-inquiry .crc-ad-photos-item .crc-ad-photos-retry:active {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	z-index: 1;
	min-height: 0;
	margin: 0;
	padding: 6px 4px;
	border: 0;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--crc-inquiry-error);
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transform: none;
	-webkit-appearance: none;
	appearance: none;
}

.crc-inquiry .crc-ad-photos-item .crc-ad-photos-state {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* hCaptcha's "I am human" box, with room kept for it while it loads */
.crc-inquiry .crc-inquiry-captcha-field {
	margin-top: 16px;
}

.crc-inquiry .crc-inquiry-captcha {
	min-height: 78px;
}

/* Send button: the site's custom-btn-3 style, full width, with the arrow. */
.crc-inquiry .crc-inquiry-submit {
	width: 100%;
	margin-top: 24px;
}

.crc-inquiry .crc-inquiry-submit .elementor-button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
}

/* A button element has browser styles a link doesn't; this clears them without touching the site's button style. */
.crc-inquiry-button {
	margin: 0;
	border: 0;
	font-family: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.crc-inquiry .crc-inquiry-submit .elementor-button-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.crc-inquiry .crc-inquiry-submit .elementor-button-icon {
	display: flex;
}

/* The arrow moves a little to the right on hover. */
.crc-inquiry .crc-inquiry-submit .crc-inquiry-button-icon {
	flex: none;
	width: 16px;
	height: 16px;
	fill: currentColor;
	transition: transform 0.3s ease;
}

.crc-inquiry .crc-inquiry-submit .elementor-button:hover .crc-inquiry-button-icon,
.crc-inquiry .crc-inquiry-submit .elementor-button:focus-visible .crc-inquiry-button-icon {
	transform: translateX(4px);
}

/* While sending */
.crc-inquiry.is-sending .crc-inquiry-submit .elementor-button {
	opacity: 0.7;
	cursor: progress;
}

/* Sent, or not sent */
.crc-inquiry .crc-inquiry-status {
	margin: 8px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 24px;
}

.crc-inquiry .crc-inquiry-status.is-success {
	background: color-mix(in srgb, var(--e-global-color-primary) 8%, var(--e-global-color-3581a59));
	color: var(--e-global-color-primary);
}

.crc-inquiry .crc-inquiry-status.is-error {
	background: color-mix(in srgb, var(--crc-inquiry-error) 8%, var(--e-global-color-3581a59));
	color: var(--crc-inquiry-error);
}

@media (prefers-reduced-motion: reduce) {
	.crc-inquiry .crc-inquiry-submit .crc-inquiry-button-icon,
	.crc-inquiry .crc-ad-photos-button,
	.crc-inquiry .crc-ad-photos-bar span {
		transition: none;
	}

	.crc-inquiry .crc-ad-photos-item.is-working .crc-ad-photos-bar span {
		width: 100%;
		opacity: 0.5;
		animation: none;
	}
}

/* Desktop: 1367px and up */
@media (min-width: 1367px) {
	.crc-inquiry .crc-inquiry-names {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crc-inquiry .crc-inquiry-row {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
}

/* Laptop: 1366px to 1025px */
@media (max-width: 1366px) and (min-width: 1025px) {
	.crc-inquiry .crc-inquiry-names {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crc-inquiry .crc-inquiry-row {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
}

/* Tablet: 1024px to 768px */
@media (max-width: 1024px) and (min-width: 768px) {
	.crc-inquiry .crc-inquiry-names {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crc-inquiry .crc-inquiry-row {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
}

/* Mobile: 767px and below */
@media (max-width: 767px) {
	.crc-inquiry .crc-inquiry-names {
		grid-template-columns: minmax(0, 1fr);
	}

	.crc-inquiry .crc-inquiry-row {
		grid-auto-flow: row;
		grid-template-columns: minmax(0, 1fr);
	}

	/* The Upload Photos button across the form, easy to tap. */
	.crc-inquiry .crc-ad-photos-button {
		align-self: stretch;
	}
}
