@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Indivisible Font */
@font-face {
  font-family: 'Indivisible';
  src: url('../webfonts/fonnts.com-Indivisible_SemiBold.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i,
center, dl, dt, dd, ol, ul, li, fieldset, form,
label, legend, table, caption, tbody, tfoot, thead,
tr, th, td, article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, menu,
nav, output, ruby, section, summary, time, mark,
audio, video {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body           { line-height: 1; }
ol, ul         { list-style: none; }
blockquote, q  { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
body { -webkit-text-size-adjust: none; }
mark { background-color: transparent; color: inherit; }
input::-moz-focus-inner { border: 0; padding: 0; }
input, select, textarea {
  -moz-appearance: none; -webkit-appearance: none;
  -ms-appearance: none; appearance: none;
}

/* ═══════════════════════════════════════════════════════════════
   BASIC / BOX MODEL
═══════════════════════════════════════════════════════════════ */
@-ms-viewport { width: device-width; }
body { -ms-overflow-style: scrollbar; }
@media screen and (max-width: 480px) { html, body { min-width: 320px; } }
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND — easily customisable via CSS variables
═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Side background ──────────────────────────────────────
     Change --bg-color  : RGB values of gutter colour
     Change --bg-opacity: 0 (transparent) → 1 (solid)
     Or swap background-color for background-image on html/body
  ─────────────────────────────────────────────────────────── */
  --bg-color:   255, 255, 255;   /* white  */
  --bg-opacity: 1;
}

html, body {
  background-color: rgba(var(--bg-color), var(--bg-opacity));
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after,
body.is-resizing *, body.is-resizing *:before, body.is-resizing *:after {
  -moz-animation: none !important; -webkit-animation: none !important;
  -ms-animation: none !important; animation: none !important;
  -moz-transition: none !important; -webkit-transition: none !important;
  -ms-transition: none !important; transition: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
body, input, select, textarea {
  color: #7f888f;
  font-family: "Open Sans", sans-serif;
  font-size: 13pt;
  font-weight: 400;
  line-height: 1.65;
}
@media screen and (max-width: 1680px) { body, input, select, textarea { font-size: 11pt; } }
@media screen and (max-width: 1280px) { body, input, select, textarea { font-size: 10pt; } }
@media screen and (max-width:  360px) { body, input, select, textarea { font-size: 9pt; } }

a {
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: #48acc6;
  text-decoration: none;
}
a:hover { border-bottom-color: #48acc6; color: #48acc6 !important; }
a:hover strong { color: inherit; }

strong, b { color: #3d4449; font-weight: 600; }
em, i      { font-style: italic; }
p          { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
  color: #3d4449;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1em 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit; text-decoration: none; border-bottom: 0;
}

h1 { font-size: 4em;    margin: 0 0 0.5em 0; line-height: 1.3; font-weight: 700 !important; color: #051b27 !important; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em;  }
h5 { font-size: 0.9em;  }
h6 { font-size: 0.7em;  }

@media screen and (max-width: 1680px) { h1 { font-size: 3.5em; } }
@media screen and (max-width:  980px) { h1 { font-size: 3.25em; } }
@media screen and (max-width:  736px) {
  h1 { font-size: 2em; line-height: 1.4; }
  h2 { font-size: 1.5em; }
}

sub { font-size: 0.8em; position: relative; top:  0.5em; }
sup { font-size: 0.8em; position: relative; top: -0.5em; }

blockquote {
  border-left: solid 3px rgba(210,215,217,0.75);
  font-style: italic;
  margin: 0 0 2em 0;
  padding: 0.5em 0 0.5em 2em;
}
code {
  background: rgba(230,235,237,0.25);
  border-radius: 0.375em;
  border: solid 1px rgba(210,215,217,0.75);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}
pre {
  -webkit-overflow-scrolling: touch;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0 2em 0;
}
pre code { display: block; line-height: 1.75; padding: 1em 1.5em; overflow-x: auto; }

hr { border: 0; border-bottom: solid 1px rgba(210,215,217,0.75); margin: 2em 0; }
hr.major { margin: 3em 0; }

.align-left   { text-align: left; }
.align-center { text-align: center; }
.align-right  { text-align: right; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS (shared across all pages)
═══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2em;
}
.section-header::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: #48acc6;
  flex-shrink: 0;
}
.section-header h2 {
  margin: 0;
  font-size: 2em;
  line-height: 1.2;
  font-weight: 800;
  color: #48acc6;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN CONTENT WRAPPER
═══════════════════════════════════════════════════════════════ */
.modern-content {
  max-width: 900px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════ */
form { margin: 0 0 2em 0; }
label { color: #3d4449; display: block; font-size: 0.9em; font-weight: 600; margin: 0 0 1em 0; }

input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="search"], input[type="url"],
select, textarea {
  -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
  background: #ffffff;
  border-radius: 0.375em;
  border: solid 1px rgba(210,215,217,0.75);
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 1em;
  text-decoration: none;
  width: 100%;
}
input[type="text"]:invalid, input[type="password"]:invalid,
input[type="email"]:invalid, input[type="tel"]:invalid,
input[type="search"]:invalid, input[type="url"]:invalid,
select:invalid, textarea:invalid { box-shadow: none; }

input[type="text"]:focus, input[type="password"]:focus,
input[type="email"]:focus, input[type="tel"]:focus,
input[type="search"]:focus, input[type="url"]:focus,
select:focus, textarea:focus {
  border-color: #48acc6;
  box-shadow: 0 0 0 1px #48acc6;
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='rgba(210, 215, 217, 0.75)' /%3E%3C/svg%3E");
  background-size: 1.25em;
  background-repeat: no-repeat;
  background-position: calc(100% - 1em) center;
  height: 2.75em;
  padding-right: 2.75em;
  text-overflow: ellipsis;
}
select option { color: #3d4449; background: #ffffff; }
select:focus::-ms-value { background-color: transparent; }
select::-ms-expand { display: none; }

input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="search"], input[type="url"], select { height: 2.75em; }
textarea { padding: 0.75em 1em; }

input[type="checkbox"], input[type="radio"] {
  -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
  display: block; float: left; margin-right: -2em;
  opacity: 0; width: 1em; z-index: -1;
}
input[type="checkbox"] + label, input[type="radio"] + label {
  text-decoration: none; color: #7f888f; cursor: pointer;
  display: inline-block; font-size: 1em; font-weight: 400;
  padding-left: 2.4em; padding-right: 0.75em; position: relative;
}
input[type="checkbox"] + label:before, input[type="radio"] + label:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 900;
  background: #ffffff; border-radius: 0.375em;
  border: solid 1px rgba(210,215,217,0.75); content: '';
  font-size: 0.8em; height: 2.0625em; left: 0; line-height: 2.0625em;
  position: absolute; text-align: center; top: 0; width: 2.0625em;
}
input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked  + label:before {
  background: #3d4449; border-color: #3d4449; color: #ffffff; content: '\f00c';
}
input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus    + label:before {
  border-color: #48acc6; box-shadow: 0 0 0 1px #48acc6;
}
input[type="checkbox"] + label:before { border-radius: 0.375em; }
input[type="radio"]    + label:before { border-radius: 100%; }

::-webkit-input-placeholder { color: #9fa3a6 !important; opacity: 1.0; }
:-moz-placeholder           { color: #9fa3a6 !important; opacity: 1.0; }
::-moz-placeholder          { color: #9fa3a6 !important; opacity: 1.0; }
:-ms-input-placeholder      { color: #9fa3a6 !important; opacity: 1.0; }

/* ═══════════════════════════════════════════════════════════════
   BUTTON (base)
═══════════════════════════════════════════════════════════════ */
input[type="submit"], input[type="reset"], input[type="button"],
button, .button {
  -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  background-color: transparent;
  border-radius: 0.375em;
  border: 0;
  box-shadow: inset 0 0 0 2px #48acc6;
  color: #48acc6 !important;
  cursor: pointer;
  display: inline-block;
  font-family: "Indivisible", sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  height: 3.5em;
  letter-spacing: 0.075em;
  line-height: 3.5em;
  padding: 0 2.25em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
input[type="submit"]:hover, input[type="reset"]:hover,
input[type="button"]:hover, button:hover, .button:hover {
  background-color: rgba(245,106,106,0.05);
}
input[type="submit"]:active, input[type="reset"]:active,
input[type="button"]:active, button:active, .button:active {
  background-color: rgba(245,106,106,0.15);
}
.button.primary {
  background-color: #48acc6; box-shadow: none; color: #ffffff !important;
}
.button.primary:hover, .button.primary:active { background-color: #48acc6; }
.button.disabled, .button:disabled,
button.disabled, button:disabled { pointer-events: none; opacity: 0.25; }

/* CTA buttons used across pages */
.primary-btn, .secondary-btn {
  display: inline-block;
  padding: 0.9em 1.6em;
  border-radius: 0.5em;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  text-decoration: none;
  transition: all 0.2s ease;
}
.primary-btn {
  background: #48acc6; color: #ffffff !important;
  border: 2px solid #48acc6; border-bottom: 2px solid #48acc6;
}
.primary-btn:hover { opacity: 0.88; transform: translateY(-2px); }

.secondary-btn {
  background: transparent; color: #48acc6 !important;
  border: 2px solid rgba(72,172,198,0.4); border-bottom: 2px solid rgba(72,172,198,0.4);
}
.secondary-btn:hover {
  background: rgba(72,172,198,0.08);
  border-color: #48acc6; border-bottom-color: #48acc6;
  transform: translateY(-2px);
}

/* Form action buttons */
.submit-btn {
  background: #48acc6;
  color: #ffffff !important;
  border: none; box-shadow: none;
  border-radius: 0.5em;
  font-weight: 700;
  padding: 0 2em;
  height: 3em; line-height: 3em;
  cursor: pointer;
  font-family: "Indivisible", sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  display: inline-block;
}
.submit-btn:hover { opacity: 0.88; background: #48acc6 !important; }

.reset-link {
  background: transparent; color: #aab0b7 !important;
  border: none; box-shadow: none;
  font-size: 0.85em; cursor: pointer;
  font-family: "Open Sans", sans-serif;
  padding: 0; height: auto; line-height: inherit;
  text-transform: none; letter-spacing: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.reset-link:hover { color: #7f888f !important; background: transparent !important; }

.form-actions { display: flex; align-items: center; gap: 1.5em; }

.form-success {
  display: none;
  background: rgba(72,172,198,0.08);
  border: 1.5px solid rgba(72,172,198,0.3);
  border-radius: 0.5em;
  padding: 1.25em 1.5em;
  color: #3d4449;
  align-items: center;
  gap: 0.75em;
}
.form-success.show { display: flex; }
.form-success i    { font-size: 1.5em; flex-shrink: 0; color: #48acc6; }
.form-success p    { margin: 0; color: #3d4449; }

/* ═══════════════════════════════════════════════════════════════
   FILTER PANEL (trials page + signup form)
═══════════════════════════════════════════════════════════════ */
.filter-panel {
  background: #f5f6f7;
  border: 1px solid rgba(72,172,198,0.2);
  border-radius: 0.5em 0.5em 0.75em 0.75em;
  padding: 2em 2.5em 2.5em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(72,172,198,0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25em;
  align-items: start;
}
.filter-panel label {
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #051b27;
  margin-bottom: 0.5em;
}
.filter-panel select {
  background-color: #ffffff;
  border: 1.5px solid rgba(72,172,198,0.22);
  font-weight: 500;
  color: #3d4449;
}
.filter-panel select:focus {
  border-color: #48acc6;
  box-shadow: 0 0 0 3px rgba(72,172,198,0.12);
  background-color: #ffffff;
}
.filter-panel input[type="email"] {
  background-color: #ffffff;
  border: 1.5px solid rgba(72,172,198,0.22);
}

/* Signup panel overrides grid to flex column */
.signup-panel {
  display: flex !important;
  flex-direction: column;
  gap: 1.25em;
}

/* ═══════════════════════════════════════════════════════════════
   MULTISELECT TAG INPUT
═══════════════════════════════════════════════════════════════ */
.loc-opt {
  padding: 0.65em 1em;
  font-size: 0.95em;
  color: #3d4449;
  cursor: pointer;
  transition: background 0.12s ease;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.loc-opt:hover { background: rgba(72,172,198,0.07); }
.loc-opt.selected {
  background: rgba(72,172,198,0.1);
  font-weight: 600;
  color: #1a7a93;
}
.loc-opt.selected::before  { content: '✓'; font-size: 0.85em; color: #48acc6; font-weight: 700; }
.loc-opt:not(.selected)::before { content: ''; display: inline-block; width: 0.85em; }

.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: rgba(72,172,198,0.12);
  color: #1a7a93;
  border: 1px solid rgba(72,172,198,0.3);
  border-radius: 0.3em;
  padding: 0.18em 0.5em 0.18em 0.6em;
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}
.loc-tag button {
  background: none; border: none; box-shadow: none;
  color: #48acc6; cursor: pointer;
  font-size: 1em; line-height: 1; padding: 0;
  height: auto; width: auto; min-width: unset;
  opacity: 0.7; transition: opacity 0.15s ease;
}
.loc-tag button:hover { opacity: 1; background: none !important; }

#multiselect-box:focus-within {
  border-color: #48acc6;
  box-shadow: 0 0 0 3px rgba(72,172,198,0.12);
}

/* ═══════════════════════════════════════════════════════════════
   TRIAL CARDS
═══════════════════════════════════════════════════════════════ */
.trial-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 100%;
}

/* Carousel variant — cards sit inline */
.trial-carousel {
  display: flex;
  gap: 1.25em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5em;
  cursor: grab;
}
.trial-carousel::-webkit-scrollbar { display: none; }
.trial-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.trial-carousel .trial-card {
  flex: 0 0 calc(50% - 0.625em);
  min-width: 280px;
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .trial-carousel .trial-card { flex: 0 0 85%; }
}

.trial-card {
  background: #ffffff;
  border: 1px solid rgba(210,215,217,0.6);
  border-radius: 1em;
  padding: 2em;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.trial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(72,172,198,0.2);
  border-color: rgba(72,172,198,0.3);
}
.trial-card-header {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-bottom: 1em;
  border-bottom: 3px solid #ddd;
}
.trial-card-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #3d4449;
  font-weight: 600;
  line-height: 1.3;
}

/* Clinic logo */
.clinic-logo {
  width: 75px; height: 75px;
  min-width: 75px; min-height: 75px;
  border-radius: 50%;
  object-fit: cover; object-position: center;
  border: 2px solid rgba(72,172,198,0.2);
  background: #ffffff;
  flex-shrink: 0;
}

/* ── Clinic colour accents ─────────────────────────────────── */
/* Base logo rule must come FIRST so data-clinic rules override it */
.trial-card[data-clinic="Hammersmith Medicines Research"] .trial-card-header { border-bottom-color: #027f83; }
.trial-card[data-clinic="Hammersmith Medicines Research"] .clinic-logo       { border-color: #027f83; box-shadow: 0 0 0 3px rgba(2,127,131,0.1); }

.trial-card[data-clinic="Fortrea"] .trial-card-header { border-bottom-color: #0bc11a; }
.trial-card[data-clinic="Fortrea"] .clinic-logo       { border-color: #0bc11a; box-shadow: 0 0 0 3px rgba(11,193,26,0.1); }

.trial-card[data-clinic="Parexel"] .trial-card-header { border-bottom-color: #840b55; }
.trial-card[data-clinic="Parexel"] .clinic-logo       { border-color: #840b55; box-shadow: 0 0 0 3px rgba(132,11,85,0.1); }

.trial-card[data-clinic="Quotient Sciences"] .trial-card-header { border-bottom-color: #1792fc; }
.trial-card[data-clinic="Quotient Sciences"] .clinic-logo       { border-color: #1792fc; box-shadow: 0 0 0 3px rgba(23,146,252,0.1); }

.trial-card[data-clinic="Trials4Us"] .trial-card-header { border-bottom-color: #f16623; }
.trial-card[data-clinic="Trials4Us"] .clinic-logo       { border-color: #f16623; box-shadow: 0 0 0 3px rgba(241,102,35,0.1); }

.trial-card[data-clinic="MAC Clinical Research"] .trial-card-header { border-bottom-color: #122b47 !important; }
.trial-card[data-clinic="MAC Clinical Research"] .clinic-logo       { border-color: #122b47; box-shadow: 0 0 0 3px rgba(18,43,71,0.1) !important; }

.trial-card[data-clinic="Simbec Orion"] .trial-card-header { border-bottom-color: #008296 !important; }
.trial-card[data-clinic="Simbec Orion"] .clinic-logo       { border-color: #008296; box-shadow: 0 0 0 3px rgba(0,130,150,0.1) !important; }

.trial-card[data-clinic="GSK"] .trial-card-header { border-bottom-color: #ec8a1b !important; }
.trial-card[data-clinic="GSK"] .clinic-logo       { border-color: #ec8a1b; box-shadow: 0 0 0 3px rgba(236,138,27,0.1) !important; }

.trial-card[data-clinic="Celerion"] .trial-card-header { border-bottom-color: #af015a !important; }
.trial-card[data-clinic="Celerion"] .clinic-logo       { border-color: #af015a !important; box-shadow: 0 0 0 3px rgba(175,1,91,0.1) !important; }

.trial-card[data-clinic="FluCamp"] .trial-card-header { border-bottom-color: #0ace9c !important; }
.trial-card[data-clinic="FluCamp"] .clinic-logo       { border-color: #0ace9c !important; box-shadow: 0 0 0 3px rgba(10,206,156,0.1) !important; }

/* Trial meta pills */
.trial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  font-size: 0.9em;
}
.trial-meta span {
  background: rgba(72,172,198,0.1);
  color: #3d4449;
  padding: 0.5em 0.85em;
  border-radius: 0.5em;
  font-weight: 500;
}

/* Trial card body text */
.trial-card p {
  margin: 0;
  color: #696f75;
  line-height: 1.6;
  font-size: 0.95em;
}

/* Trial card CTA link */
.trial-card a {
  display: inline-block;
  margin-top: auto;
  padding: 0.85em 1.75em;
  background: #48acc6;
  color: #fff;
  text-decoration: none;
  border-radius: 0.75em;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(72,172,198,0.2);
  border-bottom: none;
}
.trial-card a:hover {
  background: #3fa0b8;
  box-shadow: 0 4px 12px rgba(72,172,198,0.3);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ CARDS
═══════════════════════════════════════════════════════════════ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 3em;
}
.faq-card {
  background: #ffffff;
  border-radius: 0.75em;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-card:hover, .faq-card.active {
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.faq-question {
  padding: 1.25em 1.5em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  user-select: none;
}
.faq-question-text {
  font-size: 1em;
  font-weight: 600;
  color: #3d4449;
  margin: 0;
}
.faq-icon {
  flex-shrink: 0;
  color: #48acc6;
  font-size: 1em;
  transition: transform 0.3s ease;
}
.faq-card.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-content {
  padding: 0 1.5em 1.25em 1.5em;
  color: #616f89;
  line-height: 1.7;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95em;
}
.faq-answer-content p { margin: 0.9em 0 0 0; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content a { color: #48acc6; border-bottom: none; }
.faq-answer-content strong { color: #616f89; }

.faq-category { margin-bottom: 3em; scroll-margin-top: 120px; }
.faq-category-title {
  font-size: 1.4em;
  color: #3d4449;
  margin: 0 0 1.25em 0;
  font-weight: 700;
  padding-left: 0.5em;
  border-left: 4px solid #48acc6;
}

/* FAQ sticky nav (FAQs page) */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
.faq-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 0;
}
.faq-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-nav ul li { padding: 0; margin: 0; }
.faq-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  color: #3d4449;
  border-bottom: none !important;
  text-decoration: none;
  display: block;
  padding: 0.3em 0;
  transition: color 0.2s ease;
}
.faq-nav a:hover, .faq-nav a.active { color: #48acc6 !important; border-bottom: none !important; }
.faq-nav a.active { font-weight: 700; }

@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; }
}
@media (min-width: 780px) {
  .faq-category { padding-left: 0; } /* remove old vw padding */
}

/* ═══════════════════════════════════════════════════════════════
   HERO CARD (FAQs page banner)
═══════════════════════════════════════════════════════════════ */
.hero-card {
  position: relative;
  border-radius: 1.5em;
  padding: 3em 4em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 30vh;
  overflow: hidden;
  background: rgba(72,173,198,0.09);
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("https://trialtrack.co.uk/images/TrialTrackLogo%20Square.png");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.05; z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }
@media screen and (max-width: 736px) { .hero-card { padding: 2em 1.75em; } }

/* ═══════════════════════════════════════════════════════════════
   WRAPPER + MAIN LAYOUT
═══════════════════════════════════════════════════════════════ */
#wrapper {
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
}

#main {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
  background: #ffffff; /* white content strip over coloured gutter */
}
#main > .inner {
  padding: 0 6em 0.1em 6em;
  margin: 0 auto;
  max-width: 140em;
  padding-top: 2em;
}
#main > .inner > section {
  padding: 6em 0 4em 0;
  border-top: none;
}
#main > .inner > section:first-of-type { border-top: 0 !important; }

@media screen and (max-width: 1680px) {
  #main > .inner { padding: 0 5em 0.1em 5em; padding-top: 2em; }
  #main > .inner > section { padding: 5em 0 3em 0; }
}
@media screen and (max-width: 1280px) {
  #main > .inner { padding: 0 4em 0.1em 4em; padding-top: 2em; }
  #main > .inner > section { padding: 4em 0 2em 0; }
}
@media screen and (max-width: 736px) {
  #main > .inner { padding: 0 2em 0.1em 2em; padding-top: 1em; }
  #main > .inner > section { padding: 3em 0 1em 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
#header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4em 0;
  border-bottom: solid 5px #48acc6;
  /* Extend teal line over coloured gutters via box-shadow */
  box-shadow:
    0 0px 0 0 #48acc6,
    -100vw 0px 0 0 #48acc6,
    100vw  0px 0 0 #48acc6;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
}

#header .site-logo {
  flex: none;
  text-align: center;
}

#header .site-logo img {
  height: 80px;
  width: auto;
  border: none;
  display: block;
}

@media screen and (max-width: 736px) {
  #header .site-logo img {
    height: 55px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
#sidebar {
  flex-grow: 0;
  flex-shrink: 0;
  transition: margin-left 0.5s ease, box-shadow 0.5s ease;
  background-color: #f5f6f7;
  font-size: 0.9em;
  position: relative;
  width: 26em;
}
#sidebar h2 { font-size: 1.38889em; }
#sidebar > .inner {
  padding: 2.22222em;
  position: relative;
  width: 26em;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}
#sidebar > .inner > * {
  border-bottom: none;
  margin: 0 0 3.5em 0;
  padding: 0 0 3.5em 0;
}
#sidebar > .inner > * > :last-child { margin-bottom: 0; }
#sidebar > .inner > *:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#sidebar #footer { margin-top: auto; }

#sidebar .toggle {
  text-decoration: none;
  transition: left 0.5s ease;
  -webkit-tap-highlight-color: rgba(255,255,255,0);
  border: 0;
  display: block;
  height: 7.5em;
  left: 26em;
  line-height: 7.5em;
  outline: 0;
  overflow: hidden;
  position: fixed !important;   /* sticky across ALL screen sizes */
  top: 0 !important;
  z-index: 10001 !important;
  text-align: center;
  text-indent: -15em;
  white-space: nowrap;
  width: 6em;
}
#sidebar .toggle:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 900;
  content: '\f0c9'; font-size: 2rem;
  height: inherit; left: 0; line-height: inherit;
  position: absolute; text-indent: 0; top: 0; width: inherit;
}
#sidebar.inactive { margin-left: -26em; }
#sidebar.inactive .toggle { left: 0 !important; }

@media screen and (max-width: 1680px) {
  #sidebar { width: 24em; }
  #sidebar > .inner { width: 24em; }
  #sidebar .toggle { height: 6.25em; left: 24em; line-height: 6.25em; text-indent: 5em; width: 5em; }
  #sidebar .toggle:before { font-size: 1.5rem; }
  #sidebar.inactive { margin-left: -24em; }
  #sidebar.inactive .toggle { left: 0 !important; }
}
@media screen and (max-width: 1280px) {
  #sidebar {
    box-shadow: 0 0 5em 0 rgba(0,0,0,0.175);
    height: 100%; left: 0; position: fixed; top: 0; z-index: 10000;
  }
  #sidebar.inactive { box-shadow: none; }
  #sidebar > .inner {
    -webkit-overflow-scrolling: touch;
    height: 100%; left: 0;
    overflow-x: hidden; overflow-y: auto;
    position: absolute; top: 0;
  }
  #sidebar > .inner:after { content: ''; display: block; height: 4em; width: 100%; }
  #sidebar .toggle { text-indent: 6em; width: 6em; }
  #sidebar .toggle:before { font-size: 1.5rem; margin-left: -0.4375em; }
  body.is-preload #sidebar { display: none; }
}
@media screen and (max-width: 736px) {
  #sidebar .toggle { text-indent: 7.25em; width: 7.25em; }
  #sidebar .toggle:before {
    color: #7f888f; margin-left: -0.0625em;
    margin-top: -0.25em; font-size: 1.1rem; z-index: 1;
  }
  #sidebar .toggle:after {
    background: rgba(222,225,226,0.75);
    border-radius: 0.375em; content: '';
    height: 3.5em; left: 1em; position: absolute; top: 1em; width: 5em;
  }
}

/* Sidebar logo */
#sidebar-logo {
  display: block;
  width: 30%;
  max-width: 120px;
  height: auto;
  border-bottom: none;
  padding-bottom: 0.5em;
}

/* Sidebar menu */
#menu ul {
  -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none;
  color: #3d4449;
  font-family: "Indivisible";
  font-weight: 400;
  letter-spacing: 0.075em;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
  text-transform: none;
}
#menu ul a, #menu ul span {
  border-bottom: 0; color: inherit; cursor: pointer; display: block;
  font-size: 1.2em; padding: 1em 0.75em; line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#menu ul a:hover, #menu ul span:hover { color: #48acc6; }

#menu ul li {
  border-radius: 8px;
  padding: 0 0.75em;
  transition: background-color 0.2s ease;
}
#menu ul li:hover { background: rgba(210,215,217,0.35); }

#menu > ul > li {
  border-top: none;
  margin: 0.5em 0 0 0;
  padding: 0.5em 0.75em 0.5em 0.75em;
}
#menu > ul > li:first-child { margin-top: 0; }

#menu > ul > li > ul {
  color: #9fa3a6;
  display: none;
  margin: 0.5em 0 1.5em 0;
  padding-left: 1em;
}
#menu > ul > li > ul a, #menu > ul > li > ul span { font-size: 1.1em; padding: 0.75em 0 0.75em 2.5em; }
#menu > ul > li > ul a:before { font-size: 1.2em; margin-left: -1.5em; margin-right: 8px; }
#menu > ul > li > ul > li { margin: 0.125em 0 0 0; padding: 0.125em 0 0 0; border-radius: 6px; }
#menu > ul > li > ul > li:hover { background: rgba(210,215,217,0.25); }

/* Opener arrows */
#menu ul a.opener, #menu ul span.opener {
  transition: color 0.2s ease-in-out;
  text-decoration: none; -webkit-tap-highlight-color: rgba(255,255,255,0); position: relative;
}
#menu ul a.opener:before, #menu ul span.opener:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
  color: #9fa3a6; content: '\f078'; position: absolute; right: 0;
}
#menu ul a.opener:hover:before, #menu ul span.opener:hover:before { color: #48acc6; }
#menu ul a.opener.active + ul, #menu ul span.opener.active + ul { display: block; }
#menu ul a.opener.active:before, #menu ul span.opener.active:before { transform: rotate(-180deg); }

/* Add space between icon and text */
#menu ul a[class*="fa-"]::before, #menu ul span[class*="fa-"]::before { margin-right: 0.5em; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#footer .copyright { color: #9fa3a6; font-size: 0.9em; }
#footer .copyright a { color: inherit; }

.site-footer {
  margin-top: 4em;
  border-top: none !important;
  /* Extend teal line edge-to-edge over coloured gutters */
  box-shadow:
    0 -5px 0 0 #48acc6,
    -100vw -5px 0 0 #48acc6,
    100vw  -5px 0 0 #48acc6;
  background: #ffffff;
  padding: 3em 0 1em 0;
  width: 100%;
}
.site-footer .inner {
  max-width: 160em;
  margin: 0 auto;
  padding: 0 6em;
  display: flex;
  flex-direction: column;
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8em;
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(210,215,217,0.75);
}
.footer-column { min-width: 0; }
.footer-column-heading {
  font-size: 1.1em; color: #3d4449; font-weight: 700;
  margin: 0 0 1.25em 0; font-family: "Indivisible", sans-serif;
}
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 0.85em; }
.footer-links-list a {
  font-size: 0.95em; color: #7f888f; text-decoration: none;
  border-bottom: none; transition: color 0.2s ease; display: inline-block;
}
.footer-links-list a:hover { color: #48acc6; }

.footer-bottom { display: flex; flex-direction: column; }
.footer-disclaimer {
  margin-top: 1em; font-size: 0.75em; line-height: 1.6;
  color: #7f888f; max-width: 90em;
}
.footer-disclaimer strong { font-weight: 600; color: #3d4449; }

/* Footer responsive */
@media screen and (max-width: 1680px) {
  .site-footer .inner { padding: 0 5em; max-width: 140em; }
  .footer-navigation { gap: 6em; }
}
@media screen and (max-width: 1280px) {
  .site-footer .inner { padding: 0 4em; max-width: 120em; }
  .footer-navigation { gap: 4em; }
}
@media screen and (max-width: 980px) {
  .footer-navigation { grid-template-columns: repeat(2, 1fr); gap: 3em 2em; }
}
@media screen and (max-width: 736px) {
  .site-footer .inner { padding: 0 2em; }
  .site-footer { padding: 2em 0 1em 0; }
  .footer-navigation {
    grid-template-columns: 1fr; gap: 1.5em;
    margin-bottom: 2em; padding-bottom: 1.5em;
  }
  .footer-disclaimer { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE
═══════════════════════════════════════════════════════════════ */
.image { border-radius: 0.375em; border: 0; display: inline-block; position: relative; }
.image img { border-radius: 0.375em; display: block; }
.image.fit { display: block; margin: 0 0 2em 0; width: 100%; }
.image.fit img { width: 100%; }
a.image { overflow: hidden; }
a.image img { transition: transform 0.2s ease; }
a.image:hover img { transform: scale(1.075); }

/* ═══════════════════════════════════════════════════════════════
   LISTS
═══════════════════════════════════════════════════════════════ */
ol { list-style: decimal; margin: 0 0 2em 0; padding-left: 1.25em; }
ol li { padding-left: 0.25em; }
ul { list-style: disc; margin: 0 0 2em 0; padding-left: 1em; }
ul li { padding-left: 0.5em; }
ul.alt { list-style: none; padding-left: 0; }
ul.alt li { border-top: solid 1px rgba(210,215,217,0.75); padding: 0.5em 0; }
ul.alt li:first-child { border-top: 0; padding-top: 0; }

hr { border: 0; border-bottom: solid 1px rgba(210,215,217,0.75); margin: 2em 0; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION (homepage)
═══════════════════════════════════════════════════════════════ */
.hero { padding: 4em 0 2em 0; }
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
}
.hero-text { flex: 1; max-width: 540px; }
.hero-subtext { font-size: 1.2em; color: #616f89; line-height: 1.65; margin: 1em 0; }
.hero-ctas { display: flex; gap: 1em; margin-top: 1.75em; flex-wrap: wrap; }
.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img { max-width: 100%; height: auto; max-height: 620px; object-fit: contain; }

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-image { order: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   SIGNUP LAYOUT (homepage + alerts page)
═══════════════════════════════════════════════════════════════ */
.signup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}
.signup-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .signup-container { grid-template-columns: 1fr; }
  .signup-image { order: -1; }
}

/* ═══════════════════════════════════════════════════════════════
   STEPS GRID (homepage how-it-works)
═══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin-top: 1.5em;
  text-align: center;
}
.step-item img { width: 64px; height: 64px; margin-bottom: 1em; }
.step-item p { font-size: 1rem; line-height: 1.5; }
.steps-highlight strong { color: #48acc6; font-weight: 700; }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   MISC SHARED COMPONENTS
═══════════════════════════════════════════════════════════════ */
/* Box */
.box {
  border-radius: 0.375em; border: solid 1px rgba(210,215,217,0.75);
  margin-bottom: 2em; padding: 1.5em;
}

/* Icon */
.icon { text-decoration: none; border-bottom: none; position: relative; }
.icon:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 400;
}
.icon > .label { display: none; }
.icon:before { line-height: inherit; }
.icon.solid:before { font-weight: 900; }
.icon.brands:before { font-family: 'Font Awesome 5 Brands'; }

