/* Schengen Modern
   Layout: passport-page bands. A navy cover band opens each page, paper-white sections follow,
   and one visa-sticker card carries the interactive moment on the home page.
   All classes are prefixed sm- so they never collide with Bootstrap, which stays loaded
   for the appointment modal and the apply/payment templates. */
:root {
  --sm-cover: #0F1E45;
  --sm-cover-2: #172B5E;
  --sm-on-cover: #EEF1FA;
  --sm-on-cover-muted: #A9B4D6;
  --sm-paper: #F5F6FA;
  --sm-surface: #FFFFFF;
  --sm-ink: #111A33;
  --sm-muted: #59647F;
  --sm-line: #DDE2EE;
  --sm-brand: #1F4FD1;
  --sm-brand-ink: #FFFFFF;
  --sm-gold: #E9B22B;
  --sm-gold-ink: #1A1405;
  --sm-sticker: #EAF2EE;
  --sm-sticker-line: #B7CFC4;
  --sm-ok: #157F4F;
  --sm-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --sm-body: "Figtree", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --sm-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sm-r: 14px;
  --sm-max: 1180px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sm *, .sm *::before, .sm *::after { transition: none !important; animation: none !important; } }
#sm-main { overflow-x: clip; }
body.sm { margin: 0; background: var(--sm-paper); color: var(--sm-ink); font: 400 16px/1.6 var(--sm-body); -webkit-font-smoothing: antialiased; padding-bottom: 0; }
.sm a { color: var(--sm-brand); text-underline-offset: 3px; }
.sm :focus-visible { outline: 3px solid var(--sm-gold); outline-offset: 2px; border-radius: 6px; }
.sm h1, .sm h2, .sm h3 { font-family: var(--sm-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; color: inherit; }
.sm h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.sm h3 { font-size: 1.18rem; font-weight: 700; }
.sm p { margin: 0; }
.sm-skip { position: absolute; left: -9999px; }
.sm-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sm-gold); color: var(--sm-gold-ink); padding: 8px 14px; border-radius: 8px; }
.sm-wrap { max-width: var(--sm-max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sm-eyebrow { display: inline-block; font: 600 0.78rem/1.2 var(--sm-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sm-muted); }
.sm-on-cover { color: var(--sm-on-cover-muted); }
.sm-mono { font-family: var(--sm-mono); }
.sm-h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }

.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--sm-body); padding: 14px 22px; border-radius: 999px; text-decoration: none !important; border: 0; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.sm-btn-gold { background: var(--sm-gold); color: var(--sm-gold-ink) !important; }
.sm-btn-gold:hover { filter: brightness(1.06); }
.sm-btn-ghost { background: transparent; color: var(--sm-on-cover) !important; box-shadow: inset 0 0 0 1.5px var(--sm-on-cover-muted); }
.sm-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sm-on-cover); }
.sm-btn-brand { background: var(--sm-brand); color: var(--sm-brand-ink) !important; }

/* Ribbon and header */
.sm-ribbon { background: var(--sm-gold); color: var(--sm-gold-ink); font: 600 0.82rem/1.3 var(--sm-body); padding-block: 7px; }
.sm-ribbon .sm-wrap { display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; text-align: center; }
.sm-header { position: sticky; top: 0; z-index: 50; background: var(--sm-cover); color: var(--sm-on-cover); border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-bar .sm-header { top: 32px; }
.sm-header-in { display: flex; align-items: center; gap: 20px; padding-block: 12px; position: relative; }
.sm-logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--sm-on-cover) !important; }
.sm-logo img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.sm-logo span { font: 800 1.05rem/1.1 var(--sm-display); }
.sm-logo small { display: block; font: 500 0.72rem/1.2 var(--sm-body); color: var(--sm-on-cover-muted); }
.sm-nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.sm-nav a { color: var(--sm-on-cover); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.sm-nav a[aria-current="page"], .sm-nav a:hover { background: var(--sm-cover-2); color: var(--sm-on-cover); }
.sm-nav .sm-btn { padding: 10px 18px; margin-left: 6px; }
.sm-nav .sm-btn:hover { background: var(--sm-gold); }
.sm-menu-btn { display: none; margin-left: auto; background: var(--sm-cover-2); color: var(--sm-on-cover); border: 0; border-radius: 10px; padding: 10px 14px; font: 600 0.95rem var(--sm-body); cursor: pointer; }
@media (max-width: 960px) {
  .sm-menu-btn { display: block; }
  .sm-logo small { display: none; }
  .sm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--sm-cover); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--sm-cover-2); }
  .sm-nav.is-open { display: flex; }
  .sm-nav .sm-btn { margin: 8px 0 0; }
}

/* Cover bands */
.sm-cover { background: var(--sm-cover); color: var(--sm-on-cover); position: relative; overflow: hidden; }
.sm-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16; background: repeating-radial-gradient(circle at 85% 20%, transparent 0 14px, rgba(169,180,214,0.35) 14px 15px); }
.sm-cover > .sm-wrap { position: relative; z-index: 1; }
.sm-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 56px 64px; }
.sm-hero > * { min-width: 0; }
.sm-hero-title { margin-top: 14px !important; }
.sm-lede { color: var(--sm-on-cover-muted); font-size: 1.1rem; max-width: 38em; margin-top: 16px !important; }
.sm-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sm-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--sm-on-cover-muted); font-size: 0.92rem; }
.sm-facts b { color: var(--sm-on-cover); font: 700 1.25rem/1 var(--sm-display); display: block; margin-bottom: 4px; }
@media (max-width: 960px) { .sm-hero { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 48px; } }

.sm-page-hero .sm-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.42; }
.sm-page-hero .sm-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sm-cover) 18%, rgba(15,30,69,0.2)); }
.sm-page-hero-in { padding-block: 44px 52px; }
.sm-title-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.sm-flag-lg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); flex: none; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sm-chip { font: 600 0.82rem var(--sm-body); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--sm-on-cover); }
.sm-crumbs { font-size: 0.86rem; color: var(--sm-on-cover-muted); margin-bottom: 4px; }
.sm-crumbs a, .sm-crumbs span[property="name"] { color: var(--sm-on-cover) !important; }
.sm-crumbs a { text-decoration: underline; text-decoration-color: rgba(238,241,250,0.35); }

/* Visa sticker: destination checker */
.sm-sticker { background: var(--sm-sticker); color: var(--sm-ink); border-radius: 18px; padding: 22px; position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); border: 1px solid var(--sm-sticker-line); }
.sm-sticker::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(115deg, transparent 0 9px, var(--sm-sticker-line) 9px 10px), repeating-linear-gradient(65deg, transparent 0 13px, var(--sm-sticker-line) 13px 14px);
  -webkit-mask: linear-gradient(180deg, #000 0, transparent 34%); mask: linear-gradient(180deg, #000 0, transparent 34%); }
.sm-sticker > * { position: relative; }
.sm-sticker-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sm-sticker-top .sm-mono { font-size: 0.72rem; color: var(--sm-muted); letter-spacing: 0.08em; }
.sm-sticker h2 { font-size: 1.35rem; margin-top: 4px; }
.sm-hint { color: var(--sm-muted); font-size: 0.9rem; margin-top: 6px !important; }
.sm-legs { display: grid; gap: 8px; margin-top: 16px; }
.sm-leg { display: grid; grid-template-columns: 22px minmax(0, 1fr) 84px 36px; gap: 8px; align-items: center; }
.sm-leg .sm-n { font: 700 0.8rem var(--sm-mono); color: var(--sm-muted); }
.sm-leg select, .sm-leg input { width: 100%; font: 500 0.95rem var(--sm-body); color: var(--sm-ink); background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 10px; padding: 10px; min-width: 0; height: 44px; }
.sm-leg input { text-align: right; font-family: var(--sm-mono); }
.sm-rm { background: none; border: 0; color: var(--sm-muted); font-size: 1.2rem; cursor: pointer; border-radius: 8px; padding: 6px; }
.sm-rm:hover { color: var(--sm-ink); background: var(--sm-line); }
.sm-add-leg { margin-top: 10px; background: none; border: 1px dashed var(--sm-sticker-line); color: var(--sm-ink); font: 600 0.9rem var(--sm-body); border-radius: 10px; padding: 9px 12px; cursor: pointer; width: 100%; }
.sm-verdict { margin-top: 16px; background: var(--sm-surface); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--sm-line); display: grid; gap: 4px; }
.sm-verdict .k { font-size: 0.8rem; color: var(--sm-muted); }
.sm-verdict .v { font: 800 1.4rem/1.15 var(--sm-display); }
.sm-verdict .why { font-size: 0.88rem; color: var(--sm-muted); }
.sm-verdict a { font-weight: 700; font-size: 0.92rem; }
.sm-mrz { margin-top: 16px; font: 500 0.7rem/1.5 var(--sm-mono); color: var(--sm-muted); letter-spacing: 0.14em; overflow-wrap: anywhere; border-top: 1px solid var(--sm-sticker-line); padding-top: 10px; }

/* Sections */
.sm-band { padding-block: 72px; }
.sm-band.sm-alt { background: var(--sm-surface); border-block: 1px solid var(--sm-line); }
.sm-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.sm-head h2 { margin-top: 8px; }
.sm-head p { color: var(--sm-muted); max-width: 36em; margin-top: 10px; }
.sm-head > a { font-weight: 600; }

.sm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: sm-s; list-style: none; padding: 0; margin: 0; }
.sm-steps li { counter-increment: sm-s; padding-top: 18px; border-top: 3px solid var(--sm-ink); }
.sm-steps li::before { content: counter(sm-s, decimal-leading-zero); font: 700 0.85rem var(--sm-mono); color: var(--sm-brand); display: block; margin-bottom: 10px; }
.sm-steps p { color: var(--sm-muted); margin-top: 6px; font-size: 0.96rem; }
@media (max-width: 860px) { .sm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sm-steps { grid-template-columns: 1fr; } }

.sm-search { display: flex; align-items: center; gap: 10px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 999px; padding: 6px 6px 6px 18px; min-width: min(100%, 320px); margin: 0; }
.sm-search input { border: 0; outline: 0; background: transparent; font: 500 1rem var(--sm-body); color: var(--sm-ink); flex: 1; min-width: 0; padding: 8px 0; }
.sm-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sm-country { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sm-surface); border: 1px solid var(--sm-line); text-decoration: none !important; color: var(--sm-ink) !important; transition: border-color .15s, transform .15s; }
.sm-country:hover { border-color: var(--sm-brand); transform: translateY(-1px); }
.sm-country img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--sm-line); }
.sm-country b { display: block; font-weight: 700; }
.sm-country small { font: 500 0.72rem var(--sm-mono); color: var(--sm-muted); letter-spacing: 0.03em; }
.sm-empty { color: var(--sm-muted); padding: 20px 0; }

.sm-fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.sm-fee { background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sm-fee-top { display: flex; align-items: center; gap: 10px; }
.sm-fee-top img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sm-fee-total { font: 800 2.2rem/1 var(--sm-display); font-variant-numeric: tabular-nums; }
.sm-fee-total small { font: 500 0.8rem var(--sm-body); color: var(--sm-muted); display: block; margin-top: 6px; }
.sm-fee dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; font-size: 0.9rem; border-top: 1px solid var(--sm-line); padding-top: 12px; }
.sm-fee dt { color: var(--sm-muted); font-weight: 400; } .sm-fee dd { margin: 0; font-family: var(--sm-mono); font-variant-numeric: tabular-nums; text-align: right; }
.sm-note { font-size: 0.82rem; color: var(--sm-muted); }
.sm-fee .sm-btn { margin-top: auto; white-space: nowrap; padding: 12px 14px; font-size: 0.92rem; }
.sm-fee dd { white-space: nowrap; }
.sm-fee-foot { margin-top: 14px !important; }

.sm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sm-line); border: 1px solid var(--sm-line); border-radius: var(--sm-r); overflow: hidden; }
.sm-services > div { background: var(--sm-surface); padding: 24px; }
.sm-services p { color: var(--sm-muted); margin-top: 8px; font-size: 0.95rem; }
@media (max-width: 860px) { .sm-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sm-services { grid-template-columns: 1fr; } }

.sm-faq { display: grid; gap: 10px; max-width: 840px; }
.sm-faq details, .sm-nationals { background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 12px; padding: 0 18px; }
.sm-faq summary, .sm-nationals summary { cursor: pointer; list-style: none; font: 700 1.04rem/1.4 var(--sm-body); padding: 16px 28px 16px 0; position: relative; }
.sm-faq summary::-webkit-details-marker, .sm-nationals summary::-webkit-details-marker { display: none; }
.sm-faq summary::after, .sm-nationals summary::after { content: "+"; position: absolute; right: 0; top: 13px; font: 500 1.4rem var(--sm-mono); color: var(--sm-brand); }
.sm-faq details[open] summary::after, .sm-nationals[open] summary::after { content: "–"; }
.sm-faq-a, .sm-nationals p { padding-bottom: 18px; color: var(--sm-muted); max-width: 68ch; }
.sm-faq-a p + p { margin-top: 8px; }

.sm-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sm-post { display: flex; flex-direction: column; border-radius: var(--sm-r); background: var(--sm-surface); border: 1px solid var(--sm-line); text-decoration: none !important; color: var(--sm-ink) !important; overflow: hidden; transition: border-color .15s; }
.sm-post:hover { border-color: var(--sm-brand); }
.sm-post:hover h3 { color: var(--sm-brand); }
.sm-post-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sm-line); max-width: 100%; }
.sm-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.sm-tag { font: 600 0.72rem var(--sm-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sm-muted); }
.sm-excerpt { color: var(--sm-muted); font-size: 0.92rem; }
.sm-post time { margin-top: auto; font: 500 0.78rem var(--sm-mono); color: var(--sm-muted); }
@media (max-width: 960px) { .sm-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sm-posts { grid-template-columns: 1fr; } }
.sm-pagination { margin-top: 28px; }
.sm-pagination .wp-pagenavi { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-pagination .wp-pagenavi a, .sm-pagination .wp-pagenavi span { border: 1px solid var(--sm-line); border-radius: 8px; padding: 6px 12px; background: var(--sm-surface); color: var(--sm-ink); text-decoration: none; }
.sm-pagination .wp-pagenavi .current { background: var(--sm-cover); color: var(--sm-on-cover); border-color: var(--sm-cover); }

.sm-cta-band { background: var(--sm-cover); color: var(--sm-on-cover); border-radius: 22px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sm-cta-band p { color: var(--sm-on-cover-muted); margin-top: 8px; }

/* Two-column content pages */
.sm-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding-block: 48px 72px; align-items: start; }
.sm-two-col > * { min-width: 0; }
@media (max-width: 960px) { .sm-two-col { grid-template-columns: 1fr; } }
.sm-prose { max-width: 72ch; }
.sm-prose h1 { font-size: 2rem; margin: 0 0 14px; }
.sm-prose h2 { margin: 44px 0 14px; font-size: 1.6rem; }
.sm-prose > h2:first-child, .sm-prose > p:first-child { margin-top: 0; }
.sm-prose h3 { margin: 24px 0 6px; }
.sm-prose h4, .sm-prose h5 { font-family: var(--sm-display); font-size: 1.05rem; font-weight: 700; margin: 20px 0 6px; }
.sm-prose p { margin-bottom: 12px; }
.sm-prose ul, .sm-prose ol { padding-left: 22px; margin-bottom: 14px; }
.sm-prose li { margin-bottom: 4px; }
.sm-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.sm-prose table { width: 100%; border-collapse: collapse; }
.sm-prose ul.visa-glance { list-style: none; padding: 0; margin: 0 0 8px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-r); overflow: hidden; }
.sm-prose ul.visa-glance li { position: relative; padding: 14px 18px 14px 184px; border-top: 1px solid var(--sm-line); margin: 0; }
.sm-prose ul.visa-glance li:first-child { border-top: 0; }
.sm-prose ul.visa-glance strong { position: absolute; left: 18px; top: 16px; width: 150px; font-size: 0.78rem; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sm-muted); font-weight: 600; }
@media (max-width: 560px) { .sm-prose ul.visa-glance li { padding-left: 18px; } .sm-prose ul.visa-glance strong { position: static; display: block; width: auto; margin-bottom: 2px; } }
.sm-intro { margin-bottom: 32px; }
.sm-table-wrap { overflow-x: auto; border: 1px solid var(--sm-line); border-radius: var(--sm-r); background: var(--sm-surface); }
.sm-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.sm-table th, .sm-table td { padding: 12px 14px; border-bottom: 1px solid var(--sm-line); text-align: left; white-space: nowrap; }
.sm-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sm-muted); font-weight: 600; }
.sm-table tr:last-child td { border-bottom: 0; }
.sm-docs { list-style: none !important; padding: 0 !important; margin: 0 0 24px; border-top: 1px solid var(--sm-line); }
.sm-docs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sm-line); margin: 0 !important; }
.sm-docs li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--sm-sticker); color: var(--sm-ok); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; }
.sm-docs b { display: block; }
.sm-docs span span { color: var(--sm-muted); font-size: 0.95rem; }
.sm-nationals { margin-top: 8px; }

.sm-book { position: sticky; top: 96px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.sm-book dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 0.92rem; }
.sm-book dt { color: var(--sm-muted); font-weight: 400; } .sm-book dd { margin: 0; font-weight: 600; text-align: right; }
.sm-book p { color: var(--sm-muted); font-size: 0.92rem; }
.sm-book-contact { border-top: 1px solid var(--sm-line); padding-top: 12px; }
.sm-contact-list { grid-template-columns: 1fr !important; }
.sm-contact-list dd { text-align: left !important; margin-bottom: 8px; overflow-wrap: anywhere; }
@media (max-width: 960px) { .sm-book { position: static; } }
.sm-card { background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 18px; padding: 24px; }

/* Contact Form 7 inside the new layout */
.sm-form-card .wpcf7 form { display: grid; gap: 12px; }
.sm-form-card .wpcf7 p { margin: 0; }
.sm-form-card .wpcf7 br { display: none; }
.sm-form-card .wpcf7 label { font-weight: 600; font-size: 0.9rem; width: 100%; }
.sm-form-card .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.sm-form-card .wpcf7 select, .sm-form-card .wpcf7 textarea { width: 100%; font: 500 0.95rem var(--sm-body); color: var(--sm-ink); background: var(--sm-paper); border: 1px solid var(--sm-line); border-radius: 10px; padding: 11px 12px; margin-top: 4px; }
.sm-form-card .wpcf7 textarea { min-height: 110px; }
.sm-form-card .wpcf7 input[type="submit"] { background: var(--sm-brand); color: var(--sm-brand-ink); border: 0; border-radius: 999px; padding: 13px 22px; font: 700 1rem var(--sm-body); cursor: pointer; width: 100%; }
.sm-form-card .wpcf7-not-valid-tip { font-size: 0.82rem; }

/* Appointment calendar from [APT]. Slick sizes the day columns, so spacing comes from a
   transparent border (slick ignores margins when it measures slides). */
.sm-apt, .sm-prose .preferred-appointments { max-width: 100%; overflow: hidden; }
.sm-prose .preferred-appointments { margin: 24px 0 8px; padding: 18px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-r); }
.sm .preferred-appointments .container { max-width: none; padding: 0; margin: 0; width: auto; }
.sm .preferred-appointments-wrap { border: 0 !important; padding: 0 !important; background: none !important; }
.sm .appointments-heading { background: none !important; padding: 0 !important; margin: 0 0 12px !important; }
.sm .appointments-heading h4 { font: 600 0.95rem var(--sm-body) !important; color: var(--sm-muted) !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.sm .btn-wrap-custom { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px !important; padding: 0 !important; }
.sm .btn-wrap-custom button { background: var(--sm-paper) !important; border: 1px solid var(--sm-line) !important; color: var(--sm-ink) !important; border-radius: 999px; padding: 7px 14px !important; font: 600 0.86rem var(--sm-body) !important; cursor: pointer; }
.sm .btn-wrap-custom button.slick-disabled { opacity: 0.4; cursor: default; }
.sm .appointments-slider-row .slick-arrow { display: none !important; }
.sm .appointments-slider-row .slick-list { overflow: hidden; }
.sm .appointments-content { margin: 0 !important; border: 4px solid transparent !important; background: var(--sm-paper) !important; background-clip: padding-box !important; box-shadow: inset 0 0 0 1px var(--sm-line); border-radius: 14px; padding: 10px 6px !important; text-align: center; min-width: 0 !important; height: auto !important; }
.sm .appointments-col-heading { background: none !important; padding: 0 !important; }
.sm .appointments-col-heading h4 { font: 700 0.95rem var(--sm-display) !important; margin: 0 !important; color: var(--sm-ink) !important; }
.sm .appointments-col-heading p { font: 500 0.68rem var(--sm-mono) !important; color: var(--sm-muted) !important; margin: 2px 0 8px !important; }
.sm .appointments-col-info ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 6px; }
.sm .appointments-col-info li { background: var(--sm-surface) !important; border: 1px solid var(--sm-line) !important; border-radius: 8px; padding: 5px 2px !important; margin: 0 !important; font: 600 0.84rem var(--sm-mono) !important; color: var(--sm-ink) !important; cursor: pointer; transition: background .15s, color .15s; }
.sm .appointments-col-info li span { background: none !important; color: inherit !important; padding: 0 !important; }
.sm .appointments-col-info li:hover { background: var(--sm-brand) !important; color: var(--sm-brand-ink) !important; border-color: var(--sm-brand) !important; }
.sm .appointments-note p { font-size: 0.84rem; color: var(--sm-muted); margin: 12px 0 0 !important; }

/* Legacy apply/payment templates keep their Bootstrap markup inside a padded wrapper */
.sm-legacy { padding-block: 32px 64px; }
.sm-legacy .sub-banner, .sm-legacy .inner-page-crousel { display: none; }

/* Footer */
.sm-footer { background: var(--sm-cover); color: var(--sm-on-cover-muted); }
.sm-footer-in { padding-block: 52px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.sm-footer h3 { color: var(--sm-on-cover); font-size: 1rem; margin-bottom: 12px; }
.sm-footer a { color: var(--sm-on-cover) !important; text-decoration: none; display: block; padding: 3px 0; font-size: 0.94rem; overflow-wrap: anywhere; }
.sm-footer a:hover { text-decoration: underline; }
.sm-footer-about p { margin-top: 14px; max-width: 30em; font-size: 0.92rem; }
.sm-footer .sm-logo { display: inline-flex; }
.sm-footer-contact p { margin-top: 6px; font-size: 0.92rem; }
.sm-legal { grid-column: 1 / -1; border-top: 1px solid var(--sm-cover-2); padding-top: 20px; font-size: 0.84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sm-legal a { display: inline; }
@media (max-width: 860px) { .sm-footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sm-footer-in { grid-template-columns: 1fr; } }

.sm-mobile-bar { display: none; }
@media (max-width: 767px) {
  body.sm { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .sm-mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--sm-cover); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .sm-mobile-bar a { text-align: center; color: var(--sm-on-cover) !important; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 10px 6px; border-radius: 999px; background: var(--sm-cover-2); }
  .sm-mobile-bar .sm-mobile-apply { background: var(--sm-gold); color: var(--sm-gold-ink) !important; }
}
.sm .appointments-col-info { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; }
