/*!
 * Route72 — Mortgage Leads page (/lead-types/mortgage-leads/).
 * Layout and markup follow the approved mortgage-leads HTML template section by section.
 * Colours, fonts, radii and shadows come from the theme tokens in route72.css, so the page
 * matches the rest of the site. Everything is scoped under .mtg and uses the "mt-" prefix
 * so it never collides with the theme's own .btn / .card / .field / .faq components.
 * Loaded only on that page.
 */

.mtg{
  --m-navy:var(--navy);
  --m-navy-2:var(--navy-soft);
  --m-navy-line:var(--navy-line);
  --m-ink:var(--ink);
  --m-body:#3E4854;
  --m-muted:var(--slate);
  --m-cream:var(--paper);
  --m-cream-2:#FAF8F3;
  --m-line:var(--line);
  --m-input:#CFC8BA;
  --m-gold:var(--gold);
  --m-gold-soft:var(--gold-soft);
  --m-gold-text:var(--gold-deep);
  color:var(--ink);font-family:var(--body);line-height:1.6;
}
.mtg *,.mtg *::before,.mtg *::after{box-sizing:border-box}
.mtg h1,.mtg h2,.mtg h3,.mtg h4{font-family:var(--display);color:var(--m-navy);line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
.mtg p{margin:0}
.mtg a{color:var(--m-gold-text);text-decoration:underline;text-underline-offset:3px}
.mtg a:hover{color:var(--m-navy)}
.mtg [hidden]{display:none!important}
.mtg ul,.mtg ol{margin:0;padding:0;list-style:none}

/* ---------- shared pieces ---------- */
.mt-eyebrow{font-family:var(--narrow);font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--m-gold-text)}
.mtg h2.mt-h2,.mt-h2{font-size:clamp(28px,4vw,38px);font-weight:800}
.mt-h2--md{font-size:clamp(28px,3.6vw,36px)!important}
.mt-lead{font-size:18px;color:var(--m-body)}
.mt-section{padding:88px 0}
.mt-cream{background:var(--m-cream)}
.mt-stack{display:flex;flex-direction:column}
.mt-row{display:flex;flex-wrap:wrap}
.mt-fine{font-size:14px;color:var(--m-muted)}

.mtg .mt-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px;border-radius:12px;
  font-family:var(--display);font-weight:800;font-size:16px;text-decoration:none;border:2px solid transparent;cursor:pointer;
  transition:transform .16s var(--ease),box-shadow .2s var(--ease),background .18s,color .18s,border-color .18s}
.mtg .mt-btn:hover{transform:translateY(-2px)}
.mtg .mt-btn--lg{min-height:52px}
.mtg .mt-btn--navy{background:var(--m-navy);color:#fff;box-shadow:var(--sh-2)}
.mtg .mt-btn--navy:hover{background:#17344F;color:#fff}
.mtg .mt-btn--gold{background:linear-gradient(180deg,var(--gold-bright),var(--gold));color:var(--m-navy);box-shadow:var(--sh-gold)}
.mtg .mt-btn--gold:hover{color:var(--m-navy);box-shadow:0 20px 40px -18px rgba(201,151,26,.85)}
.mtg .mt-btn--ghost{border-color:rgba(255,255,255,.45);color:#fff;background:transparent}
.mtg .mt-btn--ghost:hover{background:#fff;color:var(--m-navy);border-color:#fff}

.mt-card{border:1px solid var(--m-line);border-radius:18px;background:#fff;box-shadow:var(--sh-1)}

.mt-tbl{width:100%;border-collapse:collapse;font-size:15px}
.mt-tbl th,.mt-tbl td{padding:12px 14px;border-bottom:1px solid var(--m-line);text-align:left;vertical-align:top}
.mt-tbl thead th{background:var(--m-cream);color:var(--m-navy);font-weight:600}
.mt-tbl tbody th{color:var(--m-navy);font-weight:600}
.mt-tbl--num td,.mt-tbl--num thead th{text-align:right}
.mt-tbl--num td:first-child,.mt-tbl--num thead th:first-child{text-align:left}
.mt-scroll{overflow-x:auto}

.mt-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--m-body);margin:0}
.mt-inp,.mtg .r72-form input:not([type=checkbox]):not([type=radio]),.mtg .r72-form select,.mtg .r72-form textarea{
  font:inherit;font-weight:400;font-size:16px;color:var(--m-ink);border:1px solid var(--m-input);border-radius:10px;
  padding:13px 14px;background-color:#fff;min-height:48px;width:100%}
.mt-inp:focus,.mtg .r72-form input:focus,.mtg .r72-form select:focus,.mtg .r72-form textarea:focus{outline:2px solid var(--m-gold);outline-offset:1px;border-color:var(--m-navy);box-shadow:none}
select.mt-inp{appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310263B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px;padding-right:38px}
.mt-chk{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--m-ink);min-height:44px;cursor:pointer;margin:0}
.mt-chk input{width:18px;height:18px;accent-color:var(--m-navy);flex:none;margin:0}
.mt-chk--tight{min-height:0}
.mt-chk--strong{font-weight:600}
.mtg fieldset{border:0;margin:0;padding:0;min-width:0}
.mtg legend{font-family:var(--display);font-weight:700;color:var(--m-navy);margin-bottom:12px;font-size:16px;padding:0}
.mt-legend--sm{font-weight:600!important;color:var(--m-body)!important;font-size:14px!important;margin-bottom:6px!important;font-family:var(--body)!important}

/* ---------- breadcrumb bar ---------- */
.mt-crumbs{background:var(--m-cream);border-bottom:1px solid var(--m-line)}
.mt-crumbs .wrap{padding-top:14px;padding-bottom:14px}
.mt-crumbs .crumbs{margin:0;font-size:14px}

/* ---------- hero ---------- */
.mt-hero{background:linear-gradient(165deg,var(--m-navy),var(--navy-700));color:#fff}
.mt-hero .wrap{padding-top:72px;padding-bottom:72px;gap:48px;align-items:center}
.mt-hero__copy{flex:999 1 560px;min-width:0;gap:22px}
.mtg .mt-hero h1{color:#fff;font-size:clamp(34px,5vw,52px);line-height:1.08;font-weight:800;letter-spacing:-.01em;max-width:none}
.mt-hero__eyebrow{color:var(--m-gold)}
.mt-hero__tag{font-size:22px;color:#fff;font-weight:600;margin-top:-6px}
.mt-hero__lead{font-size:18px;color:#D9E1EA;max-width:640px}
.mt-hero__lead strong{color:#fff}
.mt-hero__sub{font-size:16px;color:#D9E1EA}
.mt-hero__btns{gap:12px;margin-top:6px}
.mt-hero__call{font-size:15px;color:#B9C6D4}
.mtg .mt-hero__call a{color:#fff;font-weight:600}
.mtg .mt-stats{flex:1 1 300px;margin:0;padding:28px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;background:var(--m-navy-2);border:1px solid var(--m-navy-line);border-radius:18px}
.mt-stats strong{display:block;font-family:var(--display);font-size:30px;font-weight:800;color:#fff;line-height:1.2}
.mt-stats span{font-size:14px;color:#B9C6D4}

/* ---------- search tool ---------- */
.mt-search{padding:72px 0}
.mt-search__in{gap:24px}
.mt-search__head{gap:10px;max-width:820px}
.mtg .mt-search__head h2{font-size:clamp(26px,3.6vw,36px)}
.mt-form-search{border-radius:20px;overflow:hidden}
.mt-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:14px 14px 0;border-bottom:1px solid var(--m-line);background:var(--m-cream-2)}
.mt-tab{font-family:var(--body);font-size:15px;min-height:46px;padding:0 18px;border:1px solid transparent;border-radius:10px 10px 0 0;background:transparent;color:var(--m-muted);cursor:pointer;font-weight:500}
.mt-tab:hover{color:var(--m-navy)}
.mt-tab[aria-selected="true"]{background:#fff;border-color:var(--m-line);border-bottom-color:#fff;margin-bottom:-1px;color:var(--m-navy);font-weight:700}
.mt-tab:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.mt-panel{padding:28px}
.mt-box{border:1px solid var(--m-line);border-radius:12px}
.mt-box .mt-tbl{min-width:760px}
.mt-box .mt-tbl tbody tr:last-child td{border-bottom:0}
.mt-grid-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));column-gap:12px}
.mt-grid-checks--wide{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.mt-inline{display:flex;flex-wrap:wrap;gap:8px 28px}
.mt-inline--zip{gap:4px 28px;margin-bottom:18px}
.mt-narrow{max-width:320px}.mt-wide{max-width:640px}.mt-sm{flex:0 1 220px}
.mt-radius{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
.mt-radius p{flex:1 1 240px;font-size:14px;color:var(--m-muted);padding-bottom:12px}
.mt-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:20px 28px;border-top:1px solid var(--m-line);background:var(--m-cream-2)}
.mt-count{flex:1 1 280px;font-weight:600;color:var(--m-navy)}
.mt-count strong{font-family:var(--display);font-size:1.5rem}
.mt-count.is-error{color:var(--red)}
.mt-toolbar .mt-btn{margin-left:auto;padding:0 32px;font-size:17px}
.mt-search__note{font-size:14px;color:var(--m-muted);max-width:900px}

/* ---------- products ---------- */
.mt-products{gap:36px}
.mt-products__head{gap:10px;max-width:780px}
.mt-products__row{gap:24px;align-items:stretch}
.mt-product{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:18px;padding:36px;border-radius:20px}
.mt-product__head{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.mt-product h3{font-size:26px;font-weight:800}
.mt-icon{display:inline-flex;width:48px;height:48px;border-radius:12px;background:var(--m-navy);color:var(--m-gold);align-items:center;justify-content:center;flex:none}
.mt-product__sub{font-family:var(--display);font-size:18px;font-weight:700;color:var(--m-navy);line-height:1.35}
.mt-product__txt{color:var(--m-body)}
.mt-quals-box{border:1px solid var(--m-line);border-radius:12px;overflow:hidden}
.mtg .mt-quals-box h4{margin:0;padding:12px 16px;background:var(--m-navy);color:#fff;font-size:15px;font-weight:700}
.mt-quals li{padding:10px 16px 10px 40px;border-top:1px solid var(--m-line);font-size:15px;position:relative}
.mt-quals li:first-child{border-top:0}
.mt-quals li:nth-child(odd){background:var(--m-cream-2)}
.mt-quals li::before{content:"";position:absolute;left:16px;top:15px;width:12px;height:7px;border-left:2px solid var(--m-gold-text);border-bottom:2px solid var(--m-gold-text);transform:rotate(-45deg)}
.mt-group{gap:6px}
.mtg .mt-group h4,.mtg .mt-chipwrap h4{font-size:16px}
.mt-list{list-style:disc!important;padding-left:20px!important;display:flex;flex-direction:column;gap:6px;color:var(--m-body);font-size:15.5px}
.mt-list li{list-style:disc}
.mt-list strong{color:var(--m-ink)}
.mt-chipwrap{gap:10px}
.mt-chips{display:flex;flex-wrap:wrap;gap:8px}
.mt-chips li{padding:8px 14px;border-radius:999px;background:var(--m-gold-soft);color:var(--m-navy);font-weight:600;font-size:14px}
.mt-chips li span{font-weight:400;color:var(--m-body)}
.mt-product__fine{font-size:14px;color:var(--m-muted)}
.mt-product__fine strong{color:var(--m-ink)}
.mt-product__foot{margin-top:auto;padding-top:18px;border-top:1px solid var(--m-line);display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.mt-product__foot p{font-size:15px;color:var(--m-muted);flex:1 1 200px}
.mt-product__foot strong{color:var(--m-navy)}
.mtg .mt-product__foot strong.mt-price{font-family:var(--display);font-size:24px;font-weight:900}

/* ---------- fields + sample record ---------- */
.mt-fields{gap:48px}
.mt-fields__copy{flex:999 1 480px;min-width:0;gap:22px}
.mt-fields__copy>p{font-size:17px;color:var(--m-body)}
.mt-fields__groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px}
.mt-fields__groups h3{font-size:17px}
.mt-fields__groups p{font-size:15px;color:var(--m-body)}
.mt-sample{flex:1 1 380px;min-width:0;margin:0;overflow:hidden}
.mt-sample figcaption{padding:16px 20px;background:var(--m-navy);color:#fff;font-weight:700;font-family:var(--display)}
.mt-sample .mt-tbl{font-size:14px}
.mt-sample .mt-tbl tr:last-child th,.mt-sample .mt-tbl tr:last-child td{border-bottom:0}

/* ---------- loan types + steps ---------- */
.mt-types{gap:32px}
.mt-types__head{gap:10px;max-width:780px}
.mt-grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.mt-tile{padding:26px;border:1px solid var(--m-line);border-radius:16px;display:flex;flex-direction:column;gap:8px;background:#fff}
.mt-tile h3{font-size:20px}
.mt-tile p{font-size:15px;color:var(--m-body)}
.mt-step{padding:26px;background:var(--m-cream);border-radius:16px;display:flex;flex-direction:column;gap:8px}
.mt-step b{font-family:var(--display);font-size:28px;color:var(--m-gold-text)}
.mt-step h3{font-size:20px}
.mt-step p{font-size:15px;color:var(--m-body)}

/* ---------- why (navy) ---------- */
.mt-why{background:linear-gradient(165deg,var(--m-navy),var(--navy-900));color:#D9E1EA}
.mt-why .wrap{gap:48px}
.mt-why__copy{flex:1 1 420px;min-width:0;gap:18px;font-size:17px}
.mtg .mt-why__copy h2{color:#fff}
.mt-why__table{flex:1 1 460px;min-width:0;color:var(--m-ink)}
.mt-why__table .mt-tbl{min-width:460px}
.mt-why__table caption{text-align:left;padding:18px 16px;font-family:var(--display);font-weight:700;color:var(--m-navy);font-size:18px}
.mt-why__table tbody tr:last-child th,.mt-why__table tbody tr:last-child td{border-bottom:0}

/* ---------- how + compliance ---------- */
.mt-how{gap:32px}
.mt-comply{gap:24px;padding:32px}
.mt-comply__head{flex:1 1 280px;min-width:0;gap:8px}
.mt-comply__head h3{font-size:22px}
.mt-comply__head p{font-size:15px;color:var(--m-body)}
.mt-comply__list{flex:2 1 460px;min-width:0;gap:8px;font-size:15px}

/* ---------- FAQ (details accordion) ---------- */
.mt-faq-head{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;margin-bottom:40px}
.mt-faq-head .mt-eyebrow{display:flex;align-items:center;gap:12px;color:var(--m-muted)}
.mt-faq-head .mt-eyebrow::before{content:"";width:22px;height:3px;border-radius:2px;background:var(--m-gold)}
.mtg .mt-faq-head h2{font-size:clamp(32px,5vw,48px)}
.mt-faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.mt-faq{border:1px solid var(--m-line);border-radius:12px;background:#fff;transition:border-color .2s,box-shadow .2s}
.mt-faq[open]{border-color:var(--m-gold);box-shadow:var(--sh-1)}
.mt-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;font-family:var(--display);font-weight:700;font-size:17px;color:var(--m-navy);min-height:56px}
.mt-faq summary::-webkit-details-marker{display:none}
.mt-faq summary::after{content:"+";flex:none;width:24px;height:24px;border-radius:50%;background:var(--m-gold-soft);color:var(--m-gold-text);display:grid;place-items:center;font-family:var(--body);font-weight:600;font-size:18px;line-height:1}
.mt-faq[open] summary::after{content:"\2212"}
.mt-faq summary:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px;border-radius:12px}
.mt-faq .mt-ans{padding:0 20px 20px;font-size:16px;color:var(--m-muted)}
.mt-faq .mt-ans strong{color:var(--m-ink)}
.mt-faq .mt-ans p+p{margin-top:10px}
.mt-faq .mt-ans .src,.mt-faq .mt-ans .faq-src{font-size:14px}
.mtg .mt-faq-cta{max-width:820px;margin:28px auto 0;text-align:center;color:var(--m-body)}
.mtg .mt-faq-cta a{font-weight:600}

/* ---------- request form ---------- */
.mt-request .wrap{gap:48px;align-items:flex-start}
.mt-request__copy{flex:1 1 340px;min-width:0;gap:18px}
.mtg .mt-request__copy h2{font-size:clamp(30px,4vw,40px);line-height:1.12}
.mt-request__copy>p{font-size:17px;color:var(--m-body)}
.mt-request__copy .mt-list{gap:6px}
.mtg .mt-request__copy p a{font-weight:700}
.mt-form{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:18px;padding:36px;background:#fff;border:1px solid var(--m-line);border-radius:22px;box-shadow:var(--sh-1)}
/* the theme form engine (r72_form) supplies the fields; lay them out like the template */
.mt-form .r72-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.mt-form .r72-form>*{grid-column:1/-1}
.mt-form .r72-form .frow{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.mt-form .r72-form .qc-head{font-size:26px;font-weight:800;color:var(--m-navy)}
.mt-form .r72-form .field{margin:0;display:flex;flex-direction:column;gap:6px}
.mt-form .r72-form .field label{font-size:14px;font-weight:600;color:var(--m-body);margin:0}
.mt-form .r72-form textarea{min-height:130px}
.mt-form .r72-form select{appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310263B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px;padding-right:38px}
.mt-form .r72-form .consent{font-size:14px;line-height:1.5;color:var(--m-body);margin:0;gap:12px}
.mt-form .r72-form .consent input{width:18px;height:18px;accent-color:var(--m-navy)}
.mt-form .r72-form .btn{min-height:56px;font-size:17px;border-radius:12px}
.mt-form .r72-form .fine{font-size:13px;color:var(--m-muted);margin-top:0}
.mt-form .r72-form .fine a{color:var(--m-gold-text)}

/* ---------- related ---------- */
.mt-related{padding:56px 0 72px;border-top:1px solid var(--m-line)}
.mt-related .wrap{gap:22px}
.mtg .mt-related h2{font-size:24px;font-weight:800}
.mt-related__row{gap:14px}
.mtg .mt-related__row a{flex:1 1 240px;padding:20px;border:1px solid var(--m-line);border-radius:14px;text-decoration:none;color:var(--m-ink);background:#fff;display:block;transition:border-color .2s,box-shadow .2s}
.mtg .mt-related__row a:hover{border-color:var(--m-navy);box-shadow:var(--sh-1)}
.mt-related__row strong{color:var(--m-navy)}
.mt-related__row span{font-size:14px;color:var(--m-muted)}
.mt-related__meta{font-size:14px;color:var(--m-muted)}

@media (max-width:640px){
  .mt-section{padding:64px 0}
  .mt-product,.mt-form{padding:24px}
  .mt-panel{padding:20px}
  .mt-toolbar{padding:16px 20px}
  .mt-toolbar .mt-btn{width:100%;margin-left:0}
  .mt-hero .wrap{padding-top:48px;padding-bottom:48px}
}

/* counts-and-pricing contact form iframe (replaces the quote form) */
.mt-form-slot{flex:999 1 520px;min-width:0}
.mt-form-slot iframe{display:block;width:100%;border:0}
