/* ============================================
 * HubSpot Form Custom CSS - 1 Column Version (HSFC)
 * Based on: ffcom-mktoForm-1column_v2.css
 * ============================================
 * Usage:
 * - Developer embed:
 *   <script src=".../forms/embed/developer/{portalId}.js"></script>
 *   <div class="hs-form-html" ...></div>
 * ============================================ */

/* --- Container / Wrapper --- */
.hs-form-html,
.hbspt-form {
  width: 100%;
  background-color: #F6F7F6;
  padding: 2em 10em;
  box-sizing: border-box;
}

.hs-form-html .hsfc-Step,
.hs-form-html .hsfc-Step__Content {
  background-color: #F6F7F6 !important;
}

/* --- Base typography --- */
.hs-form-html,
.hs-form-html * {
  box-sizing: border-box;
}

.hs-form-html {
  font-family: "Clarimo UD PE Regular", "UD Shin Go Regular JIS2004", sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.hs-form-html p {
  font-size: 16px;
}

/* --- Text color --- */
.hs-form-html,
.hs-form-html label,
.hs-form-html p,
.hs-form-html .hsfc-Label,
.hs-form-html .hsfc-TextInput,
.hs-form-html select,
.hs-form-html .hsfc-Select,
.hs-form-html textarea,
.hs-form-html .hsfc-RichText,
.hs-form-html .hs-richtext,
.hs-form-html .legal-consent-container {
  color: #333 !important;
}

/* --- ① Input Field Padding --- */
.hs-form-html .hsfc-TextInput {
  padding: 13px 20px !important;
  border: 1px solid #ADADAD !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  background-color: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 0.8em !important;
}

/* --- Select --- */
.hs-form-html select,
.hs-form-html .hsfc-Select {
  padding: 13px 20px !important;
  border: 1px solid #ADADAD !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  background-color: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 0.8em !important;
}

/* Placeholder */
.hs-form-html input::placeholder,
.hs-form-html textarea::placeholder {
  color: #BBB;
}

/* Focus */
.hs-form-html input:focus,
.hs-form-html textarea:focus,
.hs-form-html select:focus {
  border-color: inherit;
  outline: none;
}

/* --- Labels --- */
.hs-form-html label {
  margin: 12px 0 5px 0;
  padding: 0 0 2px;
  font-size: 16px !important;
  line-height: 1.2;
  font-weight: normal;
  font-family: "Clarimo UD PE Regular", "UD Shin Go Regular JIS2004", sans-serif;
}

/* --- ④ Required Asterisk --- */
.hs-form-html .hsfc-FieldLabel__RequiredIndicator {
  margin-left: 0.5em !important;
  color: #990000 !important;
  font-weight: bold !important;
}

/* --- Error Messages --- */
.hs-form-html .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hs-form-html .hs-error-msgs li label,
.hs-form-html .hs-error-msgs li span {
  display: block;
  max-width: none;
  padding: 14px 15px;
  background: #3A6F9A;
  border: 0;
  color: #fff;
  font-size: 15px !important;
  text-shadow: none;
  box-shadow: none;
}

/* --- ③ Textarea --- */
.hs-form-html textarea {
  min-height: 12em;
  resize: vertical;
  font-size: 15px !important;
  line-height: 1.2 !important;
  background-color: #fff !important;
  margin-bottom: 0.8em !important;
}

/* --- ⑤ Submit Button --- */
.hs-form-html .hsfc-Button {
  width: 100% !important;
  padding: 35px 0 !important;
  background: #333333 !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: bold !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 0.4s !important;
}

.hs-form-html .hsfc-Button:hover,
.hs-form-html .hsfc-Button:focus {
  background: #018463 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* --- ⑥ Button Spacing --- */
.hs-form-html .hsfc-Step__Content {
  padding-bottom: 0 !important;
  gap: 0 !important;
}

.hs-form-html .hsfc-DataPrivacyField {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.hs-form-html .hsfc-NavigationRow {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hs-form-html .hsfc-NavigationRow__Buttons {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* --- Rich Text / HTML --- */
.hs-form-html .hs-richtext,
.hs-form-html .hsfc-RichText {
  width: auto;
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

.hs-form-html a {
  text-decoration: underline;
}

.hs-form-html a:hover {
  text-decoration: none;
}

/* --- Radio / Checkbox --- */
.hs-form-html .inputs-list li label {
  margin-top: -3px;
  margin-bottom: 0.8em;
}

.hs-form-html .inputs-list {
  background-color: #fff !important;
  padding: 8px 12px !important;
}

.hs-form-html .inputs-list li,
.hs-form-html .inputs-list li label {
  background-color: #fff !important;
}

.hs-form-html input[type="checkbox"],
.hs-form-html input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background-color: #fff !important;
  border: 1px solid #ADADAD;
  border-radius: 2px;
  cursor: pointer;
  vertical-align: middle;
  margin-top: -2px;
}

.hs-form-html input[type="checkbox"]:checked {
  background-color: #fff !important;
  border-color: #333 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3e%3c/svg%3e");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.hs-form-html input[type="radio"] {
  border-radius: 50%;
}

.hs-form-html input[type="radio"]:checked {
  background-color: #fff !important;
  border-color: #333 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23333'/%3e%3c/svg%3e");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
 * ⑦ Responsive Breakpoints
 * ============================================ */

/* --- 949px --- */
@media screen and (max-width: 949px) {
  .hs-form-html,
  .hbspt-form {
    padding: 2em 5em;
  }
}

/* --- 749px --- */
@media screen and (max-width: 749px) {
  .hs-form-html,
  .hbspt-form {
    padding: 2em 1em;
  }

  .hs-form-html * {
    -webkit-tap-highlight-color: rgba(185, 210, 231, 0.1);
  }

  .hs-form-html label {
    margin-top: 15px;
    font-size: 13px !important;
  }

  .hs-form-html .hsfc-Button {
    padding: 22px 0 !important;
    font-size: 15px !important;
  }

  .hs-form-html .hsfc-TextInput {
    padding: 0.5em !important;
    border: 1px solid #ADADAD !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    background-color: #fff !important;
    margin-bottom: 0.8em !important;
  }

  .hs-form-html textarea {
    height: 5em;
  }
}

/* --- 480px --- */
@media screen and (max-width: 480px) {
  .hs-form-html,
  .hbspt-form {
    padding: 0.1em;
  }
}