/* =========================================================
   Skiathos Homes — sh-land-intro.css
   /land/ standing-brief POPUP only.

   The one-screen policy is styled by sh-land-policy.css.
   This file styles only the standing-brief popup that its CTA opens.

   Depends on: sh-core.css (tokens, luxury-line inputs, .sh-label,
   .sh-form-success), sh-land-policy.css (the screen), sh-land-intro.js (popup),
   sh-forms.js (AJAX submit).
========================================================= */

.lin-overlay,
.lin-modal { --_ease: cubic-bezier(.22,1,.36,1); }
.lin-modal {
  --_grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ── Eyebrow (canonical) — used in the popup header ── */
.lin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
.lin-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .8;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   BRIEF POPUP
════════════════════════════════════════════ */
.lin-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,9,14,.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--_ease);
}
.lin-overlay.is-open { opacity: 1; pointer-events: auto; }

.lin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  z-index: 2001;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  /* Same warm "paper" surface as the intro panel: navy + gold glow + grain */
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(201,174,120,.08) 0%, transparent 55%),
    var(--navy-dark);
  /* Canonical card border: the same gold-tinted hairline used by the property
     request modal and the Off-Market form card. Was a neutral white hairline
     plus a heavy 2px solid gold top edge, which is why this popup read as a
     different colour scheme from every other form. The gold now arrives as the
     shared 1px --topline-gold gradient (::before below), like .own-card. */
  border: 1px solid rgba(201,174,120,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--_ease), transform .35s var(--_ease);
}
.lin-modal::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--topline-gold);
  opacity: .6;
  pointer-events: none;
  z-index: 2;
}
.lin-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--_grain);
  background-size: 200px 200px;
  opacity: .03;
  mix-blend-mode: soft-light;
  z-index: 0;
}
.lin-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.lin-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: color .2s, border-color .2s, background .2s;
}
/* The button used to render the &times; text character at 1.4rem. That glyph is
   a mathematical multiplication sign: its weight and optical centre are set by
   the font, not by us, so inside a 38px circle it sat slightly high and looked
   thin and lopsided. A stroked SVG gives an X that is actually centred and
   matches the weight of the site's other line work. */
.lin-modal__close svg { width: 15px; height: 15px; display: block; }
.lin-modal__close:hover {
  color: var(--white);
  border-color: rgba(201,174,120,.55);
  background: rgba(255,255,255,.07);
}
.lin-modal__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lin-modal__inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(30px, 4vw, 46px);
}

.lin-modal__title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 12px;
}
.lin-modal__title em { font-style: italic; color: var(--gold); }

.lin-modal__sub {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.62;
  color: rgba(255,255,255,.55);
  max-width: 46ch;
  margin-bottom: clamp(22px, 2.6vw, 30px);
}

/* ── Form (inside popup) ── */
.lin-row { display: grid; gap: 18px; }
.lin-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lin-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lin-row--3 .lin-group:first-child { grid-column: 1 / -1; }
.lin-group { min-width: 0; margin-bottom: 16px; }
.lin-row .lin-group { margin-bottom: 16px; }

.lin-modal .sh-label { font-size: .68rem; margin-bottom: 3px; }

/* Compact the shared fields a touch for the popup — this modal has to fit a
   whole brief inside one screen. Only the padding is trimmed; frame, radius,
   focus ring and the gold select chevron all come from sh-core.css.
   The !important that used to be on every line here existed solely to beat
   core's old !important block; both are gone. */
.lin-modal input[type="text"],
.lin-modal input[type="email"],
.lin-modal select,
.lin-modal textarea {
  min-width: 0;
  padding: 10px 14px;
}
.lin-modal select { padding-right: 38px; }
.lin-modal textarea { min-height: 54px; }

/* ── Privacy consent (required) ── */
.lin-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: .74rem;
  line-height: 1.55;
  color: rgba(255,255,255,.42);
}
.lin-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
}
.lin-consent label { cursor: pointer; }
.lin-consent a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lin-submit { width: 100%; margin-top: 6px; padding: 15px 32px !important; }

.lin-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.32);
}
/* AJAX success/error boxes come from sh-core (.sh-form-success/.sh-form-status) */

@media (max-width: 640px) {
  .lin-row--2,
  .lin-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lin-row--3 .lin-group:first-child { grid-column: 1 / -1; }
  .lin-row .lin-group { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lin-modal { transition: opacity .2s; }
}
