:root {
  --primary: #de5d84;
  --primary-light: #f385a1;
  --primary-pale: #f7ecf4;
  --secondary: #718154;
  --secondary-light: #94a57a;
  --cream: #f7f4f7;
  --white: #FFFFFF;
  --text: #28421f;
  --text-light: #526336;
  --border: #e0e8dc;
  --error: #db2d2a;
  --error-bg: #FDF2F2;
  --success-bg: #F0F7F2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== LAYOUT ========== */
.section {
  padding: 80px 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--primary);
  opacity: 0.3;
  margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(222,93,132,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(113,129,84,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-prelude {
  font-family: 'Tangerine', cursive;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--secondary);
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-names {
  font-family: 'Imperial Script', cursive;
  font-size: clamp(64px, 14vw, 110px);
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-names .amp {
  font-size: 0.65em;
  color: var(--secondary);
  display: inline-block;
  margin: 0 4px;
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

/* Dancing couple silhouette */
.hero-flourish {
  margin: 16px auto 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

/* ========== DETAILS SECTION ========== */
.details {
  background: var(--white);
  border-top: 1px solid rgba(222,93,132,0.08);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 560px) {
  .details-grid { grid-template-columns: 1fr; gap: 40px; }
}

.detail-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.detail-heading {
  font-family: 'Tangerine', cursive;
  font-weight: 500;
  font-size: 42px;
  color: var(--secondary);
  margin-bottom: 6px;
}

.detail-text {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.detail-note {
  font-style: italic;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

.attire-note {
  margin-top: 40px;
  font-style: italic;
  font-size: 15px;
  color: var(--secondary);
}

/* ========== VENUE / DIRECTIONS ========== */
.venue {
  background: var(--cream);
}

.venue-name {
  font-family: 'Tangerine', cursive;
  font-weight: 600;
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 6px;
}

.venue-address {
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.directions-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.directions-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.venue-note {
  font-style: italic;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== RSVP SECTION ========== */
.rsvp {
  background: var(--white);
  border-top: 1px solid rgba(222,93,132,0.08);
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-heading {
  font-family: 'Tangerine', cursive;
  font-weight: 500;
  font-size: 56px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-sub {
  font-family: 'Noto Sans', sans-serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 36px;
}

.rsvp-form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(222,93,132,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236B6B6B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-family: 'Noto Sans', sans-serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  padding: 14px 18px;
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  margin-top: 20px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: var(--success-bg);
  color: var(--primary);
  border: 1px solid rgba(222,93,132,0.2);
  display: block;
}

.form-message.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(139,58,58,0.2);
  display: block;
}

.rsvp-fallback {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.rsvp-fallback p {
  font-family: 'Noto Sans', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-light);
}

.rsvp-fallback .phone {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--primary);
  margin-top: 4px;
  display: block;
}

.rsvp-fallback a {
  color: var(--primary);
  text-decoration: none;
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--cream);
}

.footer-names {
  font-family: 'Imperial Script', cursive;
  font-size: 48px;
  color: var(--primary);
}

.footer-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .section { padding: 60px 20px; }
  .hero { padding: 80px 20px 60px; }
  .hero-names { font-size: 48px; }
}
