/* ⭐⭐⭐ GROUPS AND PRIVATE EVENTS ENQUIRY FORM, 2026-10-01.
   Wendy, 2026-09-26: "can we have a link to open to the form with the information you had
   below? I think one of the past versions had a nice form. If the form can link to both
   guestrelations@ and managers@, that would be great!"
   The "nice form" is the template's Book Your Table form (on the homepage until --no-reserve
   hid it, and on the template's /contact page that the old Groups nav link opened). These
   fields, sizes and the button are drawn from it so it reads as the same family.

   ⛔ Everything here lives OUTSIDE #main (a <body> child, like #mg-veil), so React never sees
   it and hydration cannot redraw or drop it.
   ⛔ Every field is 16px: iOS zooms the page on focus of anything smaller.
   ⛔ Opacity only, never a transform, on anything with a hairline edge (it strobes).
   Two presentations share one form: html[data-mgg="popup"] and html[data-mgg="page"]. */

:root {
  --mgg-black: rgb(11, 19, 21);
  --mgg-panel: rgb(15, 29, 34);
  --mgg-field: rgb(18, 25, 28);
  --mgg-line: #193039;
  --mgg-gold: #efc9a4;
  --mgg-cream: #f3ede6;
  --mgg-text: #d7d7d7;
  --mgg-white: #f5f5f5;
  /* the beige section the old reservation form sat on (EXP_* in home-mongolie.py) */
  --mgg-beige: #eee8e0;
  --mgg-beige-field: #f7f4ef;
  --mgg-ink: #151e1b;
  --mgg-body: #55605b;
  --mgg-dgold: #7d5f2e;
}

/* ---------- the band: the email box goes, its Inquire button stays and opens the form ---------- */
/* ⛔ On tablet and desktop the template lays the button ABSOLUTELY over the right end of the
   email box (.framer-n1tohh-container: absolute, right 0, 130px). With the box gone the form
   collapses to 0px and the button hangs off it, so it is put back into the flow: right-aligned
   under the band's two columns on desktop, centred under the centred heading on tablet, full
   width on a phone (where the template already flows it). */
html[data-mgg] form.framer-7hbgef .framer-form-input-wrapper { display: none !important; }
html[data-mgg] form.framer-7hbgef .framer-n1tohh-container {
  position: relative !important; right: auto !important; top: auto !important;
}
@media (min-width: 810px) {
  html[data-mgg] form.framer-7hbgef .framer-n1tohh-container { width: 240px !important; }
}
/* its parent is an inner wrapper (.framer-bjgmik) that centres, so the margins do the aligning */
@media (min-width: 1200px) {
  html[data-mgg] form.framer-7hbgef .framer-n1tohh-container { margin-left: auto !important; margin-right: 0 !important; }
}
@media (min-width: 810px) and (max-width: 1199px) {
  html[data-mgg] form.framer-7hbgef .framer-n1tohh-container { margin-left: auto !important; margin-right: auto !important; }
}

/* ---------- shell shared by both ---------- */
html.mgg-lock, html.mgg-lock body { overflow: hidden !important; }
#mgg { position: fixed; inset: 0; z-index: 2147482000; display: none; }
#mgg.mgg-on { display: block; }
#mgg *, #mgg *::before, #mgg *::after { box-sizing: border-box; }
#mgg .mgg-scroll {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* zero specificity, so every margin set below wins over this reset */
:where(#mgg) :where(h2, h3, p) { margin: 0; }
/* the heading takes focus on open (for screen readers); it is not a control, so no ring */
#mgg [tabindex="-1"]:focus { outline: none; }
#mgg .mgg-title {
  font-family: "Cormorant Garamond", "Cormorant Garamond Placeholder", serif;
  font-weight: 600; letter-spacing: 0; line-height: 1.1;
}
#mgg .mgg-lede, #mgg label, #mgg input, #mgg select, #mgg textarea, #mgg button, #mgg .mgg-small {
  font-family: Jost, "Jost Placeholder", sans-serif;
}
#mgg .mgg-lede { font-size: 18px; line-height: 1.5; }

/* ---------- the form ---------- */
#mgg .mgg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 24px; }
#mgg .mgg-f { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#mgg .mgg-full { grid-column: 1 / -1; }
#mgg label { font-size: 16px; line-height: 1.3; font-weight: 400; }
#mgg .mgg-box { position: relative; }
#mgg input, #mgg select, #mgg textarea {
  display: block; width: 100%; margin: 0; border-radius: 0;
  font-size: 16px; line-height: 24px; font-weight: 400;
  -webkit-appearance: none; appearance: none; outline: none;
  border: 1px solid var(--mgg-line);
  transition: border-color .2s ease, background-color .2s ease;
}
#mgg input, #mgg select { height: 56px; padding: 0 16px; }
#mgg textarea { min-height: 128px; padding: 14px 16px; resize: vertical; }
/* iOS draws a date field with its value centred and a collapsed height. */
#mgg input[type="date"] { text-align: left; min-height: 56px; }
#mgg input[type="date"]::-webkit-date-and-time-value { text-align: left; }
#mgg input[type="number"] { -moz-appearance: textfield; }
#mgg input[type="number"]::-webkit-inner-spin-button,
#mgg input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#mgg select { padding-right: 44px; cursor: pointer; }
/* the template's chevron: a small filled triangle */
#mgg .mgg-sel::after {
  content: ""; position: absolute; right: 20px; top: 50%; margin-top: -3px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--mgg-gold); pointer-events: none;
}
#mgg .mgg-msg { font-size: 14px; line-height: 1.3; min-height: 0; display: none; }
#mgg .mgg-bad .mgg-msg { display: block; }
#mgg .mgg-hp { display: none !important; }

#mgg .mgg-submit {
  position: relative; display: block; width: 100%; height: 56px; margin-top: 36px;
  border: 0; border-radius: 0; cursor: pointer; overflow: hidden;
  font-size: 15px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* the template's construction: a fill, a 2px ring, and a bar that sweeps up on hover */
#mgg .mgg-submit::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--mgg-ringc); pointer-events: none; }
#mgg .mgg-submit .mgg-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--mgg-ringc);
  transition: height .35s cubic-bezier(.22, 1, .36, 1);
}
#mgg .mgg-submit .mgg-lbl { position: relative; transition: color .35s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  #mgg .mgg-submit:hover .mgg-bar { height: 100%; }
  #mgg .mgg-submit:hover .mgg-lbl { color: var(--mgg-hovtext); }
}
#mgg .mgg-submit[disabled] { cursor: progress; opacity: .7; }
#mgg .mgg-small { font-size: 15px; line-height: 1.5; margin-top: 18px; text-align: center; }
#mgg .mgg-small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
#mgg .mgg-err { font-size: 16px; line-height: 1.45; margin-top: 18px; padding: 14px 16px; display: none; }
#mgg .mgg-err.mgg-show { display: block; }
#mgg .mgg-done { display: none; text-align: center; padding: 24px 0 8px; }
#mgg.mgg-sent .mgg-done { display: block; }
#mgg.mgg-sent form { display: none; }
#mgg .mgg-done .mgg-title { margin-bottom: 14px; }
#mgg .mgg-done .mgg-submit { max-width: 320px; margin: 32px auto 0; }

#mgg .mgg-close {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; padding: 0;
  border: 0; background: transparent; cursor: pointer; z-index: 2;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#mgg .mgg-close::before, #mgg .mgg-close::after {
  content: ""; position: absolute; left: 13px; right: 13px; top: 23px; height: 2px;
  background: var(--mgg-closec); transform: rotate(45deg);
}
#mgg .mgg-close::after { transform: rotate(-45deg); }

/* ================= OPTION 1: POP-UP, the site's black ================= */
html[data-mgg="popup"] #mgg {
  --mgg-ringc: var(--mgg-gold); --mgg-hovtext: var(--mgg-black); --mgg-closec: var(--mgg-cream);
  background: rgba(5, 9, 10, .78);
  opacity: 0; transition: opacity .28s cubic-bezier(.33, 0, .2, 1);
}
html[data-mgg="popup"] #mgg.mgg-in { opacity: 1; }
html[data-mgg="popup"] .mgg-scroll { display: flex; padding: 48px 24px; }
html[data-mgg="popup"] .mgg-card {
  position: relative; margin: auto; width: 100%; max-width: 780px;
  background: var(--mgg-black); border: 1px solid rgba(239, 201, 164, .22);
  padding: 56px 64px 48px;
}
html[data-mgg="popup"] .mgg-head { margin-bottom: 36px; padding-right: 32px; }
html[data-mgg="popup"] .mgg-title { font-size: 44px; color: var(--mgg-gold); }
html[data-mgg="popup"] .mgg-lede { color: var(--mgg-text); margin-top: 12px; }
html[data-mgg="popup"] #mgg label { color: var(--mgg-white); }
html[data-mgg="popup"] #mgg input, html[data-mgg="popup"] #mgg select, html[data-mgg="popup"] #mgg textarea {
  background: var(--mgg-field); color: var(--mgg-white); color-scheme: dark;
}
html[data-mgg="popup"] #mgg ::placeholder { color: rgba(245, 245, 245, .42); }
html[data-mgg="popup"] #mgg select:invalid { color: rgba(245, 245, 245, .42); }
html[data-mgg="popup"] #mgg option { color: var(--mgg-white); background: var(--mgg-field); }
html[data-mgg="popup"] #mgg input:focus, html[data-mgg="popup"] #mgg select:focus,
html[data-mgg="popup"] #mgg textarea:focus { border-color: rgba(239, 201, 164, .7); }
html[data-mgg="popup"] #mgg .mgg-bad input, html[data-mgg="popup"] #mgg .mgg-bad select { border-color: #e59a83; }
html[data-mgg="popup"] #mgg .mgg-msg { color: #f0b09d; }
html[data-mgg="popup"] .mgg-submit { background: var(--mgg-panel); }
html[data-mgg="popup"] .mgg-submit .mgg-lbl { color: var(--mgg-cream); }
html[data-mgg="popup"] .mgg-small { color: var(--mgg-text); }
html[data-mgg="popup"] .mgg-err { color: var(--mgg-white); background: rgba(229, 154, 131, .12); border: 1px solid rgba(229, 154, 131, .5); }
html[data-mgg="popup"] .mgg-done .mgg-lede { color: var(--mgg-text); }

@media (max-width: 700px) {
  html[data-mgg="popup"] .mgg-scroll { padding: 0; display: block; }
  html[data-mgg="popup"] .mgg-card { min-height: 100%; max-width: none; border: 0; padding: 72px 20px 40px; }
  html[data-mgg="popup"] .mgg-title { font-size: 36px; }
  html[data-mgg="popup"] .mgg-close { position: fixed; }
}

/* ================= OPTION 2: ITS OWN PAGE, the old form's beige ================= */
html[data-mgg="page"] #mgg {
  --mgg-ringc: var(--mgg-dgold); --mgg-hovtext: var(--mgg-cream); --mgg-closec: var(--mgg-cream);
  background: var(--mgg-beige);
}
html[data-mgg="page"] .mgg-top {
  position: sticky; top: 0; z-index: 3; height: 84px; background: var(--mgg-black);
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
}
html[data-mgg="page"] .mgg-top img { height: 56px; width: auto; display: block; }
html[data-mgg="page"] .mgg-back {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px;
  background: rgba(15, 29, 34, .38); border: 2px solid var(--mgg-gold); cursor: pointer;
  font-family: Jost, "Jost Placeholder", sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .3px; text-transform: uppercase; color: var(--mgg-cream);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
html[data-mgg="page"] .mgg-hero {
  position: relative; height: 46vh; min-height: 320px; max-height: 520px;
  background: var(--mgg-black) url("/_f/images/mg-table.jpg") center 62% / cover no-repeat;
  display: flex; align-items: flex-end;
}
html[data-mgg="page"] .mgg-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 21, .30) 0%, rgba(11, 19, 21, .45) 40%, rgba(11, 19, 21, .90) 100%);
}
html[data-mgg="page"] .mgg-hero .mgg-wrap { position: relative; padding-bottom: 48px; }
html[data-mgg="page"] .mgg-title { font-size: 64px; color: var(--mgg-gold); }
html[data-mgg="page"] .mgg-hero .mgg-lede { color: var(--mgg-cream); margin-top: 14px; max-width: 34em; }
html[data-mgg="page"] .mgg-wrap { width: 100%; max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
html[data-mgg="page"] .mgg-body { padding: 64px 0 96px; }
html[data-mgg="page"] #mgg label { color: var(--mgg-ink); }
html[data-mgg="page"] #mgg input, html[data-mgg="page"] #mgg select, html[data-mgg="page"] #mgg textarea {
  background: var(--mgg-beige-field); color: var(--mgg-ink); border-color: rgba(21, 30, 27, .16); color-scheme: light;
}
html[data-mgg="page"] #mgg ::placeholder { color: rgba(21, 30, 27, .45); }
html[data-mgg="page"] #mgg select:invalid { color: rgba(21, 30, 27, .45); }
html[data-mgg="page"] #mgg option { color: var(--mgg-ink); background: #fff; }
html[data-mgg="page"] #mgg .mgg-sel::after { border-top-color: var(--mgg-dgold); }
html[data-mgg="page"] #mgg input:focus, html[data-mgg="page"] #mgg select:focus,
html[data-mgg="page"] #mgg textarea:focus { border-color: var(--mgg-dgold); }
html[data-mgg="page"] #mgg .mgg-bad input, html[data-mgg="page"] #mgg .mgg-bad select { border-color: #b4452a; }
html[data-mgg="page"] #mgg .mgg-msg { color: #a13b22; }
html[data-mgg="page"] .mgg-submit { background: #19201e; }
html[data-mgg="page"] .mgg-submit .mgg-lbl { color: var(--mgg-cream); }
html[data-mgg="page"] .mgg-small { color: var(--mgg-body); }
html[data-mgg="page"] .mgg-err { color: var(--mgg-ink); background: rgba(180, 69, 42, .08); border: 1px solid rgba(180, 69, 42, .45); }
html[data-mgg="page"] .mgg-done .mgg-title { color: var(--mgg-ink); font-size: 48px; }
html[data-mgg="page"] .mgg-done .mgg-lede { color: var(--mgg-body); }

@media (max-width: 700px) {
  html[data-mgg="page"] .mgg-top { height: 68px; padding: 0 16px; }
  html[data-mgg="page"] .mgg-top img { height: 44px; }
  html[data-mgg="page"] .mgg-back { height: 44px; padding: 0 16px; font-size: 13px; }
  html[data-mgg="page"] .mgg-hero { height: 38vh; min-height: 280px; }
  html[data-mgg="page"] .mgg-hero::before { background: linear-gradient(180deg, rgba(11, 19, 21, .45) 0%, rgba(11, 19, 21, .62) 40%, rgba(11, 19, 21, .92) 100%); }
  html[data-mgg="page"] .mgg-hero .mgg-wrap { padding-bottom: 32px; }
  html[data-mgg="page"] .mgg-title { font-size: 42px; }
  html[data-mgg="page"] .mgg-wrap { padding-left: 20px; padding-right: 20px; }
  html[data-mgg="page"] .mgg-body { padding: 40px 0 64px; }
}

@media (max-width: 700px) {
  #mgg .mgg-grid { grid-template-columns: 1fr; gap: 20px; }
  #mgg .mgg-lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mgg="popup"] #mgg { transition: none; }
  #mgg .mgg-submit .mgg-bar, #mgg .mgg-submit .mgg-lbl { transition: none; }
}
