/* ============================================================
   TealBuys design layer — light edition
   Loads AFTER src/styles.css (the Investment Dominator sample
   stylesheet), which is left untouched: it carries the rules the
   system's own form markup depends on. Presentation only here.
   Nothing sets display on .step1 / .step1_custom / .step2 —
   their JavaScript owns those.
   ============================================================ */

:root {
  --teal:   #0D9488;
  --teal-2: #14B8A6;
  --teal-d: #0F766E;   /* text + buttons: 5.47:1 on white, 5.24:1 on paper */
  --teal-x: #0A5B54;   /* hover */
  --wash:   #EFF8F6;
  --paper:  #FBFAF7;
  --char:   #22312F;
  --muted:  #566A68;
  --line:   #E2E0D8;

  --disp: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper) none !important;
  font-family: var(--sans);
  color: var(--char);
  font-size: 18px;     /* larger than typical — many readers are older */
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.container { width: 92%; max-width: 1120px; padding: 20px 0; }

/* ---------- header ---------- */

.header { background: #fff; border-bottom: 1px solid var(--line); }
.top-banner { background: var(--teal); text-align: center; padding: 8px 0; }
.top-banner h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.menu-container { background: #fff; border-bottom: 0; }
.menu-container .logo a img { max-height: 54px; width: auto; }
.menu-container .navbar ul li a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--char);
  text-transform: none;
  font-weight: 500;
}
.menu-container .navbar ul li a:hover,
.menu-container .navbar ul li a.active { color: var(--teal); }
.menu-container .navbar .icon-bar a { color: var(--teal); }

/* ---------- hero ---------- */

.first-section {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--wash) 100%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 34px;
}
.tb-say { padding: 24px 0 8px; }

.tb-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin: 0 0 14px;
}
.tb-center { text-align: center; }

.tb-h1 {
  font-family: var(--disp);
  font-weight: normal;
  font-size: 34px;
  line-height: 1.16;
  color: var(--char);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.tb-hl {
  color: var(--teal-d);
  box-shadow: inset 0 -0.32em 0 rgba(20, 184, 166, 0.18);
}
.tb-sub { font-size: 18.5px; color: var(--muted); margin: 0 0 14px; max-width: 54ch; }
.tb-sub-2 { color: var(--char); }

.tb-art { margin-top: 18px; }
.tb-art svg { width: 100%; height: auto; display: block; }
.tb-plat {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  fill: var(--teal-d);
  text-anchor: middle;
}

/* ---------- the offer card (step one) ---------- */

.card-blue,
.card-selling-house,
.card-contact {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-top: 4px solid var(--teal) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 44px rgba(34, 49, 47, 0.10);
  padding: 30px 28px 26px !important;
  width: 100% !important;
  max-width: 470px !important;
  margin: 0 auto !important;
}

.card-blue .title,
.card-selling-house .title {
  font-family: var(--disp);
  font-size: 27px;
  line-height: 1.2;
  color: var(--char);
  margin: 0 0 6px;
  text-transform: none;
  text-align: center;
}
.card-blue .text,
.card-selling-house .text {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0 auto 20px;
  max-width: 40ch;
  text-transform: none;
  text-align: center;
}
.card-blue h6, .card-selling-house h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin: 0 0 14px;
}
.card-blue .bold, .card-selling-house .bold { font-weight: 700; }

.tb-fineprint {
  max-width: 470px;
  margin: 14px auto 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

/* the reference-number field is the letter's fingerprint — call it out */
#div_or_Optional_Number_2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  background: var(--wash);
  border: 1px dashed var(--teal-2);
  border-radius: 8px;
  padding: 14px 14px 12px;
  margin: 4px 0 16px;
}
#div_or_Optional_Number_2 input { flex: 1 1 auto; width: auto; margin: 0; }
#div_or_Optional_Number_2 .tt_item { flex: 0 0 auto; margin-left: 10px; color: var(--teal-d); }
#div_or_Optional_Number_2::after {
  content: "Have our letter? The reference number is in the bottom right corner. Don't have it? Leave this blank.";
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--teal-d);
}

/* ---------- system form internals ---------- */

.card-blue *, .card-selling-house *, .card-contact *,
.step2 *, div.step2 * { box-sizing: border-box; }

.form-control,
.inputElement_input,
.selectElement_select,
.textAreaElement_textArea,
.input-inline,
div.step2 select,
div.step2 textarea,
div.step2 input[type="text"],
div.step2 input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 12px;
  border: 1px solid #C9CFCD;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  color: var(--char);
  background: #fff;
  box-shadow: none;
}
.form-control:focus,
.inputElement_input:focus,
.selectElement_select:focus,
.textAreaElement_textArea:focus,
div.step2 select:focus,
div.step2 textarea:focus {
  outline: 3px solid rgba(13, 148, 136, 0.32);
  outline-offset: 1px;
  border-color: var(--teal);
}
.space-inputs { margin: 0 0 14px; }

.step2 label, .labelElement_label, div.step2 label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--char);
  margin-bottom: 5px;
}
.step2 h1, div.step2 h1 {
  font-family: var(--disp);
  font-weight: normal;
  font-size: 26px;
  color: var(--char);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 8px;
  margin: 30px 0 16px;
}
.step2, div.step2 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 22px 26px;
  color: var(--char);
}
.step2 * { color: inherit; }
.step2 .text-light { color: var(--char) !important; }

.pr_h_containers { margin: 12px 0; }
.pr_h_title.toggleBoxHeader { background: var(--wash); border: 1px dashed #B9DED8; border-radius: 6px; padding: 11px 12px; }
.pr_h_aLink { color: var(--teal-d) !important; font-size: 15px; text-decoration: none; }
.pr_h_aLink:hover { text-decoration: underline; }
.pr_h_inputsContainer { padding: 10px 0 2px; }

.input-group-text { background: var(--wash); border: 1px solid #C9CFCD; color: var(--char); padding: 0 10px; }
.containerCheckBoxGroup { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.containerCheckBoxInput { display: flex; align-items: center; gap: 6px; }
.labelCheckBox { font-size: 15px; margin: 0; }
.text-verify label { font-weight: 600; }
.tooltiptext { font-family: var(--sans); font-size: 13.5px; }

.errormessage {
  background: #FDECEA;
  border: 1px solid #E1897F;
  border-radius: 6px;
  color: #8E2B1E;
  padding: 11px 12px;
  margin: 10px 0;
  font-size: 15px;
}

/* buttons — theirs and mine */
.btn, .btn.btn-red, .btn-red,
input[type="submit"].btn-red,
.newClass.btn.btn-red {
  background: var(--teal-d) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-family: var(--sans) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  padding: 15px 24px !important;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none !important;
  transition: background 0.14s ease, transform 0.14s ease;
}
.btn:hover, .btn.btn-red:hover, .btn-red:hover {
  background: var(--teal-x) !important;
  transform: translateY(-1px);
}
.btn-selling-land, #fin-off-req { width: 100%; }
#divBtnStepOne { margin: 4px 0 0; }
#button_Next { width: 100% !important; text-transform: capitalize !important; }
.graybutton, input[type="submit"].graybutton {
  background: #E8EDEC !important;
  color: var(--char) !important;
  font-weight: 600 !important;
}

/* ---------- reassurance bar ---------- */

.tb-bar { background: var(--teal-d); }
.tb-bar-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.tb-bar-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: #EAFBF8;
  font-size: 16px;
  font-weight: 500;
}
.tb-bar-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 11px; height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- how it works ---------- */

.tb-h2 {
  font-family: var(--disp);
  font-weight: normal;
  font-size: 29px;
  line-height: 1.22;
  color: var(--teal-d);
  margin: 0 0 18px;
}

.tb-how { background: #fff; padding: 46px 0; }
.tb-steps { list-style: none; margin: 26px 0 0; padding: 0; }
.tb-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 14px;
}
.tb-stepnum {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-d);
  display: block;
  margin-bottom: 8px;
}
.tb-steps h3 { font-family: var(--disp); font-size: 21px; color: var(--char); margin: 0 0 8px; line-height: 1.25; }
.tb-steps p { margin: 0; font-size: 16.5px; color: var(--muted); }

/* ---------- about ---------- */

.tb-about { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.tb-about-in { max-width: 66ch; }
.tb-about p { font-size: 19px; margin: 0 0 16px; }

/* ---------- faq ---------- */

.tb-faq { background: #fff; padding: 48px 0; }
.tb-faq-in { max-width: 74ch; }
.tb-q { border-bottom: 1px solid var(--line); padding: 4px 0; }
.tb-q summary {
  font-family: var(--disp);
  font-size: 22px;
  color: var(--teal-d);
  padding: 16px 40px 16px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.tb-q summary::-webkit-details-marker { display: none; }
.tb-q summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 26px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}
.tb-q[open] summary::after { transform: rotate(-135deg); top: 30px; }
.tb-q summary:hover { color: var(--teal-x); }
.tb-a { padding: 0 0 18px; }
.tb-a p { margin: 0 0 14px; color: var(--char); font-size: 18.5px; }
.tb-a p:last-child { margin-bottom: 0; }
.tb-cta { margin-top: 32px; }

/* ---------- misc + inner pages ---------- */

.tb-words { padding: 36px 0; }
.tb-words .container { max-width: 70ch; }
.tb-words a, .tb-about a { color: var(--teal-d); }

.tb-pagehead {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--wash) 100%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}
.tb-pagehead .tb-sub { max-width: 62ch; margin-bottom: 0; }
.tb-sidenote { padding: 26px 0; }
.tb-sidenote h3 { font-family: var(--disp); font-size: 21px; color: var(--char); margin: 0 0 12px; }
.tb-sidenote h3.tb-mt { margin-top: 22px; }
.tb-sidetel { font-size: 17px; margin: 0 0 6px; }
.tb-assure { list-style: none; margin: 0 0 22px; padding: 0; }
.tb-assure li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 16.5px; color: var(--muted); }
.tb-assure li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 9px; height: 9px; border: 2px solid var(--teal); border-radius: 1px;
}

.second-section .content-banner-text { background: none; padding: 0; }
.bg-contact-us { background: none; }

/* ---------- footer ---------- */

.footer-distributed {
  background: var(--char) !important;
  color: #B7C6C3;
  padding: 44px 4%;
  font-family: var(--sans);
  font-size: 16px;
}
.footer-distributed h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin: 0 0 8px;
}
.footer-distributed .footer-company-name { color: #93A6A3 !important; font-weight: 400; margin: 10px 0 0; }
.footer-distributed img { max-height: 48px; width: auto; }
.footer-distributed a { color: #DCEDEA; text-decoration: none; }
.footer-distributed a:hover { color: var(--teal-2); }
.footer-company-about span {
  color: var(--teal-2) !important;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tb-fine { font-size: 13px; color: #8AA09D; margin-top: 14px; line-height: 1.5; }
/* footer layout: flex columns, then a full-width nav strip */
.footer-distributed .foot-cols {
  display: flex !important;
  flex-wrap: wrap;
  gap: 30px 48px;
  align-items: flex-start;
}
.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right {
  display: block !important;
  width: auto !important;
  flex: 1 1 220px;
  min-width: 200px;
  float: none !important;
}
.footer-distributed .footer-left { flex: 0 0 auto; }

.foot-nav {
  width: 100%;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.buying-site-footer-menu .menu { padding: 0 !important; }
.buying-site-footer-menu .menu ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 26px;
  justify-content: flex-start;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}
.buying-site-footer-menu .menu ul li { display: inline-block; margin: 0 !important; }
.buying-site-footer-menu .menu div.button { border: 0 !important; text-align: left; }
.buying-site-footer-menu .menu div.button a {
  color: #DCEDEA !important;
  padding: 4px 0 !important;
  height: auto !important;
  font-size: 12.5px !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.buying-site-footer-menu #submenu-more { display: none !important; }

/* ---------- larger screens ---------- */

@media (min-width: 760px) {
  body { font-size: 19.5px; }
  .tb-h1 { font-size: 46px; }
  .tb-h2 { font-size: 33px; }
  .first-section { padding: 30px 0 56px; }
  .tb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tb-steps li { margin-bottom: 0; }
  .tb-bar-list { grid-template-columns: repeat(4, 1fr); padding: 12px 0; }
  .tb-how, .tb-about, .tb-faq { padding: 62px 0; }
  .tb-pagehead { padding: 46px 0 40px; }
  .btn, .btn.btn-red { width: auto; }
  .btn-selling-land, #fin-off-req { width: 100%; }
  .tb-q summary { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- v5: portrait + parcel proof ---------- */

.tb-portrait-wide { margin: 34px auto 0; max-width: 880px; }
.tb-portrait-wide img {
  width: 100%; height: auto; display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(34, 49, 47, 0.12);
}
.tb-portrait-wide figcaption,
.tb-parcel figcaption {
  font-family: var(--disp);
  font-size: 17px;
  line-height: 1.45;
  color: var(--teal-d);
  padding-top: 12px;
}

.tb-proof { background: #fff; padding: 40px 0 8px; }
.tb-parcel { margin: 0 auto; max-width: 860px; }
.tb-parcel img {
  width: 100%; height: auto; display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (min-width: 760px) {
  .tb-proof { padding: 56px 0 12px; }
  .tb-portrait-wide figcaption,
  .tb-parcel figcaption { font-size: 20px; }
}

@media (max-width: 759px) {
  .buying-site-footer-menu .menu ul { flex-wrap: wrap !important; gap: 4px 20px; }
}

/* ---------- single, teal scrollbar ---------- */

/* base stylesheet sets overflow on BOTH html and body, producing two
   scroll tracks. Let html own the scroll; body stays visible. */
html { overflow-x: hidden !important; overflow-y: auto !important; }
body { overflow: visible !important; }

/* teal scrollbar — Firefox */
html { scrollbar-width: thin; scrollbar-color: var(--teal) #E4EFED; }

/* teal scrollbar — Chrome, Edge, Safari */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #E4EFED; }
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 8px;
  border: 3px solid #E4EFED;
}
::-webkit-scrollbar-thumb:hover { background: var(--teal-d); }


/* ---------- form text safety net (nothing may render white) ---------- */
/* The system form emits some labels/headers with no color, which inherited
   white and vanished on the house page. Force a readable floor everywhere. */
.card-blue, .card-selling-house, .card-contact,
.step2, div.step2,
.formpage, .formcard, .content-banner-text {
  color: var(--char);
}
.step2 *, div.step2 *,
.card-selling-house *, .card-contact * {
  color: var(--char);
}
/* keep links + the teal accents we set intentionally */
.step2 a, div.step2 a { color: var(--teal-d); }
/* toggle/question headers in the form → teal, so they read as headings */
.pr_h_title, .pr_h_title *,
.step2 .toggleBoxHeader, .step2 .toggleBoxHeader * {
  color: var(--teal-d) !important;
}
/* radio / checkbox option labels → charcoal, always visible */
.step2 label, div.step2 label,
.containerCheckBoxInput label, .labelCheckBox,
.text-verify label { color: var(--char) !important; }
/* the "This property is owned by" / "held in a company name" prompts */
.step2 .row > div, div.step2 .row > div { color: var(--char); }
/* buttons keep white text on teal */
.btn, .btn.btn-red, input[type="submit"].btn-red, #button_Next,
#fin-off-req, #sub-mor-prop { color: #fff !important; }
.graybutton, input[type="submit"].graybutton { color: var(--char) !important; }

/* ---------- legal pages + SMS consent (A2P 10DLC compliance) ---------- */
.tb-legal { max-width: 700px; margin: 0 auto; padding: 10px 0 60px; }
.tb-legal-date { font-size: 14px; color: var(--muted); margin-bottom: 34px; }
.tb-legal h2 {
  font-family: var(--disp);
  font-size: 24px;
  color: var(--teal-d);
  margin: 34px 0 10px;
  line-height: 1.3;
}
.tb-legal p { margin: 0 0 16px; }
.tb-legal-list { margin: 0 0 16px; padding-left: 22px; }
.tb-legal-list li { margin-bottom: 8px; }
.tb-legal-callout {
  background: var(--wash);
  border-left: 3px solid var(--teal);
  padding: 16px 18px;
  border-radius: 4px;
}
.tb-consent {
  max-width: 640px;
  margin: 22px auto 40px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.tb-consent a { color: var(--teal-d); text-decoration: underline; }
.tb-legalname { font-size: 13px; color: #8AA09D; margin-top: 10px; }
.tb-footlegal { margin-top: 12px; font-size: 13.5px; }
.tb-legal-top { margin-top: 20px; }
.tb-legal h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--char);
  margin: 26px 0 8px;
}
.tb-legal-rule { border: 0; border-top: 1px solid var(--line); margin: 54px 0 10px; }
.tb-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--char);
  font-size: 16px;
  text-align: left;
  margin-bottom: 8px;
}
.tb-consent-label input[type="checkbox"] {
  width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--teal-d);
}
.tb-consent-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: left; }
.tb-consent { text-align: left; }
