/*
 * Contact us (slug contact-us). Scoped to the page's section class enc-p-contact.
 * Layout: the original Squarespace "fluid engine" grid, the layout grid (enc-fe) in site.css; this file sets the rows
 * and places the title and the form in their original areas.
 * Form: the Contact form block (enc/contact-form) prints the same markup as the original form. Its look below is
 * ported from the original site's form CSS (Squarespace site styles + enc-hydrated-form), with the variables resolved.
 */
.enc-p-contact.enc-section { --enc-fe-rows: 20; --enc-fe-rows-phone: 18; padding: 48px 0 0; font-size: var(--enc-fs); line-height: 1.5em; }
.enc-p-contact.enc-section > * { max-width: none; margin: 0 !important; }
.enc-p-contact__title { grid-area: 1 / 6 / 5 / 22; }
.enc-p-contact__form { grid-area: 6 / 6 / 21 / 22; }
.enc-p-contact h1 { align-self: start; text-align: center; text-wrap: wrap; }
@media (max-width: 767px) {
  .enc-p-contact.enc-section { padding-top: 32px; }
  .enc-p-contact__title { grid-area: 1 / 2 / 2 / 10; }
  .enc-p-contact__form { grid-area: 3 / 2 / 19 / 10; }
}

/* Form ------------------------------------------------------------------------------------------------ */
.enc-p-contact .enc-contact {
  --enc-form-small: min(calc(16px - 0.12vw), 14.776px);
  font-family: Inter, Arial, sans-serif;
  font-size: var(--enc-fs);
  line-height: 1.5em;
  color: var(--enc-navy);
}
@media screen and (max-width: 767px) and (orientation: portrait) {
  .enc-p-contact .enc-contact { --enc-form-small: calc(16px - 0.0012 * min(100vh, 900px)); }
}
.enc-p-contact .enc-contact * { -webkit-tap-highlight-color: transparent; }
.enc-p-contact .enc-contact-form { margin: 0; overflow-wrap: break-word; word-break: break-word; }
.enc-p-contact .enc-contact-form [hidden] { display: none !important; }
.enc-p-contact .enc-contact .field-list { line-height: normal; }
.enc-p-contact .enc-contact fieldset { margin: 0; padding: 0; border: 0; }
.enc-p-contact .enc-contact legend { margin: 0; padding: 0; border: 0; }
.enc-p-contact .enc-contact .fields.name { display: flex; flex-direction: row; align-items: flex-end; column-gap: 10px; row-gap: 0; margin: 0; }

.enc-p-contact .enc-contact .field {
  position: relative;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: min-content auto;
  grid-template-rows: auto;
  align-content: flex-start;
  align-items: flex-start;
  margin: 0 0 20px !important;
}
.enc-p-contact .enc-contact .field > * { grid-column: 1 / span 2; }
.enc-p-contact .enc-contact .fields .field { width: 50%; }
.enc-p-contact .enc-contact .form-input-effects { display: none; }
.enc-p-contact .enc-contact .form-item .form-input-effects { position: absolute; inset: 0 !important; display: block; grid-row: 2 / span 1; pointer-events: none; content-visibility: auto; }

/* Labels */
.enc-p-contact .enc-contact .title { display: block; margin: 0; padding-bottom: 4px; color: var(--enc-navy); font-size: var(--enc-fs); line-height: 1.5em; }
.enc-p-contact .enc-contact .form-item.email label { column-gap: 11px; cursor: pointer; }
.enc-p-contact .enc-contact label.title > div { display: inline-block; }
.enc-p-contact .enc-contact label.title > div > div,
.enc-p-contact .enc-contact legend .title > div,
.enc-p-contact .enc-contact .caption-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1ex; }
.enc-p-contact .enc-contact .caption { display: block; height: auto; font-size: 12px; word-break: break-word; }
.enc-p-contact .enc-contact .caption > * { display: block; height: auto; word-break: break-word; }
.enc-p-contact .enc-contact .caption-text { margin-top: 4px; padding-bottom: 2px; color: var(--enc-navy); font-size: var(--enc-form-small); line-height: 1.5em; }
.enc-p-contact .enc-contact .description { display: block; margin: 0; padding: 0; color: var(--enc-navy); font-size: var(--enc-form-small); line-height: 1.5em; opacity: 0.7; white-space: pre-wrap; }
.enc-p-contact .enc-contact .fields .description.required { line-height: 1em; }

/* Fields */
.enc-p-contact .enc-contact .form-item input:not([type="checkbox"]):not([type="radio"]),
.enc-p-contact .enc-contact .form-item textarea {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: transparent 0 0 0 1px;
  background-color: rgb(250, 250, 250);
  color: #000;
  font-family: Inter, Arial, sans-serif;
  font-size: var(--enc-fs) !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: normal;
  text-transform: none;
  transition: background-color 0.15s cubic-bezier(0.33, 1, 0.68, 1);
}
.enc-p-contact .enc-contact .form-item textarea { height: 4em; min-height: 100px; overflow: auto; resize: vertical; vertical-align: top; }
@media (hover: hover) {
  .enc-p-contact .enc-contact .form-item input:not([type="checkbox"]):not([type="radio"]):hover,
  .enc-p-contact .enc-contact .form-item textarea:hover { background-color: rgba(250, 250, 250, 0.6); }
}
.enc-p-contact .enc-contact .form-item input:not([type="checkbox"]):not([type="radio"]):focus,
.enc-p-contact .enc-contact .form-item textarea:focus { background-color: rgb(250, 250, 250); outline: 2px solid #000; outline-offset: 2px !important; }
.enc-p-contact .enc-contact ::placeholder { color: rgba(0, 0, 0, 0.55); font-weight: 400; opacity: 1; }
.enc-p-contact .enc-contact .btIyKrvyA6dTrftg { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Submit button (pill, as the original primary button) */
.enc-p-contact .enc-contact .form-button-wrapper { text-align: left; }
.enc-p-contact .enc-contact .form-submit-button {
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  padding: 1.3rem 2.1rem;
  border: 0 solid #fff;
  border-radius: 300px;
  background: var(--enc-button);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  transition: opacity 0.1s linear;
}
@media (hover: hover) { .enc-p-contact .enc-contact .form-submit-button:hover { opacity: 0.8; } }
.enc-p-contact .enc-contact .form-submit-button:focus,
.enc-p-contact .enc-contact .form-submit-button:focus-visible { outline: 2px solid var(--enc-navy); outline-offset: 0; }
.enc-p-contact .enc-contact .form-submit-button:disabled { cursor: not-allowed !important; }
.enc-p-contact .enc-contact .form-submit-button-state { display: none; }
