/* Basic reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Fullscreen background video */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Green overlay: left high opacity -> right low opacity */
/* .overlay {
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  width: 500;
  height:100%;
  z-index: -1;
  background: linear-gradient(
    to right,
    rgba(0, 100, 40, 0.95),
    rgba(0, 100, 40, 0.15)
  );
} */

.overlay {
  position: absolute;
  top: 0;
  left: 0;

  width: 750px;
  height: 100%;

  /* background: linear-gradient(
    to right,
    rgba(0, 100, 40, 0.95),
    rgba(0, 100, 40, 0.05)
  ); */
  /* #006428; */
  z-index: -1;
}

/* Left third form panel */
.panel {
  position: absolute;
  top: 80%;
  left: 300px;
  transform: translateY(-50%);
  width: 300px;
  color: white;
}

/* Text above form */
.message {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
}

/* Form layout */
.form {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}

/* Inputs: translucent green */
input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0, 0, 0, 0.25); /* #006428 translucent */
  color: white;
  outline: none;
}

input::placeholder {
  color: rgba(255,255,255,0.75);
}

input:focus {
  border-color: rgba(255,255,255,0.7);
}

/* Button: solid green with white text */
button {
  width: 40%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: small;
  background: #FFFFFF;
  color: #006428;
}

button:hover {
  filter: brightness(0.75);
}

.fineprint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

/* Social buttons bottom center */
.social {
  position: absolute;
  left: 49.4%;
  bottom: 50px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  /* background: rgba(0, 0, 0, 0.25); */
  text-decoration: none;
}

.social-btn:hover {
  filter: brightness(1.05);
}

/* Icon sizing */
.social-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Accessibility / user preference */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .page { background: #001a0b; }
}

/* Small screens: keep it readable */
@media (max-width: 520px) {
  .panel {
    left: 12px;
    right: 12px;
    width: auto;
  }
}
.success-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  /* background: rgba(0, 100, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25); */
  color: white;
  font-weight: 800;
}

/* ---------- Mobile: hero (video + icons) on top, signup below (scroll) ---------- */
@media (max-width: 600px) {
  /* Let the page scroll and use green behind the signup section */
  body {
    background: #006428;
  }

  .page {
    overflow: visible;
    min-height: 100vh;

    /* Two sections: hero then signup */
    display: grid;
    grid-template-rows: 100vh auto;
  }

  /* HERO: video fills the first screen */
  .bg-video {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    grid-row: 1;
  }

  /* Overlay off on mobile (or keep if you want, but you asked for green behind form) */
  .overlay {
    display: none;
  }

  /* Social icons overlayed on the video, at the bottom */
  .social {
    position: absolute;
    left: 47.7%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 2;

    width: 100%;
    justify-content: center;
  }

  /* SIGNUP: sits below hero and is centered */
  .panel {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    grid-row: 2;

    width: min(92vw, 420px);
    margin: 28px auto 48px;
    padding: 18px 16px;

    background: #006428;
    color: white;
    text-align: center;
  }

  /* Keep labels aligned nicely even with centered layout */
  label span {
    text-align: left;
  }

  /* Touch-friendly inputs */
  input {
    font-size: 16px; /* prevents iOS zoom */
    padding: 12px 12px;
    border-radius: 12px;
  }

  /* Notify button: 40% width and centered */
  button {
    width: 40%;
    margin: 0 auto;
    padding: 12px 12px;
    border-radius: 12px;
  }
}