#content, #contactblock {
  text-align: center;
}

hr {
  width: 80%;
  border: 1px #357193 solid;
  color: #357193;
}

#contactForm table {
  table-layout: fixed;
  margin: 0 auto;
  width: 100%;
}

#contactForm td {
  width: 33%;
  margin: 0;
  border: none;
  padding: 1px;
  white-space: nowrap;
}

#contactForm td.hasWrapper {
  padding: 0px;
}

#contactForm span.inputWrapper {
  display: inline-block;
  padding: 2px;
  border: 1px solid transparent;
}

#contactForm input:not ([type=submit] ),#contactForm textarea {
  border: 1px solid #ccc;
  padding: 2px;
}

#contactForm textarea {
  max-width: 100%;
}

td.formError {
  color: #C35353;
  font-style: italic;
  font-weight: bold;
  text-align: left;
}

.inputErrorField {
  background-color: #FFE1E1 !important;
  border: 1px solid #E99 !important;
}

table.outputdata {
  border: 2px #999999 solid;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
  font-size: 18px;
}

table.outputdata td {
  padding: 2px 6px 2px 6px;
  border: 2px;
  vertical-align: top;
}

table.outputdata td.odd {
  background-color: #FFFFFF;
}

table.outputdata td.even {
  background-color: #EEEEEE;
  border-left: #EEEEEE 1px solid;
  border-right: #EEEEEE 1px solid;
}

table.outputdata td.key {
  color: #333;
}

p.errorMessage {
  color: #000066;
  font-size: 130%;
  font-weight: bold;
}

p.successMessage {
  text-align: center;
  font-weight: bold;
}

#addressBlock table {
  table-layout: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border: solid 1px gray;
}

#addressBlock td {
  padding-left: 1em;
  padding-right: 1em;
}

.errortip {
  display: block;
  color: #c33;
  font-size: 13px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.hidden {
  display: none;
}

/* jQuery adjustments */
.ui-widget, .ui-widget p { font-size: 14px !important; }
.ui-dialog .ui-dialog-titlebar { padding: .2em 1em; }

@media screen and (max-width: 806px) {
  #content, #contactblock { text-align: left; }
  #contactForm table { table-layout: auto; }

  #contactForm table, #contactForm tr, #contactForm td {
    display: block;
    width: 100% !important;
    white-space: normal !important;
    text-align: left;
  }

  #contactForm td[align="right"] {
    font-weight: bold;
    margin-top: 10px;
    padding-bottom: 0;
  }

  #contactForm input:not([type=submit]):not([type=hidden]):not([type=radio]),
  #contactForm textarea, #contactForm select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 4px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  #contactForm #phone1, #contactForm #phone2, #contactForm #phone3 {
    display: inline-block;
    width: 28%;
    min-width: 0;
    margin: 0 1px;
    padding: 10px 6px;
  }

  #contactForm textarea { min-height: 120px; }

  #contactForm span.inputWrapper {
    display: flex; gap: 4px; align-items: center;
  }
  #contactForm span.inputWrapper select { width: auto; flex: 1; }
  #contactForm td.hasWrapper input[type="text"] { width: auto; flex: 0 0 60px; }

  #contactForm input[type=submit] {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #4e7258;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  #contactForm input[type=submit]:hover { background-color: #3a5642; }

  table.outputdata, table.outputdata tr, table.outputdata td {
    display: block; width: 100% !important;
  }
  table.outputdata td.key { font-weight: bold; padding-bottom: 0; }
  table.outputdata td.value { padding-top: 0; word-break: break-word; }
  p.errorMessage, p.successMessage { text-align: center; }
}
