html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* This ensures the main content stretches fully */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Track Section */
.track-section {
  background: linear-gradient(to bottom right, #0a0f2c, #2ea39a);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  margin: 0;
}

/* Footer styling */
footer {
  margin-top: 0; /* remove spacing gap */
  background: #0a0f2c; /* matches gradient start color */
  color: #fff;
}

/* Track Section */
.track-section {
  background: linear-gradient(to bottom right, #0a0f2c, #2ea39a);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  margin: 0;
}

.track-container {
  max-width: 800px;
  margin: 0 auto;
}

.track-container h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.track-container p {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #cfd3dc;
}

/* Form Layout */
.track-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Input Styling */
.input-group {
  position: relative;
  flex: 1;
  max-width: 600px;
}

.input-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  height: 48px; /* exact height */
  box-sizing: border-box;
}

/* Track Button */
.track-form button {
  background: #2ea39a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 30px;
  height: 48px; /* same as input */
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-sizing: border-box;
}

.track-form button:hover {
  background: #249186;
  transform: scale(1.02);
}
.track-message {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}


/* Responsive (Mobile) */
@media (max-width: 768px) {
  .track-form {
    flex-direction: column;
  }

  .track-form button {
    width: 80%; /* smaller than full width */
    padding: 0.5rem 20px; /* reduce padding */
    height: 40px; /* slightly smaller height */
    font-size: 0.95rem; /* slightly smaller text */
  }
}
