/* Contact page: the multi-step enquiry form. */
:root .enquiry-next.enquiry-next,
:root .enquiry-back.enquiry-back {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--surface);
  color: rgb(var(--ink-rgb) / 0.85);
  box-shadow: none;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
:root .enquiry-next.enquiry-next::before,
:root .enquiry-back.enquiry-back::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  background-size: var(--btn-fill-empty);
  transition: background-size 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  :root .enquiry-next.enquiry-next:hover,
  :root .enquiry-back.enquiry-back:hover {
    border-color: var(--brand);
    background: var(--surface);
    color: var(--on-brand);
  }
  :root .enquiry-next.enquiry-next:hover::before,
  :root .enquiry-back.enquiry-back:hover::before {
    background-size: var(--btn-fill-full);
    transition: background-size 0.62s cubic-bezier(0.3, 0.7, 0.35, 1);
  }
}
:root .enquiry-next.enquiry-next:focus-visible,
:root .enquiry-back.enquiry-back:focus-visible {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--on-brand);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
:root .enquiry-next.enquiry-next:focus-visible::before,
:root .enquiry-back.enquiry-back:focus-visible::before {
  background-size: var(--btn-fill-full);
}
:root .enquiry-next.enquiry-next svg {
  display: none;
}
:root .enquiry-back.enquiry-back[hidden],
:root .enquiry-next.enquiry-next[hidden] {
  display: none;
}
:root .enquiry-back.enquiry-back {
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  :root .enquiry-next.enquiry-next,
  :root .enquiry-back.enquiry-back,
  :root .enquiry-next.enquiry-next::before,
  :root .enquiry-back.enquiry-back::before {
    transition: none;
  }
}
:root .enquiry-next.enquiry-next,
:root .enquiry-back.enquiry-back {
  --btn-square: 13.4px;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  transition:
    color 0.18s ease,
    transform 0.12s ease;
}
:root .enquiry-next.enquiry-next:active:not(:disabled),
:root .enquiry-back.enquiry-back:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  :root .enquiry-next.enquiry-next,
  :root .enquiry-back.enquiry-back {
    transition: none;
  }
}
/* Contact structure and controls measured on the reference partner page. */
body[data-template='contact'] .nav-cta > a.nav-contact,
body[data-template='contact'] .m-cta > a.nav-contact {
  display: none;
}
.contact-shell {
  padding-top: calc(var(--header-h) + 84px);
  padding-bottom: var(--page-end);
}
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.contact-context {
  container-type: inline-size;
}
.contact-context h1 {
  font-size: min(var(--hero-size), 12cqi);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.contact-context > p {
  max-width: 32em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}
.contact-context > p + p {
  margin-top: 12px;
}
.enquiry-panel {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--bg-soft);
}
.enquiry-panel > h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.enquiry-intro {
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
  color: var(--muted) !important;
}
#enquiry-form {
  margin-top: 32px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.enquiry-progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}
.enquiry-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  transition: width 0.15s ease-out;
}
.enquiry-field {
  margin: 0 0 20px;
}
.enquiry-field:last-child {
  margin-bottom: 0;
}
.enquiry-field > label,
.enquiry-field > legend {
  display: block;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.enquiry-optional {
  color: var(--muted);
  font-weight: 400;
}
.enquiry-panel .enquiry-step-title {
  font-size: 17px;
  line-height: 26px;
  font-weight: 500 !important;
  margin-bottom: 20px;
}
.enquiry-field input:not([type='radio']):not([type='checkbox']),
.enquiry-field textarea {
  width: 100%;
  font: 400 14px/24px var(--font);
  color: var(--ink);
  padding: 6px 12px;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: 6px;
  background: white;
}
.enquiry-field input:not([type='radio']):focus,
.enquiry-field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.enquiry-field [aria-invalid='true']:not([type='radio']):not([type='checkbox']) {
  box-shadow: inset 0 0 0 1px var(--danger) !important;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5m0 3v.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.enquiry-field textarea {
  min-height: 132px;
  resize: vertical;
}
.enquiry-field small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  margin-top: 8px;
}
fieldset.enquiry-field {
  border: 0;
  padding: 0;
  min-width: 0;
}
.enquiry-options {
  display: grid;
  gap: 8px;
}
.enquiry-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.enquiry-option:has(:checked) {
  background: var(--selected-bg);
  border-color: var(--brand-border);
}
.enquiry-option:has(:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.enquiry-option input {
  appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: white;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.enquiry-option input:checked {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow:
    inset 0 0 0 4px var(--brand),
    inset 0 0 0 7px white;
}
.enquiry-option input[aria-invalid='true'] {
  border-color: var(--danger);
}
.enquiry-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 28px;
}
.enquiry-next,
.enquiry-back {
  min-height: 50px;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.enquiry-next {
  width: 100%;
  /* The button's sweep reads best across a button of normal width, not the whole form (Alex, 3 December 2026). */
  max-width: 250px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: white;
}
.enquiry-next:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}
.enquiry-next:disabled {
  opacity: 0.6;
  cursor: wait;
}
.enquiry-next svg {
  flex-shrink: 0;
}
.enquiry-back {
  border: 1px solid var(--line-2);
  background: transparent;
}
.enquiry-back:hover {
  background: rgb(var(--line-rgb) / 0.5);
}
.enquiry-privacy {
  font-size: 14px;
  line-height: 20px;
  margin-top: 20px;
  color: var(--muted) !important;
}
.enquiry-privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.enquiry-error {
  font-size: 14px;
  line-height: 22px;
  margin-top: 16px;
  color: var(--danger-ink) !important;
}
.enquiry-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.enquiry-field-error {
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
  color: var(--danger) !important;
}
.enquiry-trap {
  display: none;
}
/* The bot check takes no space unless it asks the visitor to tick a box. */
.enquiry-turnstile[data-visible] {
  margin-top: 16px;
}
#enquiry-result {
  padding: 40px 0;
}
#enquiry-result[hidden] {
  display: none;
}
#enquiry-result h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 24px 0 16px;
}
#enquiry-result p {
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 24px;
}
.enquiry-result-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--on-brand);
  background: var(--brand);
  font-size: 24px;
}
@media (min-width: 1024px) {
  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
  .enquiry-panel {
    padding: 48px;
  }
}
@media (max-width: 1023px) {
  .contact-context > p + p {
    display: none;
  }
  .enquiry-panel > h2 {
    font-size: 24px;
    line-height: 32px;
  }
}
@media (max-width: 639px) {
  .contact-context > p {
    font-size: 17px;
    line-height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .enquiry-progress span,
  .enquiry-option,
  .enquiry-next,
  .enquiry-back {
    transition: none;
  }
}

.enquiry-next svg[hidden] {
  display: none;
}

/* Form heading in the reference's slate-950. */
.enquiry-panel h2,
main h2 {
  color: var(--ink);
}

.enquiry-option input[type='checkbox'] {
  appearance: auto;
  accent-color: var(--brand);
  border-radius: 3px;
  box-shadow: none;
}
.enquiry-field > small + .enquiry-options {
  margin-top: 12px;
}
