/* ============================================================
   Where to get FBI fingerprints in Madrid (comparison guide)
   Page: where-to-get-fbi-fingerprints-madrid.html (+ es/ version)
   Two jobs, in this order: (1) a line-by-line price comparison,
   (2) the free police-station route and why it can fail.
   Same brand as the Madrid FBI page: navy #004c80, yellow
   #f5c842, Roboto. One reading column; nothing decorative.
   ============================================================ */

body.wfm-page {
  --wfm-navy: #004c80;
  --wfm-navy-deep: #00365c;
  --wfm-ink: #13293d;
  --wfm-text: #3b4856;
  --wfm-muted: #687583;
  --wfm-line: #dfe5ec;
  --wfm-mist: #f5f7fa;
  --wfm-sun: #f5c842;
  --wfm-sun-soft: #fffaea;
  --wfm-amber: #e3a008;
  --wfm-amber-soft: #fff7e0;
  --wfm-green: #1a5c2e;
  --wfm-rival: #59626d;
  --wfm-rival-name: #3f4852;

  background: #ffffff;
  color: var(--wfm-text);
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.wfm-page main {
  padding: 0;
  background: #ffffff;
}

/* Scoped to <main> so they don't reach the shared nav and footer */
.wfm-page main a {
  color: var(--wfm-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wfm-page main a:hover {
  color: var(--wfm-navy-deep);
  text-decoration-thickness: 2px;
}

.wfm-page a:focus-visible,
.wfm-page summary:focus-visible {
  outline: 3px solid var(--wfm-sun);
  outline-offset: 2px;
  border-radius: 4px;
}

.wfm-page [id] {
  scroll-margin-top: 90px;
}

.wfm-page sup {
  font-size: 0.7em;
  margin-left: 1px;
}

/* ---- Layout ------------------------------------------------- */
.wfm-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.wfm-section {
  padding: 72px 0;
}

.wfm-section--tint {
  background: var(--wfm-mist);
}

.wfm-page main h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--wfm-ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.wfm-page main h3 {
  color: var(--wfm-ink);
}

/* Small label above each section heading: same look as the
   "Compare prices" pills at the top of the page */
.wfm-h2-tag {
  display: block;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 16px;
  border: 1px solid var(--wfm-line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wfm-ink);
  letter-spacing: 0;
  line-height: 1.5;
}

.wfm-section-intro {
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 32px;
}

/* ---- Intro -------------------------------------------------- */
.wfm-intro {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--wfm-line);
}

.wfm-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.85rem;
  color: var(--wfm-muted);
  margin-bottom: 28px;
}

.wfm-page .wfm-crumbs a {
  color: var(--wfm-muted);
  text-decoration: none;
}

/* Bigger tap areas for standalone links (breadcrumbs, station phone
   numbers): the padding enlarges what a thumb can hit, the negative
   margin cancels it so nothing moves. */
.wfm-page .wfm-crumbs a,
.wfm-page .wfm-station p > a[href^="tel:"]:only-child {
  display: inline-block;
  padding: 6px 0;
  margin: -6px 0;
}

.wfm-page .wfm-crumbs a:hover {
  color: var(--wfm-navy);
  text-decoration: underline;
}

.wfm-intro h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  color: var(--wfm-navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.wfm-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--wfm-ink);
  margin: 0 0 28px;
}

.wfm-intro-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.wfm-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wfm-page .wfm-jump a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--wfm-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wfm-ink);
  text-decoration: none;
  background: #ffffff;
  transition: border-color 0.15s, background 0.15s;
}

.wfm-page .wfm-jump a:hover {
  border-color: var(--wfm-navy);
  background: #eef4f9;
}

.wfm-updated {
  font-size: 0.88rem;
  color: var(--wfm-muted);
  margin: 0;
}

/* ---- 1. Price comparison ------------------------------------ */
/* Our column is a raised card drawn behind the table (::before),
   12px taller than the table at the top and bottom. Its left edge
   and width come from --wfm-col-corner / --wfm-col, which also set
   the column widths, so the card always lines up with the column. */
.wfm-price-wrap {
  --wfm-col-corner: 20%;
  --wfm-col: 16%;
  position: relative;
  padding: 14px 0 26px;
}

.wfm-price-wrap::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 14px;
  left: var(--wfm-col-corner);
  width: var(--wfm-col);
  background: var(--wfm-sun-soft);
  border: 2px solid var(--wfm-sun);
  border-radius: 16px;
  box-shadow: 0 18px 34px -22px rgba(0, 54, 92, 0.5);
  pointer-events: none;
}

.wfm-price {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.wfm-price th,
.wfm-price td {
  padding: 16px 14px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--wfm-line);
}

.wfm-price .wfm-price-corner,
.wfm-price tbody th {
  text-align: left;
}

.wfm-price thead th,
.wfm-price .wfm-price-corner {
  width: var(--wfm-col);
  padding-top: 22px;
  padding-bottom: 16px;
  vertical-align: bottom;
}

.wfm-price .wfm-price-corner {
  width: var(--wfm-col-corner);
}

/* Lines inside our card are a soft yellow, not grey */
.wfm-price .wfm-col-ours {
  border-bottom-color: rgba(227, 160, 8, 0.22);
}

.wfm-price td.wfm-merged {
  vertical-align: middle;
}

.wfm-col-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wfm-rival-name);
  line-height: 1.25;
}

.wfm-col-ours .wfm-col-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wfm-navy);
}

.wfm-col-sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--wfm-muted);
  margin-top: 3px;
}

.wfm-price tbody th {
  font-size: 1rem;
  font-weight: 500;
  color: var(--wfm-ink);
  line-height: 1.4;
}

.wfm-row-sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--wfm-muted);
  margin-top: 3px;
}

/* Their prices: quiet grey. Ours: bold navy. */
.wfm-amt {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--wfm-rival);
  line-height: 1.25;
}

.wfm-col-ours .wfm-amt {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wfm-navy);
}

.wfm-note {
  display: block;
  font-size: 0.84rem;
  color: var(--wfm-muted);
  line-height: 1.45;
  margin-top: 3px;
}

.wfm-swipe {
  display: none;
}

/* Total row */
.wfm-price tbody:not(.wfm-price-total) tr:last-child > *,
.wfm-price td.wfm-merged {
  border-bottom: 0;
}

.wfm-price-total th,
.wfm-price-total td {
  border-top: 2px solid var(--wfm-ink);
  border-bottom: 0;
  padding-top: 20px;
  padding-bottom: 24px;
}

.wfm-price-total td.wfm-col-ours {
  border-top-color: rgba(227, 160, 8, 0.45);
}

.wfm-price-total th {
  font-size: 1.1rem;
  font-weight: 800;
}

.wfm-total {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wfm-rival);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.wfm-col-ours .wfm-total {
  font-weight: 800;
  color: var(--wfm-navy);
}

.wfm-vat {
  display: block;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 8px;
}

/* Footnotes under the price table */
.wfm-footnotes {
  margin: 16px 0 0;
  padding-left: 1.3em;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--wfm-muted);
}

.wfm-footnotes li {
  margin: 0 0 4px;
  padding-left: 2px;
}

.wfm-footnotes li::marker {
  font-weight: 700;
}

.wfm-footnotes li:target {
  color: var(--wfm-ink);
}

/* Footnote numbers: small and light */
.wfm-page .wfm-fn-ref {
  font-size: 0.6em;
  top: -0.7em;
  margin-left: 1px;
}

.wfm-page main .wfm-fn-ref a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

.wfm-page main .wfm-fn-ref a:hover {
  text-decoration: underline;
}

.wfm-price-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- 2. Free option ----------------------------------------- */
.wfm-stations-madrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wfm-st {
  background: #ffffff;
  border: 1px solid var(--wfm-line);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

/* Town, then day and time (navy, with a clock), then the address and
   buttons: one text size throughout, no oversized numbers */
.wfm-page .wfm-st h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.wfm-st-when {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--wfm-navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.wfm-st-when svg {
  flex: none;
}

.wfm-st-addr {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--wfm-text);
  margin: 0;
}

/* Call + Map buttons at the bottom of each Madrid station card */
.wfm-st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.wfm-page .wfm-st-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--wfm-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--wfm-navy);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background 0.15s;
}

.wfm-page .wfm-st-btn:hover {
  border-color: var(--wfm-navy);
  background: #eef4f9;
  color: var(--wfm-navy);
}

.wfm-st-btn svg {
  flex: none;
}

/* Three stacked boxes: police reality (amber), DIY costs, before you go.
   Same shape, padding and type; only the warning box is tinted. */
.wfm-boxes {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.wfm-box {
  background: #ffffff;
  border: 1px solid var(--wfm-line);
  border-left: 5px solid var(--wfm-navy);
  border-radius: 12px;
  padding: 26px 32px 24px;
}

.wfm-box--warn {
  background: var(--wfm-amber-soft);
  border-color: #f2dd9c;
  border-left-color: var(--wfm-amber);
}

.wfm-page .wfm-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--wfm-ink);
  margin: 0 0 14px;
}

.wfm-box ul {
  margin: 0;
  padding-left: 1.15em;
}

.wfm-box li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.wfm-box li:last-child {
  margin-bottom: 0;
}

.wfm-box li::marker {
  color: var(--wfm-navy);
}

.wfm-box--warn li::marker {
  color: var(--wfm-amber);
}

.wfm-box strong {
  color: var(--wfm-ink);
}

.wfm-costs {
  margin: 0;
}

.wfm-costs div {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--wfm-line);
}

.wfm-costs div:first-child {
  border-top: 0;
  padding-top: 0;
}

.wfm-costs div:last-child {
  padding-bottom: 0;
}

.wfm-costs dt {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--wfm-ink);
}

/* Linked labels keep the label colour, with a faint underline */
.wfm-page .wfm-costs dt a {
  color: inherit;
  text-decoration-color: rgba(19, 41, 61, 0.35);
}

.wfm-page .wfm-costs dt a:hover {
  color: var(--wfm-navy);
  text-decoration-color: currentColor;
}

.wfm-costs dd {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- 3. Outside Madrid: regions ----------------------------- */
.wfm-regions {
  border-top: 1px solid var(--wfm-line);
}

.wfm-region {
  border-bottom: 1px solid var(--wfm-line);
}

.wfm-region summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
}

.wfm-region summary::-webkit-details-marker {
  display: none;
}

.wfm-page .wfm-region-name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wfm-ink);
  margin: 0;
}

.wfm-region-count {
  font-size: 0.88rem;
  color: var(--wfm-muted);
  white-space: nowrap;
  padding-right: 2px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wfm-region-count::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--wfm-navy);
  border-bottom: 2px solid var(--wfm-navy);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.wfm-region[open] .wfm-region-count::after {
  transform: translateY(2px) rotate(-135deg);
}

.wfm-page .wfm-region summary:hover .wfm-region-name {
  color: var(--wfm-navy);
}

.wfm-stations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 24px;
}

.wfm-station {
  padding: 16px 18px;
  border: 1px solid var(--wfm-line);
  border-radius: 10px;
  background: #ffffff;
}

.wfm-page .wfm-station h4,
.wfm-page .wfm-station h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wfm-ink);
  line-height: 1.4;
  margin: 0 0 6px;
}

.wfm-station p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}

.wfm-station p.wfm-station-hours {
  color: var(--wfm-green);
  font-weight: 500;
  margin-bottom: 6px;
}

.wfm-substations-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--wfm-ink);
  margin: 4px 0 12px;
}

.wfm-substations-title span {
  font-weight: 500;
  color: var(--wfm-green);
  margin-left: 8px;
  font-size: 0.88rem;
}

.wfm-stations--compact .wfm-station {
  padding: 12px 16px;
}

.wfm-source {
  font-size: 0.85rem;
  color: var(--wfm-muted);
  margin: 18px 0 0;
}

.wfm-elsewhere {
  font-size: 1rem;
  line-height: 1.65;
  margin: 18px 0 0;
}

/* ---- FAQ ---------------------------------------------------- */
.wfm-faq {
  margin-top: 24px;
  border-top: 1px solid var(--wfm-line);
}

.wfm-faq details {
  border-bottom: 1px solid var(--wfm-line);
}

.wfm-faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wfm-ink);
  line-height: 1.4;
}

/* The question is a real heading (for search engines and screen
   readers) but looks exactly like the summary text */
.wfm-page .wfm-faq .wfm-faq-q {
  display: inline;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}

.wfm-faq summary::-webkit-details-marker {
  display: none;
}

.wfm-faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--wfm-navy);
  border-bottom: 2px solid var(--wfm-navy);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.wfm-faq details[open] summary::after {
  transform: translateY(4px) rotate(-135deg);
}

.wfm-faq summary:hover {
  color: var(--wfm-navy);
}

/* Answers run the full width, like the rest of the page's text */
.wfm-faq details p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--wfm-text);
  margin: -4px 40px 22px 0;
}

/* ---- Booking ------------------------------------------------ */
.wfm-cta {
  padding: 72px 0 88px;
}

.wfm-cta-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.wfm-page .wfm-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--wfm-navy);
  transition: background 0.2s, color 0.2s;
}

.wfm-page .wfm-btn--primary {
  background: var(--wfm-navy);
  color: #ffffff;
}

.wfm-page .wfm-btn--primary:hover {
  background: var(--wfm-navy-deep);
  border-color: var(--wfm-navy-deep);
  color: #ffffff;
}

.wfm-page .wfm-btn--ghost {
  background: #ffffff;
  color: var(--wfm-navy);
}

.wfm-page .wfm-btn--ghost:hover {
  background: #eef4f9;
  color: var(--wfm-navy);
}

/* ---- 5. Book / contact --------------------------------------
   Copy of the Madrid page's booking card + question form
   (css/madrid-fbi-fingerprints.css, "CONTACT SECTION"), renamed
   wfm-. Keep the two looking the same. Selectors start with
   .wfm-page where the page's own main h2/h3/a rules would
   otherwise win. */
.wfm-contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.wfm-book-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #004c80;
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.10), transparent 55%);
  border-radius: 16px;
  padding: 44px 40px 36px;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Faint dotted ring, echoing the homepage hero graphic */
.wfm-book-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dotted rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.wfm-page .wfm-book-card h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 420px;
}

.wfm-book-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wfm-book-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.wfm-book-step-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(245, 200, 66, 0.16);
  border: 1.5px solid #f5c842;
  color: #f5c842;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wfm-page .wfm-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 28px;
  padding: 17px 24px;
  background-color: #f5c842;
  color: #004c80;
  border-radius: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, box-shadow 0.2s;
}

.wfm-page .wfm-book-btn:hover,
.wfm-page .wfm-book-btn:focus {
  background-color: #e8b830;
  color: #004c80;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.wfm-page .wfm-book-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.wfm-book-meta {
  list-style: none;
  padding: 22px 0 0;
  margin: auto 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wfm-book-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.wfm-book-meta svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #f5c842;
}

.wfm-page .wfm-book-meta a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wfm-page .wfm-book-meta a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

/* Question form: secondary, lighter card */
.wfm-form-panel {
  background-color: #ffffff;
  border: 1px solid #e3e7ec;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.wfm-page .wfm-form-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #004c80;
  margin: 0 0 6px;
}

.wfm-form-sub {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 24px;
  line-height: 1.55;
}

.wfm-form-alt {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef1f4;
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
}

.wfm-page .wfm-form-alt a {
  color: #004c80;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wfm-page .wfm-form-alt a:hover {
  text-decoration: underline;
}

.wfm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

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

.wfm-form input,
.wfm-form select,
.wfm-form textarea {
  width: 100%;
  background-color: #f1f3f5;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  padding: 12px 14px;
  color: #1a2a3a;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.wfm-form input::placeholder,
.wfm-form textarea::placeholder {
  color: #7a8694;
}

.wfm-form select {
  color: #7a8694;
  -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;
}

.wfm-form select option {
  color: #1a2a3a;
  background: #ffffff;
}

.wfm-form input:focus,
.wfm-form select:focus,
.wfm-form textarea:focus {
  border-color: #004c80;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 76, 128, 0.12);
}

.wfm-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Honeypot: hidden from people, filled in by bots */
.wfm-form .wfm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wfm-form-submit {
  width: 100%;
  padding: 14px;
  background-color: #004c80;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background 0.2s;
  margin-top: 6px;
}

.wfm-form-submit:hover {
  background-color: #003a63;
}

#wfm-form-status {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: #f6f8fa;
  margin: 0;
}

#wfm-form-status.is-ok {
  color: green;
}

#wfm-form-status.is-error {
  color: red;
}

@media (max-width: 991px) {
  .wfm-contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .wfm-form-row {
    grid-template-columns: 1fr;
  }

  .wfm-form-panel {
    padding: 26px 20px 22px;
  }

  .wfm-book-card {
    padding: 32px 22px 26px;
  }

  .wfm-book-steps li {
    font-size: 0.95rem;
  }
}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .wfm-price-wrap {
    --wfm-col-corner: 18%;
    --wfm-col: 16.4%;
  }

  .wfm-price th,
  .wfm-price td {
    padding: 14px 8px;
  }

  .wfm-price tbody th {
    font-size: 0.9rem;
  }

  .wfm-col-name {
    font-size: 0.92rem;
  }

  .wfm-col-ours .wfm-col-name {
    font-size: 1rem;
  }

  .wfm-col-sub {
    font-size: 0.76rem;
  }

  .wfm-amt {
    font-size: 1.05rem;
  }

  .wfm-col-ours .wfm-amt {
    font-size: 1.15rem;
  }

  .wfm-note {
    font-size: 0.78rem;
  }

  .wfm-total {
    font-size: 1.35rem;
  }

  .wfm-vat {
    font-size: 0.76rem;
  }
}

@media (max-width: 860px) {
  .wfm-stations-madrid {
    grid-template-columns: 1fr;
  }

}

/* iPad portrait: one card per row, buttons on the right */
@media (min-width: 641px) and (max-width: 860px) {
  .wfm-st {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    align-items: center;
  }

  .wfm-st > h3,
  .wfm-st-when,
  .wfm-st-addr {
    grid-column: 1;
  }

  .wfm-st-when {
    justify-self: start;
  }

  .wfm-st-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
    padding: 0;
  }
}

/* ============================================================
   Phones
   ============================================================ */
@media (max-width: 640px) {
  .wfm-wrap {
    padding: 0 16px;
  }

  .wfm-intro {
    padding: 32px 0 32px;
  }

  .wfm-lead {
    font-size: 1.08rem;
  }

  .wfm-section {
    padding: 52px 0;
  }

  /* Price table: scrolls sideways, step names stay pinned on the
     left. Fixed pixel columns (108 + 5 x 128 = 748) so the card
     behind our column lines up. */
  .wfm-swipe {
    display: block;
    font-size: 0.85rem;
    color: var(--wfm-muted);
    margin: -16px 0 0;
  }

  .wfm-price-wrap {
    --wfm-col-corner: 108px;
    --wfm-col: 128px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wfm-price {
    width: 748px;
    min-width: 748px;
  }

  .wfm-price th,
  .wfm-price td {
    padding: 13px 10px;
  }

  .wfm-price .wfm-price-corner,
  .wfm-price tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
  }

  .wfm-price tbody th {
    font-size: 0.86rem;
  }

  .wfm-col-name {
    font-size: 0.95rem;
  }

  .wfm-col-ours .wfm-col-name {
    font-size: 1rem;
  }

  .wfm-col-sub {
    font-size: 0.74rem;
  }

  .wfm-amt {
    font-size: 1.02rem;
  }

  .wfm-col-ours .wfm-amt {
    font-size: 1.12rem;
  }

  .wfm-note {
    font-size: 0.76rem;
  }

  .wfm-total {
    font-size: 1.3rem;
  }

  .wfm-price-total th {
    font-size: 1rem;
  }

  .wfm-st {
    padding: 18px;
  }

  .wfm-box {
    padding: 20px 18px 18px;
  }

  .wfm-costs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wfm-stations {
    grid-template-columns: 1fr;
  }

  .wfm-page .wfm-region-name {
    font-size: 1.02rem;
  }

  .wfm-substations-title span {
    display: block;
    margin: 4px 0 0;
  }

  .wfm-price-cta .wfm-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfm-page *,
  .wfm-page *::before,
  .wfm-page *::after {
    transition: none !important;
  }
}
