/* BiZ Broker form usability overrides
   Loaded after the main stylesheet to keep all public forms stable and easy to use. */

.biz-form-zone,
form.biz-form-zone,
.contact-form,
.biz-claim-form,
.personal-request-form,
.biz-policy-change-form,
.business-insurance-form,
.master-insurance-form,
.biz-doc-upload-form,
.biz-resource-form {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  cursor: default !important;
  user-select: text;
  transform: none !important;
  transition: none !important;
  contain: layout style;
}

.biz-form-zone *,
form.biz-form-zone * {
  pointer-events: auto;
}

.biz-form-zone label,
form.biz-form-zone label,
.biz-form-zone .checkbox-card,
.biz-form-zone .radio-option,
.biz-form-zone .coverage-checkbox-option,
.biz-form-zone .request-card {
  user-select: none;
}

.biz-form-zone input,
.biz-form-zone textarea,
.biz-form-zone select,
form.biz-form-zone input,
form.biz-form-zone textarea,
form.biz-form-zone select {
  position: relative;
  z-index: 3;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
  transform: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
  background-color: #ffffff;
}

.biz-form-zone input[type="text"],
.biz-form-zone input[type="email"],
.biz-form-zone input[type="tel"],
.biz-form-zone input[type="date"],
.biz-form-zone input[type="number"],
.biz-form-zone input[type="search"],
.biz-form-zone textarea {
  cursor: text !important;
}

.biz-form-zone select,
.biz-form-zone button,
.biz-form-zone input[type="checkbox"],
.biz-form-zone input[type="radio"],
.biz-form-zone input[type="file"],
.biz-form-zone .request-card,
.biz-form-zone .checkbox-card,
.biz-form-zone .radio-option,
.biz-form-zone .coverage-checkbox-option {
  cursor: pointer !important;
}

.biz-form-zone input:focus,
.biz-form-zone textarea:focus,
.biz-form-zone select:focus,
form.biz-form-zone input:focus,
form.biz-form-zone textarea:focus,
form.biz-form-zone select:focus {
  outline: none;
  border-color: #2f5f8f !important;
  box-shadow: 0 0 0 3px rgba(47, 95, 143, 0.16) !important;
}

/* Keep machine translation and browser widgets from visually repainting form fields. */
.biz-form-zone.notranslate,
.biz-form-zone .notranslate,
form.biz-form-zone[translate="no"] {
  unicode-bidi: plaintext;
}

/* A small visual consistency reset for Chrome autofill. */
.biz-form-zone input:-webkit-autofill,
.biz-form-zone textarea:-webkit-autofill,
.biz-form-zone select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1f2933 !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Do not let global static-card cleanup make real forms act like dead cards. */
.biz-contact-form-shell,
.biz-contact-form-shell:hover,
.biz-contact-form-shell:focus-within,
.contact-form,
.contact-form:hover,
.contact-form:focus-within {
  cursor: default !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .biz-form-zone,
  form.biz-form-zone {
    contain: none;
  }

  .biz-form-zone input,
  .biz-form-zone textarea,
  .biz-form-zone select {
    font-size: 16px !important;
  }
}
