/* ═══════════════════════════════════════════════════════════════
   Reception RSVP — Global Styles
   Theme: Romantic Elegance  |  Mobile-first
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --cream:      #faf7f2;
  --ivory:      #f5f0e8;
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark:  #9e7a2e;
  --charcoal:   #2c2c2c;
  --muted:      #7a7068;
  --error:      #b85450;
  --going:      #4a7c59;
  --notgoing:   #b85450;
  --tbd:        #8a7560;

  --radius:     14px;
  --shadow:     0 8px 40px rgba(44,44,44,0.12);
  --shadow-sm:  0 2px 12px rgba(44,44,44,0.08);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  background-color: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ── Page wrapper ────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
}

/* ── Decorative background texture ───────────────────────────── */
.page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Card ─────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(201,168,76,0.15);
}

.card-logo {
  text-align: center;
  margin-bottom: 28px;
}

.card-logo .rings {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.card-logo h1 {
  font-size: 1.9rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.card-logo p {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gold-light);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}
.divider span {
  font-size: 16px;
}

/* ── Form elements ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-primary:active { transform: scale(0.98); box-shadow: none; }
.btn-primary:disabled { opacity: 0.5; pointer-events: none; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid rgba(201,168,76,0.3);
  width: auto;
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-ghost:active { background: var(--ivory); }

/* ── Error / Success messages ────────────────────────────────── */
.msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 12px;
  display: none;
  text-align: center;
}
.msg.show { display: block; }
.msg.error   { background: #fdf0f0; color: var(--error);  border: 1px solid #f0d0d0; }
.msg.success { background: #f0f5f1; color: var(--going);  border: 1px solid #c8ddd0; }

/* ── Loading spinner ─────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
