/* Parexel survey: app styles on top of Bootstrap 5.3 (CSS only). */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/montserrat-var.woff2") format("woff2"); }

/* --------------------------------------------------------------- tokens */
:root {
  --px-blue: #0a32c6;
  --px-blue-dark: #082695;
  --px-navy: #041551;
  --px-tint: #f4f6fe;
  --px-tint-2: #e6ebfd;
  --px-plum: #8a0050;
  --px-ink: #1a1b1e;
  --px-muted: #4e565b;
  --px-border: #d9d7d5;
  --px-bg: #fafaf9;
  --px-error: #b42318;
  --px-radius: 14px;
  --px-shadow: 0 1px 2px rgba(4, 21, 81, .06), 0 8px 24px rgba(4, 21, 81, .08);

  --bs-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--px-ink);
  --bs-body-bg: #fff;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-primary: #0a32c6;
  --bs-primary-rgb: 10, 50, 198;
  --bs-link-color: #0a32c6;
  --bs-link-color-rgb: 10, 50, 198;
  --bs-link-hover-color: #082695;
  --bs-link-hover-color-rgb: 8, 38, 149;
  --bs-border-color: #d9d7d5;
  --bs-focus-ring-color: rgba(10, 50, 198, .35);
}

body { background: #fff; color: var(--px-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .screen-title, .q-title { font-family: "Montserrat", "Lato", system-ui, sans-serif; color: var(--px-navy); letter-spacing: -.01em; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--px-blue); outline-offset: 2px; }

.btn-primary {
  --bs-btn-bg: var(--px-blue); --bs-btn-border-color: var(--px-blue);
  --bs-btn-hover-bg: var(--px-blue-dark); --bs-btn-hover-border-color: var(--px-blue-dark);
  --bs-btn-active-bg: var(--px-navy); --bs-btn-active-border-color: var(--px-navy);
  --bs-btn-disabled-bg: var(--px-blue); --bs-btn-disabled-border-color: var(--px-blue);
  --bs-btn-focus-shadow-rgb: 10, 50, 198;
  font-weight: 700;
}
.btn-outline-secondary {
  --bs-btn-color: var(--px-navy); --bs-btn-border-color: var(--px-border);
  --bs-btn-hover-bg: var(--px-tint); --bs-btn-hover-color: var(--px-navy); --bs-btn-hover-border-color: var(--px-blue);
  --bs-btn-active-bg: var(--px-tint-2); --bs-btn-active-color: var(--px-navy); --bs-btn-active-border-color: var(--px-blue);
  font-weight: 700;
}
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.6rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: 999px; }
.form-control { border-width: 2px; border-color: var(--px-border); }
.form-control:focus { border-color: var(--px-blue); box-shadow: 0 0 0 .25rem rgba(10, 50, 198, .18); }
.form-control-lg { border-radius: 12px; font-size: 1.0625rem; padding: .75rem 1rem; }
.form-control.is-invalid { border-color: var(--px-error); background-image: none; padding-right: 1rem; }
.form-label, legend.form-label { font-weight: 700; color: var(--px-navy); }
legend.form-label { font-size: 1.0625rem; float: none; width: auto; padding: 0; margin-bottom: .6rem; }

/* 16px side gutter on phones */
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2rem; } }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1000; background: #fff; padding: .5rem 1rem; border-radius: 8px; box-shadow: var(--px-shadow); }

/* --------------------------------------------------------------- header */
.site-header { background: #fff; border-bottom: 1px solid #ecebea; }
.site-header .container { min-height: 68px; }
.site-logo { display: inline-flex; padding: .5rem 0; }
.site-logo img { height: 34px; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 40px; } .site-header .container { min-height: 80px; } }

/* Landing page: header stays visible so the CTA is always one tap away */
.page-landing .site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px); }
.header-cta {
  --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1.25rem; --bs-btn-font-size: .975rem; --bs-btn-border-radius: 999px;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(10, 50, 198, .2);
}
@media (max-width: 375px) { .header-cta { --bs-btn-padding-x: .9rem; --bs-btn-font-size: .9rem; } }

/* -------------------------------------------------------------- landing */
.hero {
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(138, 0, 80, .07), transparent 60%),
    linear-gradient(180deg, var(--px-tint) 0%, #fff 100%);
  padding: 2.5rem 0 3rem;
}
@media (min-width: 992px) { .hero { padding: 4.5rem 0 5rem; } }
.hero-title { font-weight: 800; font-size: clamp(1.95rem, 1.2rem + 3.2vw, 3.1rem); line-height: 1.12; margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: #2f343a; max-width: 38em; margin-bottom: 1.5rem; }

.key-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.key-points li { display: flex; align-items: center; gap: .85rem; font-weight: 700; color: var(--px-navy); }
.kp-icon { flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; fill: var(--px-blue); box-shadow: 0 0 0 1px var(--px-tint-2); }

.btn-cta { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem; font-size: 1.125rem; box-shadow: 0 6px 18px rgba(10, 50, 198, .28); }
.btn-cta svg { width: 1.2em; height: 1.2em; fill: currentColor; transition: transform .2s ease; }
.btn-cta:hover svg { transform: translateX(3px); }
@media (max-width: 575.98px) { .hero .btn-cta { width: 100%; justify-content: center; } }
.under-cta { margin: 1rem 0 0; font-size: .95rem; color: var(--px-muted); }

.hero-art svg { width: 100%; height: auto; display: block; }
.ha-1 { fill: var(--px-tint-2); }
.ha-2 { fill: rgba(138, 0, 80, .1); }
.ha-card { fill: #fff; filter: drop-shadow(0 10px 22px rgba(4, 21, 81, .14)); }
.ha-line { fill: var(--px-navy); opacity: .85; }
.ha-opt { fill: #fff; stroke: var(--px-border); stroke-width: 2; }
.ha-opt-on { fill: var(--px-tint); stroke: var(--px-blue); }
.ha-track { fill: #ecebea; }
.ha-fill { fill: var(--px-blue); }
.ha-tick { fill: none; stroke: var(--px-blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.info-section { padding: 3rem 0 1rem; }
.info-card { background: var(--px-bg); border: 1px solid #ecebea; border-radius: var(--px-radius); padding: 1.75rem; }
.info-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.info-card p { margin: 0; color: #2f343a; }
.info-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--px-plum); margin-bottom: 1rem; }

.faq-section { padding: 3rem 0 4rem; margin-top: 2rem; background: linear-gradient(180deg, #fff 0%, var(--px-tint) 100%); }
@media (min-width: 992px) { .faq-section { padding: 4.5rem 0 5rem; } }
.faq-intro { position: sticky; top: 2rem; }
.faq-eyebrow { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--px-plum); margin-bottom: 1rem; }
.faq-section h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem); font-weight: 800; margin-bottom: 1.75rem; }
.faq-list { background: #fff; border-radius: var(--px-radius); box-shadow: var(--px-shadow); overflow: hidden; }
.faq + .faq { border-top: 1px solid #ecebea; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 1.5rem; font-family: "Montserrat", "Lato", sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--px-navy);
  transition: background-color .15s ease, color .15s ease;
}
@media (min-width: 768px) { .faq summary { padding: 1.5rem 2rem; font-size: 1.15rem; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #fbfcff; color: var(--px-blue); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-icon { flex: 0 0 auto; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--px-tint); transition: background-color .2s ease, transform .25s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: var(--px-blue); transition: transform .25s ease, background-color .2s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] summary { color: var(--px-blue); }
.faq[open] .faq-icon { background: var(--px-blue); transform: rotate(180deg); }
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: #fff; }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq p { margin: 0; padding: 0 1.5rem 1.5rem; color: #2f343a; max-width: 46em; }
@media (min-width: 768px) { .faq p { padding: 0 2rem 1.6rem; } }
.faq-cta-mobile { margin: 2rem 0 0; }
@media (max-width: 575.98px) { .faq-cta-mobile .btn-cta { width: 100%; justify-content: center; } }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--px-navy); color: #c9d1f3; padding: 2rem 0; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-copy { margin: 0; }

/* --------------------------------------------------------------- survey */
.page-survey { background: var(--px-bg); }
.survey-main { padding: 1.5rem 0 3rem; min-height: 60vh; }
@media (min-width: 768px) { .survey-main { padding: 2.5rem 0 4rem; } }
.survey-container { max-width: 760px; }
.survey-card { background: #fff; border-radius: var(--px-radius); box-shadow: var(--px-shadow); padding: 1.5rem 1.25rem; }
@media (min-width: 576px) { .survey-card { padding: 2.25rem 2.5rem; } }

/* Progress bar */
.progress-shell {
  position: sticky; top: 0; z-index: 20; padding: .9rem 0;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #ecebea; box-shadow: 0 4px 16px rgba(4, 21, 81, .04);
}
.pg { display: flex; align-items: center; gap: 1rem; }
.pg-track {
  position: relative; flex: 1 1 auto; height: 12px; margin-right: 6px; border-radius: 999px;
  background: #e8ecf8; box-shadow: inset 0 1px 2px rgba(4, 21, 81, .1);
}
.pg-fill {
  position: relative; height: 100%; width: 0; min-width: 12px; border-radius: inherit;
  background-image:
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%),
    linear-gradient(90deg, #041551 0%, #0a32c6 55%, #3b63f2 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: pg-shine 2.6s ease-in-out infinite;
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pg-shine { from { background-position: 150% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
.pg-knob {
  position: absolute; right: -10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 4px solid var(--px-blue);
  box-shadow: 0 0 0 5px rgba(10, 50, 198, .14), 0 2px 6px rgba(4, 21, 81, .25);
  transition: border-color .3s ease;
}
.pg-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; min-width: 8.6rem; justify-content: center;
  padding: .32rem .8rem; border-radius: 999px; background: var(--px-tint); border: 1px solid var(--px-tint-2);
  color: var(--px-blue); font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.pg-check { display: none; width: 16px; height: 16px; fill: currentColor; }
.progress-shell.is-complete .pg-pill { background: var(--px-blue); border-color: var(--px-blue); color: #fff; }
.progress-shell.is-complete .pg-check { display: inline-block; }
.progress-shell.is-complete .pg-fill { animation: none; }
@media (max-width: 400px) { .pg { gap: .75rem; } .pg-pill { min-width: 7.6rem; font-size: .8rem; padding: .3rem .6rem; } }

.screen-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.screen-title:focus, .q-title:focus { outline: none; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-title { display: block; float: none; width: 100%; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.55rem); font-weight: 700; line-height: 1.3; margin-bottom: .5rem; padding: 0; }
.q-hint { color: var(--px-muted); margin-bottom: 1.25rem; }
.q-title + .choices, .q-title + .input-postcode { margin-top: 1.25rem; }
.screen-note { color: var(--px-muted); font-size: .95rem; margin: 1.5rem 0 0; }
.screen-actions { display: flex; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.link-plain { font-weight: 700; }

/* Choice cards (radio + checkbox) */
.choices { display: grid; gap: .65rem; }
.choice { position: relative; }
.choice-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-label {
  display: flex; align-items: flex-start; gap: .85rem; width: 100%; min-height: 56px;
  padding: .9rem 1rem; border: 2px solid var(--px-border); border-radius: 12px; background: #fff;
  cursor: pointer; font-weight: 700; color: var(--px-ink); line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.choice-label:hover { border-color: #8fa2e8; background: #fbfcff; }
.choice-text { padding-top: .05rem; }
.choice-text a { font-weight: 700; }
.choice-mark { flex: 0 0 auto; width: 24px; height: 24px; margin-top: .05rem; border: 2px solid #8a8f94; background: #fff; position: relative; transition: all .15s ease; }
.choice-radio .choice-mark { border-radius: 50%; }
.choice-checkbox .choice-mark { border-radius: 6px; }
.choice-input:checked + .choice-label { border-color: var(--px-blue); background: var(--px-tint); box-shadow: 0 0 0 1px var(--px-blue) inset; }
.choice-input:checked + .choice-label .choice-mark { border-color: var(--px-blue); background: var(--px-blue); }
.choice-radio .choice-input:checked + .choice-label .choice-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.choice-checkbox .choice-input:checked + .choice-label .choice-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.choice-input:focus-visible + .choice-label { outline: 3px solid var(--px-blue); outline-offset: 2px; }
.choice-input:disabled + .choice-label { opacity: .5; cursor: not-allowed; }
.choice-other { margin: -.15rem 0 .35rem 2.6rem; }

/* Segmented buttons (Q8, contact preference, prize Yes/No, unit toggles) */
.segmented { display: flex; gap: .5rem; flex-wrap: wrap; }
.segmented .btn, .unit-toggle .btn {
  flex: 1 1 0; min-width: 5.5rem; min-height: 50px; border: 2px solid var(--px-border); border-radius: 12px;
  background: #fff; color: var(--px-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.segmented .btn:hover, .unit-toggle .btn:hover { border-color: #8fa2e8; background: #fbfcff; }
.segmented .btn-check:checked + .btn, .unit-toggle .btn-check:checked + .btn { background: var(--px-blue); border-color: var(--px-blue); color: #fff; }
.segmented .btn-check:focus-visible + .btn, .unit-toggle .btn-check:focus-visible + .btn { outline: 3px solid var(--px-blue); outline-offset: 2px; box-shadow: none; }
.segmented-wrap .btn { flex: 1 1 calc(50% - .5rem); }
@media (min-width: 576px) { .segmented-wrap .btn { flex: 1 1 0; } }

.matrix { display: grid; gap: 1rem; margin-top: 1.25rem; }
.matrix-row { border: 1px solid #ecebea; background: var(--px-bg); border-radius: 12px; padding: 1rem; margin: 0; }
.matrix-label { float: left; width: 100%; font-size: 1rem; font-weight: 700; color: var(--px-navy); line-height: 1.4; margin-bottom: .75rem; padding: 0; }
.matrix-label + * { clear: both; }

/* Height / weight */
.hw-block { display: grid; gap: 1.25rem; transition: opacity .2s ease; }
.hw-block.is-disabled { opacity: .45; }
.hw-group { border: 1px solid #ecebea; background: var(--px-bg); border-radius: 12px; padding: 1rem; }
.hw-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.hw-label { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--px-navy); }
.unit-toggle { display: inline-flex; gap: .35rem; }
.unit-toggle .btn { min-height: 40px; min-width: 0; padding: .3rem .85rem; font-size: .95rem; border-radius: 999px; flex: 0 0 auto; }
.hw-inputs { display: flex; gap: .75rem; }
.input-unit { position: relative; flex: 1 1 0; max-width: 12rem; }
.input-unit .form-control { padding-right: 3rem; background: #fff; }
.input-unit span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--px-muted); font-weight: 700; pointer-events: none; }

.input-postcode { max-width: 12rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

.contact-fields, .prize-fields { margin-top: 1.5rem; padding: 1.25rem; background: var(--px-bg); border: 1px solid #ecebea; border-radius: 12px; }
.contact-fields .form-control, .prize-fields .form-control { background: #fff; }

/* Errors */
.field-error { color: var(--px-error); font-weight: 700; margin: .6rem 0 0; display: flex; gap: .4rem; align-items: flex-start; }
.field-error::before { content: "!"; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--px-error); color: #fff; font-size: .8rem; line-height: 1.25rem; text-align: center; margin-top: .15rem; }
.field-error[hidden] { display: none; }

/* Navigation */
.survey-nav { display: flex; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #ecebea; }
.survey-nav .btn-next { flex: 1 1 auto; }
.survey-nav .btn-back { flex: 0 0 auto; }
@media (min-width: 576px) { .survey-nav { justify-content: space-between; } .survey-nav .btn-next { flex: 0 0 auto; min-width: 11rem; } }
.thanks .btn { white-space: normal; }

.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- admin */
.page-admin { background: var(--px-bg); }
.admin-main { padding: 2rem 0 4rem; min-height: 70vh; }
.admin-card { background: #fff; border-radius: var(--px-radius); box-shadow: var(--px-shadow); padding: 1.75rem; }
.admin-login { max-width: 420px; margin: 2rem auto; }
.stat-tile { background: #fff; border-radius: 12px; box-shadow: var(--px-shadow); padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .2rem; }
.stat-num { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--px-navy); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .85rem; color: var(--px-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- legal pages */
.page-legal { background: var(--px-bg); }
.legal-main { padding: 2.5rem 0 4rem; min-height: 60vh; }
.legal-container { max-width: 820px; }
.legal-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.legal-body li { margin-bottom: .35rem; }
.legal-pending { font-size: 1.1rem; color: var(--px-muted); background: #fff; border: 1px solid #ecebea; border-radius: var(--px-radius); padding: 1.25rem 1.5rem; }
