body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom right, #fff4f7, #ffe6ea);
    color: #333;
    text-align: center;
}

.hero-section {
    position: relative;
    height: 250px;
    overflow: hidden;
}
/* RSVP Form Alignment */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px; /* space between inputs */
}

.form input[type="text"],
.form select {
  width: 100%;        /* full width inside the card */
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
form input[type="text"], form select {
  box-sizing: border-box; /* ensures padding doesn't break alignment */
  margin-bottom: 12px;    /* keeps spacing consistent */
}


button[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
}


/* Music button */
#play-music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    background: #b82e2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 9999;
    font-size: 16px;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

/* Photo Slider */
.photo-slider {
    position: relative;
    width: 100%;
    max-width: 250px;
    /* fixed max width */
    height: 250px;
    /* fixed height */
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.photo-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.photo-slider img.active {
    opacity: 1;
    z-index: 1;
}

/* Love Messages Styling */
.love-messages {
    text-align: center;
    margin: 25px auto;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #6a1b1b;
    background: rgba(255, 245, 245, 0.85);
    padding: 18px;
    border-radius: 14px;
    max-width: 500px;
    line-height: 1.6;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.love-messages p {
    margin: 10px 0;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 5px;
    color: #ff8c42;
}

.wrapper {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    padding: 20px;
}

.card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 500px;
    width: 100%;
}

/* Couple photos animation */
.couple-photos {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    gap: 15px;
}

.photo-card {
    text-align: center;
}

@keyframes gentleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(3deg) scale(1.02);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }

    75% {
        transform: rotate(-3deg) scale(1.02);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.profile-pic {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d6336c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: gentleRotate 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
}

.event-details {
    background: #fff7fa;
    border: 1px solid #f5c2cc;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.form input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.form button {
    background-color: #d6336c;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form button:hover {
    background-color: #b02a56;
}

.fade-in {
    animation: fadeIn 1.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .photo-slider {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .profile-pic {
        width: 90px;
        height: 90px;
    }
}