:root {
  --bg1: #6c56b7; /* gradient like the screenshot */
  --bg2: #4b3aa8;
  --panel: #b9b4de; /* pill input fill */
  --text: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  /* background: radial-gradient(
    120% 120% at 50% -10%,
    #8a80e8 0%,
    var(--bg1) 35%,
    var(--bg2) 100%
  ); */
  color: var(--text);
}

.bg {
  background-image: url("images/nbg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 58.125rem;
  width: 100vw;
}

.footer-animal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
/* Main mobile frame */
.screen-body {
  /* position: relative;
  min-height: 100svh;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: 18px 20px 34px;
  isolation: isolate; */
  padding: 18px 20px 34px;
}

/* scattered stars/dots for the vibe */
/* .screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
        circle at 8% 12%,
        rgba(255, 255, 255, 0.35) 2px,
        transparent 3px
      )
      0 0/120px 140px,
    radial-gradient(
        circle at 80% 28%,
        rgba(255, 255, 255, 0.35) 2px,
        transparent 3px
      )
      0 0/140px 120px,
    radial-gradient(
        circle at 22% 46%,
        rgba(255, 255, 255, 0.35) 2px,
        transparent 3px
      )
      0 0/160px 160px,
    radial-gradient(
        circle at 70% 60%,
        rgba(255, 255, 255, 0.35) 2px,
        transparent 3px
      )
      0 0/180px 160px;
  pointer-events: none;
  z-index: 0;
} */

/* decorative layers */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.clouds-top {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  opacity: 0.9;
}
.leaf {
  top: 58px;
  right: 10px;
  width: 80px;
}

/* header */
.brand {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
.brand img {
  width: 220px;
  height: auto;
}

/* title */
.title {
  margin: 18px 0 16px;
  text-align: center;
  line-height: 1.18;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

/* form */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

input[type="text"],
input[type="tel"] {
  height: 44px;
  border: none;
  outline: none;
  padding: 0 18px;
  border-radius: 24px;
  color: #2c2a47;
  background: var(--panel);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
input::placeholder {
  color: #6b6695;
}

.gender {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-weight: 600;
  justify-content: center;
}
.gender span {
  font-weight: 700;
  margin-right: 6px;
}
.gender label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.gender input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-block;
}
.gender input:checked {
  background: #fff;
}

/* upload */
.upload-block {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.upload-label {
  margin: 0 0 8px 0;
  font-weight: 700;
}
.upload-btn {
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
  width: 80%;
  cursor: pointer;
  height: 12.5rem;
  overflow: hidden;
}
.upload-btn img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  height: 12.5rem;
  object-fit: cover;
}
.preview {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* CTA */
.cta {
  margin-top: 10px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #e3dcff 0%, #c9bfff 100%);
  color: #3a2c86;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: var(--shadow);
  width: 50%;
  margin: 0 auto;
}
.cta:disabled {
  opacity: 0.6;
  filter: grayscale(0.2);
  box-shadow: none;
}

/* Terms */
.fineprint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.9;
}
.fineprint a {
  color: #e6e3ff;
  text-decoration: none;
}
.fineprint a:hover {
  text-decoration: underline;
}

/* bottom foreground placement (tuned to 375px wide screens) */
.giraffe-elephant {
  left: -30px;
  bottom: 30px;
  width: 160px;
} /* your figma size was big; positioned to peek in */
.monkey {
  left: 150px;
  bottom: 38px;
  width: 120px;
}
.mother-child {
  right: -10px;
  bottom: 42px;
  width: 190px;
}

/* ground shape layers */
.bushes-green {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 120%;
}
.clouds-bottom-yellow {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;
  width: 100%;
}

/* small phones */
@media (max-width: 360px) {
  .title {
    font-size: 28px;
  }
  .brand {
    margin-top: 28px;
  }
}

/* A11y helper */
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
