/* LAMATA Customer Care portal in the LAMATA logo's palette: cog blue (#2a96cc, #1f7098 for actions),
   cog blue #2179a6 / #1f7098 surfaces (white text 4.8:1+), #17516e text, crest gold accents (#c5a24c / #d8b65c), crest red for errors.
   White header under a dark-cog band, Montserrat headings, generous spacing, large touch targets.
   Contrast checked to WCAG 2.2 AA (text >= 4.5:1); gold is never used as text on white. */
:root {
  --navy: #2179a6;          /* cog blue surfaces: white text 4.8:1 */
  --navy-2: #17516e;        /* dark cog: headings and text on white (8.6:1) */
  --teal: #1f7098;          /* cog blue, darkened for text: actions and links */
  --teal-dark: #1a5d7f;
  --teal-soft: #e6f3fa;
  --amber: #d8b65c;         /* crest gold: accents, call to action (dark text on it) */
  --gold: #c5a24c;
  --crest-red: #b8463a;
  --ink: #142032;
  --muted: #4d5869;
  --line: #d9e0e8;
  --surface: #ffffff;
  --page: #f3f6f9;
  --error: #b8463a;
  --ok: #1e7a4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 18, 63, .06), 0 8px 24px rgba(0, 18, 63, .06);
  --heading-font: Montserrat, Inter, system-ui, sans-serif;
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--teal);
  --bs-link-color-rgb: 31, 112, 152;
}
body { background: var(--page); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3 { letter-spacing: -.01em; color: var(--navy-2); font-family: var(--heading-font); }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber) !important; outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy) !important; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--amber); color: #000; padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }
.container { padding-left: 16px; padding-right: 16px; }

/* Official band + header */
.gov-band { background: #1f7098; color: #fff; font-size: .8rem; }
.gov-band .container { display: flex; align-items: center; gap: .5rem; min-height: 32px; }
.gov-band .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.site-header { background: #fff; color: var(--navy-2); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(17, 62, 85, .06); border-bottom: 3px solid var(--amber); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy-2); text-decoration: none; min-width: 0; }
.brand img { border-radius: 10px; flex: none; }
.brand-name { display: block; font-weight: 800; font-size: 1.08rem; line-height: 1.15; color: var(--navy-2); font-family: var(--heading-font); }
.brand-org { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--navy-2); display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 10px; text-decoration: none; min-height: 44px; font-weight: 500; }
.nav-links a:hover { background: var(--teal-soft); color: var(--navy-2); }
.nav-links a[aria-current="page"] { background: var(--teal-soft); box-shadow: inset 0 -3px 0 var(--teal); }
.nav-links .nav-cta { background: var(--amber); color: #0d2f3f; font-weight: 700; }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { background: #e2c77f; color: #0d2f3f; box-shadow: none; }
@media (max-width: 767px) {
  .brand-org { display: none; }
  .brand-name { font-size: 1rem; }
  .nav-links .nav-label { display: none; }
  .nav-links a { padding: .5rem .7rem; }
  .gov-band { font-size: .75rem; }
}

main { padding: 2rem 0 4rem; outline: none; }
.lead-muted { color: var(--muted); font-size: 1.1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; margin-top: -2rem; padding: 3.5rem 0 4.5rem;
  background: radial-gradient(900px 380px at 88% -5%, rgba(42, 150, 204, .35), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(31, 112, 152, .45), transparent 65%), linear-gradient(135deg, var(--navy) 0%, #1f7098 60%, #1d6b91 100%); }
.hero::after { content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--page); transform: skewY(-2deg); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(216, 182, 92, .12); border: 1px solid rgba(216, 182, 92, .55); padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; color: #fff; }
.hero h1 { font-family: var(--heading-font); font-weight: 800; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.12; margin: 1rem 0 .9rem; color: #fff; max-width: 21ch; }
.hero p.lede { font-size: 1.15rem; color: #fff; max-width: 38rem; }
.quick-track { background: rgba(255, 255, 255, .98); color: var(--ink); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--amber); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.quick-track h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.quick-track .form-control { text-transform: uppercase; letter-spacing: .04em; }

/* Sections and cards */
.section { margin-top: 3rem; }
.section-title { font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .35rem; }
.card-lite { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; box-shadow: var(--shadow); }
.card-lite h2, .card-lite h3 { font-size: 1.15rem; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.service-tile { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; min-height: 128px; }
.service-tile:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--ink); }
.service-tile .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--teal-soft); color: var(--teal-dark); }
.service-tile strong { font-size: 1rem; }
.service-tile span.small { color: var(--muted); line-height: 1.35; }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.promise > div { background: var(--surface); padding: 1.25rem; }
.promise .big { font-size: 1.75rem; font-weight: 800; color: var(--teal-dark); line-height: 1.1; }
.promise .what { font-weight: 600; margin-top: .25rem; }
.promise .note { color: var(--muted); font-size: .9rem; }
.step-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step-list li { counter-increment: s; position: relative; padding-left: 2.8rem; margin-bottom: 1.1rem; }
.step-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1rem; color: var(--muted); }
.ai-cta { display: flex; gap: 1rem; align-items: center; background: linear-gradient(135deg, #fbf7ec, #fff); border: 1px solid #e6d3a0; border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.ai-cta .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--navy-2); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: none; }

/* Buttons */
.btn { min-height: 44px; padding-left: 1.15rem; padding-right: 1.15rem; font-weight: 600; border-radius: 10px; }
.btn-lg { min-height: 52px; }
.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-dark); --bs-btn-hover-border-color: var(--teal-dark); --bs-btn-active-bg: var(--teal-dark); --bs-btn-disabled-bg: var(--teal); }
.btn-outline-primary { --bs-btn-color: var(--teal-dark); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal); --bs-btn-hover-border-color: var(--teal); }
.btn-amber { background: var(--amber); color: #0d2f3f; border-color: var(--amber); }
.btn-amber:hover { background: #e2c77f; color: #0d2f3f; border-color: #e2c77f; }

/* Forms */
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .35rem; }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.form-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.form-step::after { content: ""; display: table; clear: both; }
.form-step > legend + * { clear: both; }
.form-step > legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; padding: 0; }
.form-step > legend .num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex: none; }
.form-step > legend { flex-wrap: wrap; }
.form-step > legend .opt { font-weight: 400; font-size: .95rem; color: var(--muted); }
@media (max-width: 575.98px) { .form-step > legend .opt { flex-basis: 100%; padding-left: 2.7rem; margin-top: -.5rem; } }
.form-label { font-weight: 600; margin-bottom: .25rem; }
.hint { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.form-control, .form-select { min-height: 48px; border-color: #8a96a8; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--teal); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 600; margin: .3rem 0 0; font-size: .95rem; }
.error-summary { border: 3px solid var(--error); background: #fff; padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 12px; }
.error-summary h2 { color: var(--error); }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.mode-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (min-width: 768px) { .mode-tiles { grid-template-columns: repeat(7, 1fr); } }
.mode-tiles input { position: absolute; opacity: 0; pointer-events: none; }
.mode-tiles label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; min-height: 88px; padding: .6rem .3rem; line-height: 1.2; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; }
.mode-tiles label i { font-size: 1.5rem; color: var(--teal-dark); }
.mode-tiles input:checked + label { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.mode-tiles input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.privacy-box { background: var(--teal-soft); border-radius: 12px; padding: 1rem 1.1rem; }
.form-check-input { width: 1.5em; height: 1.5em; min-width: 24px; min-height: 24px; margin-top: .1em; border-color: #6b7686; }
.form-check-label { padding-left: .3rem; }

/* Success + tracking */
.panel-success { background: #fff; border: 1px solid #b9e3cb; border-top: 6px solid var(--ok); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.panel-success .tick { width: 64px; height: 64px; border-radius: 50%; background: #e8f5ee; color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.ref-box { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; letter-spacing: .08em; background: var(--page); border: 2px dashed var(--ok); border-radius: 12px; padding: .5rem 1.2rem; display: inline-block; font-variant-numeric: tabular-nums; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; font-weight: 700; background: var(--teal-soft); color: var(--teal-dark); }
.stepper { list-style: none; display: flex; padding: 0; margin: 1.25rem 0 1.5rem; counter-reset: st; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 2.4rem; }
.stepper li::before { content: ""; position: absolute; top: 12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.stepper li:first-child::after { display: none; }
.stepper li.done::before { background: var(--teal); border-color: var(--teal); }
.stepper li.done::after, .stepper li.now::after { background: var(--teal); }
.stepper li.now::before { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(31, 112, 152, .18); }
.stepper li.now, .stepper li.done { color: var(--ink); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.2rem 1.3rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .4rem; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); border: 3px solid var(--page); }
.timeline .when { color: var(--muted); font-size: .88rem; }
.timeline .who { font-weight: 600; }
.timeline .msg { white-space: pre-line; margin: .25rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.rating { display: flex; gap: .5rem; flex-wrap: wrap; }
.rating input { position: absolute; opacity: 0; }
.rating label { min-width: 56px; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 2px solid #8a96a8; border-radius: 10px; cursor: pointer; font-weight: 700; background: #fff; }
.rating input:checked + label { background: var(--teal); color: #fff; border-color: var(--teal); }
.rating input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Footer */
.site-footer { background: #1f7098; color: #fff; border-top: 4px solid var(--amber); }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 700; }
.site-footer .brand-foot { display: flex; align-items: center; gap: .6rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); color: #fff; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { .service-tile { transition: none; } }

/* Other ways to complain (WhatsApp / USSD / phone) */
.channel-tile { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--bs-border-color); border-radius: .9rem; background: var(--bs-body-bg); color: inherit; text-decoration: none; height: 100%; transition: border-color .15s, box-shadow .15s; }
.channel-tile:hover, .channel-tile:focus-visible { border-color: var(--bs-primary); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.channel-tile .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(31,112,152,.1); color: var(--bs-primary); }
.channel-tile .ico-wa { background: rgba(37,211,102,.14); color: #128c7e; }

/* Keep the floating assistant button from covering the last lines on phones */
@media (max-width: 575.98px) { .site-footer { padding-bottom: 76px; } }

/* Fluid layout (2026-10-15): spacing and panels shrink with the screen; long words never push the page sideways. */
.form-panel, .form-step, .card-lite, .panel-success { padding: clamp(1rem, .7rem + 1.2vw, 1.75rem); }
main { padding: clamp(1.25rem, .8rem + 2vw, 2.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero { margin-top: calc(-1 * clamp(1.25rem, .8rem + 2vw, 2.5rem)); padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero p.lede { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); }
img, svg, video { max-width: 100%; }
p, li, dd, .timeline .msg, .ref-box { overflow-wrap: anywhere; }
.stepper li { font-size: clamp(.75rem, .7rem + .25vw, .88rem); }
@media (max-width: 380px) { .stepper li { padding-top: 2.2rem; } .mode-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1600px) { .container { max-width: 1440px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ── LAMATA brand details (2026-10-15) ───────────────────────────── */
.section-title, .page-head h1, .card-lite h2, .card-lite h3, .form-step > legend, .quick-track h2, .site-footer h2 { font-family: var(--heading-font); }
.section-title { color: var(--navy-2); }
.section-title::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--amber); margin-bottom: .6rem; }
.site-footer h2 { color: #fff; padding-left: .6rem; border-left: 3px solid var(--amber); }
.site-footer .bi { color: #fff; }
.site-footer a { color: #fff; }
.site-footer .legal { background: #17516e; color: #fff; }
.form-step > legend .num { background: var(--navy-2); box-shadow: 0 0 0 3px rgba(216, 182, 92, .55); }
.step-list li::before { background: var(--navy-2); box-shadow: 0 0 0 3px rgba(216, 182, 92, .5); }
.promise .big { color: var(--teal-dark); font-family: var(--heading-font); }
.service-tile:hover { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.service-tile .ico { background: var(--teal-soft); color: var(--teal); }
.status-pill { background: var(--teal-soft); color: var(--teal-dark); }
.ai-cta .ico { background: var(--navy-2); color: var(--amber); }
.mode-tiles label i { color: var(--teal); }
.brand img { border-radius: 50%; }
@media (max-width: 767px) { .site-header .container { min-height: 60px; } }
