/* ===== フォームトグルコンポーネント ===== */

/* ── スライドトグル ── */
.form-toggle {
	display: flex;
	background: #F3F4F6;
	border-radius: 9999px;
	padding: 4px;
	gap: 4px;
	position: relative;
	margin-bottom: 24px;
}

/* スライドするオレンジインジケーター */
.form-toggle__indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	background: var(--color-primary-orange);
	border-radius: 9999px;
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
	transition: left 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            width 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	pointer-events: none;
}

.form-toggle__btn {
	flex: 1;
	padding: 8px 0;
	background: transparent;
	border: none;
	border-radius: 9999px;
	font-family: 'Roboto', var(--font-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	color: #6B7280;
	cursor: pointer;
	position: relative;
	z-index: 1;
	transition: color 0.28s;
	white-space: nowrap;
	text-align: center;
}

.form-toggle__btn.is-active {
	color: #FFFFFF;
}

/* ── フォームカード ── */
.form-card {
	background: #FFFFFF;
	border: 1px solid rgba(255, 210, 63, 0.6);
	border-radius: 16px;
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
	padding: 33px;
}

.form-card__title {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 900;
	line-height: 28px;
	color: #111827;
	margin-bottom: 24px;
}

/* ── パネル切り替え ── */
.form-panel {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.form-panel[hidden] {
	display: none;
}

.form-panel.is-active {
	display: block;
	opacity: 1;
}

/* ── CF7 フォーム共通スタイル（form-card内） ── */
.form-card .wpcf7 fieldset {
	border: none;
}

.form-card .wpcf7 p {
	margin-bottom: 16px;
}

.form-card .wpcf7 p:last-child {
	margin-bottom: 0;
}

/* CF7 が改行をbrタグに変換するため非表示にする */
.form-card .wpcf7 br {
	display: none;
}

/* CF7のラッパーspanをブロック要素にしてフル幅にする */
.form-card .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

.form-card label {
	display: block;
	font-family: 'Roboto', var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	color: #6B7280;
	line-height: 16px;
}

.form-card label .req,
.form-card label abbr {
	color: #FF6B9D;
	text-decoration: none;
	font-style: normal;
	margin-left: 2px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
	display: block;
	width: 100%;
	padding: 11px 17px;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: #111827;
	outline: none;
	transition: border-color 0.15s, background 0.15s;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.form-card input[type="text"]:focus,
.form-card input[type="email"]:focus,
.form-card input[type="tel"]:focus,
.form-card textarea:focus {
	border-color: var(--color-primary-orange);
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.form-card input::placeholder,
.form-card textarea::placeholder {
	color: #9CA3AF;
}

.form-card textarea {
	resize: vertical;
	min-height: 120px;
}

.form-card input[type="submit"] {
	display: block;
	width: 100%;
	padding: 12px 0;
	background: var(--color-primary-orange);
	color: #FFFFFF;
	border: none;
	border-radius: 9999px;
	font-family: 'Roboto', var(--font-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
	transition: opacity 0.15s;
	margin-top: 16px;
}

.form-card input[type="submit"]:hover {
	opacity: 0.88;
}

/* バリデーションエラー */
.form-card .wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #FF6B9D;
}

.form-card .wpcf7-not-valid {
	border-color: #FF6B9D !important;
}

/* 送信結果・スクリーンリーダー通知は非表示（トーストで代替） */
.wpcf7-response-output,
.screen-reader-response {
	display: none !important;
}

.form-card .ajax-loader {
	display: none;
}

/* ===== トースト通知 ===== */
.toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(16px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	background: #111827;
	color: #FFFFFF;
	border-radius: 9999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	white-space: nowrap;
}

.toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.toast__icon {
	flex-shrink: 0;
	color: #34D399;
}

/* ===== reCAPTCHA ===== */
.grecaptcha-badge {
	visibility: hidden !important;
}

.recaptcha-notice {
	margin-top: 16px;
	font-size: 13px;
	color: #9CA3AF;
	line-height: 1.6;
	text-align: center;
}

.recaptcha-notice a {
	color: #9CA3AF;
	text-decoration: underline;
}
