/**** 出欠献金、エグザイル登録などのフォームcss ****/

/**** 出欠献金ページ ****/
/**** 退会者登録ページ ****/
.common-form {
    max-width: 600px;
    margin: 20px auto 60px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
	text-align: center;
}
.common-form .form-info {
    margin-bottom: 24px;
}
.common-form .form-info span {
	font-size: 0.8em;
}
.attendance-donation-form.common-form .form-group {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 20px;
}

.common-form .form-group{
	display: block; 
    margin-bottom: 20px;
}

.common-form .present-radio-button {
    position: relative;
    padding: 10px 35px;
    font-size: 1.2em;
    margin: 0 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f0f0f0;
    color: #666;
    cursor: pointer;
    text-align: center; /* 文字を中央に配置 */
    transition: background-color 0.3s, color 0.3s; /* スムーズな色変化 */
}

.common-form .present-radio-button input {
    display: none; /* デフォルトのラジオボタンを非表示 */
}

.common-form .present-radio-button .checkmark {
    position: relative; 
    display: inline-block;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s; 
}

.common-form .present-radio-button input:checked + .checkmark::before {
    content: attr(data-label);
    color: white;
}

.common-form label {
    display: block;
    margin-bottom: 10px;
	text-align: center;
    margin-top: 35px;
}

.attendance-donation-form.common-form input[type="text"] {
	width: 130px;
    padding: 10px 10px;
    font-size: 18px;
    text-align: right;
    margin-right: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.common-form select,
.common-form input[type="text"],
.common-form input[type="date"]{
	width: 215px;
    padding: 10px 10px;
    font-size: 18px;
    margin-right: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
}
.common-form input[type="date"]{
	margin-bottom: 20px;
}	

.attendance-donation-form select {
    width: 215px;
    font-size: 1.0em;
    text-align: center;
    padding: 10px;
    margin-bottom: 50px;
    border: 1px solid #ccc;
    border-radius: 5px;
	appearance: none; /* 全てのブラウザのデフォルトスタイルを解除 */
    -webkit-appearance: none;/* SafariやChromeのデフォルトスタイルを解除 */
    -moz-appearance: none;/* Firefoxのデフォルトスタイルを解除 */
    outline: none;/* フォーカス時のアウトラインを解除 */
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray"><path d="M7 10l5 5 5-5H7z"/></svg>'); /* ▼マークのアイコン */
    background-repeat: no-repeat;
    background-position: right 10px center; /* アイコンの位置 */
    background-size: 18px; /* アイコンのサイズ */
}
.attendance-donation-form #payment-method{
	margin-bottom: 0px !important;
}

.common-form textarea {
    width: 285px;
    height: 85px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    text-align: left;
}
#timeline-description{
	width: 80%;
    height: 200px;
	resize: vertical;
}

.common-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #a8c2a0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	font-size: 1.0em;
}
#leader-donation-form button{
	background-color: #cca881;
}
#leader-donation-form button:hover{
	background-color: #b29371;
}

.attendance-donation-form button:hover{
    background-color: #1f4027;
}
.exile-registration-form button:hover,
.timeline-registration-form button:hover{
	background-color: #b29371;
}

.common-form #church-list-label{
	margin-bottom: 10px;
}
.common-form small{
	display: block;
    margin-top: 4px;
    color: #848484;
}

.common-form .submit-btn {
	width: 250px;
	margin: 40px auto;
}
.attendance-donation-form .submit-btn{
	background-color: #6e8c65;
}
.exile-registration-form .submit-btn,
.timeline-registration-form .submit-btn{
	background-color: #d89b3a;
}

#leader-donation-form .submit-btn{
	background-color: #d89b3a;
}

.form-sent.leader-form-sent a{
	background-color: #d89b3a;
}
.form-sent a.leader-donation-sent{
	background-color: #d89b3a;
}

@media (max-width: 767px) {
	.common-form {
		padding: 20px 5px;
	}
	.common-form select {
    	font-size: 0.9em;
		width: 225px;
	}
	.common-form .submit-btn {
		font-size: 1.2em;
	}
	.attendance-donation-form .donation-buttons button {
	    font-size: 0.8em;
    	font-weight: bold;
		padding: 10px 8px;
	}
	.exile-registration-form textarea{
		width: 250px;
	}
}

/* ユーザー情報の表示 */
.common-form #user-info {
	margin: 20px 20px;
    text-align: center;
}

.donation-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.donation-button, #clear-donation {
    padding: 10px;
    background-color: #aaa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
    margin: 0 5px;
}

.donation-button:hover, #clear-donation:hover {
    background-color: #949494;
}
#leader-donation-form #clear-donation {
	background-color: #aaa;
}
#leader-donation-form #clear-donation:hover {
    background-color: #949494;
}

/**** 通常献金以外の献金ページ ****/
.attendance-donation-form select#payment-category{
	margin-bottom: 10px;
}
#other-note{
    width: 280px;
    height: 80px;
    resize: none;
	font-size: 1.1em;
}

/* フォーム送信後 */
.form-sent{
    text-align: center;
}
.form-sent h2{
	margin: 100px auto 20px;
}

/**** 修正フォーム用ページ ****/
.attendance-donation-form.common-form .form-group.form-group-correct-id{
	display: block;
}
/* 注意事項ボックスのスタイル */
.notice-box {
    width: 80%;                  /* 中央寄せのための幅調整 */
    margin: 0 auto 20px;         /* 上下中央揃え */
    padding: 15px;               /* 内側余白 */
    background-color: #f9f9f9;   /* 背景色 */
    border: 1px solid #ccc;      /* 枠線 */
    border-radius: 5px;          /* 角丸 */
    text-align: left;            /* 左寄せ */
}

.notice-box p {
    font-weight: bold;           /* タイトルを強調 */
    margin-bottom: 10px;         /* タイトルとリストの間の余白 */
}

.notice-box ul {
    padding-left: 20px;          /* リストの左側余白 */
    list-style-type: disc;       /* 箇条書きマーク */
}

.notice-box ul li {
    margin-bottom: 5px;          /* 各リスト項目の余白 */
}


/**** セミナー出欠ページ ****/
.seminar-attend-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.seminar-attend-form .form-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.seminar-attend-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
}

.seminar-attend-form .radio-button {
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    background-color: #f2f2f2;
    transition: all 0.3s;
	width: 90%;
    margin: 15px auto;
}

.seminar-attend-form .radio-button:hover {
    background-color: #e8f0ff;
}

.seminar-attend-form .radio-button .checkmark {
    margin-left: 8px;
}

.seminar-attend-form .radio-button.selected {
    background-color: rgb(199, 92, 85);
    color: white;
    border-color: #ff8a82;
}
.seminar-attend-form .radio-button input[type="radio"] {
    display: none;
}

#absence-reason-group {
    display: none;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.3s ease-in-out forwards;
}

#absence-reason {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
}

.seminar-attend-form .submit-btn {
    width: 100%;
    background-color: #8ac28a;
    color: #fff;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.seminar-attend-form .submit-btn:hover {
    background-color: #6fa96f;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/**** カスタムフォーム ****/
/* フォーム全体の囲い */
.custom-form .form-post-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 25px 15px;
  font-size: 16px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Helvetica Neue', sans-serif;
}

/* 見出し */
.custom-form .form-post-container h1 {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* 各フィールドラッパー */
.custom-form .form-fields label {
  display: block;
  margin-bottom: 20px;
  color: #444;
  font-weight: bold;
}

/* 入力欄・テキストエリアの共通スタイル */
.custom-form .form-fields input[type="text"],
.custom-form .form-fields textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1em;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

/* テキストエリア専用の高さ指定 */
.custom-form .form-fields textarea {
  resize: vertical;
  min-height: 120px;
}

/* フォーカス時のスタイル */
.custom-form .form-fields input[type="text"]:focus,
.custom-form .form-fields textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
  outline: none;
}

/* 送信ボタン */
#custom-post-form button[type="submit"] {
	display: block;
    width: 80%;
    margin: 50px auto 0;
    padding: 12px;
    font-size: 16px;
    background-color: #52637d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#custom-post-form button[type="submit"]:hover {
  background-color: #3e4a5d;
}

/* 成功・エラーメッセージ表示部分 */
#custom-form-response {
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 0.95em;
}

/* 成功時にこのクラスを付ける */
#custom-form-response.success {
  background-color: #e6f7e6;
  color: #2a662a;
  border: 1px solid #8fd28f;
}

/* 失敗時にこのクラスを付ける */
#custom-form-response.error {
  background-color: #fce6e6;
  color: #aa2a2a;
  border: 1px solid #d28f8f;
}


/* ラジオボタン・チェックボックス用 */
.custom-form .form-fields label input[type="radio"],
.custom-form .form-fields label input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2); /* 少し大きくしてタップしやすく */
  vertical-align: middle;
}

/* ラジオ・チェックボックスのラベル */
.custom-form .form-fields label {
  display: block;
  margin-bottom: 12px;
  font-weight: normal;
  line-height: 1.6;
}

/* 必須フィールドのタイトル強調 */
.custom-form .form-fields label strong {
  display: inline-block;
  margin-bottom: 8px;
  color: #222;
  font-size: 1.05em;
}

/* テキストエリア（備考欄）用スペース調整 */
.custom-form .form-fields textarea {
  margin-top: 10px;
}

/* 汎用送信ボタン（IDではなくフォーム内にある全体に対応） */
.custom-form form button[type="submit"] {
  display: block;
  width: 80%;
  margin: 30px auto 0;
  padding: 12px;
  font-size: 16px;
  background-color: #a8c2a0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-form form button[type="submit"]:hover {
  background-color: #3f4c61;
}


/* 親子情報の表示 */
.member-section {
  margin-bottom: 20px;
}

.member-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-card input[type="checkbox"] {
  display: none;
}

.member-card span {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-card input[type="checkbox"]:checked + span {
  background-color: #8ec08a;
  border-color: #6aa96b;
  color: #fff;
}
