/* Property request form ([mr_request_form]) — same look as the homepage sections. */

.mrq {
	--g: #0b823e;
	--g-dk: #076530;
	--g-soft: #eaf5ee;
	--r: #dd003b;
	--ink: #1f2a24;
	--muted: #5b6962;
	--line: #e4eae6;
	--pill-line: #d8e2db;
	--bg: #f5f8f6;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}
.mrq *, .mrq *::before, .mrq *::after { box-sizing: border-box; }
.mrq--card { max-width: 880px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(16, 40, 26, .08); }
@media (max-width: 680px) { .mrq--card { padding: 22px 16px; border-radius: 20px; } }
.mrq [hidden] { display: none !important; }
.mrq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mrq .mr-h-i { flex: none; width: 1.15em; height: 1.15em; }

/* Step dots + progress */
.mrq .mrq-steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; } /* .mrq: beats the homepage's list reset */
.mrq-steps li { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.mrq-dot {
	display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
	background: var(--line); color: var(--muted); font-size: 12px; font-weight: 700; transition: background-color .25s, color .25s;
}
.mrq-step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrq-steps li.is-current { color: var(--ink); }
.mrq-steps li.is-current .mrq-dot { background: var(--g); color: #fff; box-shadow: 0 0 0 4px rgba(11, 130, 62, .15); }
.mrq-steps li.is-done .mrq-dot { background: var(--g-soft); color: var(--g); }
.mrq-progress { height: 4px; margin-bottom: 26px; overflow: hidden; border-radius: 999px; background: var(--line); }
.mrq-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--g); transition: width .35s ease; }

/* Steps */
.mrq-form { margin: 0; }
.mrq-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.mrq-step.is-active { animation: mrq-in .35s ease both; }
@keyframes mrq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mrq-q { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0 !important; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3; outline: none; }

/* Big choice tiles (type, rent / buy) */
.mrq-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } /* the nine property types, 3 × 3 */
.mrq-tiles--wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.mrq-tile { position: relative; display: block; margin: 0; cursor: pointer; }
.mrq-tile input, .mrq-pill input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mrq-tile-in {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%;
	padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
	color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3;
	transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.mrq-tile-in .mr-h-i { width: 26px; height: 26px; color: var(--g); }
.mrq-tile-in .mr-type-icon { display: inline-flex; align-items: center; height: 26px; color: var(--g); font-size: 24px; line-height: 1; }
.mrq-tile-in .mr-type-icon i { color: inherit; font-size: inherit; }
.mrq-tile--text .mrq-tile-in { gap: 4px; padding: 18px 20px; }
.mrq-tile--text strong { font-size: 18px; }
.mrq-tile--text small { color: var(--muted); font-size: 13px; font-weight: 500; }
.mrq-tile:hover .mrq-tile-in { border-color: var(--g); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 40, 26, .08); }
.mrq-tile input:checked + .mrq-tile-in { border-color: var(--g); background: var(--g-soft); box-shadow: 0 0 0 3px rgba(11, 130, 62, .12); }
.mrq-tile input:focus-visible + .mrq-tile-in { outline: 3px solid rgba(11, 130, 62, .35); outline-offset: 2px; }

/* Fields */
.mrq-fields { display: grid; gap: 22px; }
.mrq-fields--2 { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.mrq-field--full { grid-column: 1 / -1; }
.mrq-field { min-width: 0; }
.mrq-label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.mrq-label em { color: var(--muted); font-style: normal; font-weight: 500; }
.mrq-input {
	display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
	border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
	color: var(--ink); font: inherit; font-size: 15px; box-shadow: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
textarea.mrq-input { min-height: 96px; resize: vertical; }
.mrq-input:hover { border-color: #b9d6c4; }
.mrq-input:focus { border-color: var(--g); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(11, 130, 62, .12); }
.mrq-input::placeholder { color: #8a958f; }

/* Pills (no ticks) */
.mrq-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mrq-pill { position: relative; margin: 0; cursor: pointer; }
.mrq-pill span {
	display: inline-flex; align-items: center; padding: 9px 16px;
	border: 1.5px solid var(--pill-line); border-radius: 999px; background: #fff;
	color: #242429; font-size: 14px; font-weight: 500; line-height: 1.2;
	transition: background-color .15s, border-color .15s, color .15s;
}
.mrq-pill:hover span { border-color: var(--g); color: var(--g); }
.mrq-pill input:checked + span { border-color: var(--g); background: var(--g); color: #fff; }
.mrq-pill input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 2px; }

/* Phone: country code + number */
.mrq-phone { display: flex; gap: 8px; }
.mrq-cc { position: relative; flex: none; width: 96px; margin: 0; }
.mrq-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mrq-cc-show {
	display: flex; align-items: center; justify-content: space-between; height: 100%; min-height: 50px; padding: 0 12px 0 14px;
	border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; pointer-events: none;
}
.mrq-cc-show::after { content: ""; width: 7px; height: 7px; margin-left: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.mrq-cc select:focus-visible + .mrq-cc-show { border-color: var(--g); box-shadow: 0 0 0 3px rgba(11, 130, 62, .12); }
.mrq-phone .mrq-input { flex: 1; min-width: 0; }
.mrq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Budget, dates, counts */
.mrq-range { display: flex; align-items: center; gap: 10px; }
.mrq-range-dash { color: var(--muted); }
.mrq-money, .mrq-date { position: relative; flex: 1; min-width: 0; margin: 0; }
.mrq-money span { position: absolute; top: 50%; left: 14px; color: var(--muted); font-size: 13px; font-weight: 600; transform: translateY(-50%); pointer-events: none; }
.mrq-money .mrq-input { padding-left: 50px; }
.mrq-date span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.mrq-count { display: inline-flex; align-items: center; overflow: hidden; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.mrq-count button { width: 46px; height: 46px; padding: 0; border: 0; background: transparent; color: var(--g); font-size: 22px; font-weight: 600; cursor: pointer; }
.mrq-count button:hover { background: var(--g-soft); }
.mrq-count input { width: 56px; height: 46px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.mrq-count input::-webkit-inner-spin-button, .mrq-count input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mrq-check { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.mrq-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--g); }

/* Review: the three groups side by side as square tiles (they grow if a
   long answer needs more room); the search fee stays a full-width box below. */
.mrq-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mrq-review-group {
	display: flex; flex-direction: column; aspect-ratio: 1 / 1; min-width: 0; padding: 14px 16px;
	border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
}
.mrq-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mrq-review-head span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mrq-edit { flex: none; padding: 3px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--g); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.mrq-edit:hover { border-color: var(--g); }
.mrq-review .mrq-chips { gap: 5px; }
.mrq-review .mrq-chips span { padding: 4px 10px; font-size: 12px; }
.mrq-review ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mrq-review li { color: var(--ink); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.mrq-review-notes { margin: 8px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mrq-review + .mrq-fee { margin-top: 14px; }

/* Summary + fee */
.mrq-summary { margin-top: 22px; }
.mrq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mrq-chips span { padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; }
.mrq-fee { margin-top: 18px; padding: 18px 20px; border: 1.5px solid #cfe6d8; border-radius: 16px; background: var(--g-soft); }
.mrq-fee-head { margin-bottom: 6px; color: var(--g); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mrq-fee p { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.mrq-fee-rows { overflow: hidden; border-radius: 12px; background: #fff; }
.mrq-fee-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.mrq-fee-row:first-child { border-top: 0; }
.mrq-fee-row span { color: var(--ink); font-size: 14px; font-weight: 600; }
.mrq-fee-row strong { color: var(--ink); font-size: 17px; white-space: nowrap; }
.mrq-fee-row--due strong { color: var(--r); font-size: 20px; }
.mrq-fee-row em { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--r); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.mrq-fee-row--soft span, .mrq-fee-row--soft strong { color: var(--muted); font-size: 13px; font-weight: 500; }
.mrq-agree { flex-wrap: wrap; margin-top: 14px; }
.mrq-agree > span { flex: 1; min-width: 0; }
.mrq-agree .mrq-field-msg { flex-basis: 100%; margin: 2px 0 0 28px; }

/* Errors */
.mrq-field.is-error .mrq-input, .mrq-field.is-error .mrq-pill span, .mrq-agree.is-error { border-color: var(--r); }
.mrq-field-msg { margin: 8px 0 0; color: var(--r); font-size: 13px; font-weight: 500; }
.mrq-agree.mrq-field.is-error, .mrq-agree.is-error { color: var(--r); }
.mrq-error { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fdecf1; color: var(--r); font-size: 14px; font-weight: 500; }

/* Back / continue */
.mrq-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.mrq-nav [data-next] { margin-left: auto; }
.mrq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.mrq-btn:hover { transform: translateY(-1px); }
.mrq-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.mrq-btn--green { background: var(--g); color: #fff !important; }
.mrq-btn--green:hover { background: var(--g-dk); }
.mrq-btn--ghost { border-color: var(--line); background: #fff; color: var(--ink) !important; }
.mrq-btn--ghost:hover { border-color: var(--g); color: var(--g) !important; }

/* Sent */
.mrq-done { padding: 24px 8px; text-align: center; outline: none; animation: mrq-in .4s ease both; }
.mrq-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--g); color: #fff; }
.mrq-done-icon .mr-h-i { width: 30px; height: 30px; }
.mrq-done h3 { margin: 0 0 8px; color: var(--ink); font-size: 24px; font-weight: 700; }
.mrq-done p { max-width: 460px; margin: 0 auto 8px; color: var(--muted); }
.mrq-ref { color: var(--g) !important; font-weight: 700; }
.mrq-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Phones */
@media (max-width: 680px) {
	.mrq-steps li:not(.is-current) .mrq-step-label { display: none; }
	.mrq-steps li { flex: none; }
	.mrq-steps li.is-current { flex: 1; }
	.mrq-q { font-size: 18px; }
	.mrq-tiles { gap: 8px; }
	.mrq-tile-in { gap: 8px; padding: 12px 10px; font-size: 13px; }
	.mrq-tile-in .mr-h-i { width: 22px; height: 22px; }
	.mrq-tile-in .mr-type-icon { height: 22px; font-size: 21px; }
	.mrq-tiles--wide { grid-template-columns: 1fr 1fr; }
	.mrq-review { display: flex; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
	.mrq-review::-webkit-scrollbar { display: none; }
	.mrq-review-group { flex: 0 0 72%; scroll-snap-align: start; }
	.mrq-tile--text .mrq-tile-in { flex-direction: column; align-items: flex-start; }
	.mrq-fields--2 { grid-template-columns: 1fr; }
	.mrq-range { flex-wrap: wrap; }
	.mrq-range-dash { display: none; }
	.mrq-money, .mrq-date { flex: 1 1 140px; }
	.mrq-nav .mrq-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.mrq *, .mrq *::before, .mrq *::after { animation: none !important; transition: none !important; }
}
