/*
 * Visual-entry V2 skin
 *
 * Scope is intentionally limited to the new vertical apply template. V2's
 * shared behavior and every standard /toreca-kaitori rendering remain intact.
 */
.pb-kbe-page #header,
.pb-kbe-page #fix_header,
.pb-kbe-page .p-spMenu {
  display: none !important;
}

.pb-kbe-page .pb-kbe-shell,
.pb-hk main {
  padding-top: 74px;
}

.pb-kbe-lphead {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 74px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  box-shadow: 0 2px 12px rgba(26, 36, 48, .06);
}

.pb-kbe-lphead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1080px);
  height: 100%;
  margin: auto;
  gap: 20px;
}

.pb-kbe-lphead__brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.pb-kbe-lphead__brand img { display: block; width: 170px; height: auto; }
.pb-kbe-lphead__promise { margin-left: auto; color: #4d5560; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pb-kbe-lphead__promise b { color: #e63946; }
.pb-kbe-lphead__cta { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 7px; color: #fff !important; background: #ff3347; box-shadow: 0 3px 0 #c91f31; font-size: 15px; font-weight: 900; text-decoration: none; white-space: nowrap; }

@media (max-width: 700px) {
  .pb-kbe-page .pb-kbe-shell,
  .pb-hk main { padding-top: 62px; }
  .pb-kbe-lphead { height: 62px; }
  .pb-kbe-lphead__in { width: min(100% - 20px, 1080px); gap: 10px; }
  .pb-kbe-lphead__brand img { width: 122px; }
  .pb-kbe-lphead__promise { display: none; }
  .pb-kbe-lphead__cta { min-height: 38px; padding: 0 13px; font-size: 13px; }
}

.pb-kbe-form__content--v2 .pb-kfl {
  --pb-kfl-green: #e60012;
  --pb-kfl-red: #bd000f;
  --pb-kfl-ink: #23262b;
  --pb-kfl-line: #cfd2d6;
  width: min(100%, 720px);
  margin-inline: auto;
  color: #23262b;
}

.pb-kbe-form__content--v2 .pb-kfl__mirror,
.pb-kbe-form__content--v2 .pb-kfl__confirm {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pb-kbe-form__content--v2 .pb-kfl__mirror .contact-flow,
.pb-kbe-form__content--v2 .pb-kfl__confirm-flow {
  display: none !important;
}

/* Keep a single card only. The original LP's form-wrapper was formerly
 * nested inside a second card, which made its grey perimeter look cramped. */
.pb-kbe-form__content--v2 .pb-kfl__mirror .form-wrapper,
.pb-kbe-form__content--v2 .pb-kfl__confirm .form-wrapper {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 720px !important;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 38px) clamp(14px, 4vw, 34px);
  border: 1px solid #d8dade !important;
  border-top: 4px solid #e60012 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(24, 25, 29, .06) !important;
}

.pb-kbe-form__content--v2 .pb-kfl__mirror .form-inner,
.pb-kbe-form__content--v2 .pb-kfl__confirm .form-inner {
  width: min(100%, 650px) !important;
  min-width: 0;
  margin-inline: auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pb-kbe-form__content--v2 .pb-kfl .form-item {
  border-color: #e6e7e9 !important;
  background: transparent !important;
}

.pb-kbe-form__content--v2 .pb-kfl .form-title,
.pb-kbe-form__content--v2 .pb-kfl .form-title strong {
  color: #23262b !important;
  font-weight: 800;
}

.pb-kbe-form__content--v2 .pb-kfl .form-title .required,
.pb-kbe-form__content--v2 .pb-kfl .required.badge {
  border-color: #e60012 !important;
  background: #fff1f2 !important;
  color: #bd000f !important;
}

.pb-kbe-form__content--v2 .pb-kfl input:not([type="radio"]):not([type="checkbox"]),
.pb-kbe-form__content--v2 .pb-kfl select,
.pb-kbe-form__content--v2 .pb-kfl textarea {
  border-color: #bfc3c9 !important;
  background-color: #fff !important;
  color: #23262b !important;
  box-shadow: none;
}

.pb-kbe-form__content--v2 .pb-kfl input:not([type="radio"]):not([type="checkbox"]):focus,
.pb-kbe-form__content--v2 .pb-kfl select:focus,
.pb-kbe-form__content--v2 .pb-kfl textarea:focus {
  border-color: #e60012 !important;
  outline: 2px solid rgba(230, 0, 18, .16);
  outline-offset: 0;
}

.pb-kbe-form__content--v2 .pb-kfl input.pb-kfl__field-done:not([type="radio"]):not([type="checkbox"]),
.pb-kbe-form__content--v2 .pb-kfl select.pb-kfl__field-done,
.pb-kbe-form__content--v2 .pb-kfl select.pb-kfl__manual-select--active {
  border-color: #bfc3c9 !important;
  background-color: #fff !important;
  box-shadow: none !important;
  color: #23262b !important;
}

.pb-kbe-form__content--v2 .pb-kfl input[type="radio"],
.pb-kbe-form__content--v2 .pb-kfl input[type="checkbox"] { accent-color: #e60012; }
.pb-kbe-form__content--v2 .pb-kfl .mwform-radio-field-text,
.pb-kbe-form__content--v2 .pb-kfl .mwform-checkbox-field-text { border-color: #bfc3c9; }
.pb-kbe-form__content--v2 .pb-kfl .form-item input[type="radio"]:checked + .mwform-radio-field-text {
  border-color: #e60012 !important;
  background: #e60012 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.pb-kbe-form__content--v2 .pb-kfl .form-item input[type="radio"]:checked + .mwform-radio-field-text::after {
  background: #e60012 !important;
}

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__zip-lookup-link,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__address-manual-button,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__password-toggle,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__legal-details summary {
  color: #bd000f !important;
}

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__shipping-info-button,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__pickup-info-button,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__job-info-button,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__contact-info-button {
  background: #e60012 !important;
}

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__shipping-info-button:hover,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__pickup-info-button:hover,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__job-info-button:hover,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__contact-info-button:hover { background: #bd000f !important; }

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__lookup tbody tr:focus {
  outline-color: rgba(230, 0, 18, .34);
  background: #fff1f2;
}

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__shipping-info-popover,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__pickup-info-popover,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__job-info-popover,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__contact-info-popover {
  border-color: #f1b9bf;
  color: #3f4146;
}

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__password-checklist li.is-ok,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__password-checklist li.is-ok::before { color: #bd000f; }

.pb-kbe-form__content--v2 .pb-kfl .form-submit,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__confirm-actions {
  width: min(100%, 520px);
  min-height: 64px;
  margin: 28px auto 0;
}

.pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit,
.pb-kbe-form__content--v2 .pb-kfl__confirm-actions button {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  min-height: 64px;
  height: auto;
  padding: 15px 20px;
  border: 1px solid #e60012;
  border-radius: 7px;
  background: #e60012 !important;
  background-image: none !important;
  box-shadow: 0 4px 0 #bd000f;
  color: #fff !important;
  font-family: inherit;
  font-size: clamp(17px, 3.8vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  text-indent: 0;
}

.pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit::after { content: '入力内容を確認する'; }
.pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit { font-size: 0; }
.pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit::after { font-size: clamp(17px, 3.8vw, 20px); }

.pb-kbe-form__content--v2 .pb-kfl__confirm-actions .pb-kfl__mock-back {
  margin-top: 14px;
  border-color: #bfc3c9;
  background: #fff !important;
  box-shadow: none;
  color: #4e535b !important;
  font-size: 16px;
}

.pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit:hover,
.pb-kbe-form__content--v2 .pb-kfl__confirm-actions .pb-kfl__mock-send:hover { background: #bd000f !important; }

.pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit:focus-visible,
.pb-kbe-form__content--v2 .pb-kfl__confirm-actions button:focus-visible {
  outline: 3px solid rgba(230, 0, 18, .35);
  outline-offset: 3px;
}

.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__admin-error,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__email-format-warning,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__zip-warning,
.pb-kbe-form__content--v2 .pb-kfl .pb-kfl__required-warning {
  border-color: #f1b9bf;
  background: #fff1f2;
  color: #a7000c;
}

@media (max-width: 767px) {
  .pb-kbe-form__content--v2 { padding-inline: 12px; }
  .pb-kbe-form__content--v2 .pb-kfl__mirror .form-wrapper,
  .pb-kbe-form__content--v2 .pb-kfl__confirm .form-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 22px 14px;
    border-radius: 8px !important;
  }
  .pb-kbe-form__content--v2 .pb-kfl .form-item,
  .pb-kbe-form__content--v2 .pb-kfl .form-title,
  .pb-kbe-form__content--v2 .pb-kfl .form-item > p,
  .pb-kbe-form__content--v2 .pb-kfl .form-item > div { min-width: 0; }
  .pb-kbe-form__content--v2 .pb-kfl .form-submit,
  .pb-kbe-form__content--v2 .pb-kfl .pb-kfl__confirm-actions { min-height: 58px; }
  .pb-kbe-form__content--v2 .pb-kfl__mirror .form-submit button.your-submit,
  .pb-kbe-form__content--v2 .pb-kfl__confirm-actions button { min-height: 58px; }
}

@media (max-width: 380px) {
  .pb-kbe-form__content--v2 { padding-inline: 8px; }
  .pb-kbe-form__content--v2 .pb-kfl__mirror .form-wrapper,
  .pb-kbe-form__content--v2 .pb-kfl__confirm .form-wrapper { padding: 18px 10px; }
  .pb-kbe-form__content--v2 .pb-kfl .form-title {
    font-size: 18px !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .pb-kbe-form__content--v2 .pb-kfl__name-row,
  .pb-kbe-form__content--v2 .pb-kfl__address-postcode,
  .pb-kbe-form__content--v2 .pb-kfl__address-automatic-row,
  .pb-kbe-form__content--v2 .pb-kfl__address-pair-row,
  .pb-kbe-form__content--v2 .pb-kfl__pickup-schedule-controls,
  .pb-kbe-form__content--v2 .pb-kfl__bank-account-row {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
}
