/* RSVP — bloco editorial dentro da seção de encerramento */

.rsvp-block {
  width: min(100%, 920px);
  margin: 0 auto clamp(64px, 9vw, 112px);
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(179, 160, 147, 0.35);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(78, 26, 11, 0.10);
  scroll-margin-top: calc(var(--header-height, 72px) + 24px);
}

.rsvp-heading {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.rsvp-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--canva-terracotta);
}

.rsvp-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--canva-espresso);
}

.rsvp-lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #4a3427;
}

.rsvp-form {
  width: 100%;
}

.rsvp-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rsvp-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rsvp-field-full {
  grid-column: 1 / -1;
}

.rsvp-field label,
.rsvp-attendance legend {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  color: var(--canva-espresso);
}

.rsvp-optional {
  font-weight: 500;
  color: #725747;
}

.rsvp-field input[type="text"],
.rsvp-field input[type="tel"],
.rsvp-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--canva-espresso);
  background: #fffdfa;
  border: 1px solid rgba(112, 59, 35, 0.28);
  border-radius: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.rsvp-field textarea {
  min-height: 112px;
  resize: vertical;
}

.rsvp-field input:focus,
.rsvp-field textarea:focus,
.rsvp-radio-option:focus-within {
  border-color: var(--canva-terracotta);
  box-shadow: 0 0 0 3px rgba(145, 81, 51, 0.14);
}

.rsvp-attendance {
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-radio-group {
  display: grid;
  gap: 8px;
}

.rsvp-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  background: #fffdfa;
  border: 1px solid rgba(112, 59, 35, 0.24);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.rsvp-radio-option:hover {
  background: rgba(243, 219, 185, 0.16);
  border-color: rgba(145, 81, 51, 0.48);
}

.rsvp-radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--canva-terracotta);
  flex: 0 0 auto;
}

.rsvp-radio-option span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #3d271c;
}

.rsvp-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.rsvp-submit {
  min-width: 220px;
}

.rsvp-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none !important;
}

.rsvp-privacy {
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.76rem;
  line-height: 1.5;
  color: #725747;
}

.rsvp-status {
  min-height: 24px;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
}

.rsvp-status.is-success {
  color: #2f6d42;
}

.rsvp-status.is-error {
  color: #8a2e24;
}

.rsvp-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .rsvp-block {
    border-radius: 20px;
    padding: 24px 18px;
    margin-bottom: 64px;
  }

  .rsvp-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rsvp-field-full {
    grid-column: auto;
  }

  .rsvp-submit {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }
}

@media (max-width: 390px) {
  .rsvp-title {
    font-size: clamp(1.85rem, 10vw, 2.35rem);
  }

  .rsvp-block {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-field input,
  .rsvp-field textarea,
  .rsvp-radio-option {
    transition: none;
  }
}
