:root {
  --primary-color: #5D6B4C;
  --secondary-color: #8B9B6B;
  --accent-color: #3D4A2D;
  --light-color: #F5F3EE;
  --dark-color: #2D3524;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(241, 242, 251, 0.37);
  --glass-blur: blur(2px);
  --glass-border-radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 2.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
.site-header {
  background-image: url("../images/ALXL2442.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right 40%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 80px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-content {
  padding: 2.5rem;
  background-color: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--glass-border-radius);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 8;
  max-width: 90%;
  width: 600px;
}

.header-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #daa520);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 2px 10px rgba(218, 165, 32, 0.2);
}

.tagline {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.wedding-date {
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0;
  display: inline-block;
}

/* Hero Countdown in Header */
.hero-countdown {
  margin-top: 1.5rem;
}

.header-content .countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.header-content .countdown-item {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-content .countdown-item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.header-content .countdown-item span:first-child {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-content .countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  opacity: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Floating Decorative Elements - Hidden */
.floating-elements {
  display: none;
}

.floating-element {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
}

.floating-rings {
  width: 200px;
  height: 200px;
  background-image: url(../images/img2.jpg);
  top: 40%;
  right: 5%;
  animation: float 6s ease-in-out infinite;
}

.floating-flower-1 {
  width: 200px;
  height: 200px;
  background-image: url(../images/img1.jpg);
  top: 40%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.floating-flower-2 {
  width: 120px;
  height: 120px;
  /* background-image: url(../images/img4.jpg); */
  bottom: 20%;
  right: 20%;
  animation: float 7s ease-in-out infinite;
}

.floating-leaf-1 {
  width: 120px;
  height: 120px;
  /* background-image: url(../images/img5.jpg); */
  bottom: 15%;
  left: 15%;
  animation: float 5s ease-in-out infinite;
}

.floating-leaf-2 {
  width: 90px;
  height: 90px;
  /* background-image: url(../images/img1.jpg); */
  top: 30%;
  left: 25%;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(0) translateX(20px);
  }
  75% {
    transform: translateY(20px) translateX(10px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Navigation */
.main-nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 3rem;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 1.8rem 2.5rem;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* Section Styling */
section {
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Countdown */
.hero-section {
  background-color: white;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 50%, #f0f0f0 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/pattern.png);
  background-size: 300px;
  opacity: 0.05;
  pointer-events: none;
}

.countdown-container {
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
}

.countdown-container::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(218, 165, 32, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s infinite ease-in-out;
  z-index: -1;
}

.countdown-container::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(218, 165, 32, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s infinite ease-in-out 1.5s;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  width: 120px;
  height: 120px;
  background-color: var(--glass-bg);
  color: var(--primary-color);
  border-radius: var(--glass-border-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.countdown-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
  background-color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

.countdown-item span:first-child {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.countdown-item span:first-child {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* Our Story */
.story-section {
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(218, 165, 32, 0.1) 0%,
    rgba(218, 165, 32, 0) 70%
  );
  border-radius: 50%;
  top: -150px;
  left: -150px;
  z-index: 0;
}

.story-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(93, 107, 76, 0.1) 0%,
    rgba(93, 107, 76, 0) 70%
  );
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  z-index: 1;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(108, 122, 137, 0.2),
    rgba(108, 122, 137, 0.6),
    rgba(108, 122, 137, 0.2)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  border-radius: 1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--accent-color);
  border: 4px solid white;
  border-radius: 50%;
  top: 15px;
  right: -12px;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(218, 165, 32, 0.3);
}

.timeline-item:nth-child(even)::after {
  left: -12px;
}

.timeline-content {
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.timeline-content h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), transparent);
}

.date {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(108, 122, 137, 0.1);
  border-radius: 15px;
  font-size: 0.9rem;
}

/* Event Details Enhancement */
.details-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  /* padding: 6rem 0; */
}

.details-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(93, 107, 76, 0.03) 0%,
    rgba(93, 107, 76, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem auto;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.detail-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(93, 107, 76, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  width: 90%;
}

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.detail-card:hover::before {
  transform: scaleX(1);
}

.icon {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.icon::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(
    circle,
    rgba(93, 107, 76, 0.1) 0%,
    rgba(93, 107, 76, 0) 70%
  );
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.detail-card h3 {
  color: #333333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.detail-card .time {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.2rem 1.5rem;
  background: rgba(93, 107, 76, 0.1);
  border-radius: 30px;
}

.detail-card p {
  color: #333333;
  line-height: 1.5;
  font-size: 1em;
}

.detail-card a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-card a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive adjustments for event details */
@media (max-width: 992px) {
  .event-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hide floating elements on mobile */
  .floating-elements {
    display: none;
  }

  /* Adjust section padding */
  section {
    padding: 3rem 1rem;
  }

  /* Adjust header content */
  .header-content {
    padding: 1.5rem;
    width: 95%;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .wedding-date {
    font-size: 1rem;
    padding: 0.3rem 0;
  }

  /* Adjust countdown items */
  .header-content .countdown {
    gap: 0.5rem;
  }

  .header-content .countdown-item {
    width: 60px;
    height: 60px;
  }

  .header-content .countdown-item span:first-child {
    font-size: 1.5rem;
  }

  .header-content .countdown-label {
    font-size: 0.7rem;
  }

  /* Adjust event details */
  .event-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-card {
    width: 100%;
    padding: 1.5rem;
  }

  /* Adjust gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 300px;
  }

  /* Adjust RSVP form */
  #rsvp-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .radio-group label {
    width: 100%;
    text-align: center;
  }

  .btn-primary {
    width: 100%;
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  /* Further adjustments for smaller screens */
  section {
    padding: 2rem 1rem;
  }

  .header-content {
    padding: 1rem;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .header-content .countdown-item {
    width: 50px;
    height: 50px;
  }

  .header-content .countdown-item span:first-child {
    font-size: 1.2rem;
  }

  .header-content .countdown-label {
    font-size: 0.6rem;
  }

  /* Adjust navigation */
  .main-nav ul {
    padding: 0.5rem;
  }

  .main-nav a {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  /* Adjust footer */
  .site-footer {
    padding: 2rem 1rem;
  }

  .couple-names {
    font-size: 1.5rem;
  }

  .wedding-date {
    font-size: 0.9rem;
  }
}

/* Gallery */
.gallery-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  /* padding: 6rem 0; */
}

.gallery-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(93, 107, 76, 0.03) 0%,
    rgba(93, 107, 76, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.gallery-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--secondary-color);
  font-size: 1.2rem;
  line-height: 1.8;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-content {
  text-align: center;
}

.gallery-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  font-style: italic;
}

/* Responsive adjustments for gallery */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 350px;
  }
}

/* RSVP */
.rsvp-section {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.rsvp-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/FABY & BBETO-21.JPG");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.rsvp-intro {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: var(--primary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

#rsvp-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#rsvp-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  font-size: 17.6px;
  transition: all 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(93, 107, 76, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  color: var(--dark-color);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.1);
  background-color: #fff;
}

.radio-group {
  display: flex;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 1rem 2rem;
  border-radius: 15px;
  border: 2px solid rgba(93, 107, 76, 0.2);
  transition: all 0.3s ease;
}

.radio-group:hover {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.8);
}

.radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-group label {
  margin: 0;
  padding: 0.8rem 2rem;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
}

.radio-group input[type="radio"]:checked + label {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(93, 107, 76, 0.3);
  transform: translateY(-2px);
}

.radio-group label:hover {
  background-color: rgba(93, 107, 76, 0.1);
}

.form-submit {
  text-align: center;
  margin-top: 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3D4A2D 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(93, 107, 76, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(93, 107, 76, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

.rsvp-success {
  text-align: center;
  padding: 3rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 2px solid rgba(76, 175, 80, 0.2);
  position: relative;
  z-index: 1;
}

.rsvp-success h3 {
  color: #2e7d32;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.rsvp-error {
  text-align: center;
  padding: 1.5rem;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 2px solid rgba(244, 67, 54, 0.2);
  color: #c62828;
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for RSVP form */
@media (max-width: 768px) {
  #rsvp-form {
    padding: 2rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .radio-group label {
    width: 100%;
    text-align: center;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.couple-names {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-social {
  margin-top: 1.5rem;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .countdown-item {
    width: 100px;
    height: 100px;
  }

  .countdown-item span:first-child {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav li {
    margin: 0;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 21px;
    right: auto;
  }

  .timeline-item:nth-child(even)::after {
    left: 21px;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .countdown-item {
    width: 45%;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .header-content h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .countdown-item {
    width: 100%;
  }
}

/* Elegant Scroll Indicator */
.scroll-indicator {
  position: relative;
  margin-top: 2rem;
  color: white;
  text-align: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.1)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-indicator:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator:hover::before {
  opacity: 1;
}

.scroll-indicator i {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
  animation: floatDown 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  opacity: 0.9;
  transition: all 0.3s ease;
  position: absolute;
  bottom: -2rem;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-indicator:hover span {
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes floatDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Add smooth scrolling to the entire page */
html {
  scroll-behavior: smooth;
}

/* Add a subtle gradient overlay to make the scroll indicator more visible */
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Add a subtle pulse animation to the scroll indicator */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
}

.scroll-indicator {
  animation: pulse 3s ease-in-out infinite;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Header adjustments */
  .site-header {
    height: auto;
    min-height: 100vh;
    padding: 2rem 1rem 100px;
  }

  .header-content {
    width: 95%;
    padding: 1.5rem;
    margin: 0 auto;
  }

  .header-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .wedding-date {
    font-size: 1rem;
  }

  /* Countdown responsive */
  .hero-countdown {
    width: 100%;
  }

  .header-content .countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .header-content .countdown-item {
    width: 100%;
    height: 70px;
    min-width: unset;
  }

  .header-content .countdown-item span:first-child {
    font-size: 1.5rem;
  }

  .header-content .countdown-label {
    font-size: 0.65rem;
  }

  /* Navigation responsive */
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: white;
  }

  /* Section titles */
  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  h2::after {
    bottom: -10px;
    width: 60px;
  }

  /* Event details responsive */
  .event-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-card {
    padding: 1.5rem;
  }

  .detail-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .detail-card h3 {
    font-size: 1.2rem;
  }

  /* Gallery responsive */
  .gallery-section .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }

  .gallery-section .gallery-item {
    height: 350px;
    margin-bottom: 0.5rem;
  }

  /* RSVP form responsive */
  .rsvp-intro {
    font-size: 1rem;
    padding: 0 1rem;
  }

  #rsvp-form {
    padding: 1.5rem;
    margin: 0 0.5rem;
    border-radius: 15px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .radio-group label {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Footer responsive */
  .site-footer {
    padding: 2rem 1rem;
  }

  .couple-names {
    font-size: 1.5rem;
  }

  .site-footer .wedding-date {
    font-size: 0.9rem;
  }

  /* Scroll indicator */
  .scroll-indicator {
    width: 50px;
    height: 50px;
    padding: 1rem;
  }

  .scroll-indicator i {
    font-size: 1.2rem;
  }

  .scroll-indicator span {
    font-size: 0.6rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  /* Header mobile */
  .site-header {
    padding: 1.5rem 0.75rem 80px;
  }

  .header-content {
    width: 100%;
    padding: 1.25rem;
    border-radius: 15px;
  }

  .header-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .tagline {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .wedding-date {
    font-size: 0.9rem;
  }

  /* Countdown mobile */
  .header-content .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }

  .header-content .countdown-item {
    height: 60px;
    padding: 0.5rem 0.25rem;
  }

  .header-content .countdown-item span:first-child {
    font-size: 1.2rem;
  }

  .header-content .countdown-label {
    font-size: 0.55rem;
  }

  /* Navigation mobile */
  .main-nav ul {
    padding: 0.4rem;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Sections mobile */
  section {
    padding: 2.5rem 0.75rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  /* Event details mobile */
  .detail-card {
    padding: 1.25rem;
  }

  .detail-card .icon {
    font-size: 1.8rem;
  }

  .detail-card h3 {
    font-size: 1.1rem;
  }

  .detail-card p {
    font-size: 0.9rem;
  }

  /* Gallery mobile */
  .gallery-item {
    height: 250px;
  }

  /* RSVP mobile */
  .rsvp-intro {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  #rsvp-form {
    padding: 1.25rem;
    margin: 0;
    border-radius: 12px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.85rem;
    border-radius: 10px;
  }

  .radio-group label {
    padding: 0.85rem;
    font-size: 0.9rem;
  }

  .form-submit {
    margin-top: 2rem;
  }

  .btn-primary {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  /* Footer mobile */
  .couple-names {
    font-size: 1.3rem;
  }

  .footer-content p {
    font-size: 0.85rem;
  }

  /* Scroll indicator mobile */
  .scroll-indicator {
    width: 45px;
    height: 45px;
  }

  .scroll-indicator span {
    display: none;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .header-content h1 {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .header-content .countdown-item {
    height: 55px;
  }

  .header-content .countdown-item span:first-child {
    font-size: 1.1rem;
  }

  .header-content .countdown-label {
    font-size: 0.5rem;
  }

  .main-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .detail-card h3 {
    font-size: 1rem;
  }

  #rsvp-form {
    padding: 1rem;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    min-height: auto;
    height: auto;
    padding: 2rem 1rem;
  }

  .header-content {
    padding: 1rem;
  }

  .header-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .tagline {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .header-content .countdown {
    gap: 0.5rem;
  }

  .header-content .countdown-item {
    height: 50px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-header,
  .rsvp-section::before {
    background-attachment: scroll;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   GUESTBOOK SECTION
   ============================================ */
.guestbook-section {
  background: linear-gradient(180deg, var(--light-color) 0%, white 100%);
}

/* Guestbook + Share Photos side-by-side layout */
.memories-section {
  background: linear-gradient(180deg, var(--light-color) 0%, white 100%);
  padding: 4rem 1rem;
}

.memories-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.memories-layout > .guestbook-section,
.memories-layout > .share-photos-section {
  display: flex;
  flex-direction: column;
}

.memories-section .guestbook-section,
.memories-section .share-photos-section {
  margin: 0;
  width: 100%;
}

.share-photos-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.share-photos-card h2 {
  margin-bottom: 0.5rem;
  text-align: left;
}

.share-photos-card h2::after {
  left: 0;
  transform: none;
}

.share-photos-card .section-subtitle {
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

.guestbook-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guestbook-card h2 {
  margin-bottom: 0.5rem;
  text-align: left;
}

.guestbook-card h2::after {
  left: 0;
  transform: none;
}

.guestbook-card .section-subtitle {
  margin-bottom: 1.5rem;
  text-align: left;
}

.guestbook-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guestbook-form .form-group {
  margin-bottom: 1.5rem;
}

.guestbook-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guestbook-form .form-group input,
.guestbook-form .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: white;
}

.guestbook-form .form-group input:focus,
.guestbook-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.guestbook-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
  flex: 1;
}

.guestbook-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guestbook-form-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guestbook-form-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.guestbook-form-card .form-group {
  margin-bottom: 1.5rem;
}

.guestbook-form-card .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guestbook-form-card .form-group input,
.guestbook-form-card .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: white;
}

.guestbook-form-card .form-group input:focus,
.guestbook-form-card .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.guestbook-form-card .form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.submit-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 1rem;
}

.guestbook-entries::-webkit-scrollbar {
  width: 6px;
}

.guestbook-entries::-webkit-scrollbar-track {
  background: var(--secondary-color);
  border-radius: 3px;
}

.guestbook-entries::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.guestbook-entry {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.guestbook-entry-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--dark-color);
  margin: 0;
}

.guestbook-entry-date {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.guestbook-entry-message {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.guestbook-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--secondary-color);
  min-height: 300px;
}

.guestbook-empty svg {
  stroke: var(--secondary-color);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.guestbook-empty h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.guestbook-empty p {
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   MEDIA GALLERY SECTION
   ============================================ */
.media-gallery-section {
  background: white;
}

.gallery-upload-area {
  background: var(--light-color);
  border: 3px dashed var(--primary-color);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-upload-area:hover,
.gallery-upload-area.dragover {
  background: var(--secondary-color);
  border-color: var(--accent-color);
}

.upload-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.upload-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-color);
}

.gallery-upload-area h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.gallery-upload-area p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.upload-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
}

.upload-btn:hover {
  background: var(--accent-color);
}

.upload-info {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* Gallery Filter Tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--secondary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  color: var(--secondary-color);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: var(--secondary-color);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay .uploader {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.gallery-item-overlay .upload-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0;
}

.video-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.video-indicator svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Gallery Delete Button */
.gallery-delete-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10;
}

.gallery-item:hover .gallery-delete-btn {
  opacity: 1;
}

/* Always show delete button on touch devices */
@media (hover: none) and (pointer: coarse) {
  .gallery-delete-btn {
    opacity: 1;
  }
}

.gallery-delete-btn:hover {
  background: rgba(200, 35, 51, 1);
  transform: scale(1.1);
}

.gallery-delete-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Gallery Preview Mode */
.gallery-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.gallery-preview .gallery-item {
  aspect-ratio: 1;
  height: auto;
}

.gallery-preview .gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.gallery-preview .gallery-item.view-more-item {
  position: relative;
  cursor: pointer;
}

.gallery-preview .gallery-item.view-more-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
}

.view-more-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  color: white;
  pointer-events: none;
}

.view-more-overlay .count {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.view-more-overlay .text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Gallery Buttons Container */
.gallery-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* View All Gallery Button */
.view-all-gallery-btn {
  display: inline-block;
  margin: 0;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.view-all-gallery-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Full Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1500;
  display: none;
  overflow-y: auto;
  padding: 1rem;
}

.gallery-modal.active {
  display: block;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10;
  margin-bottom: 1rem;
}

.gallery-modal-header h3 {
  color: white;
  margin: 0;
  font-family: "Playfair Display", serif;
}

.gallery-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-modal-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gallery-modal-filters .filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.gallery-modal-filters .filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  padding-bottom: 2rem;
}

.gallery-modal-grid .gallery-item {
  aspect-ratio: 1;
  height: auto;
}

@media (min-width: 768px) {
  .gallery-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* Empty Gallery State */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--secondary-color);
}

.gallery-empty svg {
  width: 80px;
  height: 80px;
  stroke: var(--secondary-color);
  margin-bottom: 1rem;
}

.gallery-empty h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.gallery-empty p {
  margin: 0;
}

/* ============================================
   UPLOAD MODAL
   ============================================ */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.upload-modal.active {
  display: flex;
}

.upload-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.upload-modal-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
  line-height: 1;
}

.modal-close:hover {
  color: var(--dark-color);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.preview-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-preview {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-item .remove-preview:hover {
  background: rgba(0, 0, 0, 0.8);
}

.upload-form-group {
  margin-bottom: 1rem;
}

.upload-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upload-form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.upload-form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.upload-submit {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
  margin-top: 1rem;
}

.upload-submit:hover {
  background: var(--accent-color);
}

.upload-submit:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  object-fit: contain;
}

#lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}

#lightbox-media img,
#lightbox-media video {
  max-width: 85vw;
  max-height: 65vh;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-nav.prev {
  left: 15px;
}

.lightbox-nav.next {
  right: 15px;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.lightbox-info {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  z-index: 2001;
  padding: 0 1rem;
}

.lightbox-uploader {
  font-weight: 500;
  margin: 0;
}

.lightbox-caption {
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0.3rem 0 0 0;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 3000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   RESPONSIVE STYLES FOR NEW SECTIONS
   ============================================ */
@media (max-width: 900px) {
  .guestbook-container {
    grid-template-columns: 1fr;
  }

  .guestbook-entries {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .memories-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guestbook-card,
  .share-photos-card {
    padding: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .guestbook-form-card {
    padding: 1.5rem;
  }

  .guestbook-entry {
    padding: 1.25rem;
  }

  .guestbook-entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .gallery-upload-area {
    padding: 2rem 1.5rem;
  }

  .upload-icon {
    width: 60px;
    height: 60px;
  }

  .upload-icon svg {
    width: 30px;
    height: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .upload-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .lightbox-info {
    bottom: 15px;
  }

  #lightbox-media img,
  #lightbox-media video {
    max-width: 90vw;
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .guestbook-form-card {
    padding: 1.25rem;
  }

  .gallery-upload-area {
    padding: 1.5rem 1rem;
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  /* Mobile gallery item adjustments */
  .gallery-item {
    aspect-ratio: 1;
  }

  .gallery-delete-btn {
    width: 30px;
    height: 30px;
    top: 0.5rem;
    left: 0.5rem;
  }

  .gallery-delete-btn svg {
    width: 14px;
    height: 14px;
  }

  .video-indicator {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .gallery-item-overlay {
    padding: 1rem 0.5rem 0.5rem;
  }

  .gallery-item-overlay .uploader {
    font-size: 0.75rem;
  }

  .gallery-item-overlay .upload-date {
    font-size: 0.65rem;
  }
}

/* Additional mobile improvements for very small screens */
@media (max-width: 360px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-upload-area {
    padding: 1.25rem 0.75rem;
  }

  .upload-icon {
    width: 50px;
    height: 50px;
  }

  .upload-icon svg {
    width: 25px;
    height: 25px;
  }

  .gallery-upload-area h3 {
    font-size: 1.1rem;
  }

  .gallery-upload-area p {
    font-size: 0.85rem;
  }

  .upload-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .upload-modal-content {
    padding: 1rem;
    margin: 0.5rem;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .upload-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px;
  }

  .filter-btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }

  .gallery-item-overlay {
    opacity: 1;
  }

  .submit-btn,
  .upload-submit {
    min-height: 48px;
  }

  /* Larger touch targets */
  .lightbox-nav {
    width: 50px;
    height: 50px;
  }

  .lightbox-close {
    font-size: 2.5rem;
    padding: 1rem;
  }
}

/* ============================================
   SHARE YOUR PHOTOS SECTION
   ============================================ */
.share-photos-section {
  background: linear-gradient(180deg, var(--light-color) 0%, white 100%);
  padding: 4rem 1rem;
}

.share-photos-section .container {
  max-width: 600px;
}

.share-photos-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.share-photos-section .section-subtitle {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.upload-area {
  background: white;
  border: 3px dashed var(--primary-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
}

.upload-area:hover {
  background: var(--light-color);
  border-color: var(--accent-color);
}

.upload-area .upload-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.upload-area .upload-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-color);
}

.upload-area h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.upload-area p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.upload-area .upload-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
}

.upload-area .upload-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.upload-area .upload-info {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* Upload Form */
.upload-form {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preview-container .preview-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.preview-container .preview-item img,
.preview-container .preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-container .preview-item .remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-form .form-group {
  margin-bottom: 1.5rem;
}

.upload-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upload-form .form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.upload-form .form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.upload-buttons {
  display: flex;
  gap: 1rem;
}

.upload-buttons .btn-secondary {
  flex: 1;
  padding: 1rem;
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.upload-buttons .btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
}

.upload-buttons .btn-primary {
  flex: 1;
  padding: 1rem;
}

/* Upload Success */
.upload-success {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.upload-success svg {
  stroke: #4CAF50;
  margin-bottom: 1rem;
}

.upload-success h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.upload-success p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Responsive for share photos section */
@media (max-width: 768px) {
  .share-photos-section {
    padding: 3rem 1rem;
  }

  .upload-area {
    padding: 2rem 1.5rem;
  }

  .upload-area .upload-icon {
    width: 60px;
    height: 60px;
  }

  .upload-area .upload-icon svg {
    width: 30px;
    height: 30px;
  }

  .upload-area h3 {
    font-size: 1.3rem;
  }

  .upload-form {
    padding: 1.5rem;
  }

  .preview-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .upload-buttons {
    flex-direction: column;
  }

  .upload-success {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .upload-area {
    padding: 1.5rem 1rem;
  }

  .upload-area .upload-btn {
    padding: 0.8rem 2rem;
    width: 100%;
  }

  .preview-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   GUESTBOOK + SHARE PHOTOS LAYOUT (FIXED)
   ===================================================== */

/* Two columns side by side */
.memories-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Each column */
.memory-column {
  display: flex;
  flex-direction: column;
}

/* Header outside the card */
.memory-header {
  margin-bottom: 1rem;
  text-align: center;
}

.memory-header h2 {
  margin-bottom: 0.5rem;
  text-align: center;
  display: inline-block;
  width: 100%;
}

.memory-header h2::after {
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 200px;
}

.memory-header .section-subtitle {
  text-align: center;
  margin-bottom: 0;
  margin-top: 1.5rem;
}

/* White card for form/upload area */
.memory-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  flex: 1;
}

/* Form styling inside card */
.memory-card .guestbook-form .form-group {
  margin-bottom: 1.25rem;
}

.memory-card .guestbook-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.memory-card .guestbook-form .form-group input,
.memory-card .guestbook-form .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: white;
}

.memory-card .guestbook-form .form-group input:focus,
.memory-card .guestbook-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.memory-card .guestbook-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Upload area inside card - remove extra styling */
.memory-card .upload-area {
  border: 3px dashed var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  background: var(--light-color);
}

.memory-card .upload-form,
.memory-card .upload-success {
  text-align: center;
}

/* Responsive: tablets */
@media (max-width: 900px) {
  .memories-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .memory-header h2 {
    font-size: 1.4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }

  .gallery-item {
    height: 280px;
  }
}

/* Responsive: mobile phones */
@media (max-width: 600px) {
  .memories-section {
    padding: 2rem 0;
  }

  .memories-section .container {
    padding: 0;
  }

  .memories-layout {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .memory-column {
    width: 100%;
  }

  .memory-header {
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .memory-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .memory-header h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .memory-header .section-subtitle {
    font-size: 0.9rem;
    margin-top: 1.2rem;
    text-align: center;
  }

  .memory-card {
    padding: 1.5rem;
    border-radius: 15px;
    margin: 0;
  }

  .memory-card .guestbook-form .form-group {
    margin-bottom: 1rem;
  }

  .memory-card .guestbook-form .form-group input,
  .memory-card .guestbook-form .form-group textarea {
    padding: 0.85rem;
    font-size: 16px;
  }

  .memory-card .upload-area {
    padding: 1.5rem 1rem;
  }

  .memory-card .upload-area h3 {
    font-size: 1.2rem;
  }

  .upload-icon {
    width: 60px;
    height: 60px;
  }

  .upload-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Gallery full width on mobile */
  .gallery-section {
    padding: 2rem 0;
  }

  .gallery-section .container {
    padding: 0;
  }

  .gallery-section h2 {
    padding: 0 1rem;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .gallery-item {
    height: 300px;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-buttons {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .view-all-gallery-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
  }
}

/* Responsive: small phones */
@media (max-width: 400px) {
  .memory-card {
    padding: 1rem;
  }

  .memory-header h2 {
    font-size: 1.3rem;
  }

  .memory-header .section-subtitle {
    font-size: 0.85rem;
  }

  .submit-btn,
  .upload-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .gallery-item {
    height: 280px;
  }
}

