/* Layout follows the old public_html pages: one centered "info" panel. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 50px 10px;
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
}

.container { max-width: 780px; margin: 0 auto; }

.panel {
  border: 1px solid #bce8f1;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.panel-heading {
  margin: 0;
  padding: 10px 15px;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: #31708f;
  background: linear-gradient(#d9edf7, #c4e3f3);
  border-bottom: 1px solid #bce8f1;
  border-radius: 3px 3px 0 0;
}

.panel-body { padding: 40px 20px 20px; }

.panel-footer {
  padding: 10px 15px;
  font-size: 12px;
  background: #f5f5f5;
  border-top: 1px solid #bce8f1;
  border-radius: 0 0 3px 3px;
}

/* Search form: label, input and button on one line, captcha below. */
.search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.search label { font-weight: 600; }

input, textarea {
  padding: 6px 12px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #66afe9;
  box-shadow: 0 0 6px rgba(102, 175, 233, .6);
}

button {
  padding: 6px 14px;
  font: inherit;
  color: #fff;
  background: #5bc0de;
  border: 1px solid #46b8da;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #31b0d5; }

.captcha { flex-basis: 100%; display: flex; justify-content: center; margin: 12px 0 0; }

.alert { margin: 20px; padding: 12px 15px; border: 1px solid; border-radius: 4px; }
.alert-error { color: #a94442; background: #f2dede; border-color: #ebccd1; }
.alert-info { color: #31708f; background: #d9edf7; border-color: #bce8f1; }
.alert-success { color: #3c763d; background: #dff0d8; border-color: #d6e9c6; }

/* Results */
.result { margin: 30px 20px 0; }
.result h2 { margin: 0 0 10px; font-size: 20px; word-break: break-all; }
.result h3 { margin: 24px 0 6px; font-size: 16px; color: #31708f; }
.result h4 { margin: 0 0 4px; font-size: 14px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 8px; text-align: left; vertical-align: top; border-top: 1px solid #ddd; }
th { width: 35%; font-weight: 600; color: #555; }
td { word-break: break-word; }

.contact-link { margin: 24px 0; }

.notice { margin: 16px 0; font-size: 13px; color: #666; }
.notice p { margin: 0 0 4px; }

.raw { margin: 24px 0 0; }
.raw summary { cursor: pointer; color: #31708f; }
pre {
  max-height: 400px;
  overflow: auto;
  padding: 10px;
  font-size: 12px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
}

a { color: #337ab7; }

/* Contact form: labels left, fields right, like the old horizontal form. */
.intro { margin: 0 0 30px; font-size: 18px; text-align: center; }

.contact {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px 16px;
  align-items: center;
  max-width: 620px;
  margin: 30px auto;
}
.contact label { text-align: right; font-weight: 600; }
.contact textarea { resize: vertical; align-self: stretch; }
.contact .field-offset { grid-column: 2; }

.btn-danger { padding: 10px 18px; font-size: 18px; background: #d9534f; border-color: #d43f3a; }
.btn-danger:hover { background: #c9302c; }

.alert ul { margin: 0; padding-left: 20px; }

@media (max-width: 600px) {
  .contact { grid-template-columns: 1fr; }
  .contact label { text-align: left; }
  .contact .field-offset { grid-column: 1; }
}
