/**
 * Arrange a Viewing page.
 *
 * Brand colours:
 *   ink #1E1F1E   slate #454645   brand #119100   sky #35AFC9   cloud #F3EFE3
 *
 * Two columns: CF7 enquiry form (left) + live property card (right).
 */

.nops-av {
	background: #454645; /* slate */
	color: #f3efe3; /* cloud */
	padding-bottom: 98px;
}

.nops-av a:visited {
	color: inherit;
}

/* ---- Header (matches the page-header block: 220px top / 60px bottom) ---- */
.nops-av-head {
	text-align: center;
	padding-top: 220px; /* clear the overlaid site header */
	padding-bottom: 60px;
}

/* Match the page-header block heading/intro used on contact etc. */
.nops-av-heading {
	margin: 0;
	font-family: "etna", sans-serif;
	font-weight: 400;
	line-height: 1.1;
	font-size: clamp(2.5rem, 3.75vw, 72px); /* 72px */
	color: #f3efe3;
}

.nops-av-intro {
	width: 840px;
	max-width: 100%;
	margin: 24px auto 0;
	font-family: "open-sans", sans-serif;
	font-size: clamp(1rem, 1.04vw, 20px); /* 20px */
	line-height: 28px;
	color: #f3efe3;
}

.nops-av-intro p {
	margin: 0;
}

/* ---- Columns (16px gap, matching contact) ---- */
.nops-av-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: start;
}

@media (max-width: 1024px) {
	.nops-av-cols {
		grid-template-columns: 1fr;
	}
	.nops-av-head {
		padding-top: 160px;
	}
}

/* ---- Left: form column (matches contact field box) ---- */
.nops-av-form-col {
	border: 1px solid #35afc9; /* sky */
	padding: 70px 66px 57px 66px;
}

.nops-av-prop-col {
	border: 1px solid #35afc9; /* sky */
	padding: 40px;
}

/* Match the contact form box title/text. */
.nops-av-form-title {
	margin: 0;
	font-family: "etna", sans-serif;
	font-weight: 400;
	line-height: 1.1;
	font-size: clamp(2rem, 2.5vw, 48px); /* 48px */
	color: #f3efe3;
}

.nops-av-form-text {
	margin-top: 22px; /* 22px below title */
	font-size: clamp(1rem, 1.04vw, 20px); /* 20px */
	line-height: 28px;
	color: #f3efe3;
}

/* 72px below the intro text, like the contact form. */
.nops-av-form-text + .nops-av-form {
	margin-top: 72px;
}

/* ---- Form structure ---- */
.nops-av-group {
	margin-bottom: 40px;
}

.nops-av-group:last-of-type {
	margin-bottom: 0;
}

.nops-av-group-title {
	margin: 0 0 24px;
	font-family: "etna", sans-serif;
	font-weight: 400;
	font-size: 30px;
	color: #f3efe3;
}

.nops-av-row {
	margin-bottom: 16px;
}

/* CF7 auto-p wraps the row in <p> and inserts <br> between the two fields —
   use grid and neutralise those so the fields sit side by side. */
.nops-av-row-two > p {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0;
}

.nops-av-row-two br {
	display: none;
}

.nops-av-row-two .nops-av-field {
	min-width: 0;
}

.nops-av-field {
	display: block;
}

.nops-av-label {
	display: block;
	margin-bottom: 10px;
	font-family: "open-sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: #f3efe3;
}

/* CF7's auto-p scatters <br> between adjacent elements (e.g. after a label).
   Hide them inside the form — spacing is handled by the row/label margins. */
.nops-av-form br {
	display: none;
}

.nops-av-hint {
	display: block;
	margin-top: 8px;
	font-family: "open-sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(243, 239, 227, 0.7);
}

/* Inputs + textarea — match the contact page field styling. */
.nops-av-form input[type="text"],
.nops-av-form input[type="tel"],
.nops-av-form input[type="email"],
.nops-av-form input[type="number"],
.nops-av-form textarea,
.nops-av-form select {
	width: 100%;
	padding: 16px 20px;
	font-family: "open-sans", sans-serif;
	font-size: 16px;
	color: #f3efe3;
	background: transparent;
	border: 1px solid #35afc9; /* sky */
	border-radius: 0;
	appearance: none;
}

.nops-av-form textarea {
	min-height: 150px;
	resize: vertical;
}

.nops-av-form input::placeholder,
.nops-av-form textarea::placeholder {
	color: #f3efe3;
	opacity: 0.85;
}

/* Monthly budget range (two inputs + "to"). */
.nops-av-range {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nops-av-range .nops-av-field {
	flex: 1 1 auto;
}

.nops-av-range-sep {
	font-family: "open-sans", sans-serif;
	font-size: 14px;
	color: #f3efe3;
}

/* ---- Radio groups styled as buttons ---- */
.nops-av-toggle .wpcf7-form-control {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nops-av-toggle .wpcf7-list-item {
	margin: 0;
}

/* Hide the native radio; label is the button. */
.nops-av-toggle input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.nops-av-toggle .wpcf7-list-item-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	padding: 10px 18px;
	font-family: "open-sans", sans-serif;
	font-size: 14px;
	color: #f3efe3;
	border: 1px solid #35afc9; /* sky */
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nops-av-toggle label {
	cursor: pointer;
}

.nops-av-toggle input[type="radio"]:checked + .wpcf7-list-item-label {
	background: #35afc9; /* sky */
	color: #1e1f1e; /* ink */
}

.nops-av-toggle input[type="radio"]:focus + .wpcf7-list-item-label {
	outline: 2px solid #35afc9;
	outline-offset: 2px;
}

/* ---- Checkbox (match requirements) ---- */
/* The "If this one isn't available" title sits ABOVE the box; the bordered
   box wraps only the checkbox + hint. */
.nops-av-match-box {
	border: 1px solid #35afc9; /* sky */
	padding: 24px;
}

.nops-av-check .wpcf7-list-item {
	margin: 0;
}

.nops-av-check .wpcf7-list-item-label {
	font-family: "open-sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #f3efe3;
	cursor: pointer;
}

/* ---- Submit ---- */
.nops-av-row-submit {
	display: flex;
	justify-content: flex-end;
	margin-top: 32px;
	margin-bottom: 0;
}

/* Standard CTA button: 18px, 14px x 59px, 1px sky border, white text, arrow.
   CF7 [submit] is an <input> so the arrow is a background SVG on the right.
   Selector is bumped to beat the _s base input[type=submit] styling. */
.nops-av-form input[type="submit"].nops-av-submit {
	display: inline-flex;
	align-items: center;
	width: auto;
	padding: 14px 70px 14px 59px; /* extra right padding for the arrow */
	font-family: "open-sans", sans-serif;
	font-size: 18px;
	line-height: 1;
	color: #f3efe3; /* white */
	background-color: transparent;
	border: 1px solid #35afc9; /* sky */
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='39.092' height='14.277' viewBox='0 0 39.092 14.277'%3E%3Cpath d='M18.889,107.5l-1.159,1.159,5.159,5.159H-13.064v1.64H22.889l-5.159,5.159,1.159,1.159,7.138-7.138Z' transform='translate(13.064 -107.5)' fill='%23f3efe3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 24px center;
	background-size: 26px auto;
}

.nops-av-form input[type="submit"].nops-av-submit:hover,
.nops-av-form input[type="submit"].nops-av-submit:focus {
	background-color: #35afc9;
	color: #1e1f1e;
	border-color: #35afc9;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='39.092' height='14.277' viewBox='0 0 39.092 14.277'%3E%3Cpath d='M18.889,107.5l-1.159,1.159,5.159,5.159H-13.064v1.64H22.889l-5.159,5.159,1.159,1.159,7.138-7.138Z' transform='translate(13.064 -107.5)' fill='%231e1f1e'/%3E%3C/svg%3E");
}

/* ---- Tom Select (dropdowns) — match the contact page ---- */
.nops-av-form .ts-control {
	min-height: 54px;
	padding: 0 44px 0 20px;
	display: flex;
	align-items: center;
	font-family: "open-sans", sans-serif;
	font-size: 16px;
	color: #f3efe3;
	background: transparent;
	border: 1px solid #35afc9; /* sky */
	border-radius: 0;
	box-shadow: none;
}

.nops-av-form .ts-wrapper.single .ts-control,
.nops-av-form .ts-control input {
	color: #f3efe3;
}

.nops-av-form .ts-wrapper.focus .ts-control,
.nops-av-form .ts-wrapper.input-active .ts-control,
.nops-av-form .ts-wrapper.dropdown-active .ts-control {
	background: transparent;
	color: #f3efe3;
}

.nops-av-form .ts-wrapper.single .ts-control::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 14px;
	height: 8px;
	transform: translateY(-50%);
	background-color: #f3efe3;
	clip-path: polygon(0 15%, 50% 100%, 100% 15%, 88% 0, 50% 78%, 12% 0);
	pointer-events: none;
}

.nops-av-form .ts-wrapper.single.dropdown-active .ts-control::after {
	transform: translateY(-50%) rotate(180deg);
}

.nops-av-form .ts-dropdown {
	margin-top: 2px;
	background: #454645; /* slate */
	border: 1px solid #35afc9;
	border-radius: 0;
}

.nops-av-form .ts-dropdown .option {
	font-family: "open-sans", sans-serif;
	font-size: 16px;
	color: #f3efe3;
	padding: 12px 20px;
}

.nops-av-form .ts-dropdown .option.active,
.nops-av-form .ts-dropdown .option:hover {
	background: #35afc9;
	color: #1e1f1e;
}

/* CF7 response output. */
.nops-av-form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	font-family: "open-sans", sans-serif;
	font-size: 14px;
	border: 1px solid #35afc9;
}

/* ---- Right: property card ---- */
.nops-av-card-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
}

/* Availability: 20px, 32px below the image. */
.nops-av-card-availability {
	margin: 32px 0 0;
	font-family: "open-sans", sans-serif;
	font-size: 20px;
	color: #35afc9; /* sky */
}

/* Street line: 50px, 16px below the availability line. */
.nops-av-card-addr {
	margin: 16px 0 0;
	font-family: "etna", sans-serif;
	font-weight: 400;
	line-height: 1.1;
	font-size: 50px;
	color: #f3efe3;
}

.nops-av-card-addr a {
	color: #f3efe3;
	text-decoration: none;
}

/* Let-type + price: 24px, 25px below the street line. */
.nops-av-card-meta {
	display: flex;
	gap: 24px;
	margin-top: 25px;
	font-family: "open-sans", sans-serif;
	font-size: 24px;
	color: #f3efe3;
}

.nops-av-card-price {
	font-weight: 600;
}

/* Feature-icon row. */
.nops-av-card-features {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin: 25px 0 0;
	padding: 0;
	list-style: none;
	font-family: "open-sans", sans-serif;
	font-size: 16px;
	color: #f3efe3;
}

.nops-av-card-features li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.nops-av-card-icon {
	display: block;
	width: auto;
	height: 22px;
}

/* Match contact's responsive: form box loses right border, gains bottom. */
@media (max-width: 1024px) {
	.nops-av-form-col {
		padding: 40px 32px;
	}
	.nops-av-prop-col {
		padding: 32px;
	}
}

@media (max-width: 640px) {
	.nops-av-form-col {
		padding: 40px 32px;
	}
	.nops-av-prop-col {
		padding: 24px;
	}
	.nops-av-row-two > p {
		grid-template-columns: 1fr;
	}
}
