:root {
  --olive: #6B7F3B;
  --olive-light: #8FA65D;
  --olive-lighter: #c5d6a0;
  --olive-bg: #f0f4e8;
  --gold: #D4A84B;
  --bg: #F5F5F0;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #666;
  --error: #c44;
  --radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('bg.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: -1;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--olive);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.occasions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-top: 1rem;
}

.occasion {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
}

.occasion-dot {
  color: var(--olive-light);
  font-size: 1.4rem;
  line-height: 1;
}

/* Details */
.details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 2rem 0;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.detail-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.detail-card a {
  color: var(--olive);
  text-decoration: none;
  font-weight: 500;
}

.detail-card a:hover {
  text-decoration: underline;
}

/* RSVP Section */
.rsvp-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 2rem 0;
}

.rsvp-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--olive);
  margin-bottom: 0.3rem;
}

.rsvp-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.required {
  color: var(--olive-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #e0e0d8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--olive-light);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checkbox */
.checkbox-group {
  padding: 0.8rem 1rem;
  background: #fef9f0;
  border-radius: 8px;
  border: 2px solid #f0e6d0;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: var(--olive-light);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Messages */
.form-error {
  color: var(--error);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Thank you */
.thank-you {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 2rem 0;
  text-align: center;
}

.thank-you h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--olive);
  margin-bottom: 0.8rem;
}

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

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .rsvp-section {
    padding: 1.5rem 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
