/*
 * GitPress Contact — フォームの動きに必要な最小限だけ。
 *
 * 入力欄やボタンの見た目はサイト側のCSS（PixelCraft なら common.css の
 * .form-input / .btn）に任せる。ここで色や余白を決めると、サイトごとに
 * 打ち消し合うことになる。
 */

/* ハニーポット。人には見せず、読み上げもさせない。
   display:none だと埋めないボットがいるので、画面の外に出しておく。 */
.gpcf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* 項目ごとのエラー */
.gpcf-error {
	margin: 0.5em 0 0;
	font-size: var(--font-size-sm, 0.875rem);
	line-height: 1.6;
	color: #d63638;
}

.gpcf-form [aria-invalid="true"] {
	border-color: #d63638;
}

/* フォーム全体のお知らせ */
.gpcf-status {
	margin: 0 0 1.25em;
	padding: 0.9em 1.1em;
	border-radius: var(--radius-sm, 4px);
	font-size: var(--font-size-sm, 0.875rem);
	line-height: 1.8;
	text-align: left;
}

.gpcf-status--error {
	color: #8a1f21;
	background: #fdecec;
	border: 1px solid #f3c2c2;
}

.gpcf-status--done {
	color: #0a5c36;
	background: #e9f7ef;
	border: 1px solid #bfe5cf;
}

/* 送信中 */
.gpcf-form[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

/* 同意のチェック */
.gpcf-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	line-height: 1.8;
	cursor: pointer;
}

.gpcf-consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 0.35em;
	width: 1.1em;
	height: 1.1em;
}

/* 送信後のお礼。ページ側に置いた [data-gpcf-done] が対象。 */
.gpcf-done:focus {
	outline: none;
}
