/* Evermore RSVP – colors and fonts can be overridden in Additional CSS via these variables */
.evrsvp {
  --rsvp-wine: #5b1f2a;
  --rsvp-wine-deep: #3f141c;
  --rsvp-olive: #5f6a45;
  --rsvp-gold: #b08d57;
  --rsvp-ink: #3a2a28;
  --rsvp-muted: #6f625b;
  --rsvp-paper: #fbf7ef;
  --rsvp-field: rgba(255, 255, 255, .55);
  --rsvp-serif: "Bodoni Moda", Didot, Georgia, serif;
  --rsvp-script: "Pinyon Script", "Great Vibes", cursive;
  --rsvp-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-sizing: border-box;
  width: 100%;
  padding: clamp(32px, 6vw, 72px) 16px;
  scroll-margin-top: 24px;
  color: var(--rsvp-ink);
}
.evrsvp *, .evrsvp *::before, .evrsvp *::after { box-sizing: border-box; }

.evrsvp-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 76px) clamp(24px, 6vw, 64px) clamp(40px, 6vw, 64px);
  text-align: center;
  background-color: var(--rsvp-paper);
  background-image: var(--rsvp-noise);
  box-shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 34px 70px -30px rgba(60, 30, 20, .45);
}
.evrsvp-card::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--rsvp-gold) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--rsvp-gold) 30%, transparent); outline-offset: -5px;
}
.evrsvp-card > * { position: relative; }

.evrsvp .evrsvp-kicker {
  margin: 0 0 6px; font-family: var(--rsvp-serif); font-size: .78rem; font-weight: 500;
  letter-spacing: .38em; text-transform: uppercase; color: var(--rsvp-gold);
}
.evrsvp .evrsvp-title {
  margin: 0; font-family: var(--rsvp-script); font-weight: 400; font-size: clamp(2.6rem, 8vw, 3.9rem);
  line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--rsvp-wine);
}
.evrsvp .evrsvp-intro, .evrsvp .evrsvp-lead {
  margin: 14px auto 0; max-width: 32em; font-family: var(--rsvp-serif); font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.7; color: var(--rsvp-muted);
}
.evrsvp .evrsvp-deadline {
  margin: 14px 0 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rsvp-muted);
}
.evrsvp-ornament {
  width: 170px; max-width: 70%; height: 1px; margin: 28px auto 30px;
  background: linear-gradient(90deg, transparent, var(--rsvp-gold), transparent);
}
.evrsvp-ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  background: var(--rsvp-gold); transform: translate(-50%, -50%) rotate(45deg);
}

/* Form */
.evrsvp-form { display: grid; gap: 22px; text-align: left; }
.evrsvp-form .evrsvp-lead { margin-top: 0; text-align: center; }
.evrsvp .evrsvp-hello {
  margin: 0; text-align: center; font-family: var(--rsvp-script); font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.2; color: var(--rsvp-wine);
}
.evrsvp .evrsvp-note {
  margin: 0; padding: 12px 16px; text-align: center; font-family: var(--rsvp-serif); font-style: italic;
  font-size: .98rem; color: var(--rsvp-muted);
  background: color-mix(in srgb, var(--rsvp-gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--rsvp-gold) 30%, transparent);
}
.evrsvp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.evrsvp-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.evrsvp-field[hidden], .evrsvp-if-yes[hidden], .evrsvp-plus[hidden] { display: none !important; }
.evrsvp-if-yes, .evrsvp-plus { display: grid; gap: 22px; }
.evrsvp-plus { padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--rsvp-gold) 45%, transparent); }

.evrsvp .evrsvp-field > label, .evrsvp .evrsvp-field > legend {
  display: block; margin: 0 0 8px; padding: 0;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rsvp-muted);
}
.evrsvp fieldset.evrsvp-field > legend { width: 100%; text-align: center; margin-bottom: 12px; }
.evrsvp .evrsvp-field input[type="text"],
.evrsvp .evrsvp-field input[type="email"],
.evrsvp .evrsvp-field textarea {
  display: block; width: 100%; margin: 0; padding: 10px 2px;
  font: inherit; font-family: var(--rsvp-serif); font-size: 1.08rem; color: var(--rsvp-ink);
  background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--rsvp-ink) 30%, transparent);
  border-radius: 0; box-shadow: none; outline: none; transition: border-color .2s, background .2s;
}
.evrsvp .evrsvp-field textarea { resize: vertical; min-height: 84px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--rsvp-ink) 22%, transparent); background: var(--rsvp-field); }
.evrsvp .evrsvp-field input:focus, .evrsvp .evrsvp-field textarea:focus { border-color: var(--rsvp-wine); background: var(--rsvp-field); }
.evrsvp .evrsvp-field input::placeholder, .evrsvp .evrsvp-field textarea::placeholder { font-style: italic; color: color-mix(in srgb, var(--rsvp-muted) 70%, transparent); }

/* Yes / no cards */
.evrsvp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evrsvp-option, .evrsvp-pill, .evrsvp-check { position: relative; cursor: pointer; }
.evrsvp-option input, .evrsvp-pill input, .evrsvp-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.evrsvp-option span {
  display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px 14px; text-align: center;
  font-family: var(--rsvp-serif); font-style: italic; font-size: 1.12rem; line-height: 1.3; color: var(--rsvp-wine);
  border: 1px solid color-mix(in srgb, var(--rsvp-wine) 35%, transparent); background: var(--rsvp-field);
  transition: background .2s, color .2s, border-color .2s;
}
.evrsvp-option:hover span { border-color: var(--rsvp-wine); }
.evrsvp-option input:checked + span { background: var(--rsvp-wine); border-color: var(--rsvp-wine); color: var(--rsvp-paper); }

/* Diet pills */
.evrsvp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.evrsvp-pill span {
  display: inline-block; padding: 8px 16px; font-size: .78rem; letter-spacing: .08em; color: var(--rsvp-ink);
  border: 1px solid color-mix(in srgb, var(--rsvp-olive) 45%, transparent); border-radius: 999px; background: var(--rsvp-field);
  transition: background .2s, color .2s, border-color .2s;
}
.evrsvp-pill:hover span { border-color: var(--rsvp-olive); }
.evrsvp-pill input:checked + span { background: var(--rsvp-olive); border-color: var(--rsvp-olive); color: #fff; }
.evrsvp-notes.is-required > label::after { content: " *"; color: var(--rsvp-wine); }

/* +1 checkbox */
.evrsvp-check { display: inline-flex; align-items: center; gap: 12px; font-family: var(--rsvp-serif); font-size: 1.08rem; color: var(--rsvp-ink); }
.evrsvp-check span::before {
  content: ""; display: inline-block; flex: none; width: 20px; height: 20px; margin-right: 12px; vertical-align: -4px;
  border: 1px solid var(--rsvp-wine); background: var(--rsvp-field);
  transition: background .2s;
}
.evrsvp-check input:checked + span::before {
  background: var(--rsvp-wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fbf7ef' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Focus states for keyboard users */
.evrsvp-option input:focus-visible + span, .evrsvp-pill input:focus-visible + span, .evrsvp-check input:focus-visible + span::before {
  outline: 2px solid var(--rsvp-gold); outline-offset: 3px;
}

/* Buttons & messages */
.evrsvp-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 4px; }
.evrsvp .evrsvp-btn {
  padding: 15px 34px; font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rsvp-paper); background: var(--rsvp-wine); border: 1px solid var(--rsvp-wine); border-radius: 0;
  cursor: pointer; transition: background .25s;
}
.evrsvp .evrsvp-btn:hover { background: var(--rsvp-wine-deep); }
.evrsvp .evrsvp-btn:disabled { opacity: .65; cursor: wait; }
.evrsvp .evrsvp-link {
  padding: 4px; font: inherit; font-family: var(--rsvp-serif); font-style: italic; font-size: .95rem;
  color: var(--rsvp-muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.evrsvp .evrsvp-link:hover { color: var(--rsvp-wine); }
.evrsvp .evrsvp-error {
  margin: 0; text-align: center; font-family: var(--rsvp-serif); font-style: italic; color: #9b2335;
}
.evrsvp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.evrsvp-thanks { display: grid; gap: 10px; }
.evrsvp .evrsvp-thanks-title { margin: 0; font-family: var(--rsvp-script); font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1.1; color: var(--rsvp-wine); }
.evrsvp-thanks .evrsvp-lead { margin-top: 0; }

@media (max-width: 560px) {
  .evrsvp-row, .evrsvp-choice { grid-template-columns: 1fr; }
}

/* The +1 checkbox is a normal sentence, not a field label */
.evrsvp .evrsvp-field > label.evrsvp-check {
  display: inline-flex; margin: 0; font-family: var(--rsvp-serif); font-size: 1.08rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--rsvp-ink);
}
