/* Shared Connect with Allison panel. The WordPress build owns markup and form delivery. */
body.ag-contact-panel-open { overflow: hidden; }
body.ag-contact-panel-open .ag-mobile-contact { display: none !important; }

.ag-contact-panel[hidden],
.ag-contact-panel[aria-hidden="true"],
dialog.ag-contact-panel:not([open]) { display: none !important; }

.ag-contact-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #171717;
  color: #fff;
  font-family: var(--font-sans, "Manrope", sans-serif);
  isolation: isolate;
}

.ag-contact-panel::backdrop { background: rgb(0 0 0 / .86); }
.ag-contact-panel:focus { outline: none; }

.ag-contact-panel, .ag-contact-panel * { box-sizing: border-box; }

.ag-contact-panel__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #171717;
}

.ag-contact-panel__backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.ag-contact-panel__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .64), rgb(0 0 0 / .72));
}

.ag-contact-panel__dialog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: #fff;
  background: transparent;
}

.ag-contact-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: 1440px;
  min-height: 100%;
  margin-inline: auto;
  padding: 110px clamp(24px, 6.25vw, 80px) 70px;
}

.ag-contact-panel__details {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-right: 32px;
}

.ag-contact-panel__form {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-left: clamp(72px, 9.76vw, 125px);
}

.ag-contact-panel__details > .eyebrow,
.ag-contact-panel__form h2 {
  margin: 0 0 28px;
  color: #fff;
  font: 400 clamp(32px, 3.1vw, 40px)/1.24 var(--font-display, "Italiana", serif);
  letter-spacing: .025em;
  text-transform: uppercase;
}

.ag-contact-panel__details > .eyebrow {
  font-size: clamp(32px, 3.1vw, 40px) !important;
  line-height: 1.24;
  color: #fff !important;
}

.ag-contact-panel__form > .eyebrow {
  margin: 0 0 10px;
  color: #fff !important;
}

.ag-contact-panel__details h2,
.ag-contact-panel__details h3,
.ag-contact-panel__details h4 {
  margin: 0 0 24px;
  color: #fff;
  font: 400 clamp(18px, 1.8vw, 22px)/1.35 var(--font-display, "Italiana", serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ag-contact-panel__form > p:not(.eyebrow) {
  margin: 0 0 24px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em;
}

.ag-contact-panel__details p,
.ag-contact-panel__details dd {
  margin: 0 0 20px;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.ag-contact-panel__details dt {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ag-contact-panel__details a,
.ag-contact-panel__form a { color: inherit; text-underline-offset: 3px; }

.ag-contact-panel__details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: clamp(52px, 13vh, 130px) 0 0;
  padding: 0;
  list-style: none;
}

.ag-contact-panel__details ul a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / .9);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.ag-contact-panel__details ul a:hover { background: #fff; color: #171717; }
.ag-contact-panel__details ul svg { width: 18px; height: 18px; }

.ag-contact-panel__wordmark img { display:block; width:min(100%,280px); height:auto; filter:brightness(0) invert(1); }
.ag-contact-panel__contacts { margin:28px 0 0; }
.ag-contact-panel__contacts > div { position:relative; padding-left:44px; margin-bottom:24px; }
.ag-contact-panel__contacts dt svg { position:absolute; top:0; left:0; width:28px; height:28px; }
.ag-contact-panel__contacts dd { margin:0; }
.ag-contact-panel__socials { display:flex; gap:24px; flex-wrap:wrap; margin-top:80px; }
.ag-contact-panel__socials a { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid #fff; border-radius:50%; }
.ag-contact-panel__socials svg { width:18px; height:18px; }
.ag-contact-panel__socials a:hover { background:#fff; color:#171717; }

/* The same GHL Contact form also appears inline. Deploy this backdrop before
   the builder's transparent, white-text CSS. Valuation is a separate form. */
.content-section:has(.ag-live-form[data-request-kind="contact"]) {
  background:linear-gradient(rgb(0 0 0 / .76),rgb(0 0 0 / .76)),url('../media/about-dallas-highland-park-estate.webp') center/cover;
  color:#fff;
}
.content-section:has(.ag-live-form[data-request-kind="contact"]) :is(h2,p,a,.eyebrow) { color:#fff; }
.content-section .ag-live-form[data-request-kind="contact"] { max-width:650px; margin:40px auto 0; }

.ag-contact-panel__close {
  position: fixed;
  z-index: 2;
  top: max(28px, env(safe-area-inset-top));
  right: max(34px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 38px/1 var(--font-sans, "Manrope", sans-serif);
  cursor: pointer;
}

.ag-contact-panel__close:hover { opacity: .7; }

.ag-contact-panel__form form { display: grid; gap: 24px; }
.ag-contact-panel__form label {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ag-contact-panel__form :is(label:has(input[type="checkbox"]), .consent) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.ag-contact-panel__form input[type="checkbox"] {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #fff;
}

.ag-contact-panel__form input:not([type="checkbox"]):not([type="radio"]),
.ag-contact-panel__form select {
  display: block;
  width: 100%;
  min-height: 39px;
  margin-top: 9px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / .88);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 400 15px/1.5 var(--font-sans, "Manrope", sans-serif);
}

.ag-contact-panel__form input::placeholder,
.ag-contact-panel__form textarea::placeholder { color: rgb(255 255 255 / .7); }

.ag-contact-panel__form textarea {
  display: block;
  width: 100%;
  min-height: 105px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / .88);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 400 15px/1.5 var(--font-sans, "Manrope", sans-serif);
  resize: vertical;
}

.ag-contact-panel__form button[type="submit"] {
  justify-self: start;
  min-height: 46px;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 600 12px/1.2 var(--font-sans, "Manrope", sans-serif);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.ag-contact-panel__form button[type="submit"]:hover { background: #fff; color: #171717; }
.ag-contact-panel__form button[type="submit"]:disabled { cursor: wait; opacity: .7; }

.ag-contact-panel__form :is(input, select, textarea, button, a):focus-visible,
.ag-contact-panel__details a:focus-visible,
.ag-contact-panel__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ag-contact-panel__form [role="status"],
.ag-contact-panel__form [role="alert"] {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / .72);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.ag-contact-panel__iframe {
  display: block;
  width: 100%;
  min-height: 850px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ag-contact-panel__iframe iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 850px;
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  .ag-contact-panel__inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 110px 20px max(72px, env(safe-area-inset-bottom));
  }
  .ag-contact-panel__form { order: 0; width: 100%; padding: 0; }
  .ag-contact-panel__details { order: 1; width: 100%; padding: 0; }
  .ag-contact-panel__details > .eyebrow,
  .ag-contact-panel__form h2 { font-size: clamp(35px, 9.8vw, 40px); }
  .ag-contact-panel__details > .eyebrow { font-size: clamp(35px, 9.8vw, 40px) !important; }
  .ag-contact-panel__details ul { margin-top: 48px; }
  .ag-contact-panel__socials { margin-top:48px; }
  .ag-contact-panel__backdrop img { object-position: 50% center; }
  .ag-contact-panel__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    font-size: 34px;
  }
  .ag-contact-panel__iframe { min-height: 850px; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-contact-panel *, .ag-contact-panel *::before, .ag-contact-panel *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
