/*
Theme Name: Germwatch
Theme URI: https://www.germwatch.co.uk
Author: Dean
Description: Minimal, fast theme for Germwatch public site and surveillance UI (UI v2).
Version: 2.0
Text Domain: germwatch
*/

/* ------------------------------
   GLOBAL RESET & TYPOGRAPHY
------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2933;
  background: radial-gradient(circle at top, #f3f7fc 0, #f9fafb 45%, #f5f5f5 100%);
}

body {
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: #003f74;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Links */

a {
  color: #005eb8;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #00478c;
}

/* Focus states */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffbf47;
  outline-offset: 2px;
}

/* ------------------------------
   LAYOUT (Sticky Footer)
------------------------------ */

#page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#site-content {
  flex: 1;
  padding-bottom: 2rem;
}

/* Generic page container */

.gw-container {
  max-width: 960px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* ------------------------------
   HEADER
------------------------------ */

.gw-header {
  background: #ffffff;
  border-bottom: 3px solid #005eb8;
  padding: 0.75rem 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}

.gw-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.gw-header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.gw-logo {
  height: 150px;
  width: auto;
}

.gw-title-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: #003f74;
  letter-spacing: -0.04em;
}

.gw-title-sub {
  font-size: 0.85rem;
  color: #5a7184;
  margin-top: -2px;
  display: block;
}

/* Navigation */

.gw-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.gw-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #005eb8;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.gw-nav a:hover {
  border-bottom: 2px solid #005eb8;
  color: #00478c;
}

/* ------------------------------
   RESPONSIVE HEADER
------------------------------ */

@media (max-width: 760px) {
  .gw-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .gw-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* ------------------------------
   HOMEPAGE SECTIONS
------------------------------ */

/* HERO */

.gw-hero {
  background: radial-gradient(circle at top, #e8f1fb 0, #dbe8f7 45%, #e8f1fb 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid #d0d8e0;
}

.gw-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gw-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.gw-hero p {
  font-size: 1.02rem;
  color: #425466;
}

.gw-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  padding: 0.8rem 1.6rem;
  background: #005eb8;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 94, 184, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.gw-cta:hover {
  background: #00478c;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 94, 184, 0.3);
}

/* SUMMARY */

.gw-summary {
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.gw-summary-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* FEATURES */

.gw-features {
  padding: 3rem 1.5rem 3.5rem;
  background: #f5f7fa;
}

.gw-features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .gw-features-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gw-feature {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e1e7f0;
}

.gw-feature h3 {
  margin-bottom: 0.5rem;
  color: #003f74;
}

.gw-feature p {
  color: #4b5563;
}

.gw-feature-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #005eb8;
  text-decoration: none;
  font-size: 0.95rem;
}

.gw-feature-link::after {
  content: "→";
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

/* CTA BANNER */

.gw-banner {
  background: linear-gradient(135deg, #005eb8, #003f74);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.gw-banner-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gw-banner h2 {
  color: #ffffff;
}

.gw-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background: #ffffff;
  color: #005eb8;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.gw-banner-cta:hover {
  background: #f3f7fc;
  color: #00478c;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* ------------------------------
   FOOTER
------------------------------ */

.gw-footer {
  background: #003f74;
  color: #ffffff;
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}

.gw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.gw-footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
}

.gw-footer-tagline {
  font-size: 0.9rem;
  opacity: 0.85;
}

.gw-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gw-footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.gw-footer-links a:hover {
  opacity: 0.8;
  transform: translateX(1px);
}

.gw-footer-legal p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0.3rem 0;
}

@media (max-width: 800px) {
  .gw-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* MISSION */

.gw-mission {
  padding: 3rem 1.5rem;
  background: #fff;
}

.gw-mission-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------
   HEATMAP PAGE
------------------------------ */

.gw-heatmap-hero {
  background: #e8f1fb;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #d0d8e0;
}

.gw-heatmap-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gw-heatmap-placeholder {
  padding: 3rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.gw-heatmap-placeholder-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gw-heatmap-box {
  height: 420px;
  background: #f0f4f8;
  border: 2px dashed #b8c6d1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-heatmap-loading {
  font-size: 1.1rem;
  color: #003f74;
  opacity: 0.8;
}

.gw-heatmap-info {
  padding: 3rem 1.5rem;
  background: #fafafa;
}

.gw-heatmap-info-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------
   WEEKLY INTELLIGENCE PAGE
------------------------------ */

.gw-wi-hero {
  background: #e8f1fb;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #d0d8e0;
}

.gw-wi-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gw-wi-placeholder {
  padding: 3rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.gw-wi-placeholder-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gw-wi-box {
  height: 420px;
  background: #f0f4f8;
  border: 2px dashed #b8c6d1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-wi-loading {
  font-size: 1.1rem;
  color: #003f74;
  opacity: 0.8;
}

.gw-wi-info {
  padding: 3rem 1.5rem;
  background: #fafafa;
}

.gw-wi-info-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------
   ABOUT PAGE
------------------------------ */

.gw-about-hero {
  background: #e8f1fb;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #d0d8e0;
}

.gw-about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gw-about-mission {
  padding: 3rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.gw-about-mission-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.gw-about-whatwedo {
  padding: 3rem 1.5rem;
  background: #fafafa;
}

.gw-about-whatwedo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .gw-about-whatwedo-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gw-about-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e1e7f0;
}

.gw-about-card h3 {
  margin-bottom: 0.5rem;
  color: #003f74;
}

.gw-about-team {
  padding: 3rem 1.5rem;
  background: #fff;
}

.gw-about-team-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------
   CONTACT PAGE
------------------------------ */

.gw-contact-hero {
  background: #e8f1fb;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #d0d8e0;
}

.gw-contact-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gw-contact-placeholder {
  padding: 3rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.gw-contact-placeholder-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gw-contact-box {
  height: 320px;
  background: #f0f4f8;
  border: 2px dashed #b8c6d1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-contact-loading {
  font-size: 1.1rem;
  color: #003f74;
  opacity: 0.8;
}

.gw-contact-info {
  padding: 3rem 1.5rem;
  background: #fafafa;
}

.gw-contact-info-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   GERMWATCH FORM — UI v2
   ============================================================ */

#germwatch-form {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 960px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.5rem;
}

/* Step container */

#germwatch-form .gw-step {
  display: none;
  background: #ffffff;
  padding: 1.9rem 1.75rem 1.8rem;
  border-radius: 12px;
  border: 1px solid #d0d8e0;
  margin-bottom: 2rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

#germwatch-form .gw-step h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #003f74;
}

/* Labels & inputs */

#germwatch-form label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 600;
  color: #003f74;
  font-size: 0.95rem;
}

#germwatch-form input[type="text"],
#germwatch-form input[type="date"],
#germwatch-form textarea,
#germwatch-form select {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #b8c6d1;
  border-radius: 8px;
  font-size: 0.98rem;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#germwatch-form input[type="text"]:focus,
#germwatch-form input[type="date"]:focus,
#germwatch-form textarea:focus,
#germwatch-form select:focus {
  border-color: #005eb8;
  box-shadow: 0 0 0 1px rgba(0, 94, 184, 0.35);
  background: #f9fbff;
}

/* Dropdown arrow */

#germwatch-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23005eb8' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

/* Textarea */

#germwatch-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Buttons */

#germwatch-form .gw-next,
#germwatch-form .gw-prev,
#germwatch-form .gw-submit {
  background: #005eb8;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 1.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-shadow: 0 8px 18px rgba(0, 94, 184, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#germwatch-form .gw-prev {
  background: #4c6272;
  box-shadow: 0 6px 14px rgba(76, 98, 114, 0.25);
}

#germwatch-form .gw-next:hover,
#germwatch-form .gw-prev:hover,
#germwatch-form .gw-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

#germwatch-form .gw-submit {
  background: linear-gradient(135deg, #008272, #005eb8);
}

/* Mobile buttons */

@media (max-width: 600px) {
  #germwatch-form .gw-next,
  #germwatch-form .gw-prev,
  #germwatch-form .gw-submit {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ============================================================
   QUICK SELECT PANEL
   ============================================================ */

#germwatch-form .gw-qs-panel {
  margin-bottom: 1.25rem;
  border-radius: 10px;
  border: 1px solid #d0d8e0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

#germwatch-form .gw-qs-checkboxes label {
  display: inline-block;
  margin: 0.35rem 0.75rem 0.35rem 0;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  font-size: 0.92rem;
}

#germwatch-form .gw-qs-checkboxes input[type="checkbox"] {
  margin-right: 6px;
}

/* Flash highlight for cards triggered via Quick Select */

#germwatch-form .gw-flash {
  animation: gwFlash 0.6s ease;
}

@keyframes gwFlash {
  0%   { box-shadow: 0 0 0px rgba(0,94,184,0.0); }
  50%  { box-shadow: 0 0 14px rgba(0,94,184,0.45); }
  100% { box-shadow: 0 0 0px rgba(0,94,184,0.0); }
}

/* ============================================================
   STEP 2 — SYMPTOM CARD SYSTEM
   ============================================================ */

/* GRID (old + new class names unified) */

#germwatch-form .gw-sym-grid,
#germwatch-form .gw-symptom-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  #germwatch-form .gw-sym-grid,
  #germwatch-form .gw-symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #germwatch-form .gw-sym-grid,
  #germwatch-form .gw-symptom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* CARD (old + new class names unified) */

#germwatch-form .gw-sym-card,
#germwatch-form .gw-symptom-card {
  background: #ffffff;
  border: 1px solid #d0d8e0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* HEADER */

#germwatch-form .gw-sym-card-header,
#germwatch-form .gw-symptom-card-header {
  width: 100%;
  border: none;
  background: #e8f1fb;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

#germwatch-form .gw-sym-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#germwatch-form .gw-sym-card-header h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #003f74;
}

/* ICON */

#germwatch-form .gw-icon {
  width: 24px;
  height: 24px;
  fill: #005eb8;
  flex-shrink: 0;
}

/* CHEVRON */

#germwatch-form .gw-sym-chevron {
  font-size: 0.9rem;
  color: #003f74;
  transition: transform 0.2s ease;
}

#germwatch-form .gw-sym-card.is-open .gw-sym-chevron {
  transform: rotate(180deg);
}

/* BODY (COLLAPSIBLE) */

#germwatch-form .gw-sym-card-body {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  padding: 0 1rem;
  transition: max-height 0.55s ease, padding 0.45s ease;
}

#germwatch-form .gw-sym-card.is-open .gw-sym-card-body {
  max-height: 1000px;
  padding: 0.85rem 1rem 1rem;
}

/* LABELS */

#germwatch-form .gw-sym-card-body label {
  display: block;
  margin: 0.35rem 0;
  font-weight: 500;
  color: #222;
  font-size: 0.93rem;
}

/* Prevent whole row from expanding when one card opens */

#germwatch-form .gw-sym-card,
#germwatch-form .gw-symptom-card {
  display: flex;
  flex-direction: column;
}

#germwatch-form .gw-sym-card-header,
#germwatch-form .gw-symptom-card-header {
  flex-shrink: 0;
}

#germwatch-form .gw-sym-card-body {
  flex-grow: 0;
}

#germwatch-form .gw-sym-grid,
#germwatch-form .gw-symptom-grid {
  align-items: start;
}

/* ============================================================
   RED FLAG WARNING BANNER
   ============================================================ */

#germwatch-form .gw-red-flag-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fbeaea;
  border: 1px solid #d9534f;
  color: #a94442;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

#germwatch-form .gw-red-flag-icon {
  width: 28px;
  height: 28px;
  fill: #d9534f;
  flex-shrink: 0;
}

/* ============================================================
   REVIEW BLOCKS
   ============================================================ */

#germwatch-form .gw-review-block {
  background: #ffffff;
  border: 1px solid #d0d8e0;
  padding: 1.25rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

#germwatch-form .gw-review-block h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #003f74;
  font-size: 1rem;
}

#germwatch-form #review-symptoms {
  margin: 0;
  padding-left: 1.1rem;
}

#germwatch-form #review-symptoms li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ============================================================
   MISC
   ============================================================ */

/* Hide advanced taxonomy container (inputs are disabled in HTML) */
#advanced-symptoms {
  display: none;
}



