html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #4a3f35;
  height: 100%;
}
.tile-background {
  background-image: url("https://res.cloudinary.com/dmputhibp/image/upload/w_600,c_scale,q_auto,f_auto,o_20/3486_eyvryz.jpg");
  background-repeat: repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100%;
}
.header {
  position: relative;
  color: white;
  text-align: center;
  padding: 12rem 2rem 1rem;
}
.image-reel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 650px;
  overflow: hidden;
  background: white; /* Optional */
}
.image-row {
  display: flex;
  animation: scroll-left 45s linear infinite;
}

.image-row img {
  width: auto;
  height: 650px;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

h1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 4.2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
}

h2 {
  font-size: 2.4rem;
  font-family: "Playfair Display", serif;
  font-weight: 100;
  color: #4a3f35;
  margin-top: 0;
}

h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 100;
  color: #4a3f35;
  margin: 4rem 0 0.4rem;
}

.header p {
  font-size: 1.4rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  margin: 0.5rem;
}

.container {
  border-radius: 1rem;
  margin: 6rem auto 0;
  max-width: 800px;
}

.header .container {
  margin: 12rem auto 1rem;
  position: relative;
}

nav {
  background: linear-gradient(to bottom, #fff 0%, #fff 85%, #f9f6ef 100%);
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
nav span,
nav a {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  margin: 0 2rem;
  text-decoration: none;
  color: #004b4f;
}

nav span:hover {
  cursor: pointer;
}

.background {
  background: #f9f6ef;
}
.content {
  max-width: 100%;
  min-height: 100vh;
  margin: auto;
  padding: 2rem 0;
}

.countdown {
  letter-spacing: 0.2rem;
  font-size: small;
  font-weight: 300;
}
.scroll-container {
  position: relative;
  height: 40px;
  margin-top: 2rem;
}
.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  animation: bounce 2s infinite;
  cursor: pointer;
}
.scroll-down svg {
  fill: none;
  stroke: gray;
  opacity: 0.3;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 100%;
  height: 100%;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
.content .container {
  padding: 4rem 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  position: relative;
}
.container hr {
  width: 80%;
}
#details h2 {
  margin: 2rem 0;
}
.subtitle {
  font-family: "Poppins", sans-serif;
  font-size: small;
  letter-spacing: 0.2rem;
  margin: 0 0 3rem;
}
.bg-img {
  width: 100%;
  position: absolute;
}
.bg-img img {
  width: auto;
  height: auto;
  aspect-ratio: 1023 / 802;
  max-height: 450px;
  margin: 1rem auto;
  opacity: 0.6;
}
.tea img {
  width: 40%;
  display: block;
  margin: 3.6rem 1rem 1rem auto;
  aspect-ratio: 1215 / 1024;
}
.party img {
  width: 80%;
  display: block;
  margin: 5rem auto 1rem 2rem;
  aspect-ratio: 1680 / 876;
}
.container-content {
  position: relative;
}
.container-content hr {
  width: 45%;
}
.title-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem auto;
  font-family: "Poppins", sans-serif;
  font-size: small;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-weight: 500;
}
.title-icon-container p {
  margin: 0.1rem;
}
.title-icon-container-left {
  text-align: center;
  font-size: 1rem;
  margin-right: 0.4rem;
}
.title-icon-container-right {
  text-align: left;
}
.description {
  position: relative;
  width: 50%;
  margin: 6rem 2rem 8rem auto;
}
.left {
  margin: 6rem auto 8rem 2rem;
}
.description p {
  font-size: 0.9rem;
}
.address {
  font-weight: 400;
  font-size: smaller;
}
.map i {
  margin: 0 0.5rem 0 0;
}
.googlemap {
  position: relative;
  width: 70%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
}
.googlemap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.container.rsvp-section {
  text-align: center;
  background-color: #fff0ec;
  border: 4px dashed #d1495b;
  border-radius: 1rem;
}
.rsvp-section h2 {
  font-family: "Great Vibes", cursive;
  font-size: 3.2rem;
  color: #d1495b;
}
.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.4rem 4rem;
  background-color: #ff5a5f;
  color: white;
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0.75rem;
  transition: background-color 0.3s, transform 0.3s;
  font-family: "Playfair Display", serif;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  border: none;
}
.button:hover {
  background-color: #cc4b4f;
  transform: scale(1.05);
  cursor: pointer;
}
.disabled {
  background-color: #7f3235;
  opacity: 0.6;
}
.disabled:hover {
  transform: none;
  cursor: not-allowed;
}
.edit-link {
  margin: 3rem 0 0;
  font-size: 0.8rem;
}
.link {
  color: #4a3f35;
}
.link:hover {
  color: #7d6a57;
}
.faq-section {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  color: #004b4f;
}
.faq-item:last-of-type .faq-question {
  border: none;
}

.faq-answer {
  padding: 0 1rem 1rem;
  font-size: 1rem;
  color: #4a3f35;
}
.collapsible.faq-answer.open {
  padding: 1rem;
  max-height: none;
}
.arrow-icon {
  float: right;
  transition: transform 0.4s ease;
}

.faq-question.open .arrow-icon {
  transform: rotate(180deg);
}
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #555;
}
.highlight {
  font-weight: normal;
  font-size: 1.1rem;
  color: #127882;
}

.container.rsvp {
  margin-top: 4rem;
}

.container.rsvp h2 {
  margin-bottom: 0;
}
.container.rsvp .edit-link {
  margin: 2rem 0 4rem;
}
.form-group {
  margin-bottom: 1.6rem;
  text-align: left;
}

.form-group label,
.form-group legend {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

small.error {
  color: red;
}

.collapsible {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 1s ease, opacity 1s ease, transform 0.6s ease;
}

.collapsible.open {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

#transport div:first-of-type {
  display: flex;
  gap: 1rem;
}
#transport input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

#transport label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
fieldset.form-group {
  border: none;
  padding: 0;
  margin: 0 0 1.6rem;
}

.form-subgroup {
  margin-top: 1rem;
  display: block;
}
.full-page-loader {
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: wait;
}

.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  font-family: "Poppins", sans-serif;
}

.error-popup-content h2 {
  font-family: "Playfair Display", serif;
  color: #b00020;
  margin-bottom: 1rem;
}

.error-popup-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #333;
}

.error-popup-content button {
  padding: 0.75rem 2rem;
  background-color: #b00020;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.error-popup-content button:hover {
  background-color: #930018;
}
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  font-family: "Poppins", sans-serif;
}

.success-popup-content h2 {
  font-family: "Playfair Display", serif;
  color: #50c9ba;
  margin-bottom: 1rem;
}

.success-popup-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #333;
}

.success-popup-content button {
  padding: 0.75rem 2rem;
  background-color: #004b4f;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.success-popup-content button:hover {
  background-color: #50c9ba;
}

.hidden {
  display: none;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 4rem;
  margin: 2rem auto;
  font-size: 1.1rem;
}
.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}
.info-label {
  font-weight: 500;
  color: #555;
}
.info-value {
  color: #222;
  font-weight: 400;
}
.cancel-edit-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #eee;
  color: #cd3131;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.9rem;
  border: 1px solid #cd3131;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
  z-index: 10;
}

.cancel-edit-button:hover {
  background-color: #cd3131;
  color: #fff;
}
/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  .header {
    background-position: 40%;
    padding: 10rem 2rem 0 1rem;
    height: 180px;
  }
  .header h1 {
    font-size: 2.2rem;
  }
  .header p {
    font-size: 0.8rem;
    margin: 0.2rem;
  }
  .image-reel {
    position: absolute;
    width: 100%;
    height: 400px;
    top: 0;
  }
  .image-row {
    flex-direction: column;
    animation: scroll-up 40s linear infinite;
  }
  .image-row img {
    height: auto;
    width: 100%;
  }

  @keyframes scroll-up {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }

  .container {
    border-radius: 1rem;
    margin: 6rem 0.5rem;
  }
  .header .container {
    margin: 0;
    box-sizing: border-box;
    height: 100%;
  }

  .header .container h1 {
    margin-top: 5rem;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  nav span,
  nav a {
    display: inline-block;
    margin: 0.5rem 0.8rem;
    font-size: 1.2rem;
  }
  .content {
    padding: 6rem 0 0;
  }
  .content .container {
    margin: 6rem 2rem;
    padding: 3rem 1.5rem;
  }
  .welcome.container {
    margin-top: 0;
  }
  .container hr {
    width: 100%;
  }
  .container-content hr {
    width: 90%;
    opacity: 0.7;
  }
  .bg-img {
    position: relative;
  }
  .bg-img img {
    width: 100%;
  }
  .tea img {
    width: 100%;
  }
  .title-icon-container {
    font-size: 0.8rem;
    text-align: left;
    justify-content: left;
    align-items: center;
  }
  .description {
    width: 100%;
    margin: 2rem 0 4rem;
  }
  .left {
    width: 100%;
    margin: 2rem 0 4rem;
  }
  .googlemap {
    width: 100%;
  }
  .rsvp-section {
    padding: 6rem 1rem;
  }
  .rsvp-section h2 {
    font-size: 2.4rem;
  }
  .button {
    font-size: 1.4rem;
    padding: 1.4rem 2.2rem;
  }
  .container.rsvp {
    margin-top: 0;
  }

  .faq-question {
    font-size: 1rem;
  }

  .info-card {
    padding: 1.5rem 0.5rem;
    font-size: 1rem;
    margin: 1rem 0.2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.7rem;
    margin-bottom: 1.2rem;
  }
  .info-label {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  .info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    word-break: break-word;
  }
  .cancel-edit-button {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .party img {
    margin: 5rem auto 1rem;
  }
}
