:root {
  --mk-form-ink: #191715;
  --mk-form-muted: #726b65;
  --mk-form-line: #ded9d3;
  --mk-form-stone: #f2efea;
  --mk-form-paper: #fbfaf8;
  --mk-form-accent: #9c7a5b;
  --mk-form-error: #a64036;
}

body.mk-consultation-open {
  overflow: hidden !important;
}

.mk-consultation-dialog[hidden] {
  display: none !important;
}

.mk-consultation-dialog {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100%;
  margin: 0 !important;
  padding: 28px !important;
  color: var(--mk-form-ink);
}

.mk-consultation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 12, 0.72);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  animation: mkFormFade 180ms ease both;
}

.mk-consultation-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
  width: min(1110px, 100%);
  max-height: calc(100vh - 56px);
  overflow: hidden;
  background: var(--mk-form-paper);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
  animation: mkFormRise 300ms cubic-bezier(.2, .75, .25, 1) both;
}

.mk-consultation-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 690px;
  padding: 54px 48px 44px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(36, 31, 28, 0.94), rgba(18, 17, 16, 0.99)),
    radial-gradient(circle at 85% 12%, rgba(177, 139, 101, 0.45), transparent 44%);
}

.mk-consultation-story::before,
.mk-consultation-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.mk-consultation-story::before {
  width: 420px;
  height: 420px;
  right: -280px;
  top: -135px;
}

.mk-consultation-story::after {
  width: 310px;
  height: 310px;
  left: -205px;
  bottom: -120px;
}

.mk-form-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mk-form-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--mk-form-accent);
}

.mk-consultation-story h2,
.mk-contact-form-intro h2 {
  margin: 0;
  font-family: var(--mk-display, Georgia, serif);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.mk-consultation-story h2 {
  max-width: 370px;
  color: #fff;
  font-size: clamp(45px, 4.3vw, 68px);
  line-height: 0.98;
}

.mk-consultation-story h2 em,
.mk-contact-form-intro h2 em {
  color: var(--mk-form-accent);
  font-weight: 400;
}

.mk-consultation-story > div > p:not(.mk-form-eyebrow) {
  max-width: 360px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.mk-consultation-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.mk-consultation-points span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.mk-consultation-points i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  color: #d5b898;
  font-size: 11px;
  font-style: normal;
  border: 1px solid rgba(213, 184, 152, 0.34);
  border-radius: 50%;
}

.mk-consultation-form-wrap {
  position: relative;
  max-height: calc(100vh - 56px);
  padding: 48px 52px 42px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mk-dialog-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--mk-form-ink);
  background: transparent;
  border: 1px solid var(--mk-form-line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mk-dialog-close:hover {
  color: #fff;
  background: var(--mk-form-ink);
  transform: rotate(5deg);
}

.mk-dialog-close svg,
.mk-form-submit svg,
.mk-form-success-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mk-form-head {
  padding-right: 48px;
  margin-bottom: 28px;
}

.mk-form-step {
  display: block;
  margin-bottom: 8px;
  color: var(--mk-form-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mk-form-head h3 {
  margin: 0 0 8px;
  color: var(--mk-form-ink);
  font-family: var(--mk-display, Georgia, serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.mk-form-head p {
  margin: 0;
  color: var(--mk-form-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mk-premium-form,
.mk-form-fields {
  display: grid;
  gap: 18px;
}

.mk-premium-form[hidden] {
  display: none !important;
}

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

.mk-form-field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mk-form-field > label,
.mk-form-label {
  margin: 0;
  color: #3a3531;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.035em;
}

.mk-form-field input,
.mk-form-field select,
.mk-form-field textarea {
  width: 100%;
  margin: 0;
  padding: 0 15px;
  color: var(--mk-form-ink);
  background: #fff;
  border: 1px solid var(--mk-form-line);
  border-radius: 8px;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mk-form-field input,
.mk-form-field select {
  height: 53px;
}

.mk-form-field select {
  padding-right: 42px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6f6862 50%), linear-gradient(135deg, #6f6862 50%, transparent 50%);
  background-position: calc(100% - 18px) 23px, calc(100% - 13px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.mk-form-field textarea {
  min-height: 108px;
  padding-top: 14px;
  line-height: 1.55;
  resize: vertical;
}

.mk-form-field input::placeholder,
.mk-form-field textarea::placeholder {
  color: #a09a94;
}

.mk-form-field input:focus,
.mk-form-field select:focus,
.mk-form-field textarea:focus {
  background: #fff;
  border-color: var(--mk-form-accent);
  box-shadow: 0 0 0 3px rgba(156, 122, 91, 0.11);
}

.mk-form-field.is-invalid input,
.mk-form-field.is-invalid select,
.mk-form-field.is-invalid textarea {
  border-color: var(--mk-form-error);
}

.mk-field-error {
  min-height: 0;
  color: var(--mk-form-error);
  font-size: 11px;
}

.mk-form-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--mk-form-muted);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.mk-form-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--mk-form-ink);
}

.mk-form-consent.is-invalid {
  color: var(--mk-form-error);
}

.mk-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mk-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 22px;
  color: #fff;
  background: var(--mk-form-ink);
  border: 1px solid var(--mk-form-ink);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mk-form-submit:hover {
  color: #fff;
  background: #2b2724;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(25, 23, 21, 0.16);
}

.mk-form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.mk-form-note {
  margin: 0;
  color: #8b847e;
  font-size: 10.5px;
  line-height: 1.45;
}

.mk-form-alert {
  display: none;
  padding: 12px 14px;
  color: var(--mk-form-error);
  background: #fff3f1;
  border: 1px solid #eed0cc;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
}

.mk-form-alert.is-visible {
  display: block;
}

.mk-form-success {
  display: none;
  min-height: 390px;
  place-items: center;
  align-content: center;
  padding: 40px;
  text-align: center;
}

.mk-form-success.is-visible {
  display: grid;
}

.mk-form-success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--mk-form-ink);
  border-radius: 50%;
}

.mk-form-success h3 {
  margin: 0 0 10px;
  color: var(--mk-form-ink);
  font-family: var(--mk-display, Georgia, serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.mk-form-success p {
  max-width: 390px;
  margin: 0;
  color: var(--mk-form-muted);
  line-height: 1.7;
}

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

/* Contact page form */
.mk-contact-form-section {
  padding: 112px 0;
  background: var(--mk-form-stone);
}

.mk-contact-form-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(90deg, #1b1917 0 41.3%, var(--mk-form-paper) 41.3% 100%);
  border: 1px solid rgba(25, 23, 21, 0.09);
  border-radius: 20px;
  box-shadow: 0 28px 65px rgba(50, 42, 35, 0.09);
}

.mk-contact-form-intro {
  position: relative;
  align-self: stretch;
  height: auto !important;
  padding: 66px 56px;
  color: #fff;
  background: #1b1917;
}

.mk-contact-form-intro::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.mk-contact-form-intro h2 {
  max-width: 430px;
  color: #fff;
  font-size: clamp(43px, 4vw, 62px);
  line-height: 1;
}

.mk-contact-form-intro > p:not(.mk-form-eyebrow) {
  max-width: 420px;
  margin: 26px 0 38px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.mk-contact-form-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.mk-contact-form-facts div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mk-contact-form-facts span {
  color: var(--mk-form-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.mk-contact-form-facts strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}

.mk-contact-form-card {
  align-self: stretch;
  height: auto !important;
  padding: 60px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--mk-form-paper);
}

.mk-contact-form-card > * {
  width: 100%;
}

.mk-contact-form-card .mk-form-head {
  margin-bottom: 32px;
}

@keyframes mkFormFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mkFormRise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
  .mk-consultation-panel,
  .mk-contact-form-shell {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .mk-consultation-story {
    padding: 46px 34px 38px;
  }

  .mk-consultation-form-wrap,
  .mk-contact-form-card {
    padding-right: 38px;
    padding-left: 38px;
  }

  .mk-contact-form-intro {
    padding-right: 38px;
    padding-left: 38px;
  }
}

@media (max-width: 760px) {
  .mk-consultation-dialog {
    display: block;
    padding: 0 !important;
    overflow-y: auto;
    background: var(--mk-form-paper);
  }

  .mk-consultation-backdrop {
    display: none;
  }

  .mk-consultation-panel {
    display: block;
    width: 100%;
    max-height: none;
    min-height: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mk-consultation-story {
    min-height: 250px;
    padding: 54px 24px 32px;
  }

  .mk-consultation-story h2 {
    max-width: 310px;
    font-size: 43px;
  }

  .mk-consultation-story > div > p:not(.mk-form-eyebrow) {
    max-width: 330px;
    margin-top: 18px;
    font-size: 13px;
  }

  .mk-consultation-points {
    display: none;
  }

  .mk-consultation-form-wrap {
    max-height: none;
    padding: 34px 24px 42px;
    overflow: visible;
  }

  .mk-dialog-close {
    position: fixed;
    top: 14px;
    right: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 255, 255, 0.32);
  }

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

  .mk-contact-form-section {
    padding: 70px 0;
  }

  .mk-contact-form-shell {
    grid-template-columns: 1fr;
    background: var(--mk-form-paper);
    border-radius: 14px;
  }

  .mk-contact-form-intro {
    padding: 46px 28px;
  }

  .mk-contact-form-intro h2 {
    font-size: 42px;
  }

  .mk-contact-form-card {
    padding: 42px 26px;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .mk-consultation-story h2,
  .mk-contact-form-intro h2 {
    font-size: 39px;
  }

  .mk-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mk-form-submit {
    width: 100%;
  }

  .mk-contact-form-section .container {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-consultation-backdrop,
  .mk-consultation-panel {
    animation: none;
  }
}
