@font-face {
  font-family: Heracles;
  src: url('/static/heracles/fonts/heracles-light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

body.switching-enquiry {
  --ink: #302921;
  --muted: #62584f;
  --paper: #f6f3ed;
  --line: #d6cfc4;
  --action: #80332b;
  background: #fff;
  color: var(--ink);
  padding: clamp(20px, 4vw, 64px);
}

.switching-enquiry .enquiry-card {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: 7px;
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
}

.switching-identity {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  isolation: isolate;
  border-radius: 28px;
  background: #4d382a;
}
.switching-identity::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(147deg, rgba(36,23,17,.58), transparent 42%);
}
.switching-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 28%;
}
.switching-wordmark {
  position: absolute;
  z-index: 1;
  top: clamp(24px, 4vw, 46px);
  left: clamp(24px, 4vw, 46px);
  width: clamp(120px, 13vw, 172px);
  height: auto;
  filter: brightness(0) invert(1);
}

.switching-panel {
  align-self: start;
  min-width: 0;
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(26px, 4.3vw, 62px);
}
.switching-enquiry .enquiry-card h1 {
  max-width: 13ch;
  margin-bottom: 12px;
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: .99;
  font-weight: 300;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.switching-enquiry .enquiry-intro {
  max-width: 44ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 28px;
}
.switching-enquiry .enquiry-row { margin-bottom: 15px; }
.switching-enquiry .enquiry-row label { font-size: 15px; }
.switching-enquiry .enquiry-row :is(input, textarea) {
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 12px;
}
.switching-enquiry .enquiry-row textarea { min-height: 83px; }
.switching-enquiry .enquiry-privacy { color: var(--muted); line-height: 1.55; margin: 0 0 19px; }
.switching-enquiry .enquiry-privacy a { color: var(--ink); }
.switching-enquiry .enquiry-button {
  width: fit-content;
  max-width: 100%;
  min-height: 47px;
  padding: 12px 24px;
  gap: 18px;
  background: var(--action);
  color: #fff;
  border-radius: 40px;
}
.switching-enquiry .enquiry-button:hover { background: #632720; }
.switching-enquiry :is(input, textarea, a, button):focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

@media (max-width: 730px) {
  body.switching-enquiry { padding: 12px; }
  .switching-enquiry .enquiry-card { grid-template-columns: minmax(0, 1fr); gap: 5px; max-width: 520px; }
  .switching-identity { height: clamp(105px, 30vw, 157px); min-height: 0; border-radius: 20px; }
  .switching-portrait { object-position: 64% 20%; }
  .switching-wordmark { width: 116px; top: 20px; left: 21px; }
  .switching-panel { border-radius: 20px; padding: 26px 22px; }
  .switching-enquiry .enquiry-card h1 { max-width: none; font-size: clamp(35px, 7.5vw, 44px); }
  .switching-enquiry .enquiry-intro { margin-bottom: 21px; font-size: 16px; }
  .switching-enquiry .enquiry-button { width: 100%; }
}

/* The website owns the dialog, its close button and the scroll container. */
body.switching-enquiry.enquiry-embedded { padding: 0; }
.switching-enquiry.enquiry-embedded .enquiry-card { width: 100%; max-width: none; }
.switching-enquiry.enquiry-embedded .switching-identity { border-radius: 0; }
.switching-enquiry.enquiry-embedded .switching-panel { border-radius: 0; }
