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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f4f8;
  color: #222;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header,
.site-footer {
  background: #111827;
  color: #f9fafb;
}

.site-title {
  margin: 0.5rem 0;
  font-size: 1.4rem;
}

.site-footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.card h2 {
  margin-top: 0;
}

.info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.hint {
  font-size: 0.9rem;
  color: #4b5563;
}

.rsvp-form .field {
  margin-bottom: 1rem;
}

.rsvp-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

.rsvp-form fieldset {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
}

.rsvp-form legend {
  padding: 0 0.3rem;
  font-weight: 600;
}

.rsvp-form fieldset label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  font-weight: 500;
}

.rsvp-form fieldset input[type="radio"] {
  margin-right: 0.35rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.btn-primary[disabled],
.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-danger {
  padding: 0.35rem 0.8rem;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35);
}

.btn-danger:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4);
}

.btn-icon {
  padding: 0.35rem;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  line-height: 1;
}

.btn-icon:hover {
  background: #b91c1c;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.btn-icon:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.btn-icon svg {
  display: block;
}

.summary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.summary p {
  margin: 0.25rem 0;
}

.rsvp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rsvp-table th,
.rsvp-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #e5e7eb;
}

.rsvp-table th {
  text-align: left;
  background: #f9fafb;
  font-weight: 600;
}

.rsvp-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

code {
  background: #111827;
  color: #f9fafb;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.9rem;
}

details {
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .card {
    padding: 1.1rem;
  }

  .summary {
    flex-direction: column;
  }

  .rsvp-table th,
  .rsvp-table td {
    font-size: 0.85rem;
  }
}

