/* Gradient background for body */
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8c0ea, #a48ed2);
  font-family: sans-serif;
}

.hero-image {
  width: 90vw;
  max-width: 1200px;
  height: auto;
  max-height: calc(100vh - 22vh); /* 20vh logo + 2vh margin */
  object-fit: contain;
  display: block;
  margin: 2vh auto 0 auto; /* small top margin */
}

/* Responsive logo */
.logo {
  width: 100%;
  height: auto;
}

.body {
  color: blue;
}

/* Responsive hero container */
.hero_container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  text-align: center;
  color: rgb(40, 174, 89);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ensures items start at the top */
  align-items: center;
}

.hero-logo {
  display: block;
  width: 90vw;
  max-width: 1200px;
  height: 20vh;
  max-height: 30vh;
  object-fit: contain;
  margin: 2vh auto 0 auto;
  flex-shrink: 0;
}

/* SVG overlay */
.hero-svg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 80px;
  z-index: 2;
}

p,
a {
  text-align: center;
  color: #f1f1f1;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  width: 100%;
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 24px; /* Add left/right padding */
  position: fixed;
  bottom: 0;
  left: 0;
  background: transparent;
  z-index: 10;
  box-sizing: border-box;
}

.footer a {
  text-decoration: none;
  color: #f1f1f1;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

@media (max-width: 600px) {
  .footer,
  .footer a,
  .footer p {
    font-size: 9px;
  }
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 32px 16px;
}

.contact-container h2 {
  margin-bottom: 24px;
  color: #f6f3ff;
  font-size: 2rem;
  letter-spacing: 2px;
}

.contact-container .hero-logo {
  width: 10vw;
  max-width: 300px; /* 1/3 of previous 120px */
  height: auto;
  display: block;
  margin-top: 5px auto;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 24px rgba(164, 142, 210, 0.15);
}

#contactForm input,
#contactForm textarea {
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(164, 142, 210, 0.07);
  resize: none;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: 2px solid #a48ed2;
}

#contactForm button {
  background: linear-gradient(to right, #f8c0ea, #a48ed2);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#contactForm button:hover {
  background: linear-gradient(to right, #a48ed2, #f8c0ea);
}

#formStatus {
  margin-top: 16px;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
  font-weight: bold;
  transition: opacity 0.3s;
  opacity: 0;
}

#formStatus.active {
  opacity: 1;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input,
.input-group textarea {
  flex: 1;
}

.checkmark {
  display: none;
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.checkmark svg {
  width: 100%;
  height: 100%;
  fill: #40ae59;
}

.input-group.valid .checkmark {
  display: block;
}

.logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Show desktop hero by default, hide mobile */
.desktop-hero {
  display: block;
}
.mobile-hero {
  display: none;
}

@media (max-width: 600px) {
  .desktop-hero {
    display: none;
  }
  .mobile-hero {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: calc(100vh - 22vh); /* adjust as needed */
    object-fit: contain;
    margin: 2vh auto 0 auto;
  }
  .hero-logo {
    width: 95vw;
    max-width: 95vw;
    height: 12vh;
    max-height: 18vh;
    margin: 2vh auto 0 auto;
  }
  .hero_container {
    padding: 0;
    height: 100vh;
  }
}
