.rsvp-card {
  padding: 1.35rem;
  background: rgba(255, 248, 237, 0.93);
  color: #24170d;
}

.rsvp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.rsvp-form > *,
#attendingSection,
#attendingSection > *,
#declineSection,
#declineSection > * {
  min-width: 0;
  max-width: 100%;
}

#attendingSection {
  display: grid;
  gap: 1rem;
  width: 100%;
}

#declineSection {
  width: 100%;
}

.interest-form-intro {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid rgba(184, 138, 27, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(184, 138, 27, 0.12), rgba(255, 255, 255, 0.64));
}

.interest-form-intro span {
  color: #8c6510;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.interest-form-intro p {
  margin: 0;
  color: rgba(36, 23, 13, 0.72);
  line-height: 1.55;
}

.decline-section {
  display: none;
  gap: 1rem;
}

.decline-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem;
  border: 1px solid rgba(91, 30, 45, 0.22);
  border-radius: 8px;
  background: rgba(91, 30, 45, 0.08);
  text-align: center;
}

.decline-panel p {
  margin: 0;
  color: #372315;
  line-height: 1.62;
}

.decline-panel p:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  min-width: 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

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

.field-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(36, 23, 13, 0.72);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.required,
.field-group label .required {
  color: #8c6510;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(36, 23, 13, 0.16);
  border-radius: 8px;
  background: #fffaf1;
  color: #24170d;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #b88a1b;
  box-shadow: 0 0 0 4px rgba(184, 138, 27, 0.16);
  outline: 0;
}

.field-group textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(36, 23, 13, 0.48);
}

.field-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238c6510' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.field-hint {
  margin-top: 0.45rem;
  color: rgba(36, 23, 13, 0.62);
  font-size: 0.86rem;
  line-height: 1.55;
}

.communications-preferences {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.1rem;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.8);
}

.communications-preferences legend {
  padding: 0;
}

.communications-preferences__legend {
  color: #8c6510;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.communications-preferences__intro,
.communications-preferences__footnote,
.channel-consent__body,
.communications-preferences__list {
  color: rgba(36, 23, 13, 0.68);
  line-height: 1.62;
}

.communications-preferences__intro,
.communications-preferences__footnote {
  margin: 0;
}

.communications-preferences__list:empty {
  display: none;
}

.communications-preferences__list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.communications-preferences__options,
#eventCheckboxes {
  display: grid;
  gap: 0.7rem;
}

.channel-consent,
.event-checkbox,
.attendance-option {
  border: 1px solid rgba(36, 23, 13, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.channel-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.channel-consent input[type="checkbox"],
.event-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: #b88a1b;
  cursor: pointer;
}

.channel-consent__title {
  display: block;
  margin-bottom: 0.2rem;
  color: #24170d;
  font-weight: 600;
}

.attendance-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.attendance-option {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
}

.attendance-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance-option .option-icon {
  display: inline-flex;
  justify-content: center;
  color: #8c6510;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.attendance-option .option-text {
  color: #24170d;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.attendance-option:hover,
.attendance-option:focus-within,
.event-checkbox:hover,
.event-checkbox:focus-within,
.channel-consent:hover,
.channel-consent:focus-within {
  border-color: rgba(184, 138, 27, 0.44);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(184, 138, 27, 0.1);
}

.attendance-option.selected,
.event-checkbox.selected {
  border-color: #b88a1b;
  background: rgba(184, 138, 27, 0.12);
}

.attendance-option.decline.selected {
  border-color: #5b1e2d;
  background: rgba(91, 30, 45, 0.1);
}

.event-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem;
  cursor: pointer;
}

.event-info {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.event-info strong {
  color: #24170d;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
}

.event-details {
  color: rgba(36, 23, 13, 0.64);
  font-size: 0.94rem;
  line-height: 1.45;
}

.event-badge {
  width: max-content;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  color: #fff8ed;
  background: #5b1e2d;
  font-family: var(--font-accent);
  font-size: 0.72rem;
}

.field-group.error input,
.field-group.error select,
.field-group.error textarea {
  border-color: #7b123a;
}

.field-error {
  display: none;
  margin-top: 0.45rem;
  color: #7b123a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.field-group.valid input {
  border-color: #0e6b4f;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #e4d2a5;
  border-top-color: #8c6510;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.form-submit .btn {
  min-width: 13rem;
}

.form-message {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  line-height: 1.55;
}

.form-message--error {
  color: #5b1e2d;
  background: rgba(91, 30, 45, 0.1);
}

.form-message--success {
  color: #0e6b4f;
  background: rgba(14, 107, 79, 0.1);
}
