* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  min-height: 100vh;
}

header {
  background: #1a3a5c;
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
header h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.5px; }
header p  { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 480px;
  margin: 2rem auto;
}

@media (max-width: 520px) {
  .card { margin: 1rem; padding: 1.5rem; }
}

h2 { font-size: 1.2rem; margin-bottom: 0.4rem; color: #1a3a5c; }
.subtitle { color: #718096; font-size: 0.9rem; margin-bottom: 1.5rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.3rem;
}

input[type=text], input[type=email] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  transition: border-color 0.15s;
}
input:focus {
  outline: none;
  border-color: #1a3a5c;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #1a3a5c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover  { background: #2a527d; }
.btn:disabled { background: #a0aec0; cursor: default; }

.btn-secondary {
  background: transparent;
  color: #1a3a5c;
  border: 1.5px solid #1a3a5c;
  margin-top: 0.75rem;
}
.btn-secondary:hover { background: #eef2f7; }

.error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.info-box {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #2c5282;
  margin-bottom: 1.25rem;
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.step {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}
.step.active   { background: #1a3a5c; }
.step.complete { background: #68d391; }

.field-row { margin-bottom: 1.1rem; }

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #718096;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.rsvp-options {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.rsvp-btn {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.15s;
  text-align: center;
}
.rsvp-btn.selected-yes { border-color: #38a169; background: #f0fff4; color: #276749; }
.rsvp-btn.selected-no  { border-color: #e53e3e; background: #fff5f5; color: #c53030; }
.rsvp-btn:hover        { border-color: #1a3a5c; }

.name-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 0.25rem;
}

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.cant-find {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #718096;
}
.cant-find a { color: #1a3a5c; }

.big-check {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
