body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: #f2f2f2;
  color: #333;
}

h1 {
  font-family: "Pacifico", "Brush Script MT", "Georgia", serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 20px;
}

p {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.hero {
  position: relative;
  height: 90vh;
  background: url('images/image00009.jpeg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero p {
  position: absolute;
  bottom: 20px; /* Distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: white; /* Make it visible on the background */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Optional: better readability */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #71616330; /* let overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 20px;
}

.hero h1 {
  font-size: 6rem;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.instagram-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
    z-index: 10; /* Add this to place above the overlay */
}

.instagram-link:hover {
    opacity: 0.8;
}


/* .hero p {
  font-size: 2rem;
  margin-top: 15px;
  text-shadow: 0 8px 20px rgba(0,0,0,0.5);
} */

/* Form container */
.container {
  max-width: 650px;
  margin: 60px auto; /* trækker boksen 100px op over billedet */
  padding: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(113, 97, 99, 0.15);
  position: relative;
  z-index: 2; /* sørger for at den ligger ovenpå hero-billedet */
  border: 1px solid rgba(113, 97, 99, 0.08);
}


.container h2 {
  text-align: center;
  margin-bottom: 20px;
}

form label {
  display: block;
  font-family: "Outfit", sans-serif;
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 16px;
  color: #666666;
  letter-spacing: 0.3px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #c5c5c5;
  border-radius: 12px;
  font-size: 15px;
  margin-top: 8px;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  background: #ffffff;
  color: #555;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6b6b6b;
  background: white;
  box-shadow: 0 4px 15px rgba(212, 181, 160, 0.2);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: "Outfit", sans-serif;
}

.guest {
  margin-bottom: 25px;
  padding: 25px;
  border: 2px solid #f5f2ef;
  border-radius: 16px;
  background: linear-gradient(360deg, #f2f2f2 0%, #f2f2f2 100%);
  box-shadow: 0 4px 15px rgba(113, 97, 99, 0.08);
  transition: all 0.3s ease;
}

.guest:hover {
  border-color: #b2b2b2;
  box-shadow: 0 6px 20px rgba(113, 97, 99, 0.12);
  transform: translateY(-2px);
}

.RSVP-title {
  font-family: "Pacifico", "Brush Script MT", "Georgia", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-align: center;
  color: #3d3d3d;
  text-shadow: 0 2px 4px rgba(113, 97, 99, 0.1);
}

.RSVP-description {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #aeaeae;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.RSVP-small-description {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 35px;
  color: #aeaeae;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.small-description {
  font-size: 0.85rem;
  color: #8d8d8d;
  margin-top: 6px;
  margin-bottom: 0px;
  font-style: italic;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
}

button {
  background: linear-gradient(135deg, #b6b6b6 0%, #b6b6b6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(154, 154, 154, 0.3);
  letter-spacing: 0.5px;
}

button:hover {
  background: linear-gradient(135deg, #b5b5b5 0%, #6c6c6c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(195, 195, 195, 0.4);
}

#addGuest {
  background: linear-gradient(135deg, #e8e8e8 0%, #e8e8e8 100%);
  color: #6f6f6f;
  margin-right: 12px;
  border: 2px solid #cacaca;
}

#addGuest:hover {
  background: linear-gradient(135deg, #d6d6d6 0%, #dfdfdf 100%);
  border-color: #bbbbbb;
  color: #585858;
}

/* Decorative elements */
.container::before {
  /* content: '💐'; */
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  /* font-size: 2rem; */
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(113, 97, 99, 0.15);
}

/* Hide the original pseudo-element content */
.container::before {
  content: none;
}

/* Style the icon container to position it like the pseudo-element */
.container .mb-4 {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(100, 100, 100, 0.15);
}

/* Button container styling */
.button-container {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(86, 86, 86, 0.221);
}

/* Add some romantic spacing between form elements */
form {
  position: relative;
}

/* Style for select dropdowns to match the theme */
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='%23716163' 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 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Hover effect for form labels */
label:hover {
  color: #4a4a4a;
  cursor: pointer;
}

/* Add a subtle animation for the container */
.container {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Wedding Details Section */
.wedding-details {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  padding-top: 20px;
  padding-bottom: 30px;
  text-align: center;
}

.details-container {
  max-width: 1000px;
  margin: 0 auto;
}

.wedding-details h2 {
  font-family: "Pacifico", "Brush Script MT", "Georgia", serif;
  font-size: 2.5rem;
  color: #3d3d3d;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(113, 97, 99, 0.1);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.detail-item {
  background: linear-gradient(360deg, #f2f2f2 0%, #f2f2f2 100%);
  padding: 35px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(113, 97, 99, 0.1);
  border: 1px solid rgba(113, 97, 99, 0.08);
  transition: all 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(113, 97, 99, 0.15);
}

.detail-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.detail-item h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  color: #292929;
  margin-bottom: 15px;
  font-weight: 500px;
}

.detail-item p {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  color: #424141;
  margin-bottom: 8px;
  font-weight: 400;
}

.detail-subtext {
  font-size: 0.95rem !important;
  color: #424141 !important;
  font-style: italic;
  line-height: 1.4;
}

/* Good to Know Section */
.good-to-know {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding-top: 20px;
  padding-bottom: 80px;
  text-align: center;
}

.info-container {
  max-width: 1000px;
  margin: 0 auto;
}

.good-to-know h2 {
  font-family: "Pacifico", "Brush Script MT", "Georgia", serif;
  font-size: 2.5rem;
  color: #6d6d6d;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(113, 97, 99, 0.1);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.info-item {
  background: linear-gradient(360deg, #f2f2f2 0%, #f2f2f2 100%);
  padding: 35px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(113, 97, 99, 0.1);
  border: 1px solid rgba(113, 97, 99, 0.08);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(113, 97, 99, 0.12);
}

.info-item h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  color: #6e6e6e;
  margin-bottom: 15px;
  font-weight: 500;
}

.info-item p {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-detail {
  font-size: 0.9rem !important;
  color: #878787 !important;
  font-style: italic;
  font-weight: 300 !important;
  margin-top: 12px !important;
}

.amp {
  font-family: 'Playfair Display', serif;
}

.feather {
  width: 64px;
  height: 64px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #6c6c6c, transparent);
}

.schedule-section {
  height: 20px;
  font-size: 20px;
}

/* Replace your existing media queries with this: */
@media (max-width: 1000px) {
  .container {
    padding: 30px 20px;
    transform: scale(1);
    transform-origin: top center;
  }
  
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0px;
    transform: scale(1);
    transform-origin: top center;
  }
  
  .wedding-details,
  .good-to-know {
    padding: 30px 15px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  /* Scale down individual elements instead of stacking */
  .detail-item {
    padding: 25px 15px;
    transform: scale(0.9);
  }

  .info-item {
  background: linear-gradient(360deg, #f2f2f2 0%, #f2f2f2 100%);
  padding: 35px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(113, 97, 99, 0.1);
  border: 1px solid rgba(113, 97, 99, 0.08);
  transition: all 0.3s ease;
}
  
  .guest {
    padding: 20px;
    transform: scale(0.95);
  }

  .RSVP-description {
    font-size: 1rem;
  }

  .RSVP-small-description {
    font-size: 1rem;
  }

  .small-description {
    font-size: 1rem;
  }

}

@media (max-width: 600px) {
  .details-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* Reduce gap to make more space */
    margin: 0 5px; /* Reduce side margins */
    transform: scale(1); /* Slightly larger scale */
  }
  
  .detail-item {
    padding: 20px 10px; /* Reduce padding for more content space */
    margin: 0 0px; /* Minimal margin between boxes */
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

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

  @media (max-width: 400px) {
    .details-grid{
      gap: 8px; /* Reduce gap to make more space */
      margin: 0 0px; /* Reduce side margins */
      transform: scale(.85); /* Slightly larger scale */
    }

    .detail-item {
      min-width: 85px;
      max-width: 105px;
      padding: 1px; /* Reduce padding for more content space */
    }

  }
}