
/* FaHaBo Site Tools */

/* Contact page */
body.page-contact main,
body.page-contact .entry-content,
body.page-contact .site-main {
  width: 100%;
  max-width: none;
}

.fhst-contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 0 clamp(78px, 10vw, 130px);
  color: #222;
}

.fhst-contact__header {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.fhst-contact__eyebrow {
  margin: 0 0 14px;
  color: #707070;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fhst-contact__header h1 {
  margin: 0;
  color: #111;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .92;
}

.fhst-contact__header > p:last-child {
  max-width: 690px;
  margin: 22px 0 0;
  color: #555;
  font-size: 17px;
  line-height: 1.7;
}

.fhst-contact__layout {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.fhst-contact__aside {
  display: grid;
  gap: 14px;
}

.fhst-contact__aside-card {
  padding: 24px;
  border: 1px solid #dedede;
  background: #fafafa;
}

.fhst-contact__aside-card span {
  display: block;
  margin-bottom: 8px;
  color: #767676;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fhst-contact__aside-card a {
  color: #222;
  font-size: 16px;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.fhst-contact__aside-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.65;
}

.fhst-contact-form {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dcdcdc;
  background: #fff;
}

.fhst-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.fhst-form-grid label {
  display: block;
}

.fhst-form-grid label > span {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
}

.fhst-form-grid__full {
  grid-column: 1 / -1;
}

.fhst-form-grid input,
.fhst-form-grid select,
.fhst-form-grid textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #222;
  font: inherit;
}

.fhst-form-grid textarea {
  min-height: 170px;
  resize: vertical;
}

.fhst-form-grid input:focus,
.fhst-form-grid select:focus,
.fhst-form-grid textarea:focus {
  border-color: #727272;
  outline: 2px solid rgba(115, 115, 115, .16);
  outline-offset: 1px;
}

.fhst-contact-form__privacy {
  margin: 18px 0;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 1.55;
}

.fhst-contact-submit {
  min-width: 170px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #747474;
  border-radius: 0;
  background: #747474;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.fhst-contact-submit:hover,
.fhst-contact-submit:focus-visible {
  border-color: #5f5f5f;
  background: #5f5f5f;
}

.fhst-contact-notice {
  margin-bottom: 24px;
  padding: 15px 18px;
  border: 1px solid #d6d6d6;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
}

.fhst-contact-notice--error {
  border-color: #d6bebe;
  background: #faf4f4;
}

.fhst-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Cookie footer link inserted by JavaScript */
.fhst-cookie-settings-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.fhst-cookie-settings-link:hover,
.fhst-cookie-settings-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Cookie banner */
body.fhst-cookie-lock {
  overflow: hidden;
}

.fhst-cookie-banner[hidden] {
  display: none !important;
}

.fhst-cookie-banner {
  position: fixed;
  z-index: 10020;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(1120px, calc(100% - 36px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #d8d8d8;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 56px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}

.fhst-cookie-banner__copy strong {
  display: block;
  margin-bottom: 6px;
  color: #171717;
  font-size: 16px;
}

.fhst-cookie-banner__copy p {
  max-width: 710px;
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.fhst-cookie-banner__copy a,
.fhst-cookie-policy-links a {
  color: #333;
  text-underline-offset: 3px;
}

.fhst-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fhst-cookie-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #737373;
  border-radius: 0;
  background: #fff;
  color: #3f3f3f;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.fhst-cookie-button--choice {
  min-width: 158px;
  background: #737373;
  color: #fff;
}

.fhst-cookie-button:hover,
.fhst-cookie-button:focus-visible {
  border-color: #5f5f5f;
  background: #eeeeee;
}

.fhst-cookie-button--choice:hover,
.fhst-cookie-button--choice:focus-visible {
  background: #5f5f5f;
  color: #fff;
}

.fhst-cookie-modal {
  position: fixed;
  z-index: 10030;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  background: rgba(12,12,12,.42);
  transition: opacity .18s ease, visibility .18s ease;
}

.fhst-cookie-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.fhst-cookie-panel {
  position: relative;
  width: min(650px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #d7d7d7;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.2);
}

.fhst-cookie-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  background: #fff;
  color: #444;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.fhst-cookie-eyebrow {
  margin: 0 0 10px;
  color: #777;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.fhst-cookie-panel h2 {
  max-width: 520px;
  margin: 0;
  padding-right: 45px;
  color: #151515;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.fhst-cookie-intro {
  margin: 18px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.65;
}

.fhst-cookie-options {
  margin-top: 28px;
  border-top: 1px solid #dfdfdf;
}

.fhst-cookie-option {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #dfdfdf;
}

.fhst-cookie-option strong {
  display: block;
  margin-bottom: 5px;
  color: #222;
  font-size: 15px;
}

.fhst-cookie-option p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
}

.fhst-cookie-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.fhst-cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fhst-cookie-switch > span:last-child {
  position: relative;
  width: 48px;
  height: 26px;
  display: block;
  border: 1px solid #aaa;
  border-radius: 999px;
  background: #dedede;
}

.fhst-cookie-switch > span:last-child::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  content: "";
  transition: transform .18s ease;
}

.fhst-cookie-switch input:checked + span {
  border-color: #747474;
  background: #747474;
}

.fhst-cookie-switch input:checked + span::after {
  transform: translateX(22px);
}

.fhst-cookie-switch--locked {
  cursor: default;
  opacity: .78;
}

.fhst-cookie-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  font-size: 13px;
}

.fhst-cookie-panel__actions {
  margin-top: 28px;
}

.fhst-cookie-panel__actions .fhst-cookie-button {
  flex: 1 1 150px;
}

@media (max-width: 860px) {
  .fhst-cookie-banner {
    grid-template-columns: 1fr;
  }

  .fhst-cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .fhst-cookie-button--choice {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .fhst-contact__layout {
    grid-template-columns: 1fr;
  }

  .fhst-form-grid {
    grid-template-columns: 1fr;
  }

  .fhst-form-grid__full {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .fhst-contact {
    width: min(100% - 28px, 1180px);
  }

  .fhst-cookie-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    gap: 18px;
    padding: 18px;
  }

  .fhst-cookie-actions {
    grid-template-columns: 1fr;
  }

  .fhst-cookie-button {
    width: 100%;
  }

  .fhst-cookie-modal {
    padding: 8px;
    align-items: end;
  }

  .fhst-cookie-panel {
    width: 100%;
    max-height: calc(100svh - 16px);
    padding: 26px 20px 22px;
  }

  .fhst-cookie-panel__actions {
    grid-template-columns: 1fr;
  }
}


/* Contact file uploads */
.fhst-upload-field input[type="file"] {
  min-height: 52px;
  padding: 10px;
  border: 1px dashed #bdbdbd;
  background: #fafafa;
  cursor: pointer;
}

.fhst-upload-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 7px 13px;
  border: 1px solid #777;
  border-radius: 0;
  background: #777;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.fhst-upload-field small {
  display: block;
  margin-top: 8px;
  color: #6a6a6a;
  font-size: 11px;
  line-height: 1.5;
}

.fhst-upload-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: #444;
  font-size: 12px;
}
