/* Clear, accessible Contact Form 7 completion states for all site forms. */
.wpcf7 .himawari-form-success {
  box-sizing: border-box;
  width: min(100%, 770px);
  margin: 2.5rem auto 3rem;
  padding: 3.6rem 2.4rem;
  border: 2px solid #e7cda7;
  border-left: 7px solid #ed6d34;
  border-radius: 16px;
  background: #fffaf0;
  color: #0c4568;
  box-shadow: 0 10px 32px rgba(12, 69, 104, .09);
  text-align: center;
  overflow-wrap: anywhere;
  scroll-margin-top: 110px;
}
.wpcf7 .himawari-form-success:focus { outline: none; }
.wpcf7 .himawari-form-success:focus-visible {
  outline: 3px solid #0c4568;
  outline-offset: 4px;
}
.wpcf7 .himawari-form-success__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}
.wpcf7 .himawari-form-success__title {
  margin: 0 0 1.2rem;
  color: #0c4568;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .025em;
}
.wpcf7 .himawari-form-success__message {
  margin: 0;
  color: #34485b;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.9;
}
/* Prevent a second submission after a confirmed success; replace the form. */
.wpcf7.himawari-form-completed > form { display: none !important; }
/* CSS-only fallback if client-side enhancement is unavailable. */
.wpcf7 form.sent .wpcf7-response-output {
  box-sizing: border-box;
  max-width: 770px;
  margin: 2.4rem auto;
  padding: 2rem 2.2rem;
  border: 3px solid #198754;
  border-radius: 10px;
  background: #f1fff4;
  color: #164c31;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.8;
  text-align: center;
}
/* Failed submissions and validation errors should also be unmistakable. */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  box-sizing: border-box;
  margin: 2rem auto;
  padding: 1.6rem 2rem;
  border: 2px solid #bc453a;
  border-radius: 10px;
  background: #fff3f1;
  color: #782c26;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
}
@media (max-width: 780px) {
  .wpcf7 .himawari-form-success {
    margin: 1.6rem auto 2rem;
    padding: 2.7rem 1.5rem;
    border-left-width: 5px;
    border-radius: 12px;
  }
  .wpcf7 .himawari-form-success__title { font-size: 2.2rem; }
  .wpcf7 .himawari-form-success__message { font-size: 1.5rem; }
  .wpcf7 form.sent .wpcf7-response-output { font-size: 1.65rem; }
}
