.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-page .fm-section {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4.5vw, 3rem);
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.contact-details li {
  margin: 0;
}

.contact-panel {
  background: var(--fm-surface);
  border: 1px solid var(--fm-line);
  box-shadow: var(--fm-shadow);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.ps-enquiry {
  margin: 0 0 1.15rem;
}

.ps-enquiry label,
.fm-hs .hs-form-field > label:not(.hs-error-msg) {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--fm-font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.3;
  color: var(--fm-ink) !important;
}

.ps-enquiry select,
.fm-hs .hs-form-field input.hs-input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.fm-hs .hs-form-field textarea.hs-input,
.fm-hs .hs-form-field select.hs-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.85rem !important;
  border: 1px solid var(--fm-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--fm-ink) !important;
  font-family: var(--fm-font-body) !important;
  font-size: 1rem !important;
  font-weight: 400;
  line-height: 1.4 !important;
  min-height: 2.75rem !important;
}

.fm-hs .hs-form-field textarea.hs-input {
  min-height: 8rem;
  resize: vertical;
}

.ps-enquiry select:focus,
.fm-hs .hs-form-field input.hs-input:focus,
.fm-hs .hs-form-field textarea.hs-input:focus,
.fm-hs .hs-form-field select.hs-input:focus {
  outline: 2px solid var(--fm-brand);
  outline-offset: 2px;
  border-color: var(--fm-brand);
}

.ps-enquiry select[aria-invalid="true"] {
  border-color: #9b2c2c;
}

.ps-enquiry-hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--fm-muted);
}

/* HubSpot renders this form in an iframe, so these rules are also loaded there. */
.fm-hs {
  --fm-ink: #163247;
  --fm-text: #3d5263;
  --fm-muted: #6a7d8c;
  --fm-brand: #1f6f8b;
  --fm-brand-deep: #145168;
  --fm-line: #d5e0e6;
  --fm-font-body: "Source Sans Pro", "Segoe UI", sans-serif;
  font-family: var(--fm-font-body);
  color: var(--fm-text);
}

.fm-hs fieldset {
  border: 0;
  margin: 0 0 0.15rem;
  padding: 0;
  min-width: 0;
  max-width: none;
}

.fm-hs .input {
  display: block;
  margin: 0;
}

.fm-hs .hs-form-field {
  margin: 0 0 1.1rem;
}

.fm-hs .hs-form-required {
  margin-left: 0.15rem;
  color: var(--fm-brand);
}

.fm-hs .hs-field-desc,
.fm-hs .hs-richtext,
.fm-hs .hs-richtext p {
  font-family: var(--fm-font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fm-text);
}

.fm-hs .hs-richtext a {
  color: var(--fm-brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fm-hs .hs-error-msgs {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.fm-hs .hs-error-msg {
  display: block;
  margin: 0;
  color: #9b2c2c;
  font-family: var(--fm-font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}

.fm-hs .hs-input.error,
.fm-hs .hs-input.invalid {
  border-color: #9b2c2c;
}

.fm-hs .legal-consent-container label,
.fm-hs .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-weight: 400;
  color: var(--fm-text);
}

.fm-hs input[type="checkbox"].hs-input,
.fm-hs input[type="radio"].hs-input {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--fm-brand);
}

.fm-hs .hs-submit {
  margin-top: 0.35rem;
}

.fm-hs input.hs-button,
.fm-hs input.hs-button:hover,
.fm-hs input.hs-button:focus,
.fm-hs input.hs-button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.9rem !important;
  padding: 0.75rem 1.35rem !important;
  border: 2px solid var(--fm-brand) !important;
  border-radius: 0 !important;
  background: var(--fm-brand) !important;
  color: #fff !important;
  font-family: var(--fm-font-body) !important;
  font-size: 1.02rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none !important;
}

.fm-hs input.hs-button:hover,
.fm-hs input.hs-button:focus {
  background: var(--fm-brand-deep) !important;
  border-color: var(--fm-brand-deep) !important;
  color: #fff !important;
}

.hs-datepicker,
.pika-single {
  z-index: 10000;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 420px) {
  .fm-hs .form-columns-2 .hs-form-field {
    float: none !important;
    width: 100% !important;
  }

  .fm-hs .form-columns-2 .input {
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .fm-hs input.hs-button,
  .fm-hs input.hs-button:hover,
  .fm-hs input.hs-button:focus,
  .fm-hs input.hs-button:active {
    width: 100%;
  }
}
