/* Sizes of the form */
.form-box .hubspot-form {
  --hubspot-form-min-height: 450px;
  --hubspot-form-column-gap: 10px;
}

/* The white card around the title and the form. */
.form-box .form-card {
  padding: 24px 40px;
  border: 1px solid #f0ecea;
  border-radius: 20px;
  background: #fff;
}

/* A field: the label with its badge above the input. */
.form-box .hubspot-form .hs-form .hs-form-field {
  padding-bottom: 20px;
}

/* The error message takes the space under the input, so a message of one
   line does not move the fields below. */
.form-box .hubspot-form .hs-form .hs-form-field:has(> .hs-error-msgs) {
  padding-bottom: 4px;
}

.form-box .hubspot-form .hs-form .hs-form-field > label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: #0c233d;
  font-size: 16px;
  font-weight: 700;
}

/* The 必須 badge in place of the required mark (*). */
.form-box .hubspot-form .hs-form .hs-form-field > label .hs-form-required {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 2px;
  background: #0c233d;
  color: #fff;
  font-size: 0;
  line-height: 12px;
}

.form-box .hubspot-form .hs-form .hs-form-field > label .hs-form-required::before {
  content: '必須';
  font-size: 12px;
  font-weight: 700;
}

.form-box .hubspot-form .hs-form .hs-input:not([type='checkbox'], [type='radio']) {
  padding: 10px 8px;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  outline: 0;
}

.form-box .hubspot-form .hs-form .hs-input.error:not([type='checkbox'], [type='radio']) {
  border-color: #f00 !important;
}

.form-box .hubspot-form .hs-form .hs-error-msgs {
  margin-top: 2px;
  color: #f00;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}

/* The reCAPTCHA notice */
.form-box .form-card .branding {
  margin-top: 16px;
  color: #6b6c6e;
  font-size: 12px;
  text-align: center;
}

.form-box .form-card .branding a {
  color: #000;
}

/* Consent checkbox */
.form-box .hubspot-form .hs-form .hs-fieldtype-booleancheckbox:has(> .hs-error-msgs) {
  padding-bottom: 4px;
}

.form-box .hubspot-form .hs-form .hs-form-booleancheckbox-display {
  justify-content: center;
  gap: 10px;
  color: #0c233d;
  font-size: 14px;
  font-weight: 700;
}

.form-box .hubspot-form .hs-form .hs-form-booleancheckbox-display input {
  width: 18px;
}

.form-box .hubspot-form .hs-form .hs-form-booleancheckbox-display a {
  color: #000;
  text-decoration: underline;
}

.form-box .hubspot-form .hs-form .hs-fieldtype-booleancheckbox .hs-error-msgs label {
  justify-content: center;
}

/* Submit button */
.form-box .hubspot-form .hs-form .hs-button {
  width: 100%;
  padding: 12px 32px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #d95629 0%, #4f4cf4 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 23.17px;
  outline: 0;
  cursor: pointer;
}

@media (width <= 991px) {
  .form-box .form-card {
    padding: 24px 16px;
  }

  .form-box .hubspot-form .hs-form .hs-form-field > label {
    font-size: 14px;
  }

  .form-box .hubspot-form .hs-form .hs-button {
    padding: 11px 32px;
  }
}
