/* === 共通：確認モーダル関連 === */
#confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#confirmation-modal .modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  width: 100%;
  max-width: 600px;
  overflow: scroll;
  height: 600px;
  display: flex;
  flex-direction: column;
}

#confirmation-modal .modal-content h3 {
  border: none;
  color: #0465b2;
  text-align: center;
  background: white;
  font-size: 24px;
  padding: 0;
  margin: 10px 0 20px 0;
}

.confirmation-table {
  width: 100%;
  border-collapse: collapse;
}

.confirmation-table th,
.confirmation-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.confirmation-table .label-cell {
  font-weight: bold;
  width: 40%;
  background-color: #f2f2f2;
}

.confirmation-table .value-cell {
  width: 60%;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button#open-confirmation {
  background: #ff6908;
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  border: none;
  font-size: 18px;
  font-weight: bold;
}

button#open-confirmation:disabled {
  background-color: #cccccc; /* 無効時のグレー */
  cursor: not-allowed;
  opacity: 0.7;
}

button#confirm-submit,
button#cancel-submit {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button#confirm-submit {
  background-color: #ff6908;
  color: white;
}

button#cancel-submit {
  background: none;
  color: #999;
}

button#confirm-submit:hover {
  background-color: #ff8a1a;
}

button#cancel-submit:hover {
  background-color: #b3b3b3;
}

.error-notice {
  color: red;
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}
/* === 送信完了時の状態制御 === */
/* is-completeクラスがついたら、元のタイトルとボタン群を非表示にする */
#confirmation-modal.is-complete .confirmation-modal-title,
#confirmation-modal.is-complete .button-group {
  display: none;
}

/* === 送信完了画面 === */
/* h2の見出しの優先度を上げるため、親IDセレクタを追加 */
#confirmation-modal .modal-complete-heading {
  color: #0465b2;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  border: none;
  background: none;
  padding: 0;
  margin: 10px 0 1em 0;
}

.modal-complete-body {
  text-align: center;
  line-height: 1.8; /* 行間 */
}

.modal-complete-body p {
  margin-bottom: 0;
}

.modal-complete-body .notice-red {
  color: red;
}

.modal-complete-body .contact-info {
  margin-top: 1.5em;
}

.modal-close-button {
  display: block; /* 中央寄せのために block 要素に */
  margin: 2em auto 0; /* 上マージンと左右の自動マージンで中央寄せ */
  padding: 8px 40px;
  cursor: pointer;
  border: 1px solid #555;
  background: #fff;
  color: #333;
  border-radius: 5px;
  font-size: 16px;
}

.modal-close-button:hover {
  background-color: #f0f0f0;
}
