/* ============================================================
   Homepage "Our Services" cards — Immigration / Taxes / Admin
   Markup lives in index.html (.sc-grid); the animation DOM is
   built by js/service-cards.js inside each .sc-anim mount.
   ============================================================ */

/* .services-container is a flexbox with align-items:flex-start, which
   makes the section shrink-wrap to the grid's max-content width and
   overflow on small screens — force it to the container width instead */
.services-container > section.services {
  width: 100%;
  min-width: 0;
}

.sc-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
  align-items: stretch;
  text-align: left;
}

.sc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(12, 42, 68, .08), 0 2px 6px rgba(12, 42, 68, .05);
}

.sc-card--immigration {
  background: #FFFAE3;
  border: 1px solid rgba(197, 160, 40, .24);
}

.sc-card--taxes {
  background: #DFF0FF;
  border: 1px solid rgba(12, 42, 68, .10);
}

.sc-card--admin {
  background: #C5F2C3;
  border: 1px solid rgba(20, 80, 50, .14);
}

/* Header block */
.sc-head {
  padding: 34px 34px 0;
  position: relative;
  z-index: 3;
}

.sc-logo {
  position: absolute;
  top: 28px;
  right: 26px;
  object-fit: contain;
}

.sc-logo--flag {
  top: 30px;
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
  border: 1px solid rgba(0, 0, 0, .06);
}

.sc-logo--tax {
  width: 44px;
  height: auto;
}

.sc-logo--admin {
  width: 40px;
  height: 40px;
}

main .sc-card h3.sc-title {
  font: 600 28px/1.12 'Poppins', sans-serif;
  color: #0C2A44;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  max-width: 82%;
}

.sc-card p.sc-sub {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0 0 20px;
  max-width: 90%;
  padding: 0;
}

/* Pills */
.sc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-pill {
  font: 500 12px 'Inter', sans-serif;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  display: inline-block;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

a.sc-pill:hover {
  transform: translateY(-1px);
}

.sc-card--immigration .sc-pill {
  color: #6d5210;
  background: #ffffff;
  border: 1px solid rgba(197, 160, 40, .4);
  box-shadow: 0 2px 5px rgba(150, 110, 10, .16), 0 1px 2px rgba(150, 110, 10, .1);
}

.sc-card--taxes .sc-pill {
  color: #004C80;
  background: #ffffff;
  border: 1px solid rgba(12, 42, 68, .16);
  box-shadow: 0 2px 5px rgba(0, 40, 80, .16), 0 1px 2px rgba(0, 40, 80, .1);
}

/* Animation region */
.sc-anim {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.sc-anim--center {
  align-items: center;
}

.sc-anim > .sc-widget {
  display: block;
  width: 100%;
}

.sc-widget {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
}

.sc-widget--flights,
.sc-widget--tax {
  aspect-ratio: 20 / 14;
}

/* selector needs to outweigh `.sc-anim > .sc-widget { display:block }`
   or the checklist card loses its flex centering */
.sc-anim > .sc-widget--checklist {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 18px 0;
}

/* Admin card graphic is shorter than the others, so the centered flex
   region leaves noticeable slack above it — pull it up a touch (card
   height unchanged; the slack shifts below the graphic). */
.sc-card--admin .sc-anim > .sc-widget--checklist {
  margin-top: -22px;
}

.sc-widget--flights canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Button footer */
.sc-cta {
  padding: 0 24px 24px;
  position: relative;
  z-index: 3;
}

.sc-btn {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s ease;
}

.sc-btn .sc-arrow {
  font-size: 15px;
}

.sc-btn--gold {
  background: #F7E7A8;
  color: #6d5210;
}

.sc-btn--gold:hover {
  background: #f2dd8c;
}

.sc-btn--blue {
  background: #EAF2F8;
  color: #004C80;
}

.sc-btn--blue:hover {
  background: #dbe8f3;
}

.sc-btn--green {
  background: #e8f9e8;
  color: #1F8A5B;
}

.sc-btn--green:hover {
  background: #d4f5d4;
}

/* ============================================================
   Slide-up "Explore more" modal (DOM built by JS, one shared
   instance). The dim layer is fixed to the viewport; the modal
   itself is absolutely positioned in the document so that scrolling
   the page carries the whole modal upward (it is not viewport-pinned).
   --sc-accent tints the bottom corner glow per card.
   ============================================================ */
.sc-dim {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 42, 68, .45);
  opacity: 0;
  transition: opacity .38s ease;
}

.sc-dim.is-open {
  opacity: 1;
}

/* fixed track spanning the viewport; JS offsets its transform by the page
   scroll delta so the whole modal travels upward as the page scrolls down */
.sc-modal-track {
  position: fixed;
  inset: 0;
  z-index: 2001;
  pointer-events: none;
  will-change: transform;
}

.sc-modal {
  --sc-accent: rgba(12, 42, 68, .12);
  position: absolute;
  top: 5vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(1080px, 88vw);
  /* spans from top:5vh down to the viewport bottom so the sheet stays
     connected to the bottom edge rather than floating */
  min-height: 95vh;
  background: #ffffff;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 60px rgba(12, 42, 68, .28);
  overflow: hidden;
  transform: translateY(100vh);
  transition: transform .46s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
  pointer-events: auto;
  /* JS drives vertical drags into page scroll; take control of touch */
  touch-action: none;
}

.sc-modal.is-open {
  transform: translateY(0);
}

/* soft color glow along the bottom, two corner blooms + a base wash */
.sc-modal-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  pointer-events: none;
  background:
    radial-gradient(60% 90% at 14% 118%, var(--sc-accent), transparent 60%),
    radial-gradient(60% 90% at 86% 118%, var(--sc-accent), transparent 60%),
    linear-gradient(to top, var(--sc-accent), transparent 78%);
}

.sc-modal-body {
  position: relative;
  z-index: 1;
}

.sc-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 42, 68, .14);
  border-radius: 12px;
  background: #ffffff;
  color: #0C2A44;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.sc-modal-close:hover {
  background: #f2f6fa;
  border-color: rgba(12, 42, 68, .28);
}

.sc-modal-close svg {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .sc-dim,
  .sc-modal {
    transition: none;
  }
}

/* the scroll-driven modal reveal reads better without smooth-scroll fighting
   it; the track transform is applied per scroll frame in JS */

/* ============================================================
   Modal content — shared base (md-*) with per-modal color
   modifiers (.im-modal / .tx-modal)
   ============================================================ */
.md-modal {
  font-family: 'Inter', sans-serif;
}

.md-header {
  padding: 40px 56px 26px;
  border-bottom: 1px solid #ececec;
}

.md-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 13px 'Inter', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.md-eyebrow img {
  width: 48px;
  height: 36px;
  object-fit: contain;
}

.sc-modal .md-title {
  font: 700 46px/1.05 'Poppins', sans-serif;
  color: #0C2A44;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.md-sub {
  font: 400 18px/1.5 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0;
  max-width: 660px;
}

.md-content {
  padding: 34px 56px 40px;
}

.md-coltitle {
  font: 700 13px 'Inter', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

/* checkmark items */
.md-item {
  display: flex;
  gap: 14px;
}

.md-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.md-check svg {
  width: 13px;
  height: 13px;
}

.sc-modal .md-item-title {
  font: 600 16.5px 'Inter', sans-serif;
  color: #0C2A44;
  margin: 0 0 4px;
}

.md-item-desc {
  font: 400 14.5px/1.45 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0;
}

/* linked check-item (tax "What we handle" rows → pricing anchors) */
a.md-item--link {
  text-decoration: none;
  border-radius: 10px;
  margin: -8px -12px;
  padding: 8px 12px;
  transition: background .16s ease, transform .16s ease;
}

a.md-item--link:hover {
  background: rgba(0, 76, 128, .06);
}

a.md-item--link:hover .md-item-title {
  color: #004C80;
}

/* offset in-modal pricing targets from the fixed navbar */
#tp-digital-nomad,
#tp-freelancer,
#tp-beckham,
#tp-income-forecast,
#tp-wealth-forecast,
#tp-end-of-year {
  scroll-margin-top: 110px;
}

/* shared button row (header CTAs) */
.md-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.md-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 14px;
  font: 600 16px 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}

.md-btn--primary {
  background: #0C2A44;
  color: #ffffff;
}

.md-btn--primary:hover {
  background: #16375a;
  color: #ffffff;
}

.md-btn--secondary {
  background: #ffffff;
  color: #0C2A44;
  border-color: rgba(12, 42, 68, .2);
}

.md-btn--secondary:hover {
  background: #f2f6fa;
  color: #0C2A44;
}

/* ---- Immigration modal (gold) ---- */
.im-modal .md-header {
  background: linear-gradient(180deg, #FBEFBF 0%, #FFFDF6 100%);
  border-bottom-color: rgba(197, 160, 40, .28);
}

.im-modal .md-eyebrow,
.im-modal .md-coltitle {
  color: #9c7b1e;
}

.im-modal .md-eyebrow img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
  border: 1px solid rgba(0, 0, 0, .06);
}

.im-modal .md-check {
  background: #F7D118;
}

.im-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.im-col--guides {
  border-left: 1px solid #ececec;
  padding-left: 64px;
}

.im-included {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Guides list */
.im-guides {
  display: flex;
  flex-direction: column;
}

.im-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ececec;
  text-decoration: none;
  transition: padding-left .18s ease;
}

.im-guide:first-child {
  padding-top: 0;
}

.im-guide:hover {
  padding-left: 6px;
}

/* non-clickable guide row (no guide page yet) */
.im-guide--static {
  cursor: default;
}

.im-guide--static:hover {
  padding-left: 0;
}

.im-guide-text {
  flex: 1;
}

.sc-modal .im-guide-title {
  display: block;
  font: 600 16.5px 'Inter', sans-serif;
  color: #0C2A44;
  margin: 0 0 4px;
}

.im-guide-desc {
  display: block;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0;
}

.im-guide-arrow {
  flex: none;
  color: #C9A227;
  font-size: 20px;
  transition: transform .18s ease;
}

.im-guide:hover .im-guide-arrow {
  transform: translateX(4px);
}

/* ---- Taxes modal (blue) ---- */
.tx-modal .md-header {
  background: linear-gradient(180deg, #DBEBFB 0%, #FFFFFF 100%);
  border-bottom-color: rgba(12, 42, 68, .10);
}

.tx-modal .md-eyebrow,
.tx-modal .md-coltitle {
  color: #2f6fb0;
}

.tx-modal .md-check {
  background: #004C80;
}

.tx-handle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 56px;
}

.tx-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* "Read our tax blog" banner (fills the lower space of the tax modal) */
.md-blogcta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: 24px 28px;
  border-radius: 16px;
  background: #F1F7FC;
  border: 1px solid rgba(12, 42, 68, .10);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.md-blogcta:hover {
  background: #E9F2FA;
  border-color: rgba(12, 42, 68, .16);
}

.md-blogcta-play {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #E1EDF8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-blogcta-play svg {
  width: 24px;
  height: 24px;
  stroke: #004C80;
}

.md-blogcta-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.md-blogcta-eyebrow {
  font: 700 12px 'Inter', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2f6fb0;
}

.sc-modal .md-blogcta-title {
  font: 600 19px 'Poppins', sans-serif;
  color: #0C2A44;
  margin: 5px 0 5px;
}

.md-blogcta-desc {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0;
  max-width: 560px;
}

.md-blogcta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  color: #004C80;
  border: 1px solid rgba(12, 42, 68, .18);
  font: 600 14.5px 'Inter', sans-serif;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s ease;
}

.md-blogcta:hover .md-blogcta-btn {
  background: #f2f6fa;
}

/* ---- Admin Support modal (green) ---- */
.ad-modal .md-header {
  background: linear-gradient(180deg, #C7F0C5 0%, #FFFFFF 100%);
  border-bottom-color: rgba(20, 80, 50, .16);
}

.ad-modal .md-eyebrow,
.ad-modal .md-coltitle {
  color: #1F8A5B;
}

/* featured group card (FBI Background Check) */
.ad-group {
  background: #F3F6F4;
  border: 1px solid #e3ebe6;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.ad-group-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 4px 18px;
}

.ad-group-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-group-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-modal .ad-group-title {
  font: 600 18px 'Poppins', sans-serif;
  color: #0C2A44;
  margin: 0 0 4px;
}

.ad-group-desc {
  font: 400 14.5px/1.45 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0;
}

/* card grids */
.ad-subcards,
.ad-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ad-cards {
  margin-top: 16px;
}

.ad-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6ebe8;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.ad-card:hover {
  border-color: #cfe0d6;
  box-shadow: 0 4px 14px rgba(20, 60, 40, .08);
}

.ad-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ad-card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-modal .ad-card-title {
  font: 600 16px 'Inter', sans-serif;
  color: #0C2A44;
  margin: 0 0 6px;
}

.ad-card--icon .ad-card-title {
  margin: 0;
}

.ad-card-desc {
  font: 400 14px/1.45 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0 0 14px;
}

.ad-learn {
  margin-top: auto;
  font: 600 13.5px 'Inter', sans-serif;
  color: #0C2A44;
}

.ad-learn--green {
  color: #1F8A5B;
}

/* info popover (TIE / Padrón / Pareja de Hecho "Learn more") */
.ad-pop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 42, 68, .5);
  opacity: 0;
  transition: opacity .2s ease;
}

.ad-pop.is-open {
  opacity: 1;
}

.ad-pop-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 30px 28px;
  box-shadow: 0 24px 60px rgba(12, 42, 68, .3);
  transform: translateY(8px);
  transition: transform .2s ease;
}

.ad-pop.is-open .ad-pop-box {
  transform: translateY(0);
}

.sc-modal + .ad-pop .ad-pop-title,
.ad-pop-title {
  font: 600 22px 'Poppins', sans-serif;
  color: #0C2A44;
  margin: 0 0 12px;
  padding-right: 30px;
}

.ad-pop-text {
  font: 400 15px/1.6 'Inter', sans-serif;
  color: #5b6b7b;
  margin: 0;
}

.ad-pop-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 42, 68, .14);
  border-radius: 10px;
  background: #ffffff;
  color: #0C2A44;
  cursor: pointer;
  transition: background .18s ease;
}

.ad-pop-close:hover {
  background: #f2f6fa;
}

.ad-pop-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 820px) {
  .md-header {
    padding: 32px 24px 22px;
  }
  .sc-modal .md-title {
    font-size: 34px;
  }
  .md-sub {
    font-size: 16px;
  }
  .md-content {
    padding: 26px 24px 34px;
  }
  .im-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .im-col--guides {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #ececec;
    padding-top: 30px;
  }
  .tx-handle {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .md-blogcta {
    flex-wrap: wrap;
    padding: 24px;
  }
  .md-blogcta-btn {
    width: 100%;
    justify-content: center;
  }
  .ad-subcards,
  .ad-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Tax form widget (DOM built by JS) ---- */
.tf-viewport {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 8%;
  bottom: 8%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(12, 42, 68, .14), 0 2px 8px rgba(12, 42, 68, .08);
}

.tf-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 9% 10% 8%;
  will-change: transform;
}

.tf-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(12, 42, 68, .35));
  will-change: transform, opacity;
}

.tf-submit {
  position: relative;
  height: 52px;
  border-radius: 11px;
  background: #004C80;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 76, 128, .28);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, background .35s ease;
}

.tf-submit-label {
  font: 600 16px 'Inter', sans-serif;
  color: #ffffff;
  letter-spacing: .01em;
}

.tf-sent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0E8C8C;
  opacity: 0;
  will-change: opacity;
}

.tf-sent-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* ---- Admin checklist widget (DOM built by JS) ---- */
.cl-card {
  width: 80%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(20, 60, 40, .10), 0 2px 8px rgba(20, 60, 40, .05);
  padding: 24px 26px 16px;
}

.cl-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.cl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1F8A5B;
  flex: none;
}

.cl-track {
  flex: 1;
  height: 7px;
  border-radius: 5px;
  background: #e6efe9;
  overflow: hidden;
}

.cl-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: #1F8A5B;
  transition: width .55s cubic-bezier(.4, 0, .2, 1);
  will-change: width;
}

.cl-count {
  font: 600 12px 'Inter', sans-serif;
  color: #1F8A5B;
  flex: none;
  min-width: 26px;
  text-align: right;
}

.cl-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 12px;
  border-radius: 11px;
  transition: background .3s ease;
}

.cl-box {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  border: 2px solid #cdd8d1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .28s ease, border-color .28s ease;
  will-change: background, border-color;
}

.cl-box svg {
  opacity: 0;
  transform: scale(.4);
  transition: opacity .24s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1);
  will-change: opacity, transform;
}

.cl-label {
  font: 500 13.5px 'Inter', sans-serif;
  color: #33413a;
  letter-spacing: -.01em;
  transition: color .3s ease;
}

/* Responsive: relax the fixed card height on narrow screens */
@media (max-width: 768px) {
  .sc-grid {
    padding: 24px 0 8px;
  }

  .sc-card {
    min-height: 0;
  }

  .sc-head {
    padding: 28px 24px 0;
  }
}

/* ============================================================
   Homepage "Contact Us" form — modern restyle
   Scoped to .services-form-modern (homepage only). Matches the
   dark-panel / light-input / yellow-CTA look of the Madrid FBI
   fingerprints form. Field names & IDs are unchanged.
   ============================================================ */
.services-form-modern {
  background-color: #004c80;
  border-radius: 16px;
  padding: 32px 28px 36px;
  box-shadow: 0 14px 34px rgba(0, 76, 128, .18);
  align-items: stretch;
}

.services-form-modern form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.services-form-modern .services-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.services-form-modern input[type="name"],
.services-form-modern input[type="email"],
.services-form-modern select,
.services-form-modern textarea {
  width: 100%;
  margin-bottom: 0;
  background-color: #f1f3f5;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  padding: 12px 14px;
  color: #1a2a3a;
  font-size: .95rem;
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color .2s, background-color .2s;
  box-sizing: border-box;
}

.services-form-modern input::placeholder,
.services-form-modern textarea::placeholder {
  color: #7a8694;
  font-style: normal;
}

.services-form-modern select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8694' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Grey out the "How did you find us?" placeholder until a real option is picked */
.services-form-modern select:invalid {
  color: #7a8694;
}

.services-form-modern select option {
  color: #1a2a3a;
  background: #fff;
}

.services-form-modern textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

.services-form-modern input:focus,
.services-form-modern select:focus,
.services-form-modern textarea:focus {
  border-color: #f5c842;
  background-color: #fff;
}

.services-form-modern button {
  width: 100%;
  margin: 6px 0 0;
  padding: 14px;
  background-color: #f5c842;
  color: #004c80;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: background-color .2s;
}

.services-form-modern button:hover {
  background-color: #e8b830;
}

.services-form-modern #form-status {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .95);
}

@media (max-width: 768px) {
  .services-form-modern {
    width: 100%;
    padding: 24px 18px 28px;
  }

  .services-form-modern .services-form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Custom dropdown (progressive enhancement)
   Replaces the oversized native <select> popup. The real
   <select> stays in the DOM (source of truth for submit +
   validation) and is only hidden once JS builds .bp-dd.
   ============================================================ */
.services-form-modern .bp-dd {
  position: relative;
  width: 100%;
}

/* Native select kept for form data/validation, visually hidden but
   still focusable (opacity, not display:none) so required validation
   can anchor its bubble to the field. */
.services-form-modern .bp-dd select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  background: none;
}

.services-form-modern .bp-dd-trigger {
  width: 100%;
  text-align: left;
  background-color: #f1f3f5;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  padding: 12px 38px 12px 14px;
  color: #1a2a3a;
  font: 400 .95rem 'Roboto', sans-serif;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background-color .2s;
  box-sizing: border-box;
}

.services-form-modern .bp-dd-trigger.is-placeholder {
  color: #7a8694;
}

.services-form-modern .bp-dd-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8694' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
  transition: transform .2s;
}

.services-form-modern .bp-dd.is-open .bp-dd-trigger {
  border-color: #f5c842;
  background-color: #fff;
}

.services-form-modern .bp-dd.is-open .bp-dd-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.services-form-modern .bp-dd-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e4e9;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.services-form-modern .bp-dd.is-open .bp-dd-menu {
  display: block;
}

.services-form-modern .bp-dd-option {
  padding: 9px 12px;
  border-radius: 6px;
  font: 400 .9rem 'Roboto', sans-serif;
  line-height: 1.35;
  color: #1a2a3a;
  cursor: pointer;
}

.services-form-modern .bp-dd-option:hover,
.services-form-modern .bp-dd-option.is-active {
  background-color: #f1f3f5;
}

.services-form-modern .bp-dd-option.is-active {
  font-weight: 600;
}
