/*
 * Override styles
 * Add project-specific overrides here.
 */

/* Contact form styles for land-wanted page (match p-section--contact) */
.p-section--land-wanted .c-select .wpcf7-not-valid-tip {
	display: none;
}

.p-section--land-wanted .c-select + .error-message {
	color: var(--red);
	font-size: var(--fz-14);
	display: none;
}

.p-section--land-wanted .c-select:has(.wpcf7-not-valid-tip) + .error-message {
	display: block;
	margin-top: 0.5rem;
}

.p-section--land-wanted .required {
	margin-inline: 5px;
	color: var(--red);
}

.p-section--land-wanted .p-text-link {
	margin-bottom: 40px;
	font-weight: var(--fw-600);
}

.p-section--land-wanted .p-text-link a {
	color: var(--theme);
	text-decoration: underline;
}

.p-section--land-wanted .p-form-note {
	margin-block: 10px;
	font-size: var(--fz-14);
}

.p-section--land-wanted .wpcf7-not-valid-tip {
	margin-top: 0.5rem;
	font-size: var(--fz-14);
	color: var(--red);
}

.p-section--land-wanted .wpcf7-spinner {
	display: block;
	margin: 20px auto 0;
}

.p-section--land-wanted .wpcf7-list-item {
	display: block;
	margin-left: 0;
}

.p-section--land-wanted .wpcf7-list-item + .wpcf7-list-item {
	margin-top: var(--sz-1);
}

.p-section--land-wanted .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.p-section--land-wanted .wpcf7-list-item input {
	position: relative;
	appearance: none;
	left: 0;
	margin-right: 4px;
	height: 20px;
	width: 20px;
	border: 1px solid var(--gray);
	box-sizing: border-box;
	border-radius: var(--rd-1);
	background-color: var(--white);
}

.p-section--land-wanted .wpcf7-list-item input::after {
	transition: opacity 0.1s ease;
	opacity: 0;
	content: "";
	position: absolute;
	top: calc(50% - 1.5px);
	left: 50%;
	translate: -50% -50%;
	width: 7px;
	height: 14px;
	border: 2px solid var(--green);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.p-section--land-wanted .wpcf7-list-item input:checked::after {
	opacity: 1;
}

.p-section--land-wanted .wpcf7-list-item input:focus {
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.p-section--land-wanted .p-contact__agree {
	margin: 0 auto;
	width: fit-content;
}

.p-section--land-wanted .p-contact__agree label {
	margin: var(--sz-4) auto var(--sz-1);
	width: fit-content;
}

.p-section--land-wanted .p-contact__agree label a {
	color: var(--text);
	text-decoration: underline;
}

.p-section--land-wanted .p-contact__agree .p-contact__agree-text {
	font-size: var(--fz-14);
	text-align: center;
}

.p-section--land-wanted .p-submit {
	margin-top: 30px;
	width: 100%;
	max-width: 280px;
}

.p-section--land-wanted .p-submit .wpcf7-spinner {
	display: none;
}

.p-section--land-wanted .p-submit:has(input:disabled) {
	pointer-events: none;
	opacity: 0.7;
}

.p-section--land-wanted .p-submit:has(input:disabled):hover::after {
	transform: none;
}

.p-section--land-wanted .p-submit:hover {
	opacity: 0.8;
}

.p-section--land-wanted .p-submit .p-button {
	cursor: pointer;
	width: 100%;
}

.p-section--land-wanted .p-form dl {
	margin-bottom: 30px;
}

.p-section--land-wanted .p-form dl dt {
	margin-bottom: 10px;
	font-size: var(--fz-18);
}

.p-section--land-wanted .p-form .c-select {
	width: 100%;
}

.p-section--land-wanted .p-form .c-select select {
	width: 100%;
}

.p-section--land-wanted .p-land-wanted-contact__title {
	margin: 2rem 0 1rem;
	font-size: 1.5rem;
	font-weight: var(--fw-600);
	text-align: center;
}

.p-section--land-wanted .p-land-wanted-contact__title {
	margin-top: 8rem;
}
