/* Andmar Manpower - 10th anniversary RSVP
   Palette and shapes are lifted straight from the printed invitation so the
   page a guest lands on is recognisably the card they were sent. */

:root {
  --mint: #74c7a6;
  --mint-deep: #5eb794;
  --mint-pale: #8ed3b7;
  --blue: #356bda;
  --blue-press: #2a58b8;
  --blue-ink: #185ea4;
  --navy: #1b3e7a;
  --green: #2fa87c;
  --green-press: #268b67;
  --lavender: #9da9fb;
  --lavender-soft: #b6befc;
  --paper: #f6fafb;
  --ice: #e6f1fb;
  --slate: #3d495a;
  --slate-soft: #6b7788;
  --line: #dfe7ee;

  --shadow-card: 0 30px 70px -30px rgba(27, 62, 122, 0.45);
  --shadow-pill: 0 10px 24px -12px rgba(27, 62, 122, 0.55);
  --radius-pill: 999px;
  --radius-card: 44px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--mint);
  line-height: 1.55;
  min-height: 100vh;
}

/* --- Background: the blob field from the invitation ---------------------- */

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.field svg { width: 100%; height: 100%; }

.page { position: relative; z-index: 1; }

/* The bubble field drifts slowly upward; a second copy of the tile sits one
   viewBox-height below, so when the animation wraps the loop is seamless. */
.field .bubbles {
  animation: bubbles-rise 90s linear infinite;
  will-change: transform;
}
@keyframes bubbles-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-1600px); }
}
@media (prefers-reduced-motion: reduce) {
  .field .bubbles { animation: none; }
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  padding: clamp(28px, 6vw, 56px) 20px clamp(18px, 4vw, 34px);
  text-align: center;
}
.masthead img {
  width: min(420px, 74vw);
  height: auto;
  display: inline-block;
}

/* --- The paper card ------------------------------------------------------ */

.card-wrap {
  width: min(680px, 100% - 32px);
  margin: 0 auto clamp(28px, 6vw, 64px);
  position: relative;
}

.edge { display: block; width: 100%; height: 34px; fill: var(--paper); }
.edge--bottom { transform: scaleY(-1); }

.card {
  background: var(--paper);
  padding: clamp(4px, 2vw, 10px) clamp(20px, 5vw, 54px) clamp(10px, 3vw, 20px);
  box-shadow: var(--shadow-card);
}
.card-wrap > .edge:first-child { filter: drop-shadow(0 -14px 24px rgba(27, 62, 122, 0.14)); }

/* --- Type ---------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ink);
  text-align: center;
  margin: clamp(18px, 4vw, 30px) 0 0;
  line-height: 1.2;
}
.headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.6vw, 2.05rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin: 10px 0 0;
}
.blurb {
  text-align: center;
  max-width: 34ch;
  margin: 12px auto 0;
  color: var(--slate);
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
}
.squiggle { display: block; margin: 16px auto 4px; width: 120px; height: 14px; }
.squiggle path { stroke: var(--green); stroke-width: 4; fill: none; stroke-linecap: round; }

.greeting {
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  margin: 0;
}
.greeting span { display: block; font-weight: 400; color: var(--slate-soft); font-size: 0.9rem; margin-top: 4px; }

/* --- Detail pills (read-only, exactly as printed) ------------------------ */

.pills { margin: clamp(20px, 5vw, 30px) 0 0; display: grid; gap: 12px; }

.pill {
  border-radius: var(--radius-pill);
  padding: 16px 22px;
  text-align: center;
  line-height: 1.35;
}
.pill strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 3.4vw, 0.98rem);
}
.pill span { display: block; font-size: clamp(0.88rem, 3.4vw, 0.98rem); }
.pill a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.pill--blue { background: var(--blue); color: #fff; }
.pill--green { background: var(--green); color: #fff; }
.pill--lavender { background: var(--lavender-soft); color: var(--navy); }
.pill--ice { background: var(--ice); color: var(--navy); }

.fineprint {
  text-align: center;
  font-size: 0.86rem;
  color: var(--slate-soft);
  margin: 14px 0 0;
}

/* --- The reply ----------------------------------------------------------- */

.reply { margin-top: clamp(26px, 6vw, 38px); }

.reply-title {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  margin: 0 0 4px;
}
.reply-sub { text-align: center; color: var(--slate-soft); font-size: 0.9rem; margin: 0 0 18px; }

.choice { display: grid; gap: 12px; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }

.choice label {
  display: block;
  border-radius: var(--radius-pill);
  padding: 17px 22px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--slate);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.choice label:hover { transform: translateY(-1px); border-color: var(--lavender); }
.choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice input:checked + label.yes {
  background: var(--green); border-color: var(--green); color: #fff; box-shadow: var(--shadow-pill);
}
.choice input:checked + label.no {
  background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-pill);
}

.followup {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(16px, 4vw, 24px);
}

.field-row { margin-bottom: 16px; }
.field-row:last-child { margin-bottom: 0; }

label.lbl {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.hint { display: block; font-weight: 400; color: var(--slate-soft); font-size: 0.83rem; margin-top: 2px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 15px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53, 107, 218, 0.16);
}

.toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle label {
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 10px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate);
}
.toggle input:checked + label { background: var(--lavender-soft); border-color: var(--lavender); color: var(--navy); }
.toggle input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 17px 24px;
  margin-top: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-pill);
  transition: background 0.14s ease, transform 0.14s ease;
}
.btn:hover { background: var(--blue-press); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn--ghost {
  background: transparent; color: var(--blue); box-shadow: none;
  border: 2px solid var(--blue); font-weight: 600;
}
.btn--ghost:hover { background: rgba(53, 107, 218, 0.08); }
.btn--auto { width: auto; padding-inline: 30px; }

.jingle { text-align: center; margin: 18px 0 4px; }
.jingle-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 0.94rem;
  color: var(--navy); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; cursor: pointer;
  box-shadow: 0 10px 26px -18px rgba(27, 62, 122, .55);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.jingle-btn:hover { transform: translateY(-1px); }
.jingle-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.jingle-btn--on { background: var(--blue, #356bda); border-color: transparent; color: #fff; }

.notice {
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 0.92rem;
  margin: 18px 0 0;
}
.notice--warn { background: #fff4e2; color: #7a4c12; }
.notice--error { background: #fdeceb; color: #9b2c22; }
.notice--info { background: var(--ice); color: var(--navy); }

/* --- Answer summary (thank-you page) ------------------------------------ */

.summary { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.summary li {
  display: flex; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 13px 18px;
  font-size: 0.94rem;
}
.summary li b { color: var(--navy); font-weight: 600; text-align: right; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.actions .btn { width: auto; flex: 1 1 200px; margin-top: 0; text-align: center; text-decoration: none; }

/* --- Footer -------------------------------------------------------------- */

.footer { text-align: center; padding: 0 20px clamp(34px, 8vw, 60px); }
.footer img { width: 54px; height: auto; }
.footer p { margin: 10px 0 0; color: var(--navy); font-weight: 600; font-size: 0.98rem; }
.footer small { display: block; margin-top: 6px; color: #14563f; font-weight: 400; }
.footer .credit { margin-top: 14px; font-size: 0.78rem; opacity: .85; max-width: 480px; margin-inline: auto; line-height: 1.5; }
.footer .credit a { color: inherit; }
.footer .credit-rights { display: block; margin-top: 4px; text-align: center; }
.footer a { color: #14563f; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Entrance QR pass ------------------------------------------------- */
.qr-pass {
  margin: 22px auto 4px;
  padding: 18px 16px 14px;
  max-width: 280px;
  background: #fff;
  border: 2px dashed #74c7a6;
  border-radius: 18px;
  text-align: center;
}
.qr-pass__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #185ea4;
}
.qr-pass__img {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 10px;
}
.qr-pass__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3d495a;
}
