/*
 * Your Door (step 1): the postcode form, the address list, the address form and the out of area notice.
 * Sits on top of base.css. Mobile is below 900px.
 */

.hi-door .hi-lead {
	max-width: none;
}

/* ---------- Postcode form ---------- */

.hi-door-find {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 36px;
}

/* ---------- "Your Postcode W4 2LT Change" row ---------- */

.hi-door-postcode {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	margin-top: 36px;
	padding: 0 22px;
	background: var(--hi-sand);
}

.hi-door-postcode__text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 16px;
}

.hi-door-postcode__label,
.hi-door-postcode__change {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.hi-door-postcode__value {
	font-size: 20px;
}

.hi-door-postcode__change {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 44px;
	color: var(--hi-navy);
	text-decoration: underline;
}

.hi-door-postcode__change:hover {
	color: var(--hi-accent);
}

/* ---------- Address list: a radio group drawn as selectable rows ---------- */

.hi-door-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

.hi-door-option {
	position: relative;
}

/* The radio itself is kept for the keyboard and for screen readers, and drawn by its label. */
.hi-door-option__input {
	position: absolute;
	top: 50%;
	left: 22px;
	width: 1px;
	height: 1px;
	margin: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	-webkit-appearance: none;
	appearance: none;
}

.hi-door-option__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 8px 22px;
	border: 2px solid var(--hi-sand);
	background: var(--hi-ivory);
	color: var(--hi-navy);
	font-size: 18px;
	line-height: 1.3;
	cursor: pointer;
}

.hi-door-option__label:hover {
	border-color: var(--hi-navy);
}

.hi-door-option__tick {
	display: none;
	flex: none;
	color: var(--hi-blush);
}

.hi-door-option__input:checked + .hi-door-option__label {
	border-color: var(--hi-navy);
	background: var(--hi-navy);
	color: var(--hi-ivory);
}

.hi-door-option__input:checked + .hi-door-option__label .hi-door-option__tick {
	display: block;
}

.hi-door-option__input:focus-visible + .hi-door-option__label {
	outline: 3px solid var(--hi-blush);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px var(--hi-navy);
}

.hi-door-error {
	margin-top: 12px;
}

.hi-door-submit {
	margin-top: 32px;
}

/* ---------- Address form: the same fields as the postcode form, one under the other ---------- */

.hi-door-manual {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 36px;
}

.hi-door-manual .hi-field {
	gap: 12px;
}

.hi-door-manual .hi-door-error {
	margin-top: 0;
}

.hi-door-manual .hi-door-submit {
	margin-top: 12px;
}

/* ---------- The quiet link under a form: another way to say where she lives ---------- */

.hi-door-other {
	margin-top: 20px;
}

/* ---------- Out of area ---------- */

.hi-door-notice {
	margin-top: 36px;
	margin-bottom: 0;
	padding: 24px 28px;
}

.hi-door-notice p {
	margin-top: 8px;
}

/* ---------- Mobile ---------- */

@media (max-width: 899px) {
	.hi-door-find {
		gap: 10px;
		margin-top: 24px;
	}

	.hi-door-postcode {
		gap: 12px;
		min-height: 56px;
		margin-top: 24px;
		padding: 0 16px;
	}

	.hi-door-postcode__text {
		gap: 0 12px;
	}

	.hi-door-postcode__label,
	.hi-door-postcode__change {
		font-size: 12px;
	}

	.hi-door-postcode__value {
		font-size: 17px;
	}

	.hi-door-list {
		gap: 8px;
		margin-top: 16px;
	}

	.hi-door-option__input {
		left: 16px;
	}

	.hi-door-option__label {
		gap: 12px;
		min-height: 56px;
		padding: 8px 16px;
		font-size: 16px;
	}

	.hi-door-option__tick {
		width: 22px;
		height: 22px;
	}

	.hi-door-submit {
		margin-top: 24px;
	}

	.hi-door-manual {
		gap: 16px;
		margin-top: 24px;
	}

	.hi-door-manual .hi-field {
		gap: 10px;
	}

	.hi-door-manual .hi-door-submit {
		margin-top: 8px;
	}

	.hi-door-other {
		display: flex;
		width: 100%;
		margin-top: 12px;
	}

	.hi-door-notice {
		margin-top: 24px;
		padding: 16px 20px;
	}
}
