/* ===============================================
    Site forms (registration forms)
    Self-contained replacement for the old Quform
    theme CSS - matches the site's existing colours,
    type and spacing.
================================================== */

.reg-form {
	max-width: 640px;
}

/* ---[ Message banner ]--- */
.reg-message {
	display: none;
	margin-bottom: 24px;
	padding: 14px 18px;
	border-radius: 3px;
	background: #eafaf3;
	color: #136c53;
	border: 1px solid #b8e6d3;
	font-size: 14px;
}
.reg-message.is-visible { display: block; }
.reg-message.is-error {
	background: #fdecea;
	color: #8a2a20;
	border-color: #f1c3bd;
}

/* ---[ Field layout - label always above the control ]--- */
.reg-field {
	margin-bottom: 32px;
}
.reg-field__label {
	display: block;
	margin-bottom: 10px;
	color: #4a4a4a;
	font-size: 15px;
	font-weight: 600;
}
.reg-field__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.reg-field__label-row .reg-field__label {
	margin-bottom: 0;
}
.reg-view-map {
	flex: 0 0 auto;
	padding: 0;
	border: none;
	background: none;
	color: #01b09b;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.reg-view-map:hover,
.reg-view-map:focus {
	color: #018b7c;
}
.reg-field__required {
	color: #c0392b;
	margin-left: 2px;
}
.reg-field__hint {
	display: block;
	margin-top: 4px;
	color: #918f8f;
	font-size: 12px;
	font-weight: normal;
}
.reg-field__error {
	display: block;
	margin-top: 6px;
	color: #c0392b;
	font-size: 13px;
}

.reg-field__control input[type="text"],
.reg-field__control input[type="email"],
.reg-field__control input[type="number"],
.reg-field__control select,
.reg-field__control textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 3px;
	background: #fff;
	color: #4a4a4a;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}
.reg-field__control input:focus,
.reg-field__control select:focus,
.reg-field__control textarea:focus {
	outline: none;
	border-color: #01b09b;
}
.reg-field__control textarea {
	resize: vertical;
	min-height: 100px;
}
.reg-field__control select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23888' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 32px;
}

/* ---[ Two-up field row (e.g. Name + Email) ]--- */
.reg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}
.reg-row .reg-field {
	flex: 1 1 240px;
}

/* ---[ Checkbox / radio options ]--- */
.reg-options.is-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 14px;
}
.reg-option {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #4a4a4a;
	font-size: 15px;
}
.reg-option input {
	flex: 0 0 auto;
}
.reg-option label {
	line-height: 1.3;
}

.reg-options-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px 28px;
	margin-top: 4px;
}
@media (max-width: 700px) {
	.reg-options-grid { grid-template-columns: 1fr; }
}

.reg-boroughs {
	margin-bottom: 32px;
}
.reg-boroughs.is-empty { display: none; }

.reg-section-title {
	margin: 0 0 10px;
	color: #01b09b;
	font-size: 18px;
	font-weight: 600;
}
.reg-section-hint {
	margin: 0 0 16px;
	color: #727272;
	font-size: 13px;
}

/* ---[ Selected-area pills ]--- */
.reg-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.reg-pills:empty { display: none; }
.reg-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 6px 6px 14px;
	background: #eafaf3;
	border: 1px solid #b8e6d3;
	border-radius: 999px;
	color: #136c53;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.reg-pill__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	border: none;
	border-radius: 50%;
	background: rgba(19, 108, 83, .12);
	color: #136c53;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.reg-pill__remove:hover {
	background: rgba(19, 108, 83, .25);
}

/* ---[ Conditional fields ]--- */
.reg-conditional.is-hidden { display: none; }

/* ---[ Submit ]--- */
.reg-submit {
	margin-top: 30px;
}
.reg-submit__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 34px;
	border: none;
	border-radius: 3px;
	background: #01b09b;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}
.reg-submit__btn:hover,
.reg-submit__btn:focus {
	background: #018b7c;
}
.reg-submit__btn:disabled {
	opacity: .65;
	cursor: not-allowed;
}
.reg-submit__btn img {
	width: 10px;
}

/* ---[ Map modal ]--- */
.map-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	padding: 24px;
	align-items: center;
	justify-content: center;
}
.map-modal.is-open {
	display: flex;
}
.map-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .65);
}
.map-modal__dialog {
	position: relative;
	max-width: min(900px, 100%);
	background: #fff;
	border-radius: 4px;
	padding: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.map-modal__image {
	display: block;
	max-width: 100%;
	/* Viewport minus the modal's own outer (24px) + dialog inner (16px)
	   padding on each edge, so the image always fits without scrolling. */
	max-height: calc(100vh - 80px);
	width: auto;
	height: auto;
	border-radius: 2px;
}
.map-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(1, 176, 155, .9);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.map-modal__close:hover {
	background: #018b7c;
}
