/*
 * CF7 compatibility only. The visual layout remains controlled by the
 * legacy theme's original .comment-form rules.
 */
.wpcf7 form.comment-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 form.comment-form .comment-form-turnstile {
  clear: both;
  width: 100%;
  margin-bottom: 20px;
  padding: 0 15px;
}

.wpcf7 form.comment-form .form-submit {
  clear: both;
  margin-top: 0;
}

@media only screen and (max-width: 767px) {
  .wpcf7 form.comment-form .comment-form-turnstile {
    width: 100%;
  }
}

/* Prominent confirmation after a successful SRON inquiry submission. */
.wpcf7 form.sent .wpcf7-response-output {
    position: relative;
    margin: 28px 0 0 !important;
    padding: 19px 24px 19px 62px !important;
    border: 2px solid #16813d !important;
    border-radius: 4px;
    background: #edf9f0 !important;
    color: #0d5f2b !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 8px rgba(22, 129, 61, .16);
}

.wpcf7 form.sent .wpcf7-response-output::before {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #16813d;
    color: #fff;
    content: "\2713";
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .wpcf7 form.sent .wpcf7-response-output {
        margin-top: 20px !important;
        padding: 16px 16px 16px 54px !important;
        font-size: 16px !important;
    }
    .wpcf7 form.sent .wpcf7-response-output::before {
        left: 16px;
    }
}

/* Production CF7 inquiry form layout. */
.wpcf7 form.comment-form {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 24px 15px 20px;
  border: 1px solid #d9d9d9;
  overflow: hidden;
}

.wpcf7 form.comment-form .wpcf7-form-control-wrap,
.wpcf7 form.comment-form .wpcf7-form-control {
  box-sizing: border-box;
  display: block;
  width: 100%;
}

.wpcf7 form.comment-form .form-submit {
  clear: both;
  margin: 0 0 16px;
  padding: 0 15px;
}

.wpcf7 form.comment-form .comment-form-turnstile {
  clear: both;
  width: 100%;
  margin: 0;
  padding: 0 15px;
}

@media only screen and (max-width: 767px) {
  .wpcf7 form.comment-form .form-submit { margin-top: 0; }
  .wpcf7 form.comment-form .comment-form-turnstile { width: 100%; }
}
