/* ========================================
   Marizu's Dedication — Old Money / Royalty Theme
   ======================================== */

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

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

:root {
  --navy: #0d1b2a;
  --navy-light: #1b2d45;
  --gold: #c9a96e;
  --gold-light: #d4bc8b;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --ivory: #faf8f0;
  --ivory-dark: #f0ece0;
  --charcoal: #2c2c2c;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
}

.hero-img-wrapper {
  width: 100%;
}

.hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Hero Overlay --- */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.3) 60%, transparent 100%);
  padding: 60px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s ease-out 0.3s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Ornament Divider --- */
.ornament {
  text-align: center;
  padding: 32px 0 8px;
  color: var(--gold);
  font-size: 24px;
  letter-spacing: 12px;
}

/* --- Invite Details --- */
.invite-section {
  text-align: center;
  padding: 16px 24px 32px;
  scroll-margin-top: 20px;
}

.invite-section h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.invite-section .subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 480px;
  margin: 0 auto 28px;
  box-shadow: 0 2px 16px rgba(13, 27, 42, 0.05);
}

.detail-row {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ivory-dark);
}

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

.detail-text {
  font-size: 1.1rem;
  color: var(--charcoal);
}

.detail-text strong {
  font-weight: 600;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.reception-note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

/* --- Countdown --- */
.countdown-section {
  text-align: center;
  padding: 0 24px 36px;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  padding: 16px 12px;
  min-width: 72px;
  text-align: center;
}

.countdown-item .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.countdown-item .label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-top: 6px;
  display: block;
}

/* --- CTA Button --- */
.cta-section {
  text-align: center;
  padding: 0 24px 20px;
}

.btn-rsvp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 16px 48px;
  border-radius: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.35);
  border: none;
  cursor: pointer;
}

.btn-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 169, 110, 0.5);
}

.btn-rsvp.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.rsvp-deadline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* --- Quick Links --- */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 24px 40px;
  flex-wrap: wrap;
}

.quick-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.quick-link:hover {
  background: var(--gold-dim);
}

/* --- Map Section --- */
.map-section {
  padding: 0 24px 48px;
  scroll-margin-top: 20px;
}

.map-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
}

.map-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.08);
  max-width: 560px;
  margin: 0 auto;
}

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* --- RSVP Inline Section --- */
.rsvp-inline-section {
  text-align: center;
  padding: 16px 24px 48px;
  scroll-margin-top: 20px;
}

.rsvp-inline-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.rsvp-inline-section .rsvp-deadline {
  margin-bottom: 28px;
}

.rsvp-inline-section .rsvp-form {
  text-align: left;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--gold-dim);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer .gold {
  color: var(--gold);
}

/* ========================================
   RSVP Page Styles
   ======================================== */

.rsvp-page {
}

.rsvp-header {
  text-align: center;
  padding: 48px 24px 24px;
}

.rsvp-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.rsvp-header p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

.rsvp-form-section {
  flex: 1;
  padding: 0 24px 48px;
}

.rsvp-form {
  background: var(--white);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.06);
}

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

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 12px 16px;
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--charcoal);
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a96e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Radio Group --- */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.form-group label.radio-option:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.form-group label.radio-option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.form-group label.radio-option input[type="radio"]:checked {
  background: var(--gold);
  box-shadow: inset 0 0 0 4px var(--white);
}

.form-group label.radio-option span {
  font-size: 0.95rem;
  color: var(--charcoal);
}

/* --- Submit Button --- */
.btn-submit {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.35);
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 169, 110, 0.5);
}

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

/* --- Thank You Message --- */
.thank-you {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.thank-you.show {
  display: block;
}

.thank-you h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.thank-you p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  margin-top: 24px;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--gold);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-overlay {
    padding: 40px 16px 24px;
  }

  .invite-section h1 {
    font-size: 1.8rem;
  }

  .detail-card {
    padding: 24px 16px;
  }

  .countdown-item {
    min-width: 64px;
    padding: 12px 8px;
  }

  .countdown-item .number {
    font-size: 1.6rem;
  }

  .btn-rsvp {
    padding: 14px 36px;
    font-size: 1rem;
  }

  .quick-links {
    gap: 12px;
  }

  .quick-link {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .map-wrapper iframe {
    height: 240px;
  }

  .rsvp-form {
    padding: 28px 20px;
  }

  .rsvp-header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 380px) {
  .invite-section h1 {
    font-size: 1.5rem;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item {
    min-width: 56px;
  }
}
