html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8fafb;
  width: 100vw;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header Title Centered */
.header {
  text-align: center;
  font-size: 1.6rem;
  color: #fff;
  background: #a72828;
  font-family: 'Times New Roman', Times, serif;
  padding: 7px 0;               /* Decreased row/line height */
  border-bottom: 2px solid #fff;
  letter-spacing: .5px;
  margin-bottom: 0;
  width: 100vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 8px 8px;
  line-height: 1.1;             /* Further decrease spacing */
}

/* Main Container Centered and Responsive */
.main-container {
  background: #fff;
  max-width: 800px;
  margin: 5px auto;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(52,117,196,0.10);
  padding: 32px 16px;
  min-height: 70vh;
  position: relative;
  box-sizing: border-box;
}

/* Center the footer button */
.form-group.mb-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 1200px;
  margin: 24px auto 12px auto;
}

.btnBottom {
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  background: #eaf7dc;
  color: #227317;
  border: none;
  border-radius: 8px;
  padding: 8px 6px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(52,117,196,0.08);
  cursor: pointer;
  max-width: 98vw;
  width: 98vw;
  display: block;
  white-space: normal;
  word-break: break-word;
}

/* Responsive Styles: Order from largest to smallest for clarity */

/* Large Tablets & below */
@media (max-width: 1000px) {
  .main-container {
    max-width: 98vw;
    padding: 14px 3vw;
    border-radius: 8px;
  }
  .header {
    font-size: 1.5rem;
    padding: 10px 0;
    max-width: 98vw;
  }
}

/* Phones & small tablets */
@media (max-width: 500px) {
  .main-container {
    padding: 6px 0;
    border-radius: 4px;
    min-width: 0;
    max-width: 99vw;
  }
  .header {
    font-size: 1.3rem;
    padding: 7px 0;
    max-width: 99vw;
  }
  .form-group.mb-3 {
    max-width: 99vw;
    width: 99vw;
    margin: 16px auto 8px auto;
  }
  .btnBottom {
    font-size: 0.78rem;
    padding: 7px 2px;
    max-width: 99vw;
    width: 99vw;
  }
}

/* Very Small Devices */
@media (max-width: 370px) {
  .btnBottom {
    font-size: 0.7rem;
    padding: 5px 1px;
  }
}