:root {
  --mcg-popup-gold: #b18437;
  --mcg-popup-paper: #d0cfd3;
  --mcg-popup-ink: #111111;
}

.mcg-popup-test-body {
  --sector-gold: var(--mcg-popup-gold);
  background: var(--mcg-popup-paper);
}

.mcg-popup-test-body.mcg-popup-is-open {
  overflow: hidden;
}

body.mcg-popup-is-open {
  overflow: hidden;
}

.mcg-popup-test-page {
  color: var(--mcg-popup-ink);
  overflow: hidden;
}

.mcg-popup-test-shell {
  margin: 0 auto;
  max-width: 1220px;
  padding-left: 30px;
  padding-right: 30px;
}

.mcg-popup-test-hero {
  background: #0b0b0b;
  color: #ffffff;
  padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 9vw, 112px);
}

.mcg-popup-test-hero h1 {
  color: #ffffff;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: .95;
  margin: 24px 0;
  max-width: 900px;
}

.mcg-popup-test-hero > .mcg-popup-test-shell > p:not(.mcg-pill) {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  max-width: 800px;
}

.mcg-popup-test-notice {
  background: rgba(177, 132, 55, .16);
  border: 1px solid var(--mcg-popup-gold);
  font-size: 17px;
  line-height: 1.5;
  margin-top: 38px;
  max-width: 820px;
  padding: 16px 20px;
}

.mcg-popup-test-options {
  padding: clamp(72px, 9vw, 120px) 0;
}

.mcg-popup-test-heading {
  margin-bottom: 44px;
  max-width: 840px;
}

.mcg-popup-test-heading h2,
.mcg-popup-test-scroll h2 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.02;
  margin: 22px 0;
}

.mcg-popup-test-heading > p:last-child,
.mcg-popup-test-scroll p {
  font-size: 19px;
  line-height: 1.6;
}

.mcg-popup-test-heading code {
  font-size: .82em;
}

.mcg-popup-test-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mcg-popup-test-card {
  background: #ffffff;
  border-top: 5px solid var(--mcg-popup-gold);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
  display: grid;
  grid-template-columns: minmax(180px, .76fr) 1.24fr;
  min-height: 390px;
}

.mcg-popup-test-card--residential {
  border-color: #1e5b45;
}

.mcg-popup-test-card--investor {
  border-color: #8f1432;
}

.mcg-popup-test-card > img {
  height: 100%;
  object-fit: cover;
  object-position: 12% center;
  width: 100%;
}

.mcg-popup-test-card > div {
  align-items: start;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
}

.mcg-popup-test-card__label {
  color: var(--mcg-popup-gold);
  font-size: 15px;
  letter-spacing: .08em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.mcg-popup-test-card h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 18px;
}

.mcg-popup-test-card p:not(.mcg-popup-test-card__label) {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.mcg-popup-test-card .mcg-sector-button {
  margin-top: auto;
  min-width: 0;
  width: 100%;
}

.mcg-popup-test-scroll {
  background: #ffffff;
  min-height: 70vh;
  padding: clamp(90px, 12vw, 170px) 0;
}

.mcg-popup-test-scroll .mcg-popup-test-shell {
  max-width: 930px;
}

.mcg-lead-popup {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 10050;
}

.mcg-lead-popup[hidden] {
  display: none;
}

.mcg-lead-popup__backdrop {
  background: rgba(0, 0, 0, .8);
  inset: 0;
  position: absolute;
}

.mcg-lead-popup__panel {
  background: var(--mcg-popup-paper);
  border-top: 15px solid var(--mcg-popup-gold);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(520px, 1.08fr);
  max-height: calc(100vh - 56px);
  max-width: 1240px;
  overflow: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.mcg-lead-popup__visual {
  background: var(--mcg-popup-paper);
  min-height: 610px;
}

.mcg-lead-popup__visual img {
  height: 100%;
  object-fit: cover;
  object-position: 12% center;
  width: 100%;
}

.mcg-lead-popup__content {
  align-self: center;
  padding: 68px clamp(48px, 5vw, 76px) 62px clamp(42px, 4vw, 64px);
}

.mcg-lead-popup__eyebrow {
  display: none;
}

.mcg-lead-popup__content h2 {
  color: var(--mcg-popup-ink);
  font-size: clamp(38px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 48px 30px 0;
}

@media (min-width: 1100px) {
  .mcg-lead-popup:not(.is-investor) .mcg-lead-popup__content h2 {
    white-space: nowrap;
  }
}

.mcg-lead-popup__copy {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

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

.mcg-lead-popup label {
  display: block;
}

.mcg-lead-popup label > span {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.mcg-lead-popup__field--full,
.mcg-lead-popup__captcha,
.mcg-lead-popup__submit,
.mcg-lead-popup__privacy,
.mcg-lead-popup__status {
  grid-column: 1 / -1;
}

.mcg-lead-popup input {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  color: #111111;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  min-height: 66px;
  padding: 16px 18px;
  width: 100%;
}

.mcg-lead-popup .mcg-lead-popup__captcha {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.mcg-lead-popup .mcg-lead-popup__captcha > span {
  clip: auto;
  clip-path: none;
  color: var(--mcg-popup-ink);
  font-size: 18px;
  height: auto;
  overflow: visible;
  position: static;
  white-space: normal;
  width: auto;
}

.mcg-lead-popup .mcg-lead-popup__captcha input {
  min-height: 58px;
  width: 180px;
}

.mcg-lead-popup input::placeholder {
  color: #5d5853;
  opacity: 1;
}

.mcg-lead-popup input:focus {
  border-color: var(--mcg-popup-gold);
  box-shadow: 0 0 0 2px rgba(177, 132, 55, .2);
  outline: none;
}

.mcg-lead-popup__submit {
  background: var(--mcg-popup-gold) !important;
  color: #ffffff !important;
  height: 56px;
  justify-self: start;
  margin-top: 0;
  min-width: 325px;
}

.mcg-lead-popup__submit[disabled] {
  cursor: wait;
  opacity: .65;
}

.mcg-lead-popup__privacy {
  display: none;
}

.mcg-lead-popup__status {
  border-left: 3px solid var(--mcg-popup-gold);
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  padding: 12px 14px;
}

.mcg-lead-popup__status.is-success {
  background: #e5f0e9;
  color: #15472f;
}

.mcg-lead-popup__status.is-error {
  background: #f8e8e8;
  color: #7f1717;
}

.mcg-lead-popup__close {
  background: transparent;
  border: 1px solid #111111;
  color: #111111;
  cursor: pointer;
  font-size: 0;
  height: 44px;
  padding: 0;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 44px;
  z-index: 2;
}

.mcg-lead-popup__close::before,
.mcg-lead-popup__close::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: center;
  width: 18px;
}

.mcg-lead-popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mcg-lead-popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mcg-lead-popup__close:focus-visible,
.mcg-lead-popup__close:hover {
  background: var(--mcg-popup-gold);
  border-color: var(--mcg-popup-gold);
  color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.mcg-lead-popup.is-investor .mcg-lead-popup__panel {
  --mcg-popup-gold: #a7792f;
}

@media (max-width: 980px) {
  .mcg-popup-test-card {
    grid-template-columns: 1fr;
  }

  .mcg-popup-test-card > img {
    height: 280px;
  }

  .mcg-lead-popup__panel {
    grid-template-columns: minmax(270px, .72fr) minmax(440px, 1.28fr);
  }

  .mcg-lead-popup__visual {
    min-height: 590px;
  }
}

@media (max-width: 820px) {
  .mcg-popup-test-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mcg-popup-test-grid {
    grid-template-columns: 1fr;
  }

  .mcg-popup-test-card > img {
    height: 235px;
  }

  .mcg-lead-popup {
    align-items: flex-start;
    padding: 14px;
  }

  .mcg-lead-popup__panel {
    border-top-width: 8px;
    display: block;
    max-height: calc(100vh - 28px);
  }

  .mcg-lead-popup__visual {
    height: 220px;
    min-height: 0;
  }

  .mcg-lead-popup__content {
    padding: 30px 22px 34px;
  }

  .mcg-lead-popup__content h2 {
    font-size: clamp(34px, 10vw, 44px);
    margin: 0 38px 24px 0;
  }

  .mcg-lead-popup form {
    grid-template-columns: 1fr;
  }

  .mcg-lead-popup__field--full,
  .mcg-lead-popup__captcha,
  .mcg-lead-popup__submit,
  .mcg-lead-popup__privacy,
  .mcg-lead-popup__status {
    grid-column: 1;
  }

  .mcg-lead-popup__submit {
    height: 54px;
    min-width: 0;
    width: 100%;
  }

  .mcg-lead-popup .mcg-lead-popup__captcha input {
    width: 100%;
  }

  .mcg-lead-popup__close {
    right: 10px;
    top: 10px;
  }
}
