@charset "UTF-8";

* {
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
}

h1 {
  text-align: center;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit],
input[type=button] {
  background-color: #4284f5;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-top: 2%;
}

input[type=submit]:hover,
input[type=button]:hover {
  background-color: #1c2eed;
}

.heading {
  margin-top: 2%;
  margin-bottom: 2%;
}

.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  width: 80%;
  margin: auto;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 600px) {
  .row input[type=submit],
  .row input[type=button] {
    width: 100%;
    margin-top: 0;
    float: none;
  }
}


/* === Mobile responsive enhancements (added 2025-09-02 13:52) === */
@media screen and (max-width: 600px) {
  /* General layout */
  .container {
    width: 95% !important;
    padding: 12px !important;
    margin: 0 auto !important;
  }

  body {
    margin: 0;
  }

  /* Form controls */
  input[type=text],
  input[type=email],
  input[type=tel],
  select,
  textarea,
  input[type=submit],
  input[type=button],
  button {
    width: 100% !important;
    font-size: 16px !important; /* prevent iOS zoom */
    float: none !important;
  }

  /* Buttons that may have been targeted incorrectly on desktop with 'input [type=...]' */
  input[type=submit],
  input[type=button] {
    margin-top: 12px !important;
  }

  /* Tables: prefer horizontal scrolling rather than squeezing columns */
  table,
  .tbl {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  thead, tbody, tr {
    width: 100%;
  }

  th, td {
    white-space: nowrap;
    font-size: 14px !important;
    padding: 8px 6px !important;
    text-align: left !important;
  }

  /* Headings and spacing */
  h1 {
    font-size: 150% !important;
    line-height: 1.2 !important;
  }

  .btns {
    margin-top: 15px !important;
    text-align: center !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}


/* === Mobile table fix: keep tables intact, centered with horizontal scroll === */
@media screen and (max-width: 600px) {
  .container {
    width: 95% !important;
    padding: 10px !important;
    margin: 0 auto !important;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  table, .tbl {
    display: table !important;
    width: auto !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 auto !important; /* center */
  }

  th, td {
    text-align: center !important;
    font-size: 14px !important;
    padding: 6px 4px !important;
    white-space: nowrap !important; /* prevent wrapping */
  }
}

table { margin: auto; }

/* === Mobile table/layout fix (2025-09-02 13:59): keep tables as tables, center them, enable horizontal scroll === */
@media screen and (max-width: 600px) {
  .container {
    width: 95% !important;
    padding: 10px !important;
    margin: 0 auto !important;
    overflow-x: auto !important; /* allow horizontal scroll for wide tables */
    -webkit-overflow-scrolling: touch !important;
  }

  table, .tbl {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 auto !important; /* center */
  }

  th, td {
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    padding: 6px 4px !important;
  }
}
