/* TA Enrolment Forms - tidy layout without changing wording */

.reg_form {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #222;
  line-height: 1.45;
}

/* Banner block */
.reg_form .banner-wrap {
  text-align: center;
  margin-bottom: 15px;
}
.reg_form .banner-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.reg_form .banner-wrap .sponsor {
  margin-top: 10px;
}

/* Tables */
.reg_form table {
  width: 100%;
  border-collapse: collapse;
}
.reg_form td {
  padding: 8px 10px;
  vertical-align: top;
  /* Avoid overly aggressive wrapping */
  word-break: normal;
  overflow-wrap: normal;
}

/* Section headers (legacy bgcolor cells) */
.reg_form td[bgcolor] {
  background: #f1f3f5 !important;
  color: #222;
  font-weight: 700;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

/* Labels */
.reg_form .tdLabel {
  font-weight: 700;
  width: 260px;
  white-space: nowrap;
}

/* Inputs */
.reg_form input[type="text"],
.reg_form input[type="email"],
.reg_form input[type="number"],
.reg_form textarea,
.reg_form select {
  box-sizing: border-box;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd4da;
  border-radius: 4px;
  font-size: 14px;
}

/* Override inline width:98% etc to keep alignment consistent */
.reg_form input[type="text"] {
  width: 100% !important;
}

/* Small inline inputs (counts) */
.reg_form #sa_count,
.reg_form #no_of_dta,
.reg_form #no_of_onta {
  width: 60px !important;
}

.reg_form #member_no {
  width: 160px !important;
  display: inline-block;
  vertical-align: middle;
}

.reg_form #cheque_no,
.reg_form #cheque_amount {
  width: 200px !important;
  max-width: 100%;
}

/* Make long reminder text read better */
.reg_form .note,
.reg_form .hint {
  color: #444;
}

/* Checkbox/radio lines */
.reg_form input[type="checkbox"],
.reg_form input[type="radio"] {
  margin-right: 6px;
  vertical-align: middle;
}

/* Responsive: allow labels to wrap on narrow screens */
@media (max-width: 768px) {
  .reg_form {
    padding: 14px;
  }
  .reg_form .tdLabel {
    width: auto;
    white-space: normal;
  }
  .reg_form td {
    padding: 6px 8px;
  }
}

