/* MIO RSVP 1.2.0 - premium response, tribute consent and concierge workflow */
:root {
  --rsvp-wine: #4a102f;
  --rsvp-wine-deep: #260517;
  --rsvp-wine-soft: #742151;
  --rsvp-gold: #d7b76a;
  --rsvp-gold-light: #f3dfaa;
  --rsvp-ivory: #fffaf0;
  --rsvp-paper: #fffdf9;
  --rsvp-ink: #21171c;
  --rsvp-muted: #766a70;
  --rsvp-line: rgba(74, 16, 47, 0.13);
  --rsvp-soft-line: rgba(215, 183, 106, 0.32);
  --rsvp-green: #14745c;
  --rsvp-blue: #2f618c;
  --rsvp-rose: #a63e5c;
  --rsvp-shadow: 0 32px 90px rgba(38, 5, 23, 0.17);
}

body.rsvp-premium-page {
  background:
    radial-gradient(circle at 86% 9%, rgba(215, 183, 106, 0.26), transparent 24rem),
    radial-gradient(circle at 8% 63%, rgba(116, 33, 81, 0.1), transparent 28rem),
    linear-gradient(135deg, #fffaf3 0%, #f8efe7 55%, #f4e5e5 100%);
}

.rsvp-premium-page main#main-content {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

.rsvp-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: clamp(2rem, 5vw, 5.6rem);
  align-items: start;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 5.2rem) clamp(1.25rem, 5vw, 4.8rem) 6.5rem;
}

.rsvp-hero__copy {
  position: sticky;
  top: 7.5rem;
  max-width: 620px;
  padding-top: 1rem;
}

.rsvp-hero__copy h1 {
  margin: 1.2rem 0;
  font-size: clamp(3rem, 5vw, 5.25rem);
  letter-spacing: -0.055em;
}

.rsvp-hero__copy .intro-copy {
  max-width: 610px;
}

.rsvp-date-card {
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 18px 50px rgba(74, 16, 47, 0.07);
}

.rsvp-assurances {
  gap: 0.7rem 1rem;
}

.rsvp-assurances span {
  min-height: 2.1rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(74, 16, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.rsvp-privacy-note {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--rsvp-soft-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.86), rgba(247, 237, 219, 0.82));
  box-shadow: 0 16px 45px rgba(74, 16, 47, 0.06);
}

.rsvp-privacy-note > svg {
  width: 46px;
  height: 46px;
  padding: 0.72rem;
  border-radius: 14px;
  background: var(--rsvp-wine);
  color: var(--rsvp-gold-light);
}

.rsvp-privacy-note div {
  min-width: 0;
}

.rsvp-privacy-note b {
  color: var(--rsvp-wine-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
}

.rsvp-privacy-note p {
  margin: 0.25rem 0 0;
  color: var(--rsvp-muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.premium-response-shell {
  min-height: 760px;
}

.premium-panel {
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--rsvp-shadow);
}

.panel-seal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(20, 116, 92, 0.16);
  border-radius: 999px;
  background: rgba(20, 116, 92, 0.08);
  color: var(--rsvp-green);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.secure-chip svg {
  width: 15px;
}

.lookup-trust-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--rsvp-muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.lookup-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.lookup-trust-row svg {
  width: 14px;
  color: var(--rsvp-wine);
}


#lookupCard,
#rsvpCard,
#successCard {
  scroll-margin-top: 112px;
}

.rsvp-card.premium-panel {
  padding: clamp(1.4rem, 3.4vw, 2.7rem);
}

.welcome-row {
  padding-bottom: 1.25rem;
}

.rsvp-card .welcome-row h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.invitation-summary {
  margin-bottom: 1.2rem;
}

.rsvp-step {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1.05rem, 2.2vw, 1.55rem);
  border: 1px solid var(--rsvp-line);
  border-radius: 22px;
  background: linear-gradient(155deg, #fffefb, #fbf7f1);
  box-shadow: 0 15px 42px rgba(50, 15, 29, 0.045);
}

.rsvp-step + .rsvp-step {
  margin-top: 1rem;
}

.step-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 1.05rem;
}

.step-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(74, 16, 47, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--rsvp-wine), var(--rsvp-wine-deep));
  color: var(--rsvp-gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(74, 16, 47, 0.16);
}

.step-heading div {
  min-width: 0;
}

.step-heading p {
  margin: 0 0 0.15rem;
  color: var(--rsvp-wine-soft);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step-heading h3 {
  margin: 0;
  color: var(--rsvp-wine-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.22rem, 2.2vw, 1.65rem);
  line-height: 1.12;
}

.step-heading small {
  display: block;
  margin-top: 0.32rem;
  color: var(--rsvp-muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.rsvp-step fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-step .response-options {
  gap: 0.6rem;
}

.rsvp-step .response-option span {
  min-height: 122px;
  padding: 0.9rem 0.72rem;
  border-radius: 16px;
}

.rsvp-step .response-option b {
  font-size: 0.75rem;
}

.rsvp-step .response-option small {
  font-size: 0.64rem;
}

.attendance-detail-grid,
.message-meta-grid {
  margin-top: 1rem;
}

.rsvp-step .field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.rsvp-step .field > span {
  color: var(--rsvp-wine);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.rsvp-step .field > span small {
  color: var(--rsvp-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp-step .field > small,
.rsvp-step .field small.field-help {
  color: var(--rsvp-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.rsvp-step .field input,
.rsvp-step .field select,
.rsvp-step .field textarea {
  border: 1px solid rgba(74, 16, 47, 0.14);
  background: #fff;
  box-shadow: 0 6px 18px rgba(50, 15, 29, 0.025);
}

.rsvp-step .field input:focus,
.rsvp-step .field select:focus,
.rsvp-step .field textarea:focus {
  border-color: var(--rsvp-gold);
  box-shadow: 0 0 0 4px rgba(215, 183, 106, 0.14);
  outline: none;
}

.rsvp-step .field input[aria-invalid="true"],
.rsvp-step .field select[aria-invalid="true"],
.rsvp-step .field textarea[aria-invalid="true"] {
  border-color: var(--rsvp-rose);
  box-shadow: 0 0 0 4px rgba(166, 62, 92, 0.1);
}

.request-step.is-disabled {
  opacity: 0.62;
}

.premium-select-field {
  padding: 0.9rem;
  border: 1px solid rgba(215, 183, 106, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf1, #fffefb);
}

.premium-select-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--rsvp-wine) 50%), linear-gradient(135deg, var(--rsvp-wine) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
  padding-right: 2.7rem;
}

.request-detail-panel {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(74, 16, 47, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 183, 106, 0.16), transparent 16rem),
    #fff;
  animation: rsvpReveal 0.26s ease;
}

.request-detail-panel__heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rsvp-line);
}

.request-detail-panel__heading > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(74, 16, 47, 0.09);
  color: var(--rsvp-wine);
}

.request-detail-panel__heading svg {
  width: 20px;
}

.request-detail-panel__heading p,
.request-detail-panel__heading h4,
.request-detail-panel__heading small {
  margin: 0;
}

.request-detail-panel__heading p {
  color: var(--rsvp-wine-soft);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.request-detail-panel__heading h4 {
  margin-top: 0.1rem;
  color: var(--rsvp-wine-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
}

.request-detail-panel__heading small {
  display: block;
  margin-top: 0.18rem;
  color: var(--rsvp-muted);
  font-size: 0.67rem;
}

.request-detail-fields {
  margin-top: 0.9rem;
}

.request-detail-fields .field.full,
.message-editor-field,
.publication-consent {
  grid-column: 1 / -1;
}

.field-checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.65rem !important;
  min-height: 50px;
  padding: 0.75rem;
  border: 1px solid var(--rsvp-line);
  border-radius: 13px;
  background: #fff;
}

.field-checkbox input {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  accent-color: var(--rsvp-wine);
  box-shadow: none !important;
}

.field-checkbox span {
  color: var(--rsvp-ink) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.message-step {
  overflow: hidden;
  border-color: rgba(215, 183, 106, 0.36);
  background:
    radial-gradient(circle at 92% 4%, rgba(215, 183, 106, 0.22), transparent 18rem),
    linear-gradient(155deg, #fffdf8, #f8efe2);
}

.message-step::after {
  content: "◇";
  position: absolute;
  top: -3.8rem;
  right: -2.2rem;
  color: rgba(74, 16, 47, 0.045);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 12rem;
  line-height: 1;
  pointer-events: none;
}

.message-step > * {
  position: relative;
  z-index: 1;
}

.message-inspiration {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.message-inspiration > span {
  display: inline-flex;
  align-items: center;
  color: var(--rsvp-muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.message-inspiration button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0 0.7rem;
  border: 1px solid rgba(74, 16, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rsvp-wine);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}

.message-inspiration button:hover,
.message-inspiration button:focus-visible {
  border-color: var(--rsvp-gold);
  background: #fff;
  transform: translateY(-1px);
}

.message-inspiration svg {
  width: 14px;
}

.message-meta-grid {
  align-items: stretch;
}

.editorial-route {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 72px;
  padding: 0.72rem;
  border: 1px solid rgba(20, 116, 92, 0.14);
  border-radius: 14px;
  background: rgba(20, 116, 92, 0.06);
}

.editorial-route > svg {
  width: 40px;
  height: 40px;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(20, 116, 92, 0.1);
  color: var(--rsvp-green);
}

.editorial-route div {
  display: grid;
  gap: 0.14rem;
}

.editorial-route b {
  color: #0f5e4a;
  font-size: 0.72rem;
}

.editorial-route small {
  color: var(--rsvp-muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.message-editor-field {
  margin-top: 0.8rem;
}

.message-editor-field textarea {
  min-height: 180px;
  padding: 1rem !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1rem !important;
  line-height: 1.7;
}

.message-editor-meta {
  display: flex !important;
  justify-content: space-between;
  gap: 1rem;
}

.message-editor-meta b {
  color: var(--rsvp-wine);
  font-variant-numeric: tabular-nums;
}

.message-editor-field.is-near-limit .message-editor-meta b {
  color: var(--rsvp-rose);
}

.publication-consent {
  display: block;
  margin-top: 0.9rem;
  cursor: pointer;
}

.publication-consent > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.publication-consent > span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid var(--rsvp-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  transition: 0.18s ease;
}

.publication-consent > span > svg {
  width: 42px;
  height: 42px;
  padding: 0.68rem;
  border-radius: 13px;
  background: rgba(74, 16, 47, 0.08);
  color: var(--rsvp-wine);
}

.publication-consent > span > span {
  display: grid;
  gap: 0.22rem;
}

.publication-consent b {
  color: var(--rsvp-wine-deep);
  font-size: 0.75rem;
  line-height: 1.4;
}

.publication-consent small {
  color: var(--rsvp-muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.publication-consent > input:checked + span {
  border-color: rgba(20, 116, 92, 0.32);
  background: rgba(20, 116, 92, 0.07);
  box-shadow: 0 0 0 4px rgba(20, 116, 92, 0.07);
}

.publication-consent > input:checked + span > svg {
  background: var(--rsvp-green);
  color: #fff;
}

.publication-consent.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.form-message--prominent:not(:empty) {
  margin: 1rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(166, 62, 92, 0.2);
  border-radius: 13px;
  background: rgba(166, 62, 92, 0.07);
  color: #8e2946;
  font-weight: 700;
}

.premium-form-actions {
  margin-top: 1rem;
}

.submission-assurance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  color: var(--rsvp-muted);
  font-size: 0.65rem;
  line-height: 1.4;
  text-align: center;
}

.submission-assurance svg {
  flex: 0 0 auto;
  width: 15px;
  color: var(--rsvp-green);
}

.response-receipt {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.response-receipt > div {
  min-width: 0;
}

.response-receipt > div b {
  overflow-wrap: anywhere;
}

.success-guidance {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid rgba(20, 116, 92, 0.16);
  border-radius: 15px;
  background: rgba(20, 116, 92, 0.07);
}

.success-guidance svg {
  width: 42px;
  height: 42px;
  padding: 0.7rem;
  border-radius: 13px;
  background: var(--rsvp-green);
  color: #fff;
}

.success-guidance p {
  margin: 0;
  color: #315d52;
  font-size: 0.72rem;
  line-height: 1.5;
}

@keyframes rsvpReveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .rsvp-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: 2.5rem;
  }

  .rsvp-hero__copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.3rem);
  }
}

@media (max-width: 980px) {
  .rsvp-hero {
    grid-template-columns: 1fr;
    width: min(790px, 100%);
    padding-top: 2.4rem;
  }

  .rsvp-hero__copy {
    position: static;
    max-width: none;
  }

  .rsvp-hero__copy h1 {
    max-width: 720px;
  }

  .rsvp-hero__copy .intro-copy {
    max-width: 720px;
  }

  .premium-response-shell {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .rsvp-hero {
    padding: 1.5rem 0.85rem 5.5rem;
  }

  .rsvp-hero__copy {
    padding-inline: 0.45rem;
  }

  .rsvp-hero__copy h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .rsvp-privacy-note {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rsvp-privacy-note > svg {
    width: 40px;
    height: 40px;
  }

  .lookup-card.premium-panel,
  .rsvp-card.premium-panel,
  .success-card.premium-panel {
    padding: 1.3rem;
    border-radius: 24px;
  }

  .rsvp-step {
    padding: 1rem;
    border-radius: 18px;
  }

  .step-heading {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .step-heading > span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .rsvp-step .response-options {
    grid-template-columns: 1fr;
  }

  .rsvp-step .response-option span {
    min-height: 82px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    text-align: left;
  }

  .rsvp-step .response-option svg {
    grid-row: 1 / 3;
    margin: 0;
  }

  .attendance-detail-grid,
  .request-detail-fields,
  .message-meta-grid {
    grid-template-columns: 1fr;
  }

  .message-inspiration > span {
    width: 100%;
  }

  .message-inspiration button {
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
  }

  .premium-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .premium-form-actions .button {
    width: 100%;
  }

  .response-receipt {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .panel-seal-row {
    align-items: center;
  }

  .panel-seal-row .seal {
    width: 68px;
    height: 68px;
  }

  .panel-seal-row .seal b {
    font-size: 28px;
  }

  .secure-chip {
    font-size: 0.6rem;
  }

  .lookup-trust-row {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .message-inspiration button {
    flex-basis: 100%;
  }

  .publication-consent > span {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .publication-consent > span > svg {
    width: 36px;
    height: 36px;
  }
}

.rsvp-pass-step {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(190, 145, 60, 0.42);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(246, 235, 215, 0.92));
  box-shadow: 0 18px 50px rgba(59, 8, 31, 0.1);
}

.rsvp-pass-step__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rsvp-pass-step__heading h3 {
  margin: 0.25rem 0 0;
  color: #350818;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.08;
}

.rsvp-pass-step__heading > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #5b0e18;
  background: #efe1c2;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rsvp-pass-step__heading svg,
.rsvp-pass-notice svg {
  width: 18px;
  height: 18px;
}

.rsvp-pass-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  color: #4c2935;
  background: rgba(91, 14, 24, 0.07);
}

.rsvp-pass-notice p,
.rsvp-pass-status {
  margin: 0;
}

.rsvp-pass-status {
  color: #765f68;
  font-size: 0.92rem;
  text-align: center;
}

#rsvpInvitationCanvas {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(42, 4, 12, 0.18);
}

#rsvpInvitationCanvas[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .rsvp-pass-step__heading {
    display: grid;
  }

  .rsvp-pass-step__heading > span {
    justify-self: start;
  }
}
