/* Contact and quote form, scoped away from the shared navigation and footer. */
.tq-contact .contact-wrap {
  max-width: 1128px;
  margin: 0 auto;
  padding: 46px 24px 64px;
  color: var(--tq-ink, #243642);
}

.tq-contact .contact-wrap,
.tq-contact .contact-wrap * { box-sizing: border-box; }

.tq-contact .section-title {
  margin: 0 0 34px;
  color: var(--tq-navy, #13374e);
  font: 400 clamp(30px, 3.5vw, 42px)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
  text-align: left;
}

.tq-contact .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.tq-contact .contact-form-section,
.tq-contact .contact-details { min-width: 0; }

.tq-contact .contact-form-section h2,
.tq-contact .contact-details h3 {
  margin: 0 0 12px;
  color: var(--tq-navy, #13374e);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
}

.tq-contact .muted {
  margin: 0 0 22px;
  color: var(--tq-muted, #60727d);
  font-size: 14px;
  line-height: 1.7;
}

.tq-contact .tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 25px;
  border-bottom: 1px solid var(--tq-rule, #dce5ea);
}

.tq-contact .tab-btn {
  flex: 1;
  min-height: 46px;
  padding: 12px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--tq-muted, #60727d);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.tq-contact .tab-btn[aria-selected="true"] {
  border-bottom-color: var(--tq-blue, #1177b8);
  background: var(--tq-wash, #f5f8fa);
  color: var(--tq-navy, #13374e);
}

.tq-contact .tab-btn:hover { color: var(--tq-navy, #13374e); }
.tq-contact .contact-wrap :focus-visible { outline: 3px solid #a06412; outline-offset: 3px; }
.tq-contact .panel,
.tq-contact .service-panel { display: none; }
.tq-contact .panel.active,
.tq-contact .service-panel.active { display: block; }
.tq-contact .contact-wrap [hidden] { display: none; }

.tq-contact .form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  min-width: 0;
}

.tq-contact .form-row label {
  color: var(--tq-ink, #243642);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.tq-contact .input,
.tq-contact .select,
.tq-contact .textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b6c8d3;
  border-radius: 5px;
  background: #fff;
  color: var(--tq-ink, #243642);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.tq-contact .input:focus,
.tq-contact .select:focus,
.tq-contact .textarea:focus { border-color: var(--tq-blue, #1177b8); }
.tq-contact .input::placeholder,
.tq-contact .textarea::placeholder { color: #566b78; opacity: 1; }
.tq-contact .textarea { min-height: 132px; resize: vertical; }
.tq-contact .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.tq-contact .service-hint { margin: 6px 0 12px; }
.tq-contact #quoteNotesOther { margin-bottom: 18px; }
.tq-contact .btn2 { min-width: 120px; min-height: 46px; }

.tq-contact .hp,
.tq-contact .contact-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tq-contact .alert-ok,
.tq-contact .alert-err {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid #a8caba;
  border-radius: 5px;
  background: #f2faf6;
  color: #236046;
  font-size: 14px;
  line-height: 1.6;
}

.tq-contact .alert-err { border-color: #dfb2b2; background: #fff5f5; color: #832929; }

.tq-contact .contact-details {
  padding-left: 28px;
  border-left: 1px solid var(--tq-rule, #dce5ea);
}

.tq-contact .info-grid { margin-top: 18px; }
.tq-contact .info-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--tq-rule, #dce5ea);
  font-size: 14px;
  line-height: 1.7;
}

.tq-contact .info-row .k { color: var(--tq-muted, #60727d); font-weight: 500; }
.tq-contact .info-row .v { color: var(--tq-ink, #243642); overflow-wrap: anywhere; }
.tq-contact .info-row a { color: var(--tq-blue, #1177b8); text-decoration: underline; text-underline-offset: 4px; }
.tq-contact .info-row a:hover { color: #095e97; }

@media (max-width: 850px) {
  .tq-contact .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .tq-contact .contact-details { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--tq-rule, #dce5ea); }
}

@media (max-width: 560px) {
  .tq-contact .contact-wrap { padding: 32px 20px 44px; }
  .tq-contact .section-title { margin-bottom: 28px; font-size: 32px; }
  .tq-contact .two-col { grid-template-columns: 1fr; }
  .tq-contact .tab-btn { padding: 12px 6px; font-size: 13px; }
  .tq-contact .info-row { grid-template-columns: 80px minmax(0, 1fr); }
}
