/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ── */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #fff6e7;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── Card ── */
.card {
  background: #ffffff;
  border: 1px solid #e4dbd0;
  border-radius: 3px;
  padding: 3rem 2.5rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── Monogram ── */
.monogram {
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #e83d3d;
  margin-bottom: 1rem;
}

/* ── Ornamental divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  max-width: 200px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4dbd0;
}

.divider-diamond {
  color: #e83d3d;
  font-size: 0.55rem;
}

/* ── Headings ── */
h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #000000;
  margin-bottom: 0.75rem;
}

/* ── Date line ── */
.date {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e83d3d;
  margin-bottom: 1.5rem;
}

/* ── Body text ── */
.subtitle {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── Form elements ── */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}

input[type="tel"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #000000;
  background: #fff6e7;
  transition: border-color 0.2s;
  appearance: auto;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #e83d3d;
}

textarea {
  resize: vertical;
}

/* ── Radio options ── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  text-transform: none;
  letter-spacing: 0;
  color: #000000;
  margin-bottom: 0;
  transition: border-color 0.2s, background 0.2s;
}

.radio-group label:hover {
  border-color: #e83d3d;
  background: #fff6e7;
}

.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #e83d3d;
  flex-shrink: 0;
}

/* ── Primary button ── */
.btn {
  width: 100%;
  padding: 0.95rem;
  background: #000000;
  color: white;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
  margin-top: 1rem;
}

.btn:hover {
  background: #e83d3d;
}

/* ── Secondary button ── */
.btn-secondary {
  display: block;
  width: 100%;
  padding: 0.95rem;
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  border-radius: 2px;
  margin-top: 1rem;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background: #000000;
  color: white;
}

/* ── Inline error message ── */
.error-msg {
  color: #b94040;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  display: none;
  font-style: italic;
}

/* ── Dev hint (remove before going live) ── */
.dev-hint {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2a2a2a;
  color: #ccc;
  font-family: monospace;
  font-size: 0.78rem;
  padding: 0.6rem 1rem;
  text-align: center;
  z-index: 999;
}

.dev-hint strong {
  color: #f0c070;
}

/* ── Per-guest RSVP blocks ── */
.guest-block {
  border: 1px solid #e4dbd0;
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.guest-name {
  font-size: 1rem;
  color: #000000;
}

.guest-radio {
  flex-direction: row !important;
  gap: 0.5rem !important;
}

.guest-radio label {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.82rem !important;
}

.dietary-wrap {
  margin-top: 1rem;
}

.dietary-wrap label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.35rem;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  body {
    padding: 1.25rem 0.75rem;
  }

  .card {
    padding: 2rem 1.25rem;
    border-radius: 2px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .btn,
  .btn-secondary {
    font-size: 0.7rem;
    padding: 0.9rem;
  }

  .guest-block {
    padding: 1rem 1rem;
  }

  .guest-radio label {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem !important;
  }

  .dietary-wrap label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  /* Info page */
  .info-wrap {
    padding: 0 0.25rem;
  }

  .page-header {
    padding-top: 1.5rem;
  }
}
