/* ==========================================================================
   CLUB AMBIANCE — free sign-up pop-up
   Port of the "Inschrijving Popup" handoff, whose markup carried every rule as
   an inline style. Everything is lifted into classes here; the values are the
   handoff's own.

   Unlike signup.css this one loads on ordinary site pages, which do NOT ship
   the membership design system. So it is self-contained: it declares the
   Domaine face it needs (Futura is already declared site-wide in style.css)
   and every rule is scoped under .cap-* so nothing leaks into the page behind
   the overlay.
   ========================================================================== */
@font-face{
  font-family:"Domaine Display";
  src:url("../fonts/Domaine-600.otf") format("opentype");
  font-weight:600;font-style:normal;font-display:swap;
}

.cap-overlay{
  position:fixed;inset:0;
  /* .block-showload and .block-ads-popup are fixed at 999999; a dialog that
     lands under them cannot be used. */
  z-index:1000000;
  display:none;align-items:center;justify-content:center;
  padding:24px;
  background:rgba(30,29,27,.62);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  animation:cap-fade .25s ease;
}
.cap-overlay.is-open{display:flex}

.cap-modal{
  position:relative;
  width:min(940px,100%);max-height:90vh;
  display:grid;
  grid-template-columns:.92fr 1fr;
  /* minmax(0,1fr) and the min-height:0 below are what let the two columns
     scroll: a grid item defaults to min-height:auto, so it refuses to shrink
     under its content, overflow-y never has anything to do and the rest is
     clipped by the overflow:hidden that rounds the corners. The second row is
     the full-width footer, which keeps its natural height. */
  grid-template-rows:minmax(0,1fr) auto;
  background:#fff;border-radius:30px;overflow:hidden;
  box-shadow:0 50px 110px -40px rgba(0,0,0,.7);
  animation:cap-pop .32s cubic-bezier(.22,.61,.36,1);
  font-family:"Futura",-apple-system,Helvetica,Arial,sans-serif;
  color:#1e1d1b;text-align:left;
}
.cap-modal *{box-sizing:border-box}

.cap-close{
  position:absolute;top:16px;right:16px;z-index:3;
  width:40px;height:40px;border-radius:50%;
  border:1px solid #e4e2dd;background:rgba(255,255,255,.94);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:background .15s;padding:0;
}
.cap-close:hover{background:#f2f1ee}

/* --------------------------------------------------------------------------
   LEFT — the offer, on ink
   -------------------------------------------------------------------------- */
.cap-aside{
  background:#1e1d1b;color:#fff;
  padding:40px 36px 36px;
  min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;
}
.cap-aside__logo{
  display:block;height:119px;width:214px;
  object-fit:contain;object-position:left center;margin-bottom:30px;
}
.cap-eyebrow{
  margin:0;font-size:12px;font-weight:800;letter-spacing:2px;
  text-transform:uppercase;color:#fff;
}
.cap-aside h2{
  margin:12px 0 0;font-family:inherit;font-weight:800;
  font-size:34px;line-height:1.1;letter-spacing:-.02em;color:#fff;max-width:20ch;
}
.cap-ask-body{margin:14px 0 0;font-size:18px;font-weight:500;line-height:1.5;color:#fff;max-width:32ch}
.cap-badge{
  display:inline-flex;align-items:center;align-self:flex-start;
  margin:24px 0 0;padding:8px 16px;background:#fff;border-radius:40px;
}
.cap-badge span{font-size:11px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase;color:#1e1d1b}
.cap-price{margin:18px 0 0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.cap-price__old{
  font-family:"Domaine Display",Georgia,serif;font-weight:600;font-size:30px;line-height:1;
  color:rgba(255,255,255,.78);text-decoration:line-through;text-decoration-thickness:2px;
}
.cap-price__new{font-family:"Domaine Display",Georgia,serif;font-weight:600;font-size:58px;line-height:1;color:#fff}
.cap-price__per{font-size:15px;color:rgba(255,255,255,.82)}
.cap-offer-note{margin:10px 0 0;font-size:13.5px;font-weight:700;color:#fff}
.cap-desc{margin:16px 0 0;font-size:15px;font-weight:500;line-height:1.55;color:#fff;max-width:34ch}
.cap-rule{height:1px;background:rgba(255,255,255,.18);margin:26px 0}
.cap-receive{margin:0 0 16px;font-size:12px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:#fff}
.cap-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cap-perks li{display:flex;align-items:center;gap:11px}
.cap-perks svg{flex:0 0 auto}
.cap-perks span{font-size:14px;font-weight:500;line-height:1.3;color:#fff}
.cap-cancel{margin:0;font-size:13px;line-height:1.45;color:#fff}

/* --------------------------------------------------------------------------
   RIGHT — the form
   -------------------------------------------------------------------------- */
.cap-body{
  padding:44px 40px 40px;
  min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
}
/* Thin scrollbar so the form does not gain a chunky native gutter. */
.cap-aside::-webkit-scrollbar,
.cap-body::-webkit-scrollbar{width:7px}
.cap-aside::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:8px}
.cap-body::-webkit-scrollbar-thumb{background:#d6d3cc;border-radius:8px}
.cap-step{
  margin:0 0 4px;font-size:11.5px;font-weight:800;letter-spacing:2px;
  text-transform:uppercase;color:#55524d;
}
.cap-body h3{
  margin:8px 0 0;font-family:"Domaine Display",Georgia,serif;font-weight:600;
  font-size:clamp(28px,3vw,38px);line-height:1.05;color:#1e1d1b;
}
.cap-intro{margin:12px 0 0;font-size:15px;line-height:1.6;color:#3a3a37;max-width:44ch}

.cap-form{margin-top:28px;display:flex;flex-direction:column;gap:13px}
.cap-form__row{display:grid;grid-template-columns:1fr 1fr;gap:13px}

.cap-field{
  width:100%;font-family:inherit;font-size:15px;font-weight:400;color:#1e1d1b;
  background:#fff;border:1px solid #e4e2dd;border-radius:8px;
  padding:15px 16px;outline:none;transition:border-color .15s;
}
.cap-field:focus{border-color:#1e1d1b}
.cap-field::placeholder{color:#2b2a27;opacity:1}
.cap-field.is-invalid{border-color:#b3261e}
select.cap-field{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  min-height:56px;padding:15px 44px 15px 16px;cursor:pointer;line-height:1.2;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat:no-repeat;background-position:right 16px center;
}
select.cap-field.is-empty{color:#2b2a27}

.cap-phone{display:flex;gap:10px}
.cap-phone .cap-field--dial{flex:0 0 auto;width:158px;font-size:16px;padding:15px 38px 15px 14px}
.cap-phone .cap-field--tel{flex:1;min-width:0}

.cap-error{display:block;margin-top:6px;font-size:12.5px;color:#b3261e}
.cap-form__error{margin:0;font-size:13.5px;line-height:1.5;color:#b3261e}

/* Call-back slot picker — boxed, unlike the page version */
.cap-contact{margin-top:8px;padding:20px;background:#faf9f6;border:1px solid #e4e2dd;border-radius:14px}
.cap-contact__label{
  margin:0 0 4px;font-size:11.5px;font-weight:800;letter-spacing:1.4px;
  text-transform:uppercase;color:#1e1d1b;
}
.cap-contact__hint{margin:0 0 14px;font-size:13.5px;line-height:1.5;color:#3a3a37}
.cap-contact__slots{display:flex;flex-wrap:wrap;gap:8px}
.cap-slot{
  min-height:48px;padding:0 17px;border-radius:40px;border:1px solid #e4e2dd;
  background:#fff;color:#1e1d1b;cursor:pointer;font-family:inherit;font-size:14px;
  transition:background .15s,color .15s,border-color .15s;
}
.cap-slot.is-on{background:#1e1d1b;color:#fff;border-color:#1e1d1b}

.cap-captcha{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:8px}

.cap-submit{
  align-self:center;width:100%;max-width:340px;margin-top:14px;min-height:54px;
  background:#1e1d1b;color:#fff;border:none;border-radius:40px;cursor:pointer;
  font-family:inherit;font-size:13px;font-weight:700;letter-spacing:1.5px;
  text-transform:uppercase;transition:transform .15s cubic-bezier(.22,.61,.36,1);
}
.cap-submit:hover{transform:translateY(-1px)}
.cap-submit[disabled]{opacity:.6;cursor:default;transform:none}

/* --------------------------------------------------------------------------
   SUCCESS STATE
   -------------------------------------------------------------------------- */
.cap-done{
  display:none;flex-direction:column;justify-content:center;align-items:center;
  min-height:420px;text-align:center;
}
.cap-done__icon{
  width:64px;height:64px;border-radius:50%;background:#1e1d1b;
  display:flex;align-items:center;justify-content:center;
}
.cap-done h3{
  margin:26px 0 0;font-family:"Domaine Display",Georgia,serif;font-weight:600;
  font-size:clamp(26px,2.8vw,34px);line-height:1.1;max-width:22ch;
}
.cap-done__body{margin:16px 0 0;font-size:16px;line-height:1.6;color:#3a3a37;max-width:40ch}
.cap-done__note{margin:20px 0 0;font-size:13.5px;line-height:1.55;color:#55524d;max-width:38ch}
/* The number sits under the question, on its own line and big enough to tap */
.cap-done__tel{
  display:inline-block;margin:6px 0 0;font-size:20px;font-weight:700;
  letter-spacing:.01em;color:#1e1d1b;text-decoration:none;
  border-bottom:2px solid rgba(30,29,27,.18);padding-bottom:2px;
}
.cap-done__tel:hover{border-bottom-color:#1e1d1b}

/* Swapped once the lead is stored */
.cap-modal.is-done .cap-done{display:flex}
.cap-modal.is-done .cap-form-wrap{display:none}

/* --------------------------------------------------------------------------
   FOOTER — the way out for visitors who are not owners
   -------------------------------------------------------------------------- */
.cap-foot{
  grid-column:1 / -1;display:flex;align-items:center;justify-content:center;
  gap:10px;flex-wrap:wrap;padding:18px 24px;
  background:#faf9f6;border-top:1px solid #e4e2dd;
}
.cap-foot span{font-size:13.5px;color:#3a3a37}
.cap-guest{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;
  background:none;border:1px solid #1e1d1b;border-radius:40px;cursor:pointer;
  font-family:inherit;font-size:13px;font-weight:700;letter-spacing:.6px;color:#1e1d1b;
  transition:background .15s,color .15s;
}
.cap-guest:hover{background:#1e1d1b;color:#fff}

/* --------------------------------------------------------------------------
   RESPONSIVE — the handoff drops the offer column below 900px
   -------------------------------------------------------------------------- */
@media (max-width:900px){
  .cap-overlay{padding:12px}
  .cap-modal{grid-template-columns:1fr;max-height:94vh}
  .cap-aside{display:none}
  .cap-body{padding:52px 24px 28px}
}

@media (max-width:520px){
  .cap-form__row{grid-template-columns:1fr}
  .cap-phone{flex-wrap:wrap}
  .cap-phone .cap-field--dial{width:100%}
  .cap-contact{padding:16px}
}

@keyframes cap-fade{from{opacity:0}to{opacity:1}}
@keyframes cap-pop{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .cap-overlay,.cap-modal{animation:none}
}

/* The page behind must not scroll while the dialog is up. */
body.cap-locked{overflow:hidden}
