/*
 * フォーム専用CSS（お問い合わせ・イベント申込）
 */

/* ページタイトル */
.c-page-title {
	font-size: 32px;
	font-weight: bold;
	color: #333;
	text-align: center;
	margin: 40px 0;
	padding-bottom: 20px;
	border-bottom: 3px solid #0071BC;
}

/* フォームコンテナ */
.c-form-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.c-form {
	background: #fff;
}

.c-form-section {
	margin-bottom: 40px;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 8px;
}

.c-form-section-title {
	font-size: 20px;
	font-weight: bold;
	color: #333;
	margin: 0 0 20px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #0071BC;
}

/* フォームグループ */
.c-form-group {
	margin-bottom: 25px;
}

.c-form-group:last-child {
	margin-bottom: 0;
}

.c-form-group.has-error .c-form-input,
.c-form-group.has-error .c-form-textarea,
.c-form-group.has-error .c-form-select {
	border-color: #e74c3c;
}

/* ラベル */
.c-form-label {
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
	color: #333;
	font-size: 15px;
}

.c-form-required {
	display: inline-block;
	background: #e74c3c;
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 5px;
	font-weight: bold;
}

/* 入力フィールド */
.c-form-input,
.c-form-textarea,
.c-form-select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s;
	background: #fff;
	box-sizing: border-box;
}

.c-form-input:focus,
.c-form-textarea:focus,
.c-form-select:focus {
	outline: none;
	border-color: #0071BC;
}

.c-form-input::placeholder,
.c-form-textarea::placeholder {
	color: #999;
}

.c-form-input-small {
	max-width: 200px;
}

.c-form-textarea {
	resize: vertical;
	min-height: 100px;
}

.c-form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

/* エラー表示 */
.c-form-error {
	color: #e74c3c;
	font-size: 13px;
	margin-top: 5px;
	display: block;
}

.c-form-error-box {
	background: #fee;
	border: 2px solid #e74c3c;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.c-form-error-box p {
	color: #e74c3c;
	margin: 5px 0;
	font-weight: bold;
}

.c-form-notice {
	background: #e3f2fd;
	border-left: 4px solid #2196f3;
	padding: 15px;
	margin-bottom: 30px;
	color: #333;
	font-size: 15px;
}

/* チェックボックス・ラジオボタン */
.c-form-checkbox-group,
.c-form-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.c-form-checkbox,
.c-form-radio {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: all 0.3s;
}

.c-form-checkbox:hover,
.c-form-radio:hover {
	background: #f5f5f5;
}

.c-form-checkbox input[type="checkbox"],
.c-form-radio input[type="radio"] {
	margin: 4px 10px 0 0;
	cursor: pointer;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.c-form-checkbox span,
.c-form-radio span {
	flex: 1;
}

/* イベント選択リスト */
.c-form-event-list {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	background: #fff;
}

.c-form-event-item {
	margin-bottom: 5px;
}

.c-form-event-item:last-child {
	margin-bottom: 0;
}

.c-form-event-item-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.c-form-event-item-content strong {
	color: #333;
	font-size: 15px;
}

.c-form-event-item-content small {
	color: #666;
	font-size: 13px;
}

/* フレックスレイアウト */
.c-form-flex {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.c-form-flex * {
	margin-right: 0;
}

/* ボタン */
.c-form-actions {
	text-align: center;
	padding: 30px 0;
}

.c-form-actions-confirm {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
	text-align: center;
}

.c-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.c-button-primary {
	background: #0071BC;
	color: #fff;
}

.c-button-primary:hover {
	background: #005a96;
	color: #fff;
}

.c-button-secondary {
	background: #6c757d;
	color: #fff;
}

.c-button-secondary:hover {
	background: #545b62;
	color: #fff;
}

.c-button-large {
	padding: 16px 32px;
	font-size: 18px;
}

/* 確認画面テーブル */
.c-form-confirm-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.c-form-confirm-table th,
.c-form-confirm-table td {
	padding: 15px;
	border: 1px solid #ddd;
	text-align: left;
}

.c-form-confirm-table th {
	background: #f5f5f5;
	font-weight: bold;
	width: 200px;
	color: #333;
}

.c-form-confirm-table td {
	background: #fff;
}

/* 完了画面 */
.c-form-complete {
	text-align: center;
	padding: 60px 20px;
}

.c-form-complete-icon {
	font-size: 80px;
	color: #4caf50;
	margin-bottom: 20px;
}

.c-form-complete-title {
	font-size: 28px;
	font-weight: bold;
	color: #333;
	margin-bottom: 20px;
}

.c-form-complete-text {
	font-size: 16px;
	line-height: 1.8;
	color: #666;
	margin-bottom: 20px;
}

.c-form-complete-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 40px;
	flex-wrap: wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.c-page-title {
		font-size: 24px;
		margin: 20px 0;
	}

	.c-form-container {
		padding: 10px;
	}

	.c-form-section {
		padding: 20px 15px;
	}

	.c-form-confirm-table th {
		width: 100px;
		font-size: 13px;
	}

	.c-form-confirm-table th,
	.c-form-confirm-table td {
		padding: 10px;
		font-size: 14px;
	}

	.c-form-actions-confirm {
		flex-direction: column-reverse;
	}

	.c-form-complete-icon {
		font-size: 60px;
	}

	.c-form-complete-title {
		font-size: 22px;
	}

	.c-form-complete-text {
		font-size: 14px;
	}

	.c-form-flex {
		flex-direction: column;
		align-items: stretch;
	}

	.c-form-flex .c-form-select {
		width: 100%;
	}
}

