/* Leiva Law: Legal Service Page template (lpt), full-width layout.
   Loaded only on pages that use the Legal Service Page template.
   Every rule is scoped to .lpt, which exists only in this template.
   Theme values: navy #001A54, text #4B4B4B, band #F2F3F6, border #E3E3E3, gold #BFA95D,
   Oswald / Work Sans (already loaded by the theme). */

/* bands */
.lpt .lpt-band-white { background: #fff; }
.lpt .lpt-band-grey { background: #F2F3F6; }
.lpt .lpt-band-navy { background: #001A54; }
.lpt .lpt-band .col-lg-10 > * { margin-top: 0; margin-bottom: 0; }
.lpt .lpt-band .col-lg-10 > * + * { margin-top: 28px; }
.lpt .lpt-band .col-lg-10 > h2.lpt-h2 { margin-bottom: 36px; }
.lpt .lpt-band .col-lg-10 > h2 + * { margin-top: 0; }
.lpt .lpt-band .col-lg-10 > h2 + .lpt-steps,
.lpt .lpt-band .col-lg-10 > .lpt-text + .lpt-steps,
.lpt .lpt-band .col-lg-10 > h2 + .lpt-grid,
.lpt .lpt-band .col-lg-10 > .lpt-text + .lpt-grid,
.lpt .lpt-band .col-lg-10 > .lpt-text + .lpt-toggles,
.lpt .lpt-band .col-lg-10 > .lpt-text + .lpt-creds { margin-top: 40px; }
.lpt .lpt-band .col-lg-10 > .lpt-creds + * { margin-top: 40px; }
.lpt .lpt-band-navy h2,
.lpt .lpt-band-navy .lpt-text,
.lpt .lpt-band-navy .lpt-text p,
.lpt .lpt-band-navy .lpt-text li,
.lpt .lpt-band-navy .lpt-text a { color: #fff; }

/* text */
.lpt .lpt-text > :last-child { margin-bottom: 0; }
.lpt .lpt-text ul, .lpt .lpt-text ol { margin: 0 0 16px 25px; padding-left: 0; }
.lpt .lpt-text li { margin-bottom: 6px; }
.lpt .lpt-text h3 { font-family: Oswald, serif; font-weight: 400; font-size: 30px; line-height: 1.3; color: #1F1F1F; margin: 40px 0 12px; }
.lpt .lpt-text h3:first-child { margin-top: 0; }
.lpt .lpt-center, .lpt .lpt-center p { text-align: center; }

/* hero: intro about 64%, form about 30% */
@media (min-width: 992px) {
  .lpt .lpt-hero .lpt-hero-text { flex: 0 0 64%; max-width: 64%; }
  .lpt .lpt-hero .lpt-hero-form { flex: 0 0 32%; max-width: 32%; }
}
.lpt .lpt-hero .federal-form-area { width: 100%; }
.lpt .lpt-hero .federal-form-area .wpcf7,
.lpt .lpt-hero .federal-form-area form,
.lpt .lpt-hero .federal-form-area p,
.lpt .lpt-hero .federal-form-area .wpcf7-form-control-wrap { display: block; width: 100%; max-width: 100%; }
.lpt .lpt-hero .federal-form-area input:not([type="submit"]),
.lpt .lpt-hero .federal-form-area textarea,
.lpt .lpt-hero .federal-form-area select { width: 100%; max-width: 100%; box-sizing: border-box; }
.lpt .lpt-hero .lpt-btns, .lpt .federal-bottom-cta .lpt-btns { margin-top: 28px; }
.lpt .lpt-award { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.6; font-style: italic; color: #4B4B4B; }
.lpt .lpt-award img { width: 22px; height: 22px; flex: none; }

/* buttons (theme .btn values) */
.lpt .lpt-btns { display: flex; flex-wrap: wrap; gap: 15px; }
.lpt .lpt-btns.lpt-center { justify-content: center; }
.lpt a.lpt-btn {
  display: inline-block; color: #fff; background: #001A54; border: 1px solid #001A54; border-radius: 50px;
  padding: 19px 34px; font-size: 16px; line-height: 24px; text-transform: uppercase; text-decoration: none;
  font-family: inherit; transition: .3s;
}
.lpt a.lpt-btn:hover { color: #001A54; background: transparent; }
.lpt a.lpt-btn.lpt-btn-outline { color: #001A54; background: transparent; }
.lpt a.lpt-btn.lpt-btn-outline:hover { color: #fff; background: #001A54; }
.lpt .lpt-band-navy a.lpt-btn { color: #001A54; background: #fff; border-color: #fff; }
.lpt .lpt-band-navy a.lpt-btn:hover { color: #fff; background: transparent; }
.lpt .lpt-band-navy a.lpt-btn.lpt-btn-outline { color: #fff; background: transparent; border-color: #fff; }
.lpt .lpt-band-navy a.lpt-btn.lpt-btn-outline:hover { color: #001A54; background: #fff; }

/* cards: 3 per row, last row centered */
.lpt .lpt-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.lpt .lpt-card { flex: 0 1 calc((100% - 48px) / 3); box-sizing: border-box; background: #fff; border: 1px solid #E3E3E3; border-radius: 16px; padding: 30px 26px; transition: .3s; }
.lpt .lpt-card:hover { box-shadow: 0 20px 40px rgba(0, 26, 84, .08); transform: translateY(-4px); }
.lpt .lpt-card-icon { width: 48px; height: 48px; border-radius: 50%; background: #F2F3F6; display: grid; place-items: center; margin-bottom: 16px; }
.lpt .lpt-band-grey .lpt-card-icon { background: #EEF1F8; }
.lpt h3.lpt-card-title { color: #001A54; font-family: Oswald, serif; font-weight: 500; font-size: 20px; line-height: 1.3; margin: 0; }
.lpt p.lpt-card-text { color: #4B4B4B; font-size: 16px; line-height: 1.7; margin: 10px 0 0; }
.lpt .lpt-results .lpt-card { background: #001A54; border-color: #001A54; }
.lpt .lpt-results .lpt-card-icon { background: rgba(255, 255, 255, .12); }
.lpt .lpt-results .lpt-card-icon path, .lpt .lpt-results .lpt-card-icon line, .lpt .lpt-results .lpt-card-icon circle { stroke: #fff; }
.lpt .lpt-results h3.lpt-card-title, .lpt .lpt-results p.lpt-card-text { color: #fff; }
.lpt p.lpt-small { font-size: 14px; line-height: 1.6; }

/* hero form: two fields per row in the narrower column (the theme's Home Form puts four in one row) */
@media (min-width: 992px) {
  .lpt .lpt-hero .federal-form-area .row { display: flex; flex-wrap: wrap; }
  .lpt .lpt-hero .federal-form-area .row > [class*="col"] { flex: 0 0 50%; max-width: 50%; width: 50%; }
  .lpt .lpt-hero .federal-form-area .row > [class*="col"]:has(textarea),
  .lpt .lpt-hero .federal-form-area .row > [class*="col"]:has([type="submit"]),
  .lpt .lpt-hero .federal-form-area .row > [class*="col"]:has(button),
  .lpt .lpt-hero .federal-form-area .row > [class*="col"]:has(.row) { flex-basis: 100%; max-width: 100%; width: 100%; }
}
.lpt .lpt-hero .federal-form-area input::placeholder { text-overflow: ellipsis; }

/* toggles: icon + title, click to show the description */
.lpt .lpt-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
.lpt .lpt-toggle { background: #fff; border: 1px solid #E3E3E3; border-radius: 16px; transition: box-shadow .3s; }
.lpt .lpt-toggle[open] { box-shadow: 0 20px 40px rgba(0, 26, 84, .08); border-color: #001A54; }
.lpt .lpt-toggle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.lpt .lpt-toggle summary::-webkit-details-marker { display: none; }
.lpt .lpt-toggle summary:focus-visible { outline: 2px solid #BFA95D; outline-offset: 2px; border-radius: 16px; }
.lpt .lpt-toggle .lpt-card-icon { margin: 0; flex: none; }
.lpt .lpt-toggle h3.lpt-card-title { flex: 1 1 auto; }
.lpt .lpt-toggle-chev { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #001A54; color: #fff; display: grid; place-items: center; font: 400 20px/1 system-ui, sans-serif; transition: transform .25s; }
.lpt .lpt-toggle[open] .lpt-toggle-chev { transform: rotate(45deg); }
.lpt .lpt-toggle p.lpt-card-text { margin: 0; padding: 0 22px 22px 86px; }
@media (prefers-reduced-motion: reduce) { .lpt .lpt-toggle-chev, .lpt .lpt-card { transition: none; } }

/* numbered steps: 3 or 4 per row, last row centered */
.lpt .lpt-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.lpt .lpt-step { box-sizing: border-box; background: #fff; border: 1px solid #E3E3E3; border-radius: 16px; padding: 30px 26px; }
.lpt .lpt-steps-3 .lpt-step { flex: 0 1 calc((100% - 48px) / 3); }
.lpt .lpt-steps-4 .lpt-step { flex: 0 1 calc((100% - 72px) / 4); }
.lpt p.lpt-step-num { font-family: Oswald, serif; font-size: 40px; line-height: 1; color: #001A54; text-align: center; margin: 0 0 14px; }
.lpt h3.lpt-step-title { color: #001A54; font-family: Oswald, serif; font-weight: 500; font-size: 20px; line-height: 1.3; text-align: center; margin: 0; }
.lpt p.lpt-step-text { color: #4B4B4B; font-size: 16px; line-height: 1.7; margin: 10px 0 0; }

/* credentials */
.lpt .lpt-link-btns { margin-top: 32px; }
.lpt .lpt-creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lpt .lpt-cred { background: #fff; border: 1px solid #E3E3E3; border-top: 3px solid #BFA95D; border-radius: 12px; padding: 22px 22px 20px; }
.lpt .lpt-cred-name { font-family: Oswald, serif; font-weight: 500; font-size: 19px; line-height: 1.3; color: #001A54; text-transform: uppercase; letter-spacing: .5px; }
.lpt .lpt-cred-desc { font-size: 15px; line-height: 1.6; color: #4B4B4B; margin-top: 8px; }

/* penalties table */
.lpt .lpt-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lpt .lpt-table table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; margin: 0;
  border: 1px solid #E3E3E3; border-radius: 16px; overflow: hidden; font-size: 15px; line-height: 1.6; color: #4B4B4B; background: #fff; }
.lpt .lpt-table td:nth-child(2) { white-space: nowrap; }
.lpt .lpt-table th { background: #001A54; color: #fff; font-family: Oswald, serif; font-weight: 500; font-size: 16px;
  text-align: left; padding: 16px 18px; border: 0; }
.lpt .lpt-table td { padding: 16px 18px; border: 0; border-top: 1px solid #E3E3E3; vertical-align: top; }
.lpt .lpt-table tbody tr:nth-child(even) td { background: #F7F8FA; }
.lpt .lpt-table td:first-child { color: #001A54; font-weight: 600; }

/* infographics */
.lpt .lpt-infographic { max-width: 720px; margin-left: auto; margin-right: auto; }
.lpt .lpt-band .col-lg-10 > .lpt-infographic { margin-top: 40px; }
.lpt .lpt-infographic a { display: block; }
.lpt .lpt-infographic img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 26, 84, .10); }

/* areas */
.lpt .lpt-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lpt .lpt-areas .federal-areas-tag { display: inline-block; margin: 0; color: #001A54; border: 1px solid #001A54; border-radius: 50px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; line-height: 1.6; background: #fff; }

/* tablets */
@media (max-width: 991px) {
  .lpt .lpt-card, .lpt .lpt-steps-3 .lpt-step, .lpt .lpt-steps-4 .lpt-step { flex-basis: calc((100% - 24px) / 2); }
  .lpt .lpt-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpt .federal-form-area { margin-top: 40px; }
}

/* phones (theme breakpoint) */
@media (max-width: 767px) {
  .lpt .lpt-card, .lpt .lpt-steps-3 .lpt-step, .lpt .lpt-steps-4 .lpt-step { flex-basis: 100%; }
  .lpt .lpt-creds { grid-template-columns: 1fr; }
  .lpt .lpt-toggles { grid-template-columns: 1fr; }
  .lpt .lpt-toggle p.lpt-card-text { padding-left: 22px; }
  .lpt .lpt-btns { flex-direction: column; }
  .lpt a.lpt-btn { display: block; text-align: center; }
  .lpt .lpt-text h3 { font-size: 24px; }
}
