/* お問い合わせフォーム追加機能 */

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.apply-error-summary {
  margin: 20px 0 28px;
  padding: 18px;
  border: 1px solid #efb4b4;
  border-radius: 12px;
  background: #fff1f1;
  color: #8f1d1d;
}

.apply-error-summary h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.apply-error-summary ul {
  margin: 0;
  padding-left: 1.4em;
}

.character-count {
  margin: 5px 0 0;
  color: #666;
  font-size: 12px;
  text-align: right;
  text-indent: 0;
}

.privacy-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #d7e6dc;
  border-radius: 10px;
  background: #f5fbf7;
  line-height: 1.8;
}

.privacy-agreement input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #16834a;
}

.privacy-agreement a {
  color: #16834a;
  font-weight: bold;
}

.contact-submit-loading {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 45, 30, .72);
}

.contact-submit-loading__content {
  width: min(280px, 100%);
  padding: 28px;
  border-radius: 20px;
  color: #fff;
  background: #073b29;
  text-align: center;
}

.contact-submit-loading__content p {
  margin: 14px 0 0;
  text-indent: 0;
}

.contact-submit-spinner {
  width: 42px;
  height: 42px;
  display: inline-block;
  border: 4px solid rgba(255,255,255,.25);
  border-top-color: #c5eb87;
  border-radius: 50%;
  animation: contactSubmitSpin .8s linear infinite;
}

@keyframes contactSubmitSpin {
  to { transform: rotate(360deg); }
}

.kogera-apply-form .is-invalid {
  border-color: #b42318 !important;
  background: #fff8f8 !important;
}

.local-test-notice {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #e2c55a;
  border-radius: 12px;
  background: #fff9dc;
  color: #5d4b00;
}

.local-test-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.local-test-notice p {
  margin: 8px 0;
  text-indent: 0;
}

.local-test-notice code {
  display: block;
  margin-top: 12px;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: rgba(255,255,255,.75);
  font-size: 13px;
}
