/* Property Search Request: form page + call to action on property pages (inc/property-request.php). */

/* ---------- Call to action (property pages) ---------- */
.greekim-psr-cta {
	margin: 40px 0 10px;
	padding: 8px;
	border: 1px solid #222;
	border-radius: 18px;
	background: #fff;
}
.greekim-psr-cta__inner {
	background: #0d5eaf;
	border-radius: 12px;
	padding: 48px 24px 40px;
	text-align: center;
	color: #fff;
}
.greekim-psr-cta__title {
	color: #fff !important;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 16px;
}
.greekim-psr-cta__text {
	color: #fff;
	font-size: 18px;
	line-height: 1.5;
	max-width: 620px;
	margin: 0 auto 32px;
}
.greekim-psr-cta__btn,
.greekim-psr-cta__btn:visited {
	display: inline-block;
	min-width: min(100%, 440px);
	padding: 16px 32px;
	background: #ffbb43;
	border: 1px solid #222;
	border-radius: 12px;
	color: #111 !important;
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s;
}
.greekim-psr-cta__btn:hover,
.greekim-psr-cta__btn:focus-visible {
	background: #58b436;
	color: #fff !important;
}
.greekim-psr-cta__note {
	color: #fff;
	font-size: 15px;
	margin: 24px 0 0;
}
@media (max-width: 767px) {
	.greekim-psr-cta__inner { padding: 32px 16px 28px; }
	.greekim-psr-cta__title { font-size: 24px; }
	.greekim-psr-cta__text { font-size: 16px; margin-bottom: 24px; }
	.greekim-psr-cta__btn { font-size: 18px; padding: 14px 20px; width: 100%; }
}

/* ---------- Form ---------- */
.gk-psr {
	max-width: 1066px;
	margin: 24px auto 60px;
	color: #222;
	font-size: 15px;
	line-height: 1.55;
}
.gk-psr *,
.gk-psr *::before,
.gk-psr *::after { box-sizing: border-box; }
/* The page content inherits text-align:left from the theme; follow the form's language instead. */
.gk-psr[dir="rtl"] { text-align: right; }
.gk-psr[dir="ltr"] { text-align: left; }
.gk-psr input[type="text"],
.gk-psr input[type="email"],
.gk-psr input[type="tel"] { display: block; }
.gk-psr__money input,
.gk-psr__phone input { display: inline-block; }

.gk-psr__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.gk-psr__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gk-psr__intro,
.gk-psr__sec {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 32px 64px;
	margin-bottom: 8px;
}
.gk-psr__intro { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; border-bottom: 0; padding-top: 48px; }
.gk-psr__intro + .gk-psr__alert + .gk-psr__sec,
.gk-psr__intro + .gk-psr__alert[hidden] + .gk-psr__sec { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.gk-psr__sec:nth-of-type(even) { background: #e5f1fe; border-color: #e5f1fe; }

.gk-psr__heading {
	font-size: 34px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 16px;
	color: #111;
}
.gk-psr__intro { padding-top: 56px; }
.gk-psr__intro p { margin: 0 0 4px; font-size: 15px; max-width: 860px; }
.gk-psr__intro p:last-child { margin-bottom: 0; }
.gk-psr__intro + .gk-psr__alert + .gk-psr__sec { padding-top: 24px; }

.gk-psr__sec-title { margin: 8px 0 18px; font-size: 22px; line-height: 1.3; }
.gk-psr__toggle {
	all: unset;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 700;
	color: #111;
	cursor: default;
}
/* The theme styles every button:hover (yellow background, white text); section titles must stay plain. */
.gk-psr .gk-psr__toggle,
.gk-psr .gk-psr__toggle:hover,
.gk-psr .gk-psr__toggle:focus,
.gk-psr .gk-psr__toggle:active {
	background: transparent !important;
	color: #111 !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-size: inherit !important;
	line-height: inherit !important;
	height: auto !important;
}
.gk-psr .gk-psr__toggle:focus-visible { outline: 2px solid #0d5eaf !important; outline-offset: 4px; }
.gk-psr__chev { display: none; }

.gk-psr__field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.gk-psr__label { display: block; font-weight: 400; margin: 0 0 6px; padding: 0; font-size: 16px; color: #222; }
.gk-psr__req { color: #d0021b; font-weight: 700; }
.gk-psr__opt { color: #777; font-weight: 400; font-size: 13px; }
.gk-psr__help { color: #333; font-size: 14px; margin: 8px 0 0; max-width: 720px; }

.gk-psr input[type="text"],
.gk-psr input[type="email"],
.gk-psr input[type="tel"],
.gk-psr textarea {
	width: 100%;
	height: auto;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #9a9a9a;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	color: #222;
	box-shadow: none;
	line-height: 1.4;
}
.gk-psr textarea { min-height: 120px; resize: vertical; max-width: 720px; display: block; }
.gk-psr [data-field="name"] input,
.gk-psr [data-field="email"] input { max-width: 260px; }
.gk-psr input:focus,
.gk-psr textarea:focus { outline: 2px solid #0d5eaf; outline-offset: 0; border-color: #0d5eaf; }
.gk-psr [aria-invalid="true"] { border-color: #d0021b !important; }

.gk-psr__row { display: grid; grid-template-columns: 230px 230px; gap: 40px; margin-bottom: 16px; }
.gk-psr__money { display: flex; align-items: center; gap: 8px; }
.gk-psr__money input { text-align: left; }
.gk-psr__cur { font-weight: 600; color: #333; }

.gk-psr__checks { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.gk-psr__checks--grid { display: grid; grid-template-columns: repeat(3, max-content); gap: 14px 56px; }
.gk-psr__check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; margin: 0; font-size: 15px; }
.gk-psr__check input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #ffbb43;
	cursor: pointer;
}
.gk-psr__check a { color: #0d5eaf; text-decoration: underline; }
.gk-psr__other { max-width: 360px; margin-top: -4px; }

.gk-psr__phone { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.gk-psr__phone .gk-psr__code { flex: 0 0 64px; width: 64px; text-align: center; }

.gk-psr__error { color: #d0021b; font-size: 13px; margin-top: 4px; min-height: 0; }
.gk-psr__error:empty { display: none; }
.gk-psr__alert {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #a1160a;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 8px 0;
}

.gk-psr__privacy { margin: 0 0 20px; max-width: 720px; }
.gk-psr__privacy h3 { font-size: 16px; margin: 0 0 6px; color: #111; }
.gk-psr__privacy p { font-size: 14px; margin: 0 0 4px; color: #333; }
.gk-psr__disclaimer { font-size: 14px; color: #333; margin: 24px 0 40px; max-width: 720px; }

.gk-psr__submit {
	display: inline-block;
	min-width: 265px;
	padding: 12px 28px;
	border: 0;
	border-radius: 8px;
	background: #333;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s;
}
.gk-psr__submit:hover,
.gk-psr__submit:focus-visible { background: #58b436; }
.gk-psr__submit[disabled] { opacity: .6; cursor: wait; }

.gk-psr__success {
	background: #e8f5e1;
	border: 1px solid #a8d5a0;
	border-radius: 10px;
	padding: 32px 36px;
	text-align: center;
}
.gk-psr__success h2 { font-size: 24px; margin: 0 0 10px; color: #2e6b22; }
.gk-psr__success p { margin: 0; }

/* Hero photo (page featured image), full width under the header. 100vw includes the scrollbar, so clip the page sideways. */
html:has(.gk-psr-hero),
body:has(.gk-psr-hero) { overflow-x: clip; }
.gk-psr-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: calc(-1 * var(--g5-content-padding-top, 50px));
	height: 470px;
	background: #e5f1fe center 35% / cover no-repeat;
}
@media (max-width: 1199px) { .gk-psr-hero { margin-top: -30px; height: 360px; } }

/* Mobile: accordion */
@media (max-width: 767px) {
	.gk-psr { margin: 16px auto 40px; }
	.gk-psr-hero { height: 220px; }
	.gk-psr__intro,
	.gk-psr__sec { padding: 18px 16px; }
	.gk-psr__intro { padding-top: 24px; }
	.gk-psr__heading { font-size: 24px; }
	.gk-psr [data-field="name"] input,
	.gk-psr [data-field="email"] input,
	.gk-psr__phone { max-width: none; }
	.gk-psr__sec-title { margin: 0; font-size: 17px; }
	.gk-psr__toggle { cursor: pointer; min-height: 32px; }
	.gk-psr__chev {
		display: inline-block;
		width: 10px;
		height: 10px;
		border-right: 2px solid #333;
		border-bottom: 2px solid #333;
		transform: rotate(45deg);
		transition: transform .2s;
		margin-top: -4px;
	}
	.gk-psr__sec.is-open .gk-psr__chev { transform: rotate(-135deg); margin-top: 4px; }
	.gk-psr__panel { display: none; padding-top: 16px; }
	.gk-psr__sec.is-open .gk-psr__panel { display: block; }
	.gk-psr__checks--grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
	.gk-psr__row { grid-template-columns: 1fr; gap: 0; }
	.gk-psr__other,
	.gk-psr__phone { max-width: none; }
	.gk-psr__submit { width: 100%; min-width: 0; }
	.gk-psr__success { padding: 24px 18px; }
}
