.input-box {
  margin-bottom: 1rem;
}
.input-box input,
.input-box textarea {
  display: block;
  width: 100%;
  padding: 1.65rem 2rem 1.5rem 2rem;
  color: #000;
  font-size: 1.6rem;
  border: 1px solid #e0e0e0;
  line-height: 160%;
}
.input-box input::placeholder,
.input-box textarea::placeholder {
  color: #000;
}
.input-box textarea {
  height: 19.7rem;
  resize: none;
  overflow: auto;
}

.checkbox-box {
  margin: 2rem 0 3rem 0;
  position: relative;
}
.checkbox-box input {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}
.checkbox-box label {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 1%;
  line-height: 150%;
  color: #878787;
  padding-left: 2.5rem;
}
.checkbox-box label:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  border: 1px solid #e0e0e0;
  content: '';
  height: 1.5rem;
}

.checkbox-box :checked + label:after {
  background: #00296f;
  border: 4px solid #f7f9fb;
  box-shadow: 0 0 1px #000;
}

.checkbox-box input[type='checkbox']:focus-visible + label::after,
.checkbox-box
  .wpcf7-acceptance
  label:has(input[type='checkbox']:focus-visible)::after,
.checkbox-box .wpcf7-acceptance label:focus-within::after {
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.input-box {
  position: relative;
}

.input-box input {
  width: 100%;
  padding: 1.2rem;
  height: 5.1rem;
}

.input-box textarea {
  padding: 0.5rem 1.2rem;
}

.input-box label {
  position: absolute;
  left: 1.4rem;
  top: 27px;
  transform: translateY(-50%);
  transition: 0.2s ease;
  pointer-events: none;
  color: #000;
  font-size: 1.6rem;
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label,
.input-box textarea:focus + label,
.input-box textarea:not(:placeholder-shown) + label,
.input-box:focus-within > label,
.input-box:has(input:not(:placeholder-shown)) > label,
.input-box:has(textarea:not(:placeholder-shown)) > label {
  top: 13px;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #000;
}
.wpcf7-list-item {
  margin: 0 !important;
}
.input-box .wpcf7-form-control-wrap {
  display: block;
}

.input-box input:focus,
.input-box input:not(:placeholder-shown),
.input-box textarea:focus,
.input-box textarea:not(:placeholder-shown),
.input-box:focus-within input,
.input-box:focus-within textarea,
.input-box:has(input:not(:placeholder-shown)) input,
.input-box:has(textarea:not(:placeholder-shown)) textarea {
  padding-top: 28px;
}

.input-box textarea:focus + label,
.input-box textarea:not(:placeholder-shown) + label,
.input-box:has(textarea):focus-within > label,
.input-box:has(textarea:not(:placeholder-shown)) > label {
  background: #ffffff;
  padding: 0 4px;
  padding-left: 1.4rem;
  top: 1.5rem;
  width: calc(100% - 17px);
  left: 1px;
}

.checkbox-box .wpcf7-acceptance input[type='checkbox'] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.checkbox-box .wpcf7-acceptance label {
  display: block;
  font-size: 1.2rem;
  line-height: 150%;
  color: #878787;
  padding-left: 2.5rem;
  position: relative;
  cursor: pointer;
}

.checkbox-box .wpcf7-acceptance label::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #e0e0e0;
  content: '';
}

.checkbox-box .wpcf7-acceptance label:has(input:checked)::after {
  background: #00296f;
  border: 4px solid #f7f9fb;
  box-shadow: 0 0 1px #000;
}

.input-box input:focus,
.input-box input:not(:placeholder-shown),
.input-box textarea:focus,
.input-box textarea:not(:placeholder-shown) {
  padding-top: 28px;
}

.wpcf7-not-valid-tip {
  display: block;
  font-size: 1.2rem;
  color: #9d1b1b !important;
  margin-top: 0.4rem;
}

.wpcf7-response-output {
  margin: 2rem 0 0 0 !important;
  padding: 1.4rem 2rem !important;
  font-size: 1.5rem !important;
  line-height: 160% !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 0 !important;
}

.wpcf7-mail-sent-ok {
  color: #1a5c1a !important;
  border-color: #1a5c1a !important;
  background: #f0faf0 !important;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  color: #9d1b1b !important;
  border-color: #9d1b1b !important;
  background: #fdf0f0 !important;
}

.wpcf7-spam-blocked,
.wpcf7-aborted {
  color: #7a4e00 !important;
  border-color: #7a4e00 !important;
  background: #fdf6e3 !important;
}
