/* Teclab forms – shared styles. Scoped to .tlf so they don't affect the rest of the site.
   Works with the site's Bootstrap 3 styles and on its own (popup pages). */
.tlf, .tlf-success { max-width: 46em; box-sizing: border-box; }
.tlf *, .tlf *::before, .tlf *::after { box-sizing: border-box; }
.tlf-fields { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tlf-field { flex: 1 1 100%; margin: 0 0 18px; min-width: 0; }
.tlf-field[hidden] { display: none; }
@media (min-width: 600px) { .tlf-field.tlf-half { flex: 1 1 calc(50% - 8px); max-width: calc(50% - 8px); } }

.tlf-intro { flex: 1 1 100%; margin: 0 0 1.4em; }
.tlf-heading { flex: 1 1 100%; font-size: 19px; font-weight: 400; margin: 10px 0 4px; padding-top: 14px; border-top: 1px solid #ddd; color: #333; }
.tlf-heading + .tlf-help { flex: 1 1 100%; margin: 0 0 14px; }

.tlf label, .tlf legend { font-weight: normal; color: #333; }
.tlf-field > label, .tlf legend { display: block; margin: 0 0 6px; font-size: inherit; line-height: 1.35; border: 0; padding: 0; width: 100%; float: none; }
.tlf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tlf-req { color: #c8102e; margin-left: 2px; }
.tlf-help { color: #666; font-size: 13px; margin: -2px 0 6px; }

.tlf .form-control { display: block; width: 100%; padding: 6px 10px; font: inherit; color: #333; background: #fff;
  border: 1px solid #bbb; border-radius: 3px; min-height: 36px; }
.tlf textarea.form-control { resize: vertical; min-height: 0; }
.tlf .form-control:focus { border-color: #0062db; outline: none; box-shadow: 0 0 0 2px rgba(0, 98, 219, .2); }

.tlf-choices label { display: block; margin: 0 0 6px; cursor: pointer; line-height: 1.35; }
.tlf-choices input { margin: 0 .5em 0 0; vertical-align: -1px; }
.tlf-inline .tlf-choices label { display: inline-block; margin-right: 1.4em; }
@media (min-width: 600px) { .tlf-cols-2 .tlf-choices { columns: 2; column-gap: 24px; } .tlf-cols-2 .tlf-choices label { break-inside: avoid; } }

.tlf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tlf-grid, .tlf-table { border-collapse: collapse; width: 100%; }
.tlf-grid th, .tlf-grid td, .tlf-table th, .tlf-table td { padding: 6px 8px; border-bottom: 1px solid #e5e5e5; text-align: center; font-weight: normal; }
.tlf-grid tbody th, .tlf-table tbody th { text-align: left; white-space: nowrap; }
.tlf-grid thead th, .tlf-table thead th { font-size: 13px; color: #555; vertical-align: bottom; }
.tlf-grid tbody tr:nth-child(odd), .tlf-table tbody tr:nth-child(odd) { background: #f7f7f7; }
.tlf-table td { min-width: 140px; padding: 4px; }
.tlf-table .form-control { min-height: 32px; padding: 4px 8px; }

.tlf-error { display: none; color: #c8102e; font-size: 13px; margin: 5px 0 0; }
.tlf-field.has-error .tlf-error { display: block; }
.tlf-field.has-error .form-control { border-color: #c8102e; }
.tlf-field.has-error legend, .tlf-field.has-error > label { color: #8a0b20; }

.tlf-alert { display: none; padding: 12px 15px; margin: 0 0 1.5em; border: 1px solid #c8102e; color: #8a0b20; background: #fdf3f4; }
.tlf-alert.is-shown { display: block; }
.tlf-success { padding: 18px 20px; margin: 0 0 1.5em; border-left: 4px solid #1e4ea0; background: #f2f6fc; font-size: 17px; }

.tlf-actions { text-align: center; margin: 8px 0 0; }
.tlf-submit { background: #1e4ea0; color: #fff; border: 0; border-radius: 2px; padding: 11px 48px; font: inherit; font-size: 16px; letter-spacing: .03em; cursor: pointer; }
.tlf-submit:hover, .tlf-submit:focus { background: #163c7c; }
.tlf-submit[disabled] { opacity: .65; cursor: wait; }
.tlf :focus-visible { outline: 2px solid #0062db; outline-offset: 2px; }
.tlf-privacy { font-size: 12px; color: #555; margin: 4px 0 16px; }
.tlf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
