/*
 * Forms, styled like the Squarespace form blocks they replace
 * (solid #fafafa fields, black 1px border, square corners, navy pill button).
 * The markup reuses Squarespace's class names (.form-wrapper, .field-list,
 * .title, .field-element ...) so the per-page CSS that restyled those forms
 * still applies, e.g. the Employee Application's two-column layout.
 */
.mi-form { font-family: var(--body-font); font-weight: 300; color: var(--text); font-size: 16px; line-height: normal; text-align: left; }
.mi-form .mi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mi-form .field-list { line-height: normal; }
.mi-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mi-form legend { padding: 0; }
.mi-form .form-item { margin: 0 0 24px; position: relative; min-width: 0; }
.mi-form .title { display: block; font-size: 16px; font-weight: 400; color: var(--text); margin: 0 0 6px; line-height: 1.4; }
.mi-form span.required { opacity: .6; font-size: .875em; white-space: nowrap; }
.mi-form .description { display: block; font-size: 12px; opacity: .7; padding: 0 0 .5em; white-space: pre-wrap; line-height: 1.5; }
.mi-form .fields-row { display: flex; gap: 10px; }
.mi-form .fields-row > .field { flex: 1 1 0; min-width: 0; }
.mi-form .fields-row--wrap { flex-wrap: wrap; }
.mi-form .fields-row--wrap > .field { flex: 1 1 100%; }
.mi-form .fields-row--wrap > .field.city { flex: 1 1 calc(60% - 10px); }
.mi-form .fields-row--wrap > .field.state { flex: 1 1 calc(40% - 10px); }
.mi-form .fields-row--wrap > .field.zip, .mi-form .fields-row--wrap > .field.country { flex: 1 1 calc(50% - 10px); }
.mi-form .caption { display: block; font-size: 14px; font-weight: 400; line-height: 1.4; }
.mi-form .field-element {
  display: block; width: 100%; box-sizing: border-box;
  margin: 6px 0 4px; padding: 12px; min-height: 50px;
  font-family: var(--body-font); font-size: 16px; font-weight: 300; line-height: normal; color: #000;
  background: #fafafa; border: 1px solid #000; border-radius: 0;
  transition: background .1s ease-in;
}
.mi-form .field-element:focus { background: #fff; outline: 2px solid var(--navy); outline-offset: 1px; }
.mi-form textarea.field-element { min-height: 100px; resize: vertical; }
.mi-form select.field-element {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.mi-form input[type=file].field-element { padding: 10px; cursor: pointer; }
.mi-form .option { margin: 6px 0 4px; font-size: 15px; line-height: 1.5; }
.mi-form .option label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.mi-form .option input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--navy); }
.mi-form .section { margin: 2em 0 1.2em; padding-bottom: .3em; font-size: .9em; }
.mi-form .section.underline { border-bottom: 1px solid #999; }
.mi-form .field-list > .section:first-child { margin-top: 0; }
.mi-form .section .title { font-family: var(--heading-font); font-size: 1.6rem; font-weight: 500; color: var(--navy); }
.mi-form .section:not(:has(.title)):not(:has(.description)) { border-bottom: 0; margin: 0; padding: 0; }

.mi-form .form-item.error .title,
.mi-form .form-item.error .caption,
.mi-form .field-error { color: #bd0000; }
.mi-form .form-item.error .field-element { border-color: #bd0000; }
.mi-form .field-error { font-size: 13px; margin: 4px 0 0; line-height: 1.4; }
.mi-form .form-error-summary { background: #fdecea; border-left: 4px solid #bd0000; color: #7a0b00; padding: 12px 16px; margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.mi-form .g-recaptcha { margin: 0 0 24px; }

.mi-form .form-button-wrapper { margin-top: 8px; }
.mi-form button[type=submit] {
  display: inline-block; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .02em; line-height: 1.2em;
  color: #fff; background: var(--navy); border: 0; border-radius: 300px;
  padding: 1.5em 2.2em;
  transition: opacity .1s linear;
}
.mi-form button[type=submit]:hover { opacity: .8; }

.mi-form .form-submission-text {
  font-family: var(--heading-font); font-size: 2rem; font-weight: 500; color: var(--navy);
  padding: 32px 0; outline: none;
}

/* Where each form sits on its page (Squarespace laid the form block over these spots) */
.cu-contact-right, .cp-contact-right, .sp-contact-right { position: relative; z-index: 2; min-width: 0; }
.ea-form-card {
  max-width: 900px; margin: 48px auto 80px; padding: 40px 48px;
  background: #fff; border: 1px solid #1F456E; border-radius: 16px; box-sizing: border-box;
}
@media (max-width: 767px) {
  .ea-form-card { margin: 32px 16px 56px; padding: 28px 20px; }
  .mi-form .fields-row { flex-direction: column; gap: 0; }
}

/* Customer application: form in a bordered card, like the live page */
.mi-plain--application { background: #fff; }
.mi-plain--application .mi-plain-inner { max-width: 780px; }
.mi-plain--application h2 { text-align: left; margin: 0 0 4px; }
.mi-form-card { border: 1px solid #666; border-radius: 16px; padding: 40px; background: #fff; }
.mi-plain--application h4 { margin: 24px 0 0; }
.mi-plain--application .mi-form { max-width: none; }
.mi-plain--tax .mi-plain-inner { max-width: 760px; }
@media (max-width: 767px) { .mi-form-card { padding: 24px 18px; } }
