/* Original ContactForm styling, scoped for WordPress. */
.toiawase-form, .toiawase-form * { box-sizing: border-box; }
.toiawase-form input, .toiawase-form textarea, .toiawase-form button, .toiawase-form select { font-family: inherit; }
.toiawase-form { width: 100%; max-width: 780px; min-width: 0; margin-inline: auto; color: #344c5b; }
.toiawase-form [hidden] { display: none !important; }
.toiawase-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.toiawase-postalRow { display: flex; align-items: stretch; gap: 10px; max-width: 370px; }
.toiawase-postalRow input { flex: 1; width: 0; }
.toiawase-postalButton { flex-shrink: 0; border: 1px solid #bccdd8; border-radius: 4px; padding: 8px 14px; color: #366889; background: #f5f8fa; font-size: 13px; }
.toiawase-postalButton:focus-visible { outline: 2px solid #366889; outline-offset: 2px; }
.toiawase-fieldHelp { margin-top: 8px; color: #637986; font-size: 12px; line-height: 1.8; }
.toiawase-fieldHelp:empty { display: none; }
.toiawase-field .toiawase-detailLabel { padding: 0; margin: 16px 0 8px; font-size: 13px; font-weight: 400; }
.toiawase-challenge { max-width: 100%; min-height: 65px; margin: 25px auto 0; display: flex; justify-content: center; }
.toiawase-previewNotice { padding: 15px 19px; border: 1px solid #dce6ec; background: #f5f8fa; color: #566f7f; font-size: 13px; line-height: 1.9; }
.toiawase-status { margin-top: 18px; color: #365f79; font-size: 14px; line-height: 1.8; }
.toiawase-requiredNote { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 27px 0 14px; font-size: 12px; color: #637986; }
.toiawase-required, .toiawase-optional { display: inline-block; flex-shrink: 0; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 500; line-height: 1.6; }
.toiawase-required { background: #e9f1f6; color: #366889; }
.toiawase-optional { background: #f0f2f4; color: #6b7c86; }
.toiawase-fields { border-top: 1px solid #dce4e9; }
.toiawase-field { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 22px; padding: 23px 0; border-bottom: 1px solid #dce4e9; }
.toiawase-field label { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.8; }
.toiawase-field input, .toiawase-field select, .toiawase-field textarea { display: block; min-width: 0; width: 100%; margin: 0; border: 1px solid #bccdd8; border-radius: 4px; background: #fff; color: #344c5b; padding: 11px 13px; font-size: 16px; line-height: 1.65; }
.toiawase-field input, .toiawase-field select { min-height: 50px; }
.toiawase-field select { padding-right: 30px; }
.toiawase-field textarea { resize: vertical; min-height: 180px; }
.toiawase-field input:focus, .toiawase-field select:focus, .toiawase-field textarea:focus { outline: 2px solid #366889; outline-offset: 2px; border-color: #366889; }
.toiawase-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.toiawase-primaryButton, .toiawase-editButton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 220px; max-width: 100%; padding: 12px 24px; border: 1px solid #366889; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.7; text-align: center; }
.toiawase-primaryButton { color: #fff; background: #366889; }
.toiawase-primaryButton:hover:not(:disabled) { background: #2a546e; border-color: #2a546e; }
.toiawase-editButton { color: #366889; background: #fff; }
.toiawase-editButton:hover { background: #f0f5f8; }
.toiawase-primaryButton:disabled { cursor: not-allowed; color: #71838f; background: #e8edf0; border-color: #d4dfe6; }
.toiawase-primaryButton:focus-visible, .toiawase-editButton:focus-visible { outline: 2px solid #366889; outline-offset: 4px; }
.toiawase-confirmation { margin-top: 30px; scroll-margin-top: 120px; }
.toiawase-confirmation:focus { outline: none; }
.toiawase-confirmation h2 { color: #344c5b; font-size: 24px; line-height: 1.6; font-weight: 600; }
.toiawase-confirmationLead { margin-top: 12px; color: #637986; font-size: 14px; line-height: 1.9; }
.toiawase-reviewList { margin: 26px 0 0; padding: 0; border-top: 1px solid #dce4e9; }
.toiawase-reviewList>div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid #dce4e9; }
.toiawase-reviewList dt { font-size: 14px; line-height: 1.9; font-weight: 600; }
.toiawase-reviewList dd { min-width: 0; margin: 0; color: #465f6f; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.toiawase-sendNote { margin-top: 25px; color: #637986; font-size: 13px; line-height: 1.9; text-align: center; }

@media (max-width: 640px) {
  .toiawase-previewNotice { padding: 13px 15px; font-size: 12px; }
  .toiawase-status { font-size: 13px; }
  .toiawase-requiredNote { margin-top: 22px; }
  .toiawase-field { grid-template-columns: 1fr; gap: 10px; padding-block: 19px; }
  .toiawase-field label { padding-top: 0; font-size: 14px; }
  .toiawase-field textarea { min-height: 170px; }
  .toiawase-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 25px; }
  .toiawase-primaryButton, .toiawase-editButton { min-width: 0; width: 100%; }
  .toiawase-confirmation { margin-top: 25px; scroll-margin-top: 90px; }
  .toiawase-confirmation h2 { font-size: 22px; }
  .toiawase-confirmationLead { font-size: 13px; }
  .toiawase-reviewList>div { grid-template-columns: 1fr; gap: 7px; padding-block: 17px; }
  .toiawase-reviewList dt { font-size: 13px; }
  .toiawase-reviewList dd { font-size: 14px; }
  .toiawase-sendNote { text-align: left; font-size: 12px; }
}
