/* Container styling */
.tracking-app-container {
  max-width: 420px;
  margin: 40px auto;
  padding: 22px 22px 16px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 8px #bbb;
  font-family: Arial, sans-serif;
}

/* Headings */
.tracking-app-container h2 {
  margin-bottom: 18px;
  font-weight: 600;
  color: #234;
}

/* Labels with required asterisk */
.tracking-app-container label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.tracking-app-container .required {
  color: #e74c3c;
  margin-left: 2px;
}

/* Input fields */
.tracking-app-container input[type="text"],
.tracking-app-container input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 16px;
  border: 1px solid #ccd;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.tracking-app-container input[type="text"]:focus,
.tracking-app-container input[type="date"]:focus {
  border-color: #234;
  outline: none;
}

/* Captcha row as two rows */
.captcha-row {
  display: flex;
  flex-direction: column; /* stack child divs vertically */
  gap: 16px;              /* space between rows */
  margin-bottom: 16px;
}

.captcha-row > div {
  width: 100%; /* full width row */
}

/* Captcha image + refresh button wrapper */
.captcha-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px; /* space between image and button */
}

/* Captcha image */
#captcha-img {
  max-width: 120px;
  border: 1px solid #ddd;
  margin: 0; /* reset margin */
  display: block;
}

/* Refresh button */
#refresh-captcha {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #234;
  padding: 5px;
}


/* Captcha input field */
input[name="captcha_input"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccd;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}


/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
}

.btn-row button {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 4px;
  background-color: #234;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-row button[type="reset"] {
  background-color: #555;
}

.btn-row button:hover {
  background-color: #1a2a3a;
}

/* Result display */
#tracking-application-result {
  margin-top: 20px;
  font-size: 1em;
}

/* Responsive for smaller screens */
@media (max-width: 420px) {
  .captcha-row {
    flex-direction: column;
  }
  .btn-row {
    flex-direction: column;
  }
  .btn-row button {
    flex: auto;
  }
}
