/* File: /templates/elegant/style.css */

/* ============ ROOT VARIABLES ============ */
:root {
  /* Core Colors */
  --primary: #cf096d;
  --primary-dark: #93215b;
  --secondary: #34495e;
  --text: #555;
  --text-dark: #333;
  --white: #fff;
  
  /* Neutral Colors */
  --light-gray: #f9f9f9;
  --medium-gray: #e0e0e0;
  --dark-gray: #eee;
  
  /* Gradients */
  --gradient-start: #ff9a9e;
  --gradient-end: #fecfef;
  
  /* Shadows & Overlays */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --overlay-dark: rgba(0, 0, 0, 0.4);
  
  /* Border Radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 10px;
  --radius-xl: 15px;
  --radius-round: 50%;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 25px;
  --spacing-xxl: 30px;
}

/* ============ GLOBAL STYLES ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  margin: 0;
  padding: 1rem;
 background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);
  color: var(--text);
}

.container {
    max-width: 920px;
    margin: auto;
    padding: var(--spacing-xxl);
    background: var(--shadow-medium);
    border-radius: var(--radius-large);
    color: #fff;
}

/* ============ TYPOGRAPHY ============ */
h1 {
  font-family: "Luxurious Script", cursive;
  font-size: 2em;
  color: var(--primary);
  margin: var(--spacing-sm) 0;
  font-weight: 500;
}

h2 {
  font-family: "Luxurious Script", cursive;
  font-size: 2.5em;
  margin: var(--spacing-xl) 0;
  font-weight: 500;
}

h3 {
    font-family: "Luxurious Script", cursive;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.details p {
  line-height: 1.6;
}

.text {
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-sm);
}

header p {
  text-align: center;
  max-width: 600px;
  margin: auto;
}

/* ============ PARENT NAMES ============ */
.parent-names {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-xl) 0;
  gap: var(--spacing-lg);
}

.person-details { 
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: var(--radius-large);
  box-shadow: 0 2px 5px var(--shadow-light);
}

.person-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-round);
  margin: 0 auto var(--spacing-md);
  background-color: var(--dark-gray);
  background-size: cover;
  background-position: center;
  border: 4px solid var(--white);
  box-shadow: 0 2px 5px var(--shadow-light);
}

.person-details h3 { 
  margin-bottom: var(--spacing-xs);
  font-size: 2.5rem;
}

.parent-name { 
  font-weight: bold; 
  margin: var(--spacing-xs) 0; 
}

.ampersand {
  font-size: 2em;
  font-weight: 700;
}

/* ============ TIME & LOCATION ============ */
.time-location {
  display: flex;
  justify-content: space-around;
  margin-top: var(--spacing-lg);
}

.event {
    width: 45%;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-large);
    box-shadow: 0 2px 5px var(--shadow-light);
}
.event h3 {
font-family: "Montserrat", sans-serif;
}

.save-date-container {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.btn-save-date {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--secondary);
  color: var(--white) !important;
  text-decoration: none;
  border-radius: var(--radius-xl);
}

/* ============ COVER SECTION ============ */
.cover-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

.cover-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cover-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transition: opacity 1.2s ease-in-out;
  opacity: 0;
}

.cover-slide.active {
  opacity: 1;
}

.cover-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.3);
}

.cover-content p {
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.cover-content p,
.cover-content h1,
.cover-content h3 {
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.cover-content h1 {
  font-size: 3.5em;
  margin-bottom: 2rem;
  font-weight: 500;
}

.guest-container .sapaan-pembuka {
  font-size: 1.1em;
}

.guest-name {
  font-size: 1.5em;
  margin: var(--spacing-xs) 0 var(--spacing-xl);
}

.btn-open {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-xl);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-large);
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 2px 5px var(--shadow-light);
  transition: background-color 0.3s;
}

.btn-open:hover {
  background-color: var(--primary-dark);
}

.cover-container.hidden {
  opacity: 0;
  visibility: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* ============ SECTION DETAIL =========== */
section.details {
  display: flex;
  justify-content: space-between;
  margin: var(--spacing-xl) 0;
}

/* ============ MUSIC CONTROL ============ */
.music-control {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: var(--radius-round);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  color: var(--white);
}

.music-control.playing svg {
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ SEPARATOR SLIDESHOW ============ */
.separator-slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: var(--spacing-xl) 0;
  border-radius: var(--radius-xl);
}

.separator-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.separator-slide.active {
  opacity: 1;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-sm);
}

.gallery-thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-thumbnail:hover {
  transform: scale(1.05);
}

/* ============ LIGHTBOX ============ */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.custom-lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: var(--radius-small);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5em;
  cursor: pointer;
}

.lightbox-close {
  top: 15px;
  right: 25px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

/* ============ GIFTS/DIGITAL ENVELOPE ============ */
.gifts {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--medium-gray);
}

.gifts h2 {
  text-align: center;
}

.gifts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.gift-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: var(--radius-large);
  box-shadow: 0 2px 5px var(--shadow-light);
}

.gift-item h4 {
  margin: 0 0 var(--spacing-sm);
}

.gift-item p {
  margin: var(--spacing-xs) 0;
}

.btn-copy {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: rgba(0, 0, 0, .3);
  color: var(--white);
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
}

/* ============ COUNTDOWN ============ */
.countdown {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 5px var(--shadow-light);
}

.countdown-timer {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.timer-box {
  width: 23%;
}

.timer-box span {
  font-size: 2.5em;
  font-weight: bold;
  display: block;
}

.timer-box p {
  margin: var(--spacing-xs) 0 0;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ LOCATION/MAP ============ */
.location {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
}

.location h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.map-container {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px var(--shadow-light);
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

.map-frame {
  width: 100%;
  height: 256px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: none;
}

.map-container iframe {
  width: 100%;
  height: 256px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: none;
}

.btn-maps {
    display: block;
    width: fit-content;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: var(--radius-large);
    text-align: center;
    background: var(--shadow-medium);
}

/* ============ LOVE STORY TIMELINE ============ */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: var(--spacing-xl) auto;
  padding: 0 var(--spacing-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.fade-in-section {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-content {
  background:rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xl) var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px var(--shadow-light);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--primary);
  border: 5px solid var(--white);
  border-radius: var(--radius-round);
  top: 30px;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.2);
}

.timeline-item.left::after {
  right: -18px;
}

.timeline-item.right::after {
  left: -18px;
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 var(--spacing-md) 0;
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.timeline-item.left .timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  right: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--white);
}

.timeline-item.right .timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--white);
}

section.love-story {
    padding: var(--spacing-xl) 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item.fade-in-section {
  animation: fadeInUp 0.6s ease forwards;
}


/* ============ RSVP FORM ============ */
.rsvp {
  background: linear-gradient(135deg, #fff7f8 0%, #ddb5b1 30%);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-xl);
  margin: var(--spacing-xl) 0;
  box-shadow: 0 10px 30px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.rsvp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rsvp h2 {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xl);
  font-size: 2.2rem;
  position: relative;
  padding-bottom: var(--spacing-md);
}

.rsvp h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

#rsvp-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 80%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.2);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-style: italic;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a47e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
  padding-right: 50px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

.btn-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: var(--spacing-xl) auto 0;
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 164, 126, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 164, 126, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.form-status-message {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: var(--radius-medium);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-status-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============ WISHES/COMMENTS ============ */
.wishes-list {
  margin-top: var(--spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  max-height: 400px;
  overflow-y: auto;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, .3);
}

.wish-item {
  position: relative;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid #f0f0f0;
  background: var(--light-gray);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wish-item:last-child {
  border-bottom: none;
}

.wish-item strong {
  font-weight: bold;
  color: var(--text-dark);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.wish-item p {
  margin: 0;
  font-size: 0.95em;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.btn-delete-rsvp {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dc3545;
  color: var(--white);
  border: none;
  border-radius: var(--radius-round);
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-delete-rsvp:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============ ANIMATIONS ============ */
.btn-submit.loading {
  position: relative;
  color: transparent;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: var(--radius-round);
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.fade-in-section {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ FLOATING LABELS (OPTIONAL) ============ */
.form-group.floating-label {
  position: relative;
}

.form-group.floating-label label {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-lg);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 var(--spacing-xs);
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: var(--spacing-md);
  font-size: 12px;
  color: var(--primary);
  background: var(--white);
}

.watermark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    font-size: 3rem;
    font-weight: bold;
    transform: rotate(-45deg);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Footer branding untuk akun free */
.invitation-branding {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85em;
    color: rgba(0, 0, 0, .5);
    text-decoration: none;
    position: relative;
    z-index: 100;
    display: inline-block;
}

/* Footer branding untuk akun premium */
.invitation-branding.premium {
    font-size: 0.8em;
    color: #aaa;
    background-color: transparent;
    border-top: none;
    padding: 10px;
}

.invitation-branding:hover {
    color: #555;
}

.invitation-branding.premium:hover {
    background-color: transparent;
    color: #888;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
  .rsvp {
    padding: var(--spacing-xl) var(--spacing-md);
    margin: var(--spacing-xl) 0;
  }
  
  .rsvp h2 {
    font-size: 1.8rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: var(--spacing-md) var(--spacing-md);
    font-size: 15px;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  .btn-submit {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 16px;
  }
  
}

@media (max-width: 480px) {
  .rsvp {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .rsvp h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-lg);
  }
  
  .form-group {
    margin-bottom: var(--spacing-lg);
  }
  
  .btn-submit {
    max-width: 250px;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 15px;
  }
  
  .parent-names,
  .details,
  .time-location {
    flex-direction: column;
    align-items: center;
  }
  
  .groom-parents,
  .bride-parents,
  .event {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }
  .timeline {
    padding: 0;
    }
    .timeline::before {
        left: 18px;
    }
  .timeline-item {
    width: 100%;
    padding-left: 70px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-item .timeline-content::before {
    left: -15px !important;
    border-right: 15px solid var(--white) !important;
    border-left: none !important;
  }
  
  .timeline-item.right .timeline-content::before {
   left: 0;
  }
  .timeline-item.right::after {
    left: 0;
    }
  .timeline::after {
    left: 0;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: var(--spacing-md);
  }
  
  .timeline-item::after {
    left: 0;
  }
  
  .timeline-item.right {
    left: 0%;
  }
}