/* --------------------------------------------------
   GLOBAL THEME — Leanly (Modern Startup v4)
-------------------------------------------------- */

:root {
  --primary: #08bfb0;        /* Aqua-teal */
  --primary-dark: #089e8e;
  --secondary: #045678;      /* Deep teal */
  --accent: #ffd166;         /* Warm gold */

  --hero-h2: #cfe9ff;

  --bg: #f3f7f8;
  --bg-strong: #e3f6f6;
  --highlight: #ffe7b0;
  --step-light: #ffffff;
  --step-contrast: #dff3ef;
  --text: #0a0a0a;
  --text-light: #5f5f5f;
  --white: #ffffff;
}


/* --------------------------------------------------
   BASE
-------------------------------------------------- */

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7f8 40%, #f3f7f8 100%);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  font-weight: 600;
}

h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.h2-small {
  font-size: 1.4rem;
}


h3 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}

h4 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section {
  max-width: 1120px;
  padding: 5rem 1.75rem;
  margin: 0 auto;
}

.coloured-block {
  background: radial-gradient(circle at top left, #ffffff, #e9f7f7);
  border-radius: 20px;
  padding: 5rem 2.2rem;
}


/* --------------------------------------------------
   TEXT HELPERS
-------------------------------------------------- */

.text-accent {
  color: var(--accent);
  font-weight: 600;
}


/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 214, 214, 0.7);
  padding: 0.9rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--accent);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #ffcd46;
}


/* --------------------------------------------------
   HERO - original photo background
-------------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  text-align: left;
  padding: 9rem 2rem 10rem;
  border-radius: 0 0 24px 24px;
  background: url("img/hero.webp") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4rem;
}

.hero-content {
  max-width: 540px;
}

/* Larger Leanly brand in hero */
.leanly-title {
  font-size: clamp(4rem, 6vw + 1rem, 5.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -1px;
  /* animation: pulse-title 2.5s ease-in-out infinite;
  transform-origin: left center; */
}

.leanly-slogan {
  font-size: 2.0rem;
  font-style: italic;
  font-weight: 700; /* bold */
  color: #ffffff; /* white text */
  margin-top: -0.4rem;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9); /* black shadow */
}

/* generic hero h2 */
.hero h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hero-h2);
}

/* homepage special hero headline */
.hero .hero-headline {
  font-size: clamp(2.4rem, 3.2vw + 1rem, 3.2rem);
  line-height: 1.12;
  margin-bottom: 1.6rem;
  color: #ffffff;
}

.hero .hero-headline.h2-small {
  font-size: 1.4rem;
}


/* small label above hero copy */
.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.hero-body {
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
  color: #f4f7fb;
}

.hero-points {
  display: flex;
  flex-direction: column;  /* forces vertical stacking */
  gap: 0.7rem;
  margin-bottom: 2.3rem;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.9);
  color: #1f1f1f;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  width: fit-content;       /* ensures pills shrink to content */
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-secondary-note {
  font-size: 0.9rem;
  color: #f5f5f5;
  max-width: 320px;
}


/* --------------------------------------------------
   HERO VISUAL - PULSING TELEHEALTH PHONE
-------------------------------------------------- */

.hero-visual {
  position: relative;
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-ring {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e6f5f5);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(8, 191, 176, 0.55);
  animation: telehealthRing 2.4s infinite ease-out;
  transform-origin: center;
}

.ring-outer {
  width: 220px;
  height: 220px;
  animation-delay: 0s;
}

.ring-middle {
  width: 170px;
  height: 170px;
  animation-delay: 0.4s;
}

.ring-inner {
  width: 125px;
  height: 125px;
  animation-delay: 0.8s;
}

/* phone-shaped centre object */
.call-icon {
  position: relative;
  width: 56px;
  height: 108px; /* increased from 88px to 108px */
  border-radius: 20px; /* slightly increased so corners look right */
  background: linear-gradient(145deg, #08bfb0, #045678);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;

  /* clockwise tilt */
  transform: rotate(15deg) translateY(3px);
}

/* phone screen */
.call-icon::before {
  content: "";
  position: absolute;
  inset: 10px 6px 14px; /* adjusted to match taller body */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 10px 18px rgba(255, 255, 255, 0.12);
}

/* top speaker + bottom pill */
.call-icon-bar {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.call-icon-bar-top {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
}

.call-icon-bar-bottom {
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
}

/* ring animation */
@keyframes telehealthRing {
  0% {
    transform: scale(0.75);
    opacity: 0.7;
  }
  60% {
    transform: scale(1.05);
    opacity: 0.15;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* optional section wrapper */
.phone-callout {
  max-width: 1120px;
  padding: 0 1.75rem 4rem;
  margin: 0 auto;
}

.phone-callout-inner {
  border-radius: 24px;
  padding: 3.2rem 2.5rem;
  background: radial-gradient(circle at top left, #ffffff, #f3f5ff);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.phone-callout-copy {
  max-width: 520px;
}


/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 0.85rem 1.9rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  background: #ffcd46;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
}

.btn-primary-large {
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
}

/* Pulsating CTAs:
   - Header "Book now" (nav-cta)
   - Hero "Book a consult" (btn-primary btn-primary-large)
   - Step 1 "Book online" card (step-now)
*/
header .nav-cta,
.hero .btn-primary.btn-primary-large,
.pricing-card .btn-primary.btn-primary-large,
.bmi-book-btn.btn-primary.btn-primary-large {
  animation: pulse-cta 1.0s ease-in-out infinite;
}

/* Booking CTA on weight-management page */
.register-block .btn-primary.btn-primary-large {
  animation: pulse-cta 1.0s ease-in-out infinite;
}

/* Clinician page register-interest button */
.section-cta-inner .btn-primary {
  animation: pulse-cta 1.0s ease-in-out infinite;
}

.submit-right {
  display: flex;
  margin-left: auto;
}

.hero-cta-row .btn-primary-large {
  width: fit-content;
  padding-left: 2rem;
  padding-right: 2rem;
}



/* --------------------------------------------------
   SECTIONS / CALLOUT CTA
-------------------------------------------------- */

.future-note {
  background: var(--white);
  color: var(--text-light);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.75rem;
}

.section-cta {
  max-width: 1120px;
  padding-top: 0;
  padding-bottom: 4rem;
}

.section-cta-inner {
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  background: radial-gradient(circle at top left, #ffffff, #f3f5ff);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.section-cta-inner h3 {
  margin-bottom: 0.75rem;
}

.section-cta-inner p {
  margin-bottom: 1.7rem;
  font-size: 0.98rem;
  color: var(--text-light);
}


/* --------------------------------------------------
   STEP LABELS / STEP GRID
-------------------------------------------------- */

.step-label {
  display: inline-block;
  background: var(--primary-dark);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-right: 6px;
}

/* FAQ heading stays white */
#faq h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* WHY heading gets a strong contrasting colour */
/* Make WHY heading white on index-cliniko */
#why h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.step-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  background: var(--step-contrast);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  border-top: 3px solid var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.14);
  background: #e9f7f4;
}

.step-now {
  background: var(--highlight);
  border-top: 3px solid var(--accent);
}

.step p {
  color: var(--text-light);
}

.big-step-num {
  font-size: 2.15rem;
  font-weight: 700;
}


/* --------------------------------------------------
   PRICING
-------------------------------------------------- */

.pricing-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

.pricing-card-soft {
  background: radial-gradient(circle at top, #ffffff, #f7fbff);
}

#pricing h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.pricing-card ul {
  line-height: 1.65;
  margin: 1rem 0 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.disclaimer-box {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  background: rgba(255, 209, 102, 0.25);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}


/* --------------------------------------------------
   WHY
-------------------------------------------------- */

.why-img {
  background: url("img/man.webp") center/cover no-repeat;
  border-radius: 20px;
  position: relative;
  padding: 6rem 2.5rem;
  color: #fff;
  min-height: 580px;
}

.why-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.3));
  border-radius: inherit;
}

.why-overlay {
  position: relative;
  z-index: 1;
}

.why-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.96rem;
}

.why-list li::before {
  content: "✔";
  color: var(--primary);
  left: 0;
  position: absolute;
  font-weight: 700;
}


/* --------------------------------------------------
   FAQ
-------------------------------------------------- */

#faq {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.faq-block {
  position: relative;
  width: 100%;
  border-radius: 20px;
  background-image: url("img/client.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #e3f6f6;
}

.faq-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 86, 120, 0.8), rgba(4, 86, 120, 0.45));
  border-radius: inherit;
}

.faq-overlay {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 3.5rem 2.6rem;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  color: var(--white);
}

.faq-list li {
  margin-bottom: 1.55rem;
  font-size: 0.96rem;
}

.faq-list strong {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}


/* --------------------------------------------------
   REGISTER
-------------------------------------------------- */

.register-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.7rem 2.2rem;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

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

.register-form input,
.register-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #d4d4d4;
  font-size: 0.96rem;
  margin-bottom: 1.15rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.register-form input:focus,
.register-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(8, 191, 176, 0.2);
}

.form-response {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
  font-size: 0.9rem;
}
.form-response.success {
  background: #eaffe9;
  color: #0a7a34;
}
.form-response.error {
  background: #ffe8e8;
  color: #b80000;
}


/* --------------------------------------------------
   ABOUT — FOUNDER
-------------------------------------------------- */

.about-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.founder-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.about-founder-block {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
}

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.about-copy {
  max-width: 640px;
}

.about-copy p {
  font-size: 0.98rem;
  color: #262626;
}


/* --------------------------------------------------
   CONTACT
-------------------------------------------------- */

.contact {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  border-radius: 20px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.contact a {
  color: var(--accent);
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
  text-align: center;
  background: var(--primary-dark);
  color: var(--white);
  padding: 1.8rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--primary);
}


/* --------------------------------------------------
   LOGO
-------------------------------------------------- */

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 900px) {
  .brand-logo {
    height: 54px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 40px;
  }
}


/* --------------------------------------------------
   CLINIKO BOOKING EMBED
-------------------------------------------------- */

.booking-embed {
  max-width: 900px;
  margin: 1.8rem auto 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  min-height: 400px;
}

.booking-note {
  max-width: 520px;
  margin: 1.25rem auto 0;
  text-align: center;
  color: var(--text-light);
}

.age-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}


/* --------------------------------------------------
   ANIMATIONS
-------------------------------------------------- */

@keyframes pulse-title {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes pulse-cta {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .leanly-title,
  header .nav-cta,
  .hero .btn-primary.btn-primary-large,
  .step.step-now {
    animation: none;
  }
}

/* --------------------------------------------------
   CTA BASE STYLING IMPROVEMENTS
   -------------------------------------------------- */

/* Taller, more touchable buttons with cleaner weight */
.btn-primary,
.nav-cta {
  padding: 14px 26px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.25s ease !important;
}

/* Stronger CTA colour (clean teal-blue) */
.btn-primary,
.nav-cta {
  background: #009cba !important;
  color: #ffffff !important;
}

/* Hover glow + slight scale */
.btn-primary:hover,
.nav-cta:hover,
.step-now:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.7) !important;
  filter: brightness(1.05) !important;
}

/* --------------------------------------------------
   PULSE for primary CTAs ONLY
   -------------------------------------------------- */
@keyframes pulse-cta {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  }
}

/* Apply pulse to the four key booking actions */
header .nav-cta,
.hero .btn-primary.btn-primary-large,
.register-block .btn-primary.btn-primary-large,
.pricing-card .btn-primary.btn-primary-large,
.bmi-book-btn.btn-primary.btn-primary-large {
  animation: pulse-cta 1.0s ease-in-out infinite;
}

/* --------------------------------------------------
   MICRO ARROWS
   -------------------------------------------------- */

.btn-primary.btn-primary-large::after,
.nav-cta::after,
.step-now .step-title::after,
.register-block .btn-primary.btn-primary-large::after {
  content: " →";
  font-weight: 600;
  margin-left: 6px;
  transition: margin-left 0.25s ease;
}

.btn-primary.btn-primary-large:hover::after,
.nav-cta:hover::after,
.step-now:hover .step-title::after,
.register-block .btn-primary.btn-primary-large:hover::after {
  margin-left: 10px;
}

/* --------------------------------------------------
   CLICK FEEDBACK (ripple)
   -------------------------------------------------- */

.btn-primary:active,
.nav-cta:active,
.step-now:active {
  transform: scale(0.96) !important;
  filter: brightness(0.9) !important;
  transition: transform 0.1s ease, filter 0.1s ease !important;
}

/* --------------------------------------------------
   Respect reduced-motion users
   -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .nav-cta,
  .step-now {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Remove underline from primary CTAs */
.btn-primary,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active {
  text-decoration: none !important;
}


/* --------------------------------------------------
   BMI CALCULATOR
-------------------------------------------------- */

.bmi-section {
  max-width: 720px;
  margin: 0 auto 4rem auto;
  padding: 2.5rem 2.1rem;
  background: var(--step-light);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.bmi-intro {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.bmi-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.bmi-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bmi-input-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.bmi-input-row input {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d4d4d4;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bmi-input-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(8, 191, 176, 0.2);
}

.bmi-submit {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.bmi-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: #d32f2f;
}

/* Result block hidden until JS shows it */
.bmi-result {
  display: none;
  margin-top: 1.25rem;
}

.bmi-bar-wrapper {
  position: relative;
  margin-bottom: 0.35rem;
}

/* Gradient BMI bar (0–50) */
.bmi-bar {
  width: 100%;
  height: 50px; /* taller bar */
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #d32f2f 0%,
    #d32f2f 37%,   /* 18.5 / 50 */
    #43a047 37%,
    #43a047 50%,   /* 25 / 50 */
    #fbc02d 50%,
    #fbc02d 54%,   /* 27 / 50 */
    #f57c00 54%,
    #f57c00 60%,   /* 30 / 50 */
    #d32f2f 60%,
    #d32f2f 100%
  );
}

/* Marker base */
.bmi-marker {
  position: absolute;
  top: 6px;
  width: 2px;
  height: 32px;
  border-radius: 999px;
  pointer-events: none;
  transform: translateX(-50%);
}

/* White threshold markers at 18.5, 25, 27, 30 */
.bmi-marker-threshold {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.bmi-marker-18-5 {
  left: 37%;  /* 18.5 / 50 */
}

.bmi-marker-25 {
  left: 50%;  /* 25 / 50 */
}

.bmi-marker-27 {
  left: 54%;  /* 27 / 50 */
}

.bmi-marker-30 {
  left: 60%;  /* 30 / 50 */
}

/* Black current BMI marker */
.bmi-marker-current {
  top: -12px;
  height: 76px;
  width: 5px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  left: 43.4%;             /* starting position ≈ BMI 21.7 */
  transition: left 1.6s ease;  /* enables the animation */
}

/* Scale labels */
.bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Larger BMI result text */
.bmi-value-text {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.bmi-value-text span {
  font-size: 2rem;
  font-weight: 700;
}

/* Suitability note */
.bmi-suitability-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
}

.bmi-book-btn {
  margin-top: 0.9rem;
}

/* Make Calculate BMI a different colour to the main CTAs */
.bmi-calc-btn.btn-primary.btn-primary-large {
  background: #ffffff !important;
  color: #009cba !important;
  border: 2px solid #009cba !important;
  box-shadow: none !important;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .bmi-section {
    padding: 2.1rem 1.6rem;
  }

  .bmi-form {
    grid-template-columns: 1fr;
  }

  .bmi-submit {
    justify-self: stretch;
  }
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 960px) {
  header {
    padding: 0.85rem 1.2rem;
  }

  nav a {
    margin-left: 0.9rem;
  }

  .hero {
    padding: 7.5rem 1.4rem 7rem;
    border-radius: 0 0 18px 18px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .hero-visual {
    align-self: center;
  }

  section {
    padding: 4rem 1.4rem;
  }

  .coloured-block {
    padding: 4.2rem 1.6rem;
  }

  .faq-overlay {
    padding: 3rem 1.9rem;
  }

  .section-cta-inner {
    padding: 3rem 1.9rem;
  }

  .phone-callout-inner {
    flex-direction: column;
  }

  .about-layout {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 6.5rem;
    padding-bottom: 5.5rem;
  }

  .leanly-title {
    font-size: 3rem;
  }

  .hero .hero-headline {
    font-size: 2.1rem;
  }

  .hero-points {
    gap: 0.5rem;
  }

  .hero-points li {
    font-size: 0.86rem;
  }

  .call-ring {
    width: 190px;
    height: 190px;
  }

  .ring-outer {
    width: 190px;
    height: 190px;
  }

  .ring-middle {
    width: 145px;
    height: 145px;
  }

  .ring-inner {
    width: 110px;
    height: 110px;
  }

  .pricing-card {
    padding: 2.4rem 1.8rem;
  }

  .register-form {
    padding: 2.1rem 1.6rem;
  }

    /* Mobile tweaks for header so everything fits on one line */
  @media (max-width: 640px) {
    header {
      padding: 0.6rem 0.9rem;
    }

    .brand-logo {
      height: 34px;
    }

    nav a {
      margin-left: 0.6rem;
      font-size: 0.9rem;
    }

    /* Make the nav button smaller and prevent wrapping */
    .nav-cta {
      padding: 0.35rem 0.75rem !important;
      font-size: 0.9rem !important;
      white-space: nowrap;
    }

    /* Remove arrow on mobile to save width */
    .nav-cta::after {
      content: none !important;
    }
  }

}


