/* Paediatric Pain Management — FeelPrepared style (matches the homepage and labour section) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --nhs-blue: #005EB8;
  --nhs-blue-soft: #4A9FD4;
  --nhs-blue-light: #D5E8F5;
  --nhs-blue-pale: #EBF4FB;
  --nhs-charcoal: #2C3E50;
  --nhs-charcoal-mid: #4A5568;
  --nhs-grey2: #768692;
  --nhs-grey4: #D8DDE0;
  --nhs-grey5: #F8FAFB;
  --nhs-red: #A02020;
  --nhs-red-pale: #FCF1F1;
}
body { font-family: 'DM Sans', sans-serif; color: var(--nhs-charcoal); background: var(--nhs-grey5); min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }

/* Header */
.fp-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 1.75rem; background: var(--nhs-blue); height: 76px; }
.fp-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 500; color: white; text-decoration: none; }
.fp-logo img { height: 46px; width: 46px; border-radius: 50%; display: block; }
.fp-logo .fp-logo-text { color: white; }
.fp-logo .fp-logo-text span { color: #9BD4F5; }
.fp-header-btn {
  font-size: 15px; color: white; opacity: 0.85; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.35); padding: 6px 14px; border-radius: 4px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.15s, background 0.15s;
}
.fp-header-btn:hover { opacity: 1; background: rgba(255,255,255,0.12); }

/* Hero */
.hero { background: var(--nhs-blue-pale); border-bottom: 1px solid var(--nhs-blue-light); padding: 2.25rem 1.75rem 2rem; text-align: center; }
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-logo { display: block; width: 150px; height: 150px; margin: 0 auto 1rem; }
.hero-tag { display: block; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--nhs-blue-soft); margin-bottom: 0.5rem; }
.hero h1 { font-size: 34px; font-weight: 500; line-height: 1.25; color: var(--nhs-charcoal); margin-bottom: 0.6rem; }
.hero p { font-size: 17px; color: var(--nhs-charcoal-mid); line-height: 1.55; }

/* Main */
main { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.section-label { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--nhs-grey2); padding: 0 0.25rem 0.6rem; }
strong { font-weight: 500; color: var(--nhs-charcoal); }

/* Start page: two choice cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
a.card {
  display: flex; flex-direction: column; gap: 8px; padding: 1.4rem 1.4rem 1.25rem;
  background: white; border: 1px solid var(--nhs-grey4); border-left: 4px solid var(--nhs-blue); border-radius: 4px;
  text-decoration: none; color: inherit; transition: background 0.15s, border-color 0.15s;
}
a.card:hover, a.card:focus-visible { background: var(--nhs-blue-pale); border-color: var(--nhs-blue-soft); border-left-color: var(--nhs-blue); }
.card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--nhs-blue-pale); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 22px; height: 22px; color: var(--nhs-blue); }
a.card h2 { font-size: 21px; font-weight: 500; color: var(--nhs-blue); }
a.card p { font-size: 15px; color: var(--nhs-charcoal-mid); line-height: 1.5; flex: 1; }
.card-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--nhs-blue); margin-top: 4px; }
.card-arrow svg { width: 16px; height: 16px; transition: transform 0.15s; }
a.card:hover .card-arrow svg { transform: translateX(3px); }

/* Content cards */
div.card { background: white; border: 1px solid var(--nhs-grey4); border-radius: 4px; padding: 1.5rem 1.5rem; margin-bottom: 1rem; }
div.card h2 { font-size: 22px; font-weight: 500; color: var(--nhs-charcoal); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--nhs-grey4); }
div.card p { font-size: 16px; color: var(--nhs-charcoal-mid); line-height: 1.7; margin-bottom: 0.85rem; }
div.card a:not(.leaflet-btn) { color: var(--nhs-blue); }

.section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--nhs-grey4); }
.section h3 { font-size: 17px; font-weight: 500; color: var(--nhs-blue); margin-bottom: 0.5rem; }
.section ul { list-style: none; margin: 0.5rem 0 0.85rem; }
.section ul li { font-size: 16px; color: var(--nhs-charcoal-mid); line-height: 1.6; padding: 5px 0 5px 20px; position: relative; }
.section ul li::before { content: ""; position: absolute; left: 4px; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--nhs-blue); }

/* Alerts */
.alert { border-radius: 4px; padding: 0.9rem 1.1rem; margin: 1rem 0; font-size: 15.5px; line-height: 1.6; color: var(--nhs-charcoal); }
.alert-blue { background: var(--nhs-blue-pale); border-left: 4px solid var(--nhs-blue); }
.alert-blue strong { color: var(--nhs-blue); }
.alert-red { background: var(--nhs-red-pale); border-left: 4px solid var(--nhs-red); }
.alert-red strong { color: var(--nhs-red); }
.alert ul { list-style: none; margin-top: 6px; }
.alert ul li { padding: 3px 0 3px 18px; position: relative; color: var(--nhs-charcoal-mid); }
.alert ul li::before { content: ""; position: absolute; left: 3px; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--nhs-blue); }

/* Contact */
.contact-box { background: var(--nhs-blue-pale); border-radius: 4px; padding: 0.9rem 1.1rem; margin-top: 0.5rem; }
.contact-box a { font-size: 16px; font-weight: 500; color: var(--nhs-blue); text-decoration: none; overflow-wrap: anywhere; }
.contact-box a:hover { text-decoration: underline; }

/* Leaflet links */
.leaflet-btn {
  display: flex; align-items: flex-start; gap: 12px; padding: 0.85rem 1rem; margin-bottom: 8px;
  background: white; border: 1px solid var(--nhs-grey4); border-radius: 4px; text-decoration: none; color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.leaflet-btn:hover { background: var(--nhs-blue-pale); border-color: var(--nhs-blue-soft); }
.leaflet-btn svg { width: 20px; height: 20px; color: var(--nhs-blue); flex-shrink: 0; margin-top: 2px; }
.leaflet-btn div { display: flex; flex-direction: column; gap: 2px; }
.leaflet-btn strong { font-size: 15.5px; color: var(--nhs-blue); }
.leaflet-btn span { font-size: 13.5px; color: var(--nhs-grey2); line-height: 1.4; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 1rem; }
.team-card { background: var(--nhs-grey5); border: 1px solid var(--nhs-grey4); border-radius: 4px; padding: 1rem 0.75rem; text-align: center; }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--nhs-blue-pale); margin: 0 auto 0.65rem; display: flex; align-items: center; justify-content: center; }
.team-avatar svg { width: 28px; height: 28px; color: var(--nhs-blue-soft); }
.team-name { font-size: 15px; font-weight: 500; color: var(--nhs-charcoal); margin-bottom: 3px; line-height: 1.3; }
.team-role { font-size: 13px; color: var(--nhs-grey2); line-height: 1.4; }
.team-card.placeholder .team-name { color: var(--nhs-grey2); font-style: italic; font-weight: 400; }

/* Numbered list */
.numbered-list { list-style: none; margin-top: 0.75rem; }
.numbered-list li { display: flex; align-items: flex-start; gap: 12px; padding: 0.6rem 0; border-bottom: 1px solid var(--nhs-grey4); font-size: 16px; color: var(--nhs-charcoal-mid); line-height: 1.6; }
.numbered-list li:last-child { border-bottom: none; }
.numbered-list .num { background: var(--nhs-blue-pale); color: var(--nhs-blue); font-weight: 500; font-size: 13px; min-width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* Disclaimer page */
.disclaimer-section { margin-bottom: 1.75rem; }
.disclaimer-section h2 { font-size: 22px; font-weight: 500; margin-bottom: 0.6rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--nhs-grey4); }
.disclaimer-section p { font-size: 17px; line-height: 1.75; color: var(--nhs-charcoal-mid); margin-bottom: 0.75rem; }
.disclaimer-section a { color: var(--nhs-blue); }

/* Passcode screen */
.passcode-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--nhs-grey5); display: flex; flex-direction: column; }
.passcode-overlay .passcode-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.25rem; }
.passcode-box { background: white; border: 1px solid var(--nhs-grey4); border-top: 4px solid var(--nhs-blue); border-radius: 4px; padding: 1.75rem 1.5rem; width: 100%; max-width: 420px; }
.passcode-box h2 { font-size: 22px; font-weight: 500; margin-bottom: 0.4rem; }
.passcode-box p { font-size: 15px; color: var(--nhs-charcoal-mid); line-height: 1.55; margin-bottom: 1rem; }
.passcode-wrap { position: relative; display: grid; margin-bottom: 0.6rem; }
.passcode-input { width: 100%; min-width: 0; font: inherit; font-size: 17px; padding: 11px 76px 11px 12px; border: 1px solid var(--nhs-grey4); border-radius: 4px; color: var(--nhs-charcoal); background: white; }
.passcode-input:focus { outline: 2px solid var(--nhs-blue-soft); outline-offset: 1px; border-color: var(--nhs-blue); }
.passcode-input.error { border-color: #C0392B; background: #FEF4F2; }
.passcode-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); font: inherit; font-size: 14px; padding: 5px 12px; background: white; color: var(--nhs-blue); border: 1px solid var(--nhs-grey4); border-radius: 4px; cursor: pointer; }
.passcode-toggle:hover { border-color: var(--nhs-blue); }
.passcode-error { display: none; font-size: 14px; color: #C0392B; margin-bottom: 0.6rem; }
.passcode-error.show { display: block; }
.passcode-btn { width: 100%; font: inherit; font-size: 17px; font-weight: 500; padding: 11px; background: var(--nhs-blue); color: white; border: none; border-radius: 4px; cursor: pointer; }
.passcode-btn:hover { background: #004a93; }

/* Footer */
footer { background: white; border-top: 1px solid var(--nhs-grey4); padding: 1rem 1.75rem; text-align: center; font-size: 13px; color: var(--nhs-grey2); line-height: 1.6; }
footer strong { color: var(--nhs-charcoal-mid); }
footer a { color: var(--nhs-blue); text-decoration: none; overflow-wrap: anywhere; }
footer a:hover { text-decoration: underline; }
footer .fp-note { font-size: 12px; margin-top: 0.4rem; }

@media (max-width: 640px) {
  .fp-header { padding: 0 0.85rem; height: 64px; }
  .fp-logo { font-size: 21px; gap: 6px; }
  .fp-logo img { height: 30px; width: 30px; }
  .fp-header-btn { font-size: 12px; padding: 5px 9px; gap: 4px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-logo { width: 120px; height: 120px; }
  .cards { grid-template-columns: 1fr; }
  div.card { padding: 1.2rem 1.1rem; }
}
