/* ==========================================================================
   お問い合わせフォーム（ブロック「瀬戸内と：お問い合わせフォーム」）
   項目は inc/content/forms.php、通知先は 設定 > お問い合わせフォーム。
   数値は STUDIO 版に合わせています（入力欄の高さ 50px・送信ボタン 400px）。
   ========================================================================== */

.c-contact-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	font-family: var(--st-font-ui);
}

.c-contact-form > * {
	width: 100%;
	margin: 0;
}

.c-contact-form__error {
	padding: 12px 20px;
	border-radius: 8px;
	background: #fdecec;
	color: #b3261e;
	font-weight: 700;
}

.c-contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.c-contact-form__field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.c-contact-form__field fieldset {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

/* 選択肢の項目は 880px 幅で中央に（STUDIO 版と同じ） */
.c-contact-form__field--radio {
	width: min(880px, 100%);
}

.c-contact-form__label {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--st-text);
}

.c-contact-form__badge {
	padding: 2px 12px;
	border-radius: 1000px;
	background: #e6e6e6;
	color: var(--st-text-strong);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.c-contact-form__badge.is-required {
	background: var(--st-accent);
	color: var(--wp--preset--color--base);
}

.c-contact-form input[type="text"],
.c-contact-form input[type="email"],
.c-contact-form textarea {
	width: 100%;
	height: 50px;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 1px solid var(--st-text);
	border-radius: 4px;
	background: var(--wp--preset--color--base);
	color: var(--st-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.c-contact-form textarea {
	height: 160px;
	resize: vertical;
}

.c-contact-form input::placeholder,
.c-contact-form textarea::placeholder {
	color: #aaa;
}

.c-contact-form__options {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-top: 10px;
}

.c-contact-form__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
}

.c-contact-form__consent {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--st-text);
	cursor: pointer;
}

.c-contact-form input[type="radio"],
.c-contact-form input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--st-primary);
}

.c-contact-form__notes {
	font-family: var(--st-font-base);
	font-size: 16px;
	line-height: 1.9;
	color: var(--st-text);
}

.c-contact-form__submit {
	display: flex;
	justify-content: center;
}

/* 送信ボタン */
.c-contact-form .c-button {
	width: 400px;
	min-width: 0;
	max-width: 100%;
	min-height: 0;
	height: auto;
	padding: 15px;
	border: 1px solid var(--st-primary);
	border-radius: 60px;
	background: var(--wp--preset--color--base);
	color: var(--st-primary);
	font-family: var(--st-font-ui);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.c-contact-form .c-button__label {
	padding-bottom: 2px;
}

@media (max-width: 540px) {
	.c-contact-form__badge {
		font-size: 11px;
	}

	.c-contact-form .c-button {
		width: 260px;
	}
}
