/* contact.css — additions on top of rpi.css for the central contact page
   Version 1.01 - 2026-09-03 */

/* --- BANNER VARIANTS --- */

a.banner_link {
  display: block;
  text-decoration: none;
  color: white;
}

a.banner_link:hover {
  text-decoration: none;
}

.banner.contact-banner {
  height: auto;
  line-height: normal;
  padding: 12px 10px 10px;
  text-align: center;
}

.banner.contact-banner .banner_title {
  position: static;
  pointer-events: auto;
}

.banner.contact-banner .banner_title h1 {
  line-height: 1.2;
  font-size: 26px;
  top: 0;
}

.banner_subtitle {
  color: #fff;
  font-style: italic;
  font-size: 13px;
  font-family: Verdana, Helvetica, Arial, sans-serif;
  margin-top: 2px;
}

.banner_shields {
  margin-top: 8px;
  text-align: center;
}

.banner_shields a {
    display: inline-block;
    line-height: 0;    /* removes descender space around imgs */
}

.banner_shields img {
  height: 42px;
  vertical-align: middle;
  margin: 0 12px;
}

/* --- MAIN CONTENT (no sidebar) --- */

.body_area.no-sidebar .main_content {
  /* main_content already flex:1; nothing needed, class is just semantic */
}

/* --- CONTACT FORM --- */

.contact-form-wrapper {
  width: 100%;
  box-sizing: border-box;
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-heading {
  color: #3173b1;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* replace the existing rules in contact.css */

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed;
}

.form-table td {
  padding: 8px 0;
  vertical-align: middle;
  width: 100%;
}

.input-field {
  width: 100%;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 5px;
}

textarea.input-field {
  width: 100%;
  box-sizing: border-box;
  height: 150px;
  resize: vertical;
}

.form-table td {
  padding: 8px 0;
  vertical-align: middle;
}

.form-label {
  font-weight: bold;
  color: #333;
  width: 150px;
}

.input-field {
  width: 60%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 5px;
}

textarea.input-field {
  width: 60%;
  height: 150px;
  resize: vertical;
}

.warningBox {
  color: white;
  font-size: 14px;
  text-align: center;
  background-color: #cc0000;
  margin: 10px 0;
  padding: 10px;
  border: 1px dashed #fff;
}

.error-message {
  color: maroon;
  font-weight: bold;
  margin: 10px 0;
}

.advisoryBox {
  background: #f0f7ff;
  border: 1px solid #4b6db4;
  padding: 10px;
  margin: 10px 0;
}

/* --- KEYPAD --- */

.input {
  width: 295px !important;
  margin-left: 50px !important;
  padding: 15px !important;
  background-color: #b0ffb0 !important;
  border: 1px solid grey !important;
  text-align: center !important;
}

.db {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 18px !important;
  font-weight: bold !important;
  width: 60px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 3px !important;
  padding: 0 !important;
  border: 1px solid #999 !important;
  background-color: #e8ffe8 !important;
  cursor: pointer;
  border-radius: 3px;
  box-sizing: border-box;
  vertical-align: middle !important;
}

.db:hover {
  color: red !important;
  background-color: #c0ffc0 !important;
}

.challenge {
  font-size: x-large;
  margin-left: 50px;
  margin-bottom: 10px;
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #4b6db4 !important;
  background-color: #f0f7ff !important;
  border-radius: 4px;
}

input[name="keyin"] {
  width: 160px !important;
  height: 40px !important;
  margin: 10px 3px !important;
  padding: 8px !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 16px !important;
  font-weight: bold !important;
  border: 1px solid black !important;
  background-color: #fff !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.input input[type="submit"],
.input input[type="reset"] {
  width: 90px !important;
  height: 40px !important;
  margin: 3px !important;
  padding: 5px 10px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  border-radius: 5px !important;
  border: 1px solid black !important;
  background-color: #fff !important;
  cursor: pointer;
  display: inline-block !important;
  vertical-align: middle !important;
}

.input input[type="submit"]:hover,
.input input[type="reset"]:hover {
  color: red !important;
  background-color: #f0f0f0 !important;
}

input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 10px !important;
  border: 1px solid black !important;
  color: black !important;
  margin: 1px !important;
  padding: 8px 20px !important;
  cursor: pointer;
  font-weight: bold;
}

input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  color: red !important;
  background-color: #f0f0f0;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
  .banner.contact-banner .banner_title h1 {
    font-size: 18px;
  }

  .banner_shields img {
    height: 34px;
    margin: 0 6px;
  }

  .contact-form-wrapper {
    margin: 15px auto;
    padding: 12px;
  }

  .form-label {
    display: block;
    margin-bottom: 5px;
    width: 100%;
  }

  .input-field {
    width: 100%;
    box-sizing: border-box;
  }

  textarea.input-field {
    width: 100% !important;
    box-sizing: border-box;
    max-width: 100%;
  }

  .input {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .challenge {
    margin-left: 0;
  }

  .db {
    width: 55px;
    height: 35px;
    font-size: 16px;
  }

  .form-table td {
    padding: 8px 0;
    display: block;
    width: 100%;
  }
}
