/* UPR & SR online - public site and admin. Navy = same colour as the printed documents of the office. */
:root {
  --navy: #1e2963; --navy-2: #2d3a8c; --ink: #0f172a; --muted: #5b6577; --line: #e2e6ef; --bg: #f5f7fb; --card: #fff;
  --green: #15803d; --green-bg: #e9f7ef; --red: #c8102e; --red-bg: #fdecef; --amber: #b45309; --amber-bg: #fff6e5;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }

/* ---------------------------------------------------------------- header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; flex-direction: column; gap: 3px; width: 34px; }
.brand-mark span { height: 6px; border-radius: 3px; background: var(--navy); }
.brand-mark span:nth-child(2) { background: var(--green); width: 78%; }
.brand-mark span:nth-child(3) { background: var(--red); width: 56%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.brand-text small { font-size: .74rem; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.on { color: var(--navy); background: #eef1fb; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: 5px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang a.on { background: var(--navy); color: #fff; }
.lang a:hover { text-decoration: none; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .08s, box-shadow .2s, background .2s; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(30, 41, 99, .25); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: #cfd6ea; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { background: var(--red); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; background: linear-gradient(100deg, rgba(14, 20, 56, .94) 0%, rgba(20, 30, 80, .82) 45%, rgba(20, 30, 80, .25) 100%), var(--hero) center / cover no-repeat, linear-gradient(120deg, #1e2963, #15803d); }
.hero-in { padding: 96px 20px 112px; }
.hero-copy { max-width: 640px; }
.hero .lead { color: #dfe5ff; }
.hero h1 { color: #fff; }
.pill { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero-next { margin-top: 18px; color: #b7f0cb; font-weight: 600; font-size: .95rem; }

.steps-band { margin-top: -56px; position: relative; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef1fb; color: var(--navy); font-weight: 800; margin-bottom: 10px; }

.section { padding: 64px 20px; }
.section-head { margin-bottom: 26px; }
.services { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 14px; }
.service { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; border: 1px solid transparent; }
.service:hover { text-decoration: none; }
.service-on { grid-row: span 2; border-color: #cfd6ea; }
.service-on:hover { border-color: var(--navy); }
.service-img { height: 220px; background: var(--img) center / cover no-repeat, linear-gradient(120deg, #1e2963, #15803d); }
.service-body { padding: 20px; }
.service-body p { color: var(--muted); font-size: .94rem; margin: 0 0 10px; }
.service .link { font-weight: 700; color: var(--navy); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef0f5; color: var(--muted); margin-bottom: 10px; }
.tag-green { background: var(--green-bg); color: var(--green); }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 20px; }
.split-img { min-height: 340px; border-radius: 18px; background: var(--img) center / cover no-repeat, linear-gradient(120deg, #1e2963, #15803d); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.checks li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.note { background: var(--amber-bg); color: var(--amber); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- form */
.page-head { background: linear-gradient(120deg, #1e2963, #2d3a8c); color: #fff; padding: 46px 0 70px; }
.page-head .lead { color: #d9e0ff; }
.form-wrap { margin-top: -40px; padding-bottom: 60px; position: relative; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 16px; border: 0; }
fieldset.card { min-width: 0; }
legend { font-weight: 800; font-size: 1.2rem; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
legend + * { clear: both; }
.step { display: none; }
.step.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px; margin: 0 0 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); counter-reset: s; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; padding: 6px; border-radius: 10px; }
.progress li span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef0f5; font-weight: 800; }
.progress li.on { color: var(--navy); background: #eef1fb; }
.progress li.on span { background: var(--navy); color: #fff; }
.progress li.done { color: var(--green); cursor: pointer; }
.progress li.done span { background: var(--green); color: #fff; }
.grid { display: grid; gap: 14px 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.f > span, .lbl { font-size: .84rem; font-weight: 600; color: #3b4458; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #cfd6e4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus { outline: 3px solid rgba(45, 58, 140, .18); border-color: var(--navy-2); }
.has-err input, .has-err select, .has-err .chips, .has-err.cal { border-color: var(--red); }
.ferr { color: var(--red); font-size: .82rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; border: 1px solid transparent; border-radius: 10px; }
.chip input { display: none; }
.chip span { display: inline-grid; place-items: center; min-width: 56px; padding: 9px 14px; border: 1px solid #cfd6e4; border-radius: 10px; font-weight: 800; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px; border: 1px dashed #b9c3da; border-radius: 12px; background: #fafbfe; }
.upload > div { flex: 1 1 260px; }
.upload p { margin: 4px 0 0; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.alert-err { background: var(--red-bg); color: var(--red); }
.alert-ok { background: var(--green-bg); color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-weight: 500; }
.consent input { width: auto; margin-top: 4px; }
.summary, .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.summary div, .sheet-grid div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.summary small, .sheet-grid small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.summary b, .sheet-grid b { font-size: 1rem; }

/* ---------------------------------------------------------------- calendar */
.cal { border: 1px solid var(--line); border-radius: 14px; padding: 14px; max-width: 560px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { text-transform: capitalize; font-size: 1.05rem; }
.cal-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { height: 58px; border-radius: 10px; border: 1px solid transparent; background: #f3f4f7; color: #a0a7b5; display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; padding: 0; }
.cal-day span { font-weight: 700; }
.cal-day small { font-size: .66rem; font-weight: 600; }
.cal-day.open { background: var(--green-bg); color: var(--green); border-color: #bfe6cf; cursor: pointer; }
.cal-day.few { background: var(--amber-bg); color: var(--amber); border-color: #f7d9a6; cursor: pointer; }
.cal-day.full { background: var(--red-bg); color: #d8a1ab; }
.cal-day.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-day.open:hover, .cal-day.few:hover { border-color: var(--navy); }
.cal-loading { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--muted); }
.cal-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-left: 8px; }
.lg-open { background: #bfe6cf; } .lg-few { background: #f7d9a6; } .lg-full { background: #f3c2cb; }
.chosen { font-size: 1.05rem; margin: 12px 0 0; color: var(--muted); }
.chosen.on { color: var(--green); }

/* ---------------------------------------------------------------- confirmation sheet */
.success { display: flex; gap: 18px; align-items: center; background: var(--green-bg); color: #0f5132; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; }
.success h1 { font-size: 1.5rem; margin: 0; color: var(--green); }
.success p { margin: 4px 0 0; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; flex: none; }
.sheet { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border-top: 6px solid var(--navy); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.sheet-head h2 { margin: 12px 0 0; font-size: 1.35rem; }
.sheet-status { font-weight: 800; padding: 6px 14px; border-radius: 999px; background: #eef1fb; color: var(--navy); }
.status-cancelled, .status-noshow { background: var(--red-bg); color: var(--red); }
.status-processed { background: var(--green-bg); color: var(--green); }
.sheet-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.sheet-ref, .sheet-appt { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.sheet-ref small, .sheet-appt small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.ref { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: .04em; margin: 2px 0 8px; }
.barcode { display: block; max-width: 100%; height: auto; margin-bottom: 6px; }
.appt-day { font-size: 1.45rem; font-weight: 800; color: var(--green); margin: 4px 0 8px; text-transform: capitalize; }
.sheet-docs { margin-top: 20px; }
.sheet-foot { margin-top: 18px; font-size: .8rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.manage-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timeline li { position: relative; padding-top: 22px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.timeline li span { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #dfe3ec; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 16px; right: 4px; height: 2px; background: #dfe3ec; }
.timeline li:last-child::before { display: none; }
.timeline li.done { color: var(--green); }
.timeline li.done span, .timeline li.done::before { background: var(--green); }
.f-btn { justify-content: flex-end; }

/* ---------------------------------------------------------------- footer */
.foot { background: #0f1638; color: #c9d0ea; margin-top: 40px; }
.foot a { color: #fff; }
.foot h4 { color: #fff; margin: 0 0 10px; }
.foot .muted { color: #8f99bf; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 48px 20px 26px; }
.foot-brand .brand-text strong { color: #fff; }
.foot-brand .brand-mark span:first-child { background: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 20px 26px; font-size: .84rem; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .service-on { grid-column: span 2; grid-row: auto; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split-rev .split-img { order: -1; }
  .g3, .summary, .sheet-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .burger { display: block; margin-left: 4px; }
  .lang { margin-left: auto; }
  .hero-in { padding: 60px 16px 90px; }
  .steps4, .services, .g2, .g3, .summary, .sheet-grid, .sheet-main { grid-template-columns: 1fr; }
  .service-on { grid-column: auto; }
  .progress { grid-template-columns: repeat(5, 1fr); padding: 8px; }
  .progress li em { display: none; }
  .progress li { justify-content: center; }
  .card, .sheet { padding: 18px; }
  .cal-day { height: 48px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 16px; }
}

/* ---------------------------------------------------------------- printing the confirmation */
@media print {
  .topbar, .foot, .no-print, .actions { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .sheet { box-shadow: none; border: 1px solid #999; border-top: 6px solid #000; }
  .appt-day { color: #000; }
}
