/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  height: var(--header-height);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-purple)) 1;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
  min-width: 0;
}

.header__logo img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.header__brand-bold {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-darker);
}

.header__brand-light {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__link {
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.header__link:hover,
.header__link--active {
  color: var(--color-primary-dark);
  background: var(--color-mint);
}

.header__link--cta {
  background: var(--gradient-brand);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.3);
}

.header__link--cta:hover {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  color: #fff !important;
}

.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary-darker);
}

.header__toggle svg {
  width: 28px;
  height: 28px;
}

.header__cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .header__toggle,
  .header__nav {
    display: none;
  }

  .header__inner {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .header__cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header__logo img {
    height: 40px;
  }

  .header__brand-bold {
    font-size: 0.92rem;
  }

  .header__brand-light {
    font-size: 0.68rem;
  }
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    var(--gradient-hero-strong),
    var(--gradient-hero);
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-accent-soft) 100%);
  color: var(--color-primary-darker);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 169, 157, 0.15);
}

.hero__title {
  max-width: 720px;
  margin: 0 auto 1rem;
}

.hero__desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .card-grid--3,
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }
}

.card--step {
  text-align: center;
}

.card--step img,
.card--step svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.card--step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card--step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.card-grid--4 .card:nth-child(1) { border-top-color: var(--color-primary); }
.card-grid--4 .card:nth-child(2) { border-top-color: var(--color-purple); }
.card-grid--4 .card:nth-child(3) { border-top-color: var(--color-coral); }
.card-grid--4 .card:nth-child(4) { border-top-color: var(--color-accent); background: linear-gradient(180deg, #fffef8 0%, #fff 40%); }

.card-grid--3 .card:nth-child(1) { border-top-color: var(--color-primary); }
.card-grid--3 .card:nth-child(2) { border-top-color: var(--color-purple); }
.card-grid--3 .card:nth-child(3) { border-top-color: var(--color-coral); }

/* Impact box */
.impact-box {
  background: linear-gradient(145deg, var(--color-primary-darker) 0%, #005a66 50%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.impact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.impact-box__label {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-darker);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.impact-box img {
  max-width: 500px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
}

.impact-box p {
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

.split__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Alert / notice boxes */
.notice {
  border-right: 4px solid var(--color-primary);
  background: linear-gradient(90deg, var(--color-mint) 0%, rgba(255,255,255,0.6) 100%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.notice--dark {
  background: var(--color-primary-darker);
  color: #fff;
  border-right-color: var(--color-accent);
}

.notice--warning {
  border-right-color: var(--color-accent);
  background: rgba(255, 209, 0, 0.12);
}

/* Form */
.form-page {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

.form-group input[type="file"] {
  padding: 0.5rem;
}

.form-group .hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.form-group .error-msg {
  font-size: 0.85rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  display: none;
}

.form-group.is-invalid input,
.form-group.is-invalid select {
  border-color: var(--color-error);
}

.form-group.is-invalid .error-msg {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: none;
}

.form-alert.is-visible { display: block; }
.form-alert--error { background: #ffebee; color: var(--color-error); }
.form-alert--success { background: #e8f5e9; color: var(--color-success); }

.photo-guide {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sky) 100%);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.photo-guide img {
  width: 120px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Thank you */
.thankyou {
  text-align: center;
  padding: 3rem 0;
  max-width: 520px;
  margin: 0 auto;
}

.thankyou__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-mint) 0%, #e8f5e9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-success);
  font-size: 2rem;
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-colored);
}

.thankyou__code {
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-bg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  letter-spacing: 2px;
  direction: ltr;
}

/* Footer */
.footer {
  background: var(--color-primary-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer__logos img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer__disclaimer {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
  opacity: 0.75;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Chart bars */
.bar-chart-wrap {
  max-width: 560px;
  margin: 0.5rem auto 0;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  height: 220px;
  padding-top: 0;
}

.bar-chart__item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  justify-items: center;
  height: 100%;
  flex: 1;
  max-width: 72px;
  min-width: 0;
}

.bar-chart__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  grid-row: 1;
  white-space: nowrap;
}

.bar-chart__bar {
  grid-row: 2;
  align-self: end;
  width: 100%;
  max-width: 52px;
  height: 100%;
  max-height: 150px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 8px 8px 0 0;
  min-height: 24px;
}

.bar-chart__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.65rem;
  grid-row: 3;
}

/* Timeline */
.timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.timeline__step {
  text-align: center;
  position: relative;
}

.timeline__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.35);
}

.timeline__label {
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline__sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.timeline__line {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  opacity: 0.4;
  margin-bottom: 2rem;
}

/* HPV types */
.hpv-types {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.hpv-types__item {
  text-align: center;
}

.hpv-types__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 0.35rem;
}

.hpv-types__circle--6 { background: #4caf50; }
.hpv-types__circle--11 { background: #2196f3; }
.hpv-types__circle--16 { background: var(--color-purple); }
.hpv-types__circle--18 { background: #ff9800; }

.hpv-types__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Page layout wrapper */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper main {
  flex: 1;
}

/* CTA band */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 209, 0, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(166, 77, 121, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-band .btn--primary:hover {
  background: var(--color-accent);
  color: var(--color-primary-darker);
}

/* ── Bottom navigation (mobile) ── */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 62, 72, 0.1);
  }

  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
  }

  .bottom-nav__item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav__item--active {
    color: var(--color-primary-dark);
  }

  .bottom-nav__item--active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 0 0 3px 3px;
  }

  .bottom-nav__item--cta {
    color: var(--color-primary-dark);
  }

  .bottom-nav__item--cta svg {
    background: var(--gradient-brand);
    color: #fff;
    stroke: #fff;
    border-radius: 50%;
    padding: 7px;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.35);
  }

  .bottom-nav__item--cta.bottom-nav__item--active svg {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  }
}
