/* Base Styles */
:root {
  --honey-gold: #ffd700;
  --honey-pot: #ffa500;
  --honey-outline: #c2a200;
  --soft-red: #f0a7b5;
  --light-blue: #66b2cc;
  --dark-brown: #4a3628;
  --cream: #f9f5ec;
  --light-honey: #fdf9f2;
  --green-teal: #4ca47a;
  --leaf-green-light: #8bc34a;
  --leaf-green-dark: #5d8032;
}

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@400;600&family=Kalam:wght@400;700&display=swap");

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

body {
  font-family: "Lora", serif;
  background-color: var(--cream);
  color: var(--dark-brown);
  line-height: 1.6;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23C2A200' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e6b422' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--dark-brown);
}

.script-text {
  font-family: "Kalam", cursive;
  font-weight: 700;
}

/* Header Styles */
.header {
  /* keep a light overlay; video will sit behind this */
  background: linear-gradient(rgba(255, 248, 231, 0.45), rgba(255, 248, 231, 0.45));
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Header background video styles */
.header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}


.header::after {
  /* stronger dark overlay for better text contrast over video */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* Ensure header text contrasts with video */
.header-content h1,
.header-content h2,
.header-content .script-text {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.header-content {
  padding: 40px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  max-width: 80%;
}

.header-content .gender-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.header-content .script-text {
  font-size: 1.5rem;
  margin-top: 15px;
  color: var(--dark-brown);
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--dark-brown);
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.header h2 {
  font-size: 2rem;
  color: var(--dark-brown);
  font-family: "Lora", serif;
  font-weight: 600;
}

.header .gender-text {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.header .gender-text .boy {
  color: var(--light-blue);
}

.header .gender-text .girl {
  color: var(--soft-red);
}

.pooh-decoration {
  height: 40px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pooh-decoration span {
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--honey-gold),
    transparent
  );
  position: relative;
}

.pooh-decoration span::before {
  content: "🍯";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

/* Section Styles */
section {
  padding: 60px 0;
  position: relative;
}

section:nth-child(even) {
  background: linear-gradient(
    to bottom,
    rgba(248, 234, 199, 0.5),
    rgba(248, 234, 199, 0.7)
  );
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e6b422' fill-opacity='0.08'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

section {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(230, 180, 34, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: 20px;
  left: 10%;
  z-index: -1;
}

section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(230, 180, 34, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: 30px;
  right: 15%;
  z-index: -1;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--dark-brown);
  position: relative;
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* Event Details Styles */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.detail-item {
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(230, 180, 34, 0.15);
}

.detail-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--honey-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.detail-item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.detail-item i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--honey-gold), var(--honey-pot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.detail-item h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Calendar Download */
.calendar-download {
  margin-top: 30px;
  position: relative;
  padding: 10px;
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--honey-gold);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 10px;
  box-shadow: 0 5px 15px rgba(230, 180, 34, 0.2);
  border: none;
}

.btn:hover {
  background-color: var(--dark-brown);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 180, 34, 0.3);
}

/* Optional specific styles for youtube/photos buttons */
.btn.youtube { background: #ff4444; color: #fff; }
.btn.photos { background: linear-gradient(45deg,#4ca1af,#c4e0e5); color: #fff; }

/* RSVP Section */
.form-container {
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container iframe {
  width: 100%;
  height: 1100px;
  border: none;
  background: transparent;
  overflow: hidden;
  display: block;
  margin: 0 auto;
}

/* Split layout specific RSVP styles */
@media (min-width: 992px) {
  .right-column .rsvp {
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(248, 234, 199, 0.3),
      rgba(248, 234, 199, 0.1)
    );
    border-left: 2px dashed rgba(230, 180, 34, 0.3);
    padding-left: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.03);
  }

  .right-column .section-container {
    padding-top: 40px;
  }

  /* Add a subtle highlight to the RSVP section */
  .right-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
      circle at 70% 30%,
      rgba(255, 215, 0, 0.05) 0%,
      transparent 70%
    );
    z-index: -1;
  }
}

/* RSVP Hero Section */
.rsvp-hero {
  background: linear-gradient(
    to bottom,
    rgba(248, 234, 199, 0.4),
    rgba(248, 234, 199, 0.2)
  );
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.rsvp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 70%
  );
  z-index: 0;
}

.rsvp-hero .section-container {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.rsvp-hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark-brown);
  position: relative;
}

.rsvp-hero h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--honey-gold), var(--honey-pot));
  border-radius: 2px;
}

.rsvp-hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark-brown);
}

.rsvp-hero .form-container {
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

/* Custom Form Styles */
.custom-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 8px;
  max-width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-brown);
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(230, 180, 34, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--dark-brown);
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-family: "Lora", serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--honey-gold);
  box-shadow: 0 0 0 3px rgba(230, 180, 34, 0.2);
}

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

.required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: linear-gradient(to right, var(--honey-gold), var(--honey-pot));
  color: var(--dark-brown);
  font-weight: 700;
  padding: 14px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(230, 180, 34, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 180, 34, 0.4);
  background: linear-gradient(to right, var(--honey-pot), var(--honey-gold));
}

.submit-btn i {
  margin-right: 8px;
}

/* Radio button styles */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(230, 180, 34, 0.3);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.8);
}

.radio-option input[type="radio"]:checked + label {
  background-color: var(--honey-gold);
  color: white;
  border-color: var(--honey-gold);
  box-shadow: 0 3px 10px rgba(230, 180, 34, 0.3);
}

.radio-option input[type="radio"]:focus + label {
  box-shadow: 0 0 0 3px rgba(230, 180, 34, 0.2);
}

/* Gender guess options */
.gender-guess-options {
  justify-content: center;
  margin: 20px 0;
}

.boy-option input[type="radio"]:checked + label {
  background-color: var(--light-blue);
  border-color: var(--light-blue);
  box-shadow: 0 3px 10px rgba(102, 178, 204, 0.3);
}

.girl-option input[type="radio"]:checked + label {
  background-color: var(--soft-red);
  border-color: var(--soft-red);
  box-shadow: 0 3px 10px rgba(240, 167, 181, 0.3);
}

.form-message {
  padding: 15px;
  margin-top: 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.success-message {
  background-color: rgba(46, 204, 113, 0.2);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.error-message {
  background-color: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Custom Google Form styling */
.rsvp {
  background: linear-gradient(
    to bottom,
    rgba(248, 234, 199, 0.3),
    rgba(248, 234, 199, 0.1)
  );
}

.rsvp .section-container {
  max-width: 800px;
}

.rsvp h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--dark-brown);
  position: relative;
}

.rsvp h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--honey-gold), var(--honey-pot));
  border-radius: 2px;
}

.rsvp p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Gender Reveal Section */
.reveal-graphics {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 40px 0;
}

.question-mark {
  font-size: 5rem;
  font-weight: bold;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.question-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 60%,
    rgba(230, 180, 34, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.question-mark:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.question-mark:hover::after {
  opacity: 1;
}

.question-mark.pink {
  background: linear-gradient(135deg, #ffd1dc 0%, #ffb6c1 100%);
  color: #ff69b4;
  box-shadow: 0 10px 25px rgba(255, 105, 180, 0.15);
}

.question-mark.blue {
  background: linear-gradient(135deg, #add8e6 0%, #87ceeb 100%);
  color: #1e90ff;
  box-shadow: 0 10px 25px rgba(30, 144, 255, 0.15);
}

.question-mark.pink-blue {
  background: linear-gradient(135deg, #ffb6c1 0%, #87ceeb 100%);
  color: #8a2be2;
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.15);
  font-size: 6rem;
  width: 150px;
  height: 150px;
}

/* Selected guess styles */
.question-mark.selected-guess {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  animation: pulse 1.5s infinite alternate;
}

.question-mark.blue.selected-guess {
  background: linear-gradient(135deg, #87ceeb 0%, #1e90ff 100%);
  color: white;
  box-shadow: 0 15px 40px rgba(30, 144, 255, 0.3);
}

.question-mark.pink.selected-guess {
  background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 100%);
  color: white;
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
}

@keyframes pulse {
  from {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  }
  to {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  }
}

/* Registry Section */
.registry-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.registry-btn {
  min-width: 200px;
}

.registry-btn.amazon {
  background-color: #ff9900;
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.2);
}

.registry-btn.amazon:hover {
  background-color: #e68a00;
}

.registry-btn.target {
  background-color: #cc0000;
  box-shadow: 0 5px 15px rgba(204, 0, 0, 0.2);
}

.registry-btn.target:hover {
  background-color: #b30000;
}

/* Invitation Links Section */
.invitation-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.invitation-buttons .btn {
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.invitation-buttons .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.invitation-buttons .btn:hover::after {
  transform: translateX(100%);
}

.invitation-buttons .btn i {
  margin-right: 8px;
}

/* Footer Styles */
footer {
  color: var(--dark-brown);
  padding: 40px 0;
  text-align: center;
  position: relative;
}

footer p {
  font-weight: 600;
  font-size: 1.2rem;
  font-family: "Kalam", cursive;
}

/* Animation Classes */
.animated {
  animation: fadeIn 1s ease-in-out;
}

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

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Add transitions for all elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Removed Split Layout Styles */

/* Responsive Design */
@media (max-width: 992px) {
  .rsvp-hero h2 {
    font-size: 2.5rem;
  }

  .rsvp-hero p {
    font-size: 1.1rem;
    max-width: 90%;
  }

  .rsvp-hero .form-container {
    margin-top: 20px;
  }

  .custom-form {
    padding: 25px 20px;
  }

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

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
  }

  .submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .header h2 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reveal-graphics {
    gap: 20px;
  }

  .question-mark {
    width: 100px;
    height: 100px;
    font-size: 4rem;
  }

  .section-container {
    padding: 25px 15px;
    margin: 0 15px;
  }

  section h2::after {
    width: 50px;
  }
}

@media (max-width: 576px) {
  .rsvp-hero h2 {
    font-size: 2rem;
  }

  .rsvp-hero p {
    font-size: 1rem;
    max-width: 95%;
  }

  .rsvp-hero .form-container {
    margin-top: 15px;
  }

  .custom-form {
    padding: 20px 15px;
  }

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

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .form-message {
    padding: 12px;
    font-size: 0.9rem;
  }

  .header {
    padding: 60px 10px;
  }

  .header-content {
    padding: 20px;
    width: 90%;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header-content .gender-text {
    flex-direction: column;
    gap: 5px;
  }

  .header-content .script-text {
    font-size: 1.2rem;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .registry-buttons,
  .invitation-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .detail-item {
    padding: 20px 15px;
  }

  .invitation-buttons .btn {
    width: 100%;
  }

  /* Make embedded Google Form use full width/height on small screens */
  .form-container {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  /* Allow the iframe to use most of the viewport height on mobile so users don't see large white padding */
  .form-container iframe {
    height: 100vh;
    min-height: 700px;
    border-radius: 0;
  }

  /* Remove yellow background and extra padding for the RSVP section on mobile
     so the embedded Google Form appears edge-to-edge. */
  .rsvp-hero {
    background: transparent !important;
    padding: 0 !important;
  }

  .rsvp-hero .section-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Hide decorative pseudo elements in the RSVP section on mobile */
  .rsvp-hero::before,
  .rsvp-hero::after {
    display: none !important;
  }

  /* Mobile fallback: hide header video and use the photo as background for smaller screens */
  .header-video {
    /* show video on mobile as well; autoplay/play is still controlled by JS */
    display: block !important;
  }

  /* Remove forced background-image on mobile so video can be visible */
  .header {
    background: linear-gradient(rgba(255, 248, 231, 0.35), rgba(255, 248, 231, 0.35));
  }

  /* On mobile, keep overlay slightly lighter but still strong enough for contrast */
  .header::after {
    background: rgba(0,0,0,0.35) !important;
  }
}

/* Made with Bob */
