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

/* ===== Design Tokens ===== */
:root {
  --cream: #FFF8F0;
  --blush: #F4C2C2;
  --sage: #B5C7A3;
  --gold: #D4A574;
  --deep-sage: #7A9A6D;
  --warm-brown: #8B7355;
  --lavender: #D4C5E2;
  --soft-blue: #B8D4E3;
  --peach: #FFDAB9;
  --text: #5C4A3A;
  --text-light: #8B7D6B;
  --card-shadow: 0 4px 30px rgba(139, 115, 85, 0.08);
  --card-border: 1px solid rgba(212, 165, 116, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== Login Page ===== */
.login-page {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-page::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(181, 199, 163, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 194, 194, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 197, 226, 0.1) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bgShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, -3%) rotate(3deg); }
}

.login-container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem 2.5rem;
  border-radius: 28px;
  box-shadow: 0 12px 48px rgba(139, 115, 85, 0.1);
  border: var(--card-border);
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--sage), var(--deep-sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(122, 154, 109, 0.3);
}

.login-icon::after {
  content: '';
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.1);
}

.login-container h1 {
  font-family: 'Sacramento', cursive;
  color: var(--deep-sage);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.login-container input[type="password"] {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(181, 199, 163, 0.3);
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  outline: none;
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-container input[type="password"]:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(181, 199, 163, 0.15);
}

.login-container button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--sage), var(--deep-sage));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: 0.5px;
}

.login-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(122, 154, 109, 0.35);
}

.error-msg {
  background: rgba(244, 194, 194, 0.3);
  color: #a05252;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(244, 194, 194, 0.5);
}

/* ===== Dashboard Page ===== */
.dashboard-page {
  background: var(--cream);
  min-height: 100vh;
}

.dash-header {
  background: linear-gradient(135deg, var(--deep-sage), #5a8a4d);
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(122, 154, 109, 0.25);
}

.dash-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.logout-btn {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dash-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.5rem;
}

.card-total .card-number { color: var(--deep-sage); }
.card-attending .card-number { color: #5a9e5a; }
.card-declined .card-number { color: #c77; }
.card-maybe .card-number { color: var(--gold); }
.card-pending .card-number { color: var(--text-light); }
.card-guests .card-number { color: var(--warm-brown); }

/* Add Guest */
.add-guest-section {
  background: white;
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  margin-bottom: 2rem;
}

.add-guest-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--deep-sage);
  margin-bottom: 1rem;
  font-weight: 600;
}

.add-guest-form {
  display: flex;
  gap: 0.75rem;
}

.add-guest-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(181, 199, 163, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Quicksand', sans-serif;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.add-guest-form input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(181, 199, 163, 0.12);
}

.add-guest-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--sage), var(--deep-sage));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}

.add-guest-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(122, 154, 109, 0.3);
}

/* Guest Table */
.guest-table-section {
  background: white;
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
}

.guest-table-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--deep-sage);
  margin-bottom: 1rem;
  font-weight: 600;
}

.empty-msg {
  color: var(--text-light);
  text-align: center;
  padding: 2rem 0;
  font-style: italic;
}

.table-wrapper {
  overflow-x: auto;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
}

.guest-table th,
.guest-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(181, 199, 163, 0.12);
}

.guest-table th {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  background: rgba(181, 199, 163, 0.06);
}

.guest-table tbody tr {
  transition: background 0.2s;
}

.guest-table tbody tr:hover {
  background: rgba(181, 199, 163, 0.06);
}

.msg-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-yes { background: rgba(181, 199, 163, 0.2); color: var(--deep-sage); }
.status-no { background: rgba(244, 194, 194, 0.3); color: #a05252; }
.status-maybe { background: rgba(212, 165, 116, 0.2); color: var(--warm-brown); }
.status-pending { background: rgba(139, 125, 107, 0.1); color: var(--text-light); }

/* Action Buttons */
.copy-btn,
.delete-btn {
  padding: 0.35rem 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn {
  background: rgba(181, 199, 163, 0.15);
  color: var(--deep-sage);
  border: 1px solid rgba(181, 199, 163, 0.3);
}

.copy-btn:hover { background: rgba(181, 199, 163, 0.3); }
.copy-btn.copied { background: var(--sage); color: white; }

.delete-btn {
  background: rgba(244, 194, 194, 0.15);
  color: #a05252;
  border: 1px solid rgba(244, 194, 194, 0.3);
  margin-left: 6px;
}

.delete-btn:hover { background: rgba(244, 194, 194, 0.35); }

/* ===== Invite Page ===== */
.invite-page {
  background: var(--cream);
  min-height: 100vh;
  position: relative;
}

/* -- Particles -- */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* -- Stars -- */
.star {
  position: fixed;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* -- Confetti Canvas -- */
#confettiCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* -- Loading Screen -- */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(181, 199, 163, 0.2);
  border-top-color: var(--deep-sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Sacramento', cursive;
  font-size: 26px;
  color: var(--gold);
  margin-top: 18px;
}

/* -- Invite Container -- */
.invite-container {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 20px;
}

/* -- Envelope Animation -- */
.envelope-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.envelope-wrapper.opened {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.envelope {
  width: 240px;
  height: 170px;
  position: relative;
  transition: transform 0.4s ease;
}

.envelope:hover { transform: scale(1.05); }

.envelope-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--peach), var(--blush));
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(139, 115, 85, 0.2);
  position: relative;
  overflow: hidden;
}

.envelope-flap {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-top: 95px solid var(--gold);
  transform-origin: top center;
  transition: transform 0.8s ease;
  z-index: 2;
}

.envelope-wrapper:hover .envelope-flap {
  transform: rotateX(180deg);
}

.envelope-seal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--deep-sage);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(122, 154, 109, 0.3);
  animation: sealPulse 2s ease-in-out infinite;
}

.envelope-seal::after {
  content: '\2665';
  color: white;
  font-size: 20px;
  line-height: 1;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

.tap-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--warm-brown);
  margin-top: 28px;
  animation: fadeInUp 1s ease 0.5s both;
}

.tap-subtext {
  font-family: 'Sacramento', cursive;
  font-size: 22px;
  color: var(--gold);
  margin-top: 6px;
  animation: fadeInUp 1s ease 0.8s both;
}

/* -- Invite Card -- */
.invite-card {
  display: none;
  opacity: 0;
}

.invite-card.visible {
  display: block;
  animation: revealCard 1s ease forwards;
}

@keyframes revealCard {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* -- Ganesh Blessing -- */
.ganesh-blessing {
  text-align: center;
  padding: 48px 20px 10px;
  animation: fadeInUp 1s ease 0.2s both;
}

.ganesh-mantra {
  font-size: clamp(18px, 5vw, 24px);
  color: var(--warm-brown);
  letter-spacing: 2px;
  font-weight: 500;
  line-height: 1.4;
}

/* -- Hero -- */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.hero-ornament {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  position: relative;
}

.hero-ornament::before,
.hero-ornament::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.hero-ornament::before {
  width: 60px; height: 60px;
  top: 0; left: 0;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--warm-brown));
  opacity: 0.2;
  animation: gentleBounce 3s ease-in-out infinite;
}

.hero-ornament::after {
  width: 36px; height: 36px;
  top: 12px; left: 12px;
  border: 2px solid var(--gold);
  opacity: 0.4;
  animation: gentleBounce 3s ease-in-out infinite 0.3s;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-pretext {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Sacramento', cursive;
  font-size: clamp(44px, 10vw, 72px);
  color: var(--deep-sage);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 400;
  color: var(--warm-brown);
  font-style: italic;
}

/* -- Greeting Section -- */
.greeting-section {
  text-align: center;
  padding: 24px 20px;
  animation: fadeInUp 1s ease 0.3s both;
}

.greeting-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(181, 199, 163, 0.08));
  border: 2px solid rgba(212, 165, 116, 0.2);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.greeting-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(181, 199, 163, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.greeting-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(244, 194, 194, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.greeting-hey {
  font-family: 'Sacramento', cursive;
  font-size: 32px;
  color: var(--gold);
}

.greeting-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 700;
  color: var(--deep-sage);
  margin: 4px 0 16px;
  line-height: 1.2;
}

.greeting-message {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}

/* -- Section Divider -- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  gap: 16px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.4;
}

.divider-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

/* -- Event Details -- */
.details-section {
  padding: 12px 20px;
  animation: fadeInUp 1s ease 0.5s both;
}

.details-card {
  background: white;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
}

.details-title {
  font-family: 'Sacramento', cursive;
  font-size: 32px;
  color: var(--deep-sage);
  text-align: center;
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(181, 199, 163, 0.25);
}

.detail-row:last-child { border-bottom: none; }

.detail-icon-box {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(181, 199, 163, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep-sage);
}

.detail-content { flex: 1; }

.detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.detail-value {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
  line-height: 1.4;
}

.maps-link {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-sage);
  text-decoration: none;
  padding: 4px 14px;
  border: 1px solid rgba(181, 199, 163, 0.4);
  border-radius: 8px;
  transition: all 0.3s;
}

.maps-link:hover {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

/* -- RSVP Section -- */
.rsvp-section {
  padding: 12px 20px;
  animation: fadeInUp 1s ease 0.9s both;
}

.rsvp-card {
  background: linear-gradient(145deg, #fff, rgba(181, 199, 163, 0.06));
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
}

.rsvp-title {
  font-family: 'Sacramento', cursive;
  font-size: 36px;
  color: var(--deep-sage);
  text-align: center;
  margin-bottom: 4px;
}

.rsvp-deadline {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.rsvp-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 28px;
}

.rsvp-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rsvp-option {
  flex: 1;
  min-width: 120px;
}

.rsvp-option input[type="radio"] { display: none; }

.rsvp-btn {
  display: block;
  padding: 16px 12px;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 2px solid rgba(181, 199, 163, 0.3);
  color: var(--text-light);
  background: white;
}

.rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.rsvp-option input:checked + .rsvp-yes {
  background: var(--sage);
  border-color: var(--deep-sage);
  color: white;
  box-shadow: 0 4px 20px rgba(122, 154, 109, 0.3);
}

.rsvp-option input:checked + .rsvp-no {
  background: var(--blush);
  border-color: var(--blush);
  color: white;
  box-shadow: 0 4px 20px rgba(244, 194, 194, 0.4);
}

.rsvp-option input:checked + .rsvp-maybe {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.35);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(181, 199, 163, 0.25);
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(181, 199, 163, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input[type="number"] {
  max-width: 120px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--sage), var(--deep-sage));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(122, 154, 109, 0.35);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Already Responded */
.already-responded {
  text-align: center;
  padding: 28px 20px;
  background: rgba(181, 199, 163, 0.08);
  border-radius: 18px;
  margin-bottom: 16px;
}

.already-responded p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

.already-responded .status-yes { color: var(--deep-sage); font-weight: 700; }
.already-responded .status-no { color: #a05252; font-weight: 700; }
.already-responded .status-maybe { color: var(--warm-brown); font-weight: 700; }

.change-rsvp-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  opacity: 0.7;
}

/* Thank You */
.thank-you {
  text-align: center;
  padding: 36px 20px;
  animation: fadeInUp 0.6s ease;
}

.thank-you-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--sage), var(--deep-sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(122, 154, 109, 0.3);
}

.thank-you-icon::after {
  content: '\2713';
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.thank-you h2 {
  font-family: 'Sacramento', cursive;
  color: var(--deep-sage);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.thank-you p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* -- Footer -- */
.invite-footer {
  text-align: center;
  padding: 40px 20px 60px;
  animation: fadeInUp 1s ease 1.1s both;
}

.footer-ornament {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  opacity: 0.4;
}

.footer-dot:nth-child(1) { background: var(--blush); }
.footer-dot:nth-child(2) { background: var(--sage); }
.footer-dot:nth-child(3) { background: var(--gold); }
.footer-dot:nth-child(4) { background: var(--lavender); }
.footer-dot:nth-child(5) { background: var(--soft-blue); }

.footer-text {
  font-family: 'Sacramento', cursive;
  font-size: 26px;
  color: var(--gold);
}

.footer-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  opacity: 0.5;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .rsvp-options {
    flex-direction: column;
  }

  .countdown-grid { gap: 10px; }
  .countdown-item { min-width: 68px; padding: 14px 10px; }
  .countdown-number { font-size: 28px; }

  .invite-card .details-card,
  .invite-card .rsvp-card,
  .invite-card .greeting-card {
    padding: 28px 20px;
  }

  .add-guest-form {
    flex-direction: column;
  }

  .dash-header {
    padding: 1rem;
  }

  .dash-header h1 {
    font-size: 1.1rem;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .guest-table th,
  .guest-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
  }
}
