/*
 * 申込フォーム用の追加CSS
 * 既存のサイトCSS(WordPress時代の .input_wrap / .form_label / .form_input など)はそのまま使えます。
 * このファイルには「確認画面・完了画面・エラー表示・BOT対策欄」に必要な分だけを入れています。
 */

/* hidden 属性が、サイト側の display 指定に負けないようにする */
#entry_app [hidden] { display: none !important; }

/* BOT対策の罠欄:画面外に出す(display:none だと見破るBOTがいるため) */
.hp_field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 「業態」「業種」の縦並び(旧: #labeltate)。既存CSSに #labeltate の指定があれば .labeltate に読み替えてください */
.form_input.labeltate label { display: block; }

/* エラー表示 */
.entry_alert {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid #d9534f;
	background: #fdf1f0;
	color: #a1241f;
}
.field_error {
	margin: 4px 0 14px;
	color: #b3261e;
	font-size: 0.9em;
}
.form_input.has_error input,
.form_input.has_error textarea {
	border-color: #b3261e;
}

/* ボタン */
.entry_buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 28px 0;
}
.entry_buttons button,
.entry_buttons input[type="submit"] {
	min-width: 160px;
	padding: 12px 24px;
	font: inherit;
	cursor: pointer;
}
.entry_buttons button:disabled { cursor: wait; opacity: 0.6; }

/* 確認画面 */
.entry_confirm h3,
.entry_done h3 { margin: 0 0 12px; }
.confirm_section { margin: 0 0 24px; }
.confirm_section h4 { margin: 0 0 8px; }
.confirm_list {
	display: grid;
	grid-template-columns: minmax(130px, 240px) 1fr;
	margin: 0;
	border-top: 1px solid #ccc;
}
.confirm_list dt,
.confirm_list dd {
	margin: 0;
	padding: 10px 8px;
	border-bottom: 1px solid #ccc;
}
.confirm_list dt { font-weight: bold; }
.confirm_list dd {
	white-space: pre-wrap;      /* 備考などの改行をそのまま表示 */
	overflow-wrap: anywhere;
}
.confirm_list dd.confirm_empty { color: #777; }

/* 完了画面 */
.entry_done { padding: 24px 0; }
.entry_done:focus { outline: none; }

@media (max-width: 600px) {
	.confirm_list { grid-template-columns: 1fr; }
	.confirm_list dt { border-bottom: 0; padding-bottom: 0; }
}
