/*
 * BM Real Estate — Public forms (shared look)
 * ==================================================================
 * Every public form uses these classes, so they all look the same.
 *
 * THEME-PROOFING: Elementor's kit styles every input with selectors
 * like ".elementor-kit-5 input:not([type=button]):not([type=submit])"
 * (strength 0,3,1 — and 0,4,1 with :focus). So field rules here use
 * the control class TWICE (".bm-rlst-form__control.bm-rlst-form__control")
 * to reach 0,4,0 / 0,5,0 and always win, without !important. The
 * :focus state repeats the whole base rule, since kits restyle focus too.
 * Buttons list :hover/:focus next to the base rule (gotcha 11).
 * ================================================================== */

.bm-rlst-wrap .bm-rlst-form {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-form__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.bm-rlst-wrap .bm-rlst-form__body[hidden],
.bm-rlst-wrap .bm-rlst-form__group[hidden],
.bm-rlst-wrap .bm-rlst-form__success[hidden] { display: none; }

/* --- Honeypot: off-screen, never seen or focused by people ---------- */
.bm-rlst-wrap .bm-rlst-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Field: label, control, error ------------------------------------ */
.bm-rlst-wrap .bm-rlst-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.bm-rlst-wrap .bm-rlst-form__label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-form__req { color: var(--bm-rlst-unavailable); }

.bm-rlst-wrap .bm-rlst-form .bm-rlst-form__control.bm-rlst-form__control,
.bm-rlst-wrap .bm-rlst-form .bm-rlst-form__control.bm-rlst-form__control:focus {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--bm-rlst-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--bm-rlst-title);
	font-family: inherit;
	font-size: 16px; /* 16px+ stops phones from zooming in on focus */
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bm-rlst-wrap .bm-rlst-form textarea.bm-rlst-form__control.bm-rlst-form__control,
.bm-rlst-wrap .bm-rlst-form textarea.bm-rlst-form__control.bm-rlst-form__control:focus {
	min-height: 110px;
	resize: vertical;
}
.bm-rlst-wrap .bm-rlst-form select.bm-rlst-form__control.bm-rlst-form__control,
.bm-rlst-wrap .bm-rlst-form select.bm-rlst-form__control.bm-rlst-form__control:focus {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23584D4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}
.bm-rlst-wrap .bm-rlst-form .bm-rlst-form__control.bm-rlst-form__control::placeholder { color: var(--bm-rlst-muted); opacity: 1; }
.bm-rlst-wrap .bm-rlst-form .bm-rlst-form__control.bm-rlst-form__control:hover { border-color: var(--bm-rlst-main); }
.bm-rlst-wrap .bm-rlst-form .bm-rlst-form__control.bm-rlst-form__control:focus {
	border-color: var(--bm-rlst-title);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 172, 0, .35);
}
.bm-rlst-wrap .bm-rlst-form .is-invalid .bm-rlst-form__control.bm-rlst-form__control {
	border-color: var(--bm-rlst-unavailable);
}
.bm-rlst-wrap .bm-rlst-form .is-invalid .bm-rlst-form__control.bm-rlst-form__control:focus {
	box-shadow: 0 0 0 3px rgba(217, 45, 32, .2);
}
.bm-rlst-wrap .bm-rlst-form__error {
	display: flex;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bm-rlst-unavailable);
}
.bm-rlst-wrap .bm-rlst-form__error[hidden] { display: none; }

/* --- Checkbox row ("Θα ήθελα να με καλέσετε") ------------------------ */
.bm-rlst-wrap .bm-rlst-form__check {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--bm-rlst-line);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bm-rlst-title);
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.bm-rlst-wrap .bm-rlst-form__check:hover { border-color: var(--bm-rlst-main); }
.bm-rlst-wrap .bm-rlst-form__check:has(input:checked) {
	border-color: var(--bm-rlst-title);
	background: var(--bm-rlst-soft);
}
.bm-rlst-wrap .bm-rlst-form input.bm-rlst-form__box.bm-rlst-form__box {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid var(--bm-rlst-title);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	display: grid;
	place-content: center;
}
.bm-rlst-wrap .bm-rlst-form input.bm-rlst-form__box.bm-rlst-form__box::before {
	content: '';
	width: 12px;
	height: 12px;
	transform: scale(0);
	transition: transform .12s ease;
	background: var(--bm-rlst-on-accent);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.bm-rlst-wrap .bm-rlst-form input.bm-rlst-form__box.bm-rlst-form__box:checked {
	border-color: var(--bm-rlst-accent);
	background: var(--bm-rlst-accent);
}
.bm-rlst-wrap .bm-rlst-form input.bm-rlst-form__box.bm-rlst-form__box:checked::before { transform: scale(1); }
.bm-rlst-wrap .bm-rlst-form input.bm-rlst-form__box.bm-rlst-form__box:focus-visible {
	outline: 2px solid var(--bm-rlst-title);
	outline-offset: 2px;
}

/* Fields revealed by the checkbox: a soft panel joined to it. */
.bm-rlst-wrap .bm-rlst-form__group {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 14px;
	border-radius: 10px;
	background: var(--bm-rlst-soft);
	animation: bm-rlst-form-in .2s ease;
}
@keyframes bm-rlst-form-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- Submit, status, privacy ----------------------------------------- */
.bm-rlst-wrap .bm-rlst-form__submit,
.bm-rlst-wrap .bm-rlst-form__submit:hover,
.bm-rlst-wrap .bm-rlst-form__submit:focus,
.bm-rlst-wrap .bm-rlst-form__submit:disabled {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 2px 0 0;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--bm-rlst-accent);
	box-shadow: none;
	color: var(--bm-rlst-on-accent);
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: opacity .15s ease;
}
.bm-rlst-wrap .bm-rlst-form__submit:disabled { opacity: .7; cursor: progress; }
.bm-rlst-wrap .bm-rlst-form__submit:focus-visible { outline: 2px solid var(--bm-rlst-title); outline-offset: 3px; }
@media (hover: hover) {
	.bm-rlst-wrap .bm-rlst-form__submit:hover { opacity: .9; }
}

.bm-rlst-wrap .bm-rlst-form__status {
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.bm-rlst-wrap .bm-rlst-form__status[hidden] { display: none; }
.bm-rlst-wrap .bm-rlst-form__status.is-error {
	background: #fdecea;
	color: #a1241a; /* 6.4:1 on that pink */
}

.bm-rlst-wrap .bm-rlst-form__privacy {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--bm-rlst-muted);
	text-align: center;
}
.bm-rlst-wrap .bm-rlst-form__privacy a,
.bm-rlst-wrap .bm-rlst-form__privacy a:visited {
	color: var(--bm-rlst-title);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Success panel ---------------------------------------------------- */
.bm-rlst-wrap .bm-rlst-form__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 8px 6px;
	text-align: center;
	outline: none;
	animation: bm-rlst-form-in .25s ease;
}
.bm-rlst-wrap .bm-rlst-form__success-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: var(--bm-rlst-accent);
	color: var(--bm-rlst-on-accent);
}
.bm-rlst-wrap .bm-rlst-form__success-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bm-rlst-wrap .bm-rlst-form__success-title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-form__success-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bm-rlst-muted);
}

@media (prefers-reduced-motion: reduce) {
	.bm-rlst-wrap .bm-rlst-form__group,
	.bm-rlst-wrap .bm-rlst-form__success { animation: none; }
	.bm-rlst-wrap .bm-rlst-form input.bm-rlst-form__box.bm-rlst-form__box::before { transition: none; }
}
