/* ============================================================
   MORINGATO · contact.css — loaded ONLY where needed (see the
   conditional enqueue in functions.php).
   Contact page (template-contact.php) — form + the VIP "Ticket Vert"
   presale raffle (ticket replica, draw fieldset).
   Split from the monolithic style.css (v2.30.0 refactor) —
   same rules, same order, zero visual change intended.
   ============================================================ */

/* Contact form (template-contact.php) — light form on the cream page. */
.mt-contact { max-width: 560px; margin-top: 8px; display: grid; gap: 18px; }

.mt-contact__intro { margin-bottom: 30px; }

.mt-contact__hp { position: absolute; left: -9999px; }

.mt-contact__field { display: grid; gap: 7px; }

.mt-contact__field > span {
  font: 600 12px/1 var(--font); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink);
}

.mt-contact__field input,
.mt-contact__field textarea {
  width: 100%; box-sizing: border-box;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(30, 54, 32, .16); border-radius: 10px;
  padding: 13px 14px;
  font: 400 14px/1.5 var(--font);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mt-contact__field input:focus,
.mt-contact__field textarea:focus {
  outline: 0; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 122, 61, .14);
}

.mt-contact__field textarea { resize: vertical; min-height: 120px; }

.mt-contact__consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted);
}

.mt-contact__consent input { margin-top: 3px; flex: none; }

.mt-contact .mt-btn { justify-self: start; }

.mt-contact__note {
  max-width: 560px; border-radius: 12px;
  padding: 14px 16px; font-size: 14px; margin: 0 0 22px;
}

.mt-contact__note--ok { background: var(--green-badge); color: var(--ink); }

.mt-contact__note--err { background: #FBE6E4; color: #8A2B22; }

/* ============================================================
   EVENT — VIP presale "TICKET VERT" raffle (template-contact.php)
   A boarding-pass ticket replica + draw-entry form, scoped to
   .mt-event so nothing here leaks into the rest of the theme.
   ============================================================ */
.mt-event {
  --vip-a: #F4B740;   /* colored VIP tag — gold  */
  --vip-b: #9BE15D;   /* colored VIP tag — lime  */
  --mint:  #B8F2C9;   /* prize/mint text on the dark ticket */
  --ticket-line: rgba(223, 234, 223, .30);
  --event-w: 720px;            /* shared width: head, ticket & form all align */
  max-width: var(--event-w);   /* centered by .mt-wrap's margin: 0 auto */
}

/* Everything on one centered axis */
.mt-event__head { text-align: center; }

.mt-event > .mt-contact__note { margin-left: auto; margin-right: auto; text-align: center; }

/* Colored VIP · Pré-vente tag ------------------------------------------- */
.mt-vip {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(90deg, var(--vip-a), var(--vip-b));
  color: #17300f;
  border-radius: var(--r-pill);
  padding: 8px 16px 8px 13px;
  font: 700 12px/1 var(--font);
  letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(155, 225, 93, .35);
  margin-bottom: 18px;
}

.mt-vip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #17300f;
  box-shadow: 0 0 0 0 rgba(23, 48, 15, .55);
  animation: mt-vip-pulse 1.8s ease-out infinite;
}

@keyframes mt-vip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23, 48, 15, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(23, 48, 15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 48, 15, 0); }
}

@media (prefers-reduced-motion: reduce) {
.mt-vip__dot { animation: none; }
}

.mt-event__title { margin-bottom: 12px; }

.mt-event__kicker { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto 8px; }

.mt-event__intro { max-width: 560px; margin: 0 auto; }

/* The prize ticket ------------------------------------------------------ */
.mt-ticket {
  position: relative;
  display: flex; align-items: stretch;
  margin: 30px auto 40px;
  border-radius: var(--r-card);
  color: #EAF3E8;
  background:
    radial-gradient(120% 150% at 82% 15%, #1a3d21 0%, #0f2413 48%, #08140b 100%);
  box-shadow: 0 26px 60px rgba(8, 20, 11, .38);
  overflow: hidden;
}

/* faint leaf-speckle texture over the gradient */
.mt-ticket::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(155, 225, 93, .16) 1px, transparent 1.6px);
  background-size: 22px 22px; opacity: .5;
}

/* Floating colored VIP badge on the ticket */
.mt-ticket__badge {
  position: absolute; top: 16px; right: 22px; z-index: 3;
  background: linear-gradient(90deg, var(--vip-a), var(--vip-b));
  color: #17300f;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font: 800 12px/1 var(--font); letter-spacing: .18em;
  box-shadow: 0 8px 20px rgba(155, 225, 93, .38);
}

.mt-ticket__main { position: relative; z-index: 2; flex: 1; padding: 34px 34px 30px; min-width: 0; }

.mt-ticket__eyebrow {
  display: inline-block;
  background: rgba(155, 225, 93, .16);
  color: var(--mint);
  border-radius: var(--r-badge);
  padding: 6px 13px;
  font: 700 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase;
}

.mt-ticket__lead { margin: 18px 0 6px; color: #A9C3A7; font-size: 14px; }

.mt-ticket__prize {
  margin: 0 0 22px; max-width: 15ch;
  font: 800 clamp(26px, 3.6vw, 40px)/1.08 var(--font);
  background: linear-gradient(90deg, var(--mint), var(--vip-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.mt-ticket__foot { display: grid; gap: 8px; font-size: 12.5px; color: #9BB29A; }

.mt-ticket__foot strong { color: #EAF3E8; font-weight: 600; }

/* Perforated stub ------------------------------------------------------- */
.mt-ticket__stub {
  position: relative; z-index: 2; flex: 0 0 210px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 30px 24px;
  border-left: 2px dashed var(--ticket-line);
}

/* punched notches straddling the perforation (page-colored = "torn out") */
.mt-ticket__stub::before,
.mt-ticket__stub::after {
  content: ""; position: absolute; left: -12px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream);
}

.mt-ticket__stub::before { top: -12px; }

.mt-ticket__stub::after { bottom: -12px; }

.mt-ticket__grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; }

.mt-ticket__k { font: 700 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #86A085; }

.mt-ticket__v { font: 800 18px/1 var(--font); color: #EAF3E8; }

.mt-ticket__barcode {
  height: 46px; border-radius: 4px;
  background-image: repeating-linear-gradient(90deg,
    #E7F0E2 0 2px, transparent 2px 4px,
    #E7F0E2 4px 5px, transparent 5px 9px,
    #E7F0E2 9px 12px, transparent 12px 14px);
}

.mt-ticket__no { font: 600 11px/1 var(--font); letter-spacing: .06em; color: #9BB29A; }

/* Draw-entry form ------------------------------------------------------- */
.mt-contact--event {
  max-width: none;             /* fill .mt-event → same width as the ticket */
  margin-left: auto; margin-right: auto;
  background: #fff;
  border: 1px solid rgba(30, 54, 32, .12);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.mt-contact--event .mt-btn { justify-self: center; }

.mt-contact__formtitle {
  margin: 0 0 4px; text-align: center;
  font: 700 20px/1.2 var(--font); color: var(--ink);
}

/* Highlighted Instagram/TikTok block — this is the "ticket" the raffle needs */
.mt-contact__draw {
  margin: 4px 0; padding: 18px 18px 20px; border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--green-badge), #EAF4EA);
  box-shadow: inset 0 0 0 1.5px rgba(79, 122, 61, .28);
  display: grid; gap: 16px;
}

.mt-contact__draw legend {
  display: flex; align-items: center; gap: 10px; padding: 0;
  font: 600 14px/1.3 var(--font); color: var(--ink);
}

.mt-contact__drawtag {
  background: linear-gradient(90deg, var(--vip-a), var(--vip-b));
  color: #17300f; border-radius: var(--r-pill);
  padding: 4px 11px; font: 800 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
}

.mt-contact__drawhint { margin: -4px 0 0; font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 720px) {
.mt-ticket { flex-direction: column; }
/* perforation flips to the top edge of the stub */
.mt-ticket__stub { flex-basis: auto; border-left: 0; border-top: 2px dashed var(--ticket-line); }
.mt-ticket__stub::before { top: -12px; left: -12px; }
.mt-ticket__stub::after { top: -12px; left: auto; right: -12px; bottom: auto; }
.mt-contact--event { padding: 22px 18px; }
}
