/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  background-color: #555555;
}


/* ---- card sizing variables (easy to tweak) ---- */
:root{
  --card-width: 90%;
  --card-max-width: 460px;
  --card-height: 320px;        /* full height of the card */
  --card-half: calc(var(--card-height) / 2); /* half height */
  --card-radius: 20px;
}

/* ensure hero is positioned parent */
.hero {
  position: relative;
  overflow: visible; /* allow overflow so bottom half is shown */
}

/* wrapper positioned relative to hero bottom */
.track-wrapper {
  position: absolute;
  left: 50%;
  top: 120px;  /* <— BRINGS IT UP */
  transform: translateX(-50%);
  width: var(--card-width);
  max-width: var(--card-max-width);
  height: var(--card-height);
  z-index: 60;
  pointer-events: auto;
}


/* generic styles shared by both halves */
.track-card {
  width: 100%;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,0.15);
  color: #111;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
  pointer-events: auto; /* allow clicking inputs and button */
}

/* top half */
.track-card.top-half {
  height: var(--card-half);
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 28px;
  padding-bottom: 20px;

}

/* bottom half */
.track-card.bottom-half {
  position: absolute;
  top: var(--card-half); /* start right after the top half */
  height: var(--card-half);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px;
}

/* top half text */
.track-card.top-half h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}
.track-card.top-half p {
  font-size: 15px;
  color: #555;
  margin: 0;
  max-width: 90%;
}

/* bottom half input & button */
.track-input-wrap {
  width: 100%;
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.track-input-wrap input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  font-size: 15px;
  outline: none;
}
.track-btn {
  background: #ff9900;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,153,0,0.2);
}

/* make sure card is centered and looks good on small screens */
@media (max-width: 768px) {
  :root{
    --card-height: 300px;
    --card-half: calc(var(--card-height) / 2);
    --card-max-width: 360px;
  }
  .track-card.top-half h2 { font-size: 22px; }
  .track-card.top-half p { font-size: 14px; }
  .track-btn { font-size: 15px; padding: 12px; }
}

/* keep track-wrapper visible above next section image */
.full-image-section {
  position: relative;
  z-index: 1;
}

/* optionally add a small top padding to the next section so the overlap doesn't hide important content */
.full-image-section img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* If you want more control you can add a small negative margin to the next section,
   but in this approach it is not required since the track-wrapper is absolutely positioned over it.
*/



