:root{
  --brand-yellow:#FFC843;
  --brand-forest:#264E36;
  --brand-leaf:#4B8B3B;
  --bg-beige:#F5F1E6;
  --text-dark:#2D2D2D;
  --ui-gray:#E6E6E6;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text-dark);background:var(--bg-beige);line-height:1.6}
a{color:var(--brand-forest);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;padding:0 1rem;margin:0 auto}
.topbar{background:#1f3f2d;color:#fff;font-size:.9rem}
.topbar .container{display:flex;justify-content:flex-end;gap:1rem;padding:.35rem 1rem}
.topbar a{color:#fff}
header{background:var(--brand-forest);color:#fff;position:sticky;top:0;z-index:100}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0}
.brand .logo-wrap{background:#fff;border-radius:14px;padding:6px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.brand .logo-wrap img{display:block;height:56px;width:auto}
.header-spacer{flex:1}
nav ul{list-style:none;display:flex;gap:1rem;margin:0;padding:0;flex-wrap:wrap}
nav a{color:#fff;padding:.5rem .75rem;border-radius:.45rem}
nav a:hover{background:rgba(255,255,255,.1)}
nav .cta{background:var(--brand-yellow);color:var(--brand-forest);border:2px solid var(--brand-forest);font-weight:700}
main{padding-bottom:3rem}
section{padding:2rem 0}
h1,h2{color:var(--brand-forest)}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.row{display:grid;gap:1rem}
.row-2{grid-template-columns:1fr 1fr}
.row-3{grid-template-columns:repeat(3,1fr)}
@media (max-width: 900px){.row-2,.row-3{grid-template-columns:1fr}}
.btn{display:inline-block;padding:.75rem 1rem;border-radius:.75rem;border:2px solid var(--brand-forest)}
.btn-primary{background:var(--brand-yellow);color:var(--brand-forest);font-weight:800}
.btn-secondary{background:var(--brand-leaf);color:#fff;font-weight:700}
.card{background:#fff;border:1px solid var(--ui-gray);border-radius:1rem;padding:1.25rem;box-shadow:0 2px 4px rgba(0,0,0,.03);margin-bottom:1rem}
.section-white{background:#fff;border:1px solid var(--ui-gray);border-radius:1rem;padding:1.25rem;box-shadow:0 2px 4px rgba(0,0,0,.03)}

/* Small slider */
.small-slider{position:relative;overflow:hidden;border-radius:12px;border:1px solid var(--ui-gray);background:#000}
.small-slider .slide{display:none}
.small-slider .slide.active{display:block}
.small-slider img{width:100%;height:auto;display:block}
.small-controls{position:absolute;top:50%;left:0;right:0;display:flex;justify-content:space-between;transform:translateY(-50%);padding:0 .5rem}
.small-btn{background:rgba(0,0,0,.4);color:#fff;border:none;border-radius:.5rem;padding:.25rem .5rem;font-size:1rem;cursor:pointer}

/* Icons */
.icon{width:30px;height:30px;display:inline-block}
.icon-wrap{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:999px;background:#fff;border:2px solid var(--brand-forest);box-shadow:0 1px 2px rgba(0,0,0,.05);margin-right:.6rem}
.icon-card h3{display:flex;align-items:center;gap:.5rem;margin-top:0}
.icon-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

/* Forms */
form label{font-weight:600}
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=file],textarea,select{
  width:100%;padding:.6rem;border:1px solid var(--ui-gray);border-radius:.6rem
}
textarea{min-height:120px}
.checkbox{display:flex;gap:.5rem;align-items:flex-start}
.form-header{display:flex;align-items:center;gap:.6rem;margin:.5rem 0 1rem}
.form-header .icon-wrap{width:48px;height:48px}

/* Two-column form + sidebar layout */
.form-layout{display:grid;grid-template-columns:2fr 1fr;gap:1rem}
@media (max-width: 960px){.form-layout{grid-template-columns:1fr}}
.sidebar{background:#fff;border:1px solid var(--ui-gray);border-radius:12px;padding:1rem}
.sidebar img{width:100%;height:auto;border-radius:10px;margin-bottom:.75rem;border:1px solid var(--ui-gray)}

/* CTA divider */
.cta-band{background:linear-gradient(90deg, rgba(38,78,54,.07), rgba(38,78,54,0));border:1px dashed var(--brand-forest);border-radius:14px;padding:1rem;text-align:center;margin:1rem 0}

/* Footer */
footer{background:var(--ui-gray);padding:1.25rem 0;color:#333}
footer .bottom{border-top:1px solid #ccc;padding-top:.75rem;margin-top:.75rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
footer .foot-left{display:flex;align-items:center;gap:.5rem}
footer .foot-left img{height:28px;width:auto;background:#fff;border-radius:8px;padding:3px;border:1px solid #dcdcdc}
footer .links{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
footer .social a{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#fff;border:1px solid #cfcfcf;color:#111}

.link{font-weight:600;}
.link:hover{text-decoration:underline}

/* Update 11: header logo visibility */
.brand .logo-wrap{display:inline-block; background:#fff; border-radius:14px; padding:6px; box-shadow:0 1px 2px rgba(0,0,0,.06)}
.brand .logo-wrap img{max-height:60px; height:auto; width:auto; display:block; object-fit:contain}

/* Update 11: footer logo styling (no white plate) */
footer .foot-left img{height:38px !important; width:auto; background:transparent; border:none; padding:0}

/* Patch: enforce consistent full-width inputs on prescription forms (form-layout pages) */
.form-layout form input[type="text"],
.form-layout form input[type="email"],
.form-layout form input[type="tel"],
.form-layout form input[type="date"],
.form-layout form input[type="file"],
.form-layout form select,
.form-layout form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: .6rem;
  border: 1px solid var(--ui-gray);
  border-radius: .6rem;
}

/* (Fixed) Labels/checkbox rows dont collapse on all forms */
.form-layout form .checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* --- Fix for two-column rows on prescription forms (refill/transfer/etc.) --- */

/* Let grid items shrink so inputs can fully expand to the column width */
.form-layout .row-2 > * {
  min-width: 0;
}

/* Make the inputs fill the column */
.form-layout .row-2 input[type="text"],
.form-layout .row-2 input[type="email"],
.form-layout .row-2 input[type="tel"],
.form-layout .row-2 input[type="date"],
.form-layout .row-2 select {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Extra safety: target those two specific fields by name as well */
.form-layout input[name="name"],
.form-layout input[name="rx"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

/* === Patch: normalize .row-2 form fields to match single-column fields === */
.form-layout .row-2 input[type="text"],
.form-layout .row-2 input[type="email"],
.form-layout .row-2 input[type="tel"],
.form-layout .row-2 input[type="date"],
.form-layout .row-2 input[type="file"],
.form-layout .row-2 select,
.form-layout .row-2 textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: .6rem;
  border: 1px solid var(--ui-gray, #d1d5db);
  border-radius: .6rem;
  font: inherit;
  line-height: 1.5;
  background: #fff;
}

/* === Normalize first two fields in the two-column row (refill/transfer/etc.) === */
/* Let grid children shrink (already added earlier), and fully style controls */
.form-layout .row-2 > * { min-width: 0; }

/* Unify look: remove native chrome, force the same padding/border/radius/font */
.form-layout .row-2 input,
.form-layout .row-2 select,
.form-layout .row-2 textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;

  /* match your base form styling */
  padding: .6rem !important;
  border: 1px solid var(--ui-gray) !important;
  border-radius: .6rem !important;
  background: #fff !important;
  font: inherit !important;
  line-height: 1.5 !important;
}

/* If Prescription # uses type=number, remove spinner chrome so it matches others */
.form-layout .row-2 input[type="number"] {
  -moz-appearance: textfield;                 /* Firefox */
}
.form-layout .row-2 input[type="number"]::-webkit-outer-spin-button,
.form-layout .row-2 input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;        /* Chrome/Safari */
}

/* Date fields have their own native widgetlet them auto-size vertically */
.form-layout .row-2 input[type="date"] { height: auto !important; }

/* === New Prescription (split layout)  form left, image right === */
.container .split {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: stack */
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .container .split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* form | sidebar */
  }
}
.container .split > * { min-width: 0; }               /* allow contents to shrink */
.container .split .sidebar { float: none; }           /* kill any legacy floats */
.container .split img { max-width: 100%; height: auto; display: block; }

/* Make sure inputs stay full-width inside the grid */
.container .split form input[type="text"],
.container .split form input[type="email"],
.container .split form input[type="tel"],
.container .split form input[type="date"],
.container .split form input[type="file"],
.container .split form select,
.container .split form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Small-slider: fade animation */
.small-slider {
  position: relative;
  overflow: hidden;
}

.small-slider .slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  /* stack slides on top of each other so fading looks clean */
  position: absolute;
  inset: 0;
}

.small-slider .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.small-slider .slide.active {
  opacity: 1;
  visibility: visible;
  position: relative; /* keep active slide participating in layout for height */
}


/* Refined mobile logo style */
.mobile-header .brand .logo-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  display: inline-block;
}

.mobile-header .brand .logo-wrap img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}


/* === Header Visibility & Mobile App Bar (2025-09 refresh) === */

/* Default (desktop) */
.desktop-header { display: block; }
.mobile-header { display: none; }
.sticky-actions { display: none; }

/* Mobile: show compact header, hide desktop */
@media (max-width: 767px) {
  .desktop-header { display: none !important; }
  .mobile-header { display: block; }
  .sticky-actions { display: flex; gap: .75rem; }
  .topbar { display: none !important; } /* hide the thin call strip on mobile */
}

/* App bar styling */
.mobile-header .appbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 56px;
  padding: 0 .75rem;
  background: var(--brand-forest);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.mobile-header .spacer { flex: 1; }
.mobile-header .icon-btn {
  font-size: 22px; line-height: 1;
  background: none; border: 0; color: #fff; padding: 10px; cursor: pointer;
}

/* Drawer */
#mobileNav.drawer {
  position: fixed; inset: 0 0 0 auto; width: 84vw; max-width: 360px;
  background: #fff; box-shadow: -8px 0 20px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .2s ease-out;
  display: block;
  z-index: 1000;
}
#mobileNav.drawer.open { transform: translateX(0); }
#mobileNav.drawer ul { list-style: none; margin: 0; padding: 1rem; }
#mobileNav.drawer li { border-bottom: 1px solid #eee; }
#mobileNav.drawer a { display: block; padding: 14px 6px; color: #123; text-decoration: none; }
#mobileNav.drawer a.primary { background: var(--brand-yellow); border-radius: 10px; margin: .5rem 0; text-align: center; font-weight: 700; }
#mobileNav.drawer li.meta a { color:#456; padding: 10px 6px; }

/* Full-screen drawer on small devices */
@media (max-width: 767px) {
  #mobileNav.drawer { width: 100vw; }
}

/* Drawer backdrop */
body.no-scroll { overflow: hidden; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .2s ease; z-index: 999;
}
.drawer-backdrop.show { opacity: 1; }

/* Sticky bottom quick actions */
.sticky-actions {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  z-index: 998;
  justify-content: space-between;
  background: #fff;
  padding: .5rem;
  border-top: 1px solid #eee;
}
.sticky-actions a {
  flex: 1; text-align: center; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.sticky-actions .cta { background: var(--brand-yellow); color: var(--brand-forest); }
.sticky-actions .ghost { border:1px solid #cfcfcf; color:#123; }


/* Mobile header spacing / logo breathing room */
.mobile-header .appbar {
  min-height: 64px;          /* give the bar more vertical room */
  padding: 6px 12px;         /* inner padding so logo isn't squeezed */
}
.mobile-header .brand {
  display: flex;
  align-items: center;
  padding: 6px 0;            /* vertical breathing room around the image */
}
.mobile-header .brand img {
  height: 44px;              /* adjust as preferred: 44Ã¢â‚¬â€œ50px */
  width: auto;
  display: block;
  margin: 4px 0;             /* ensures it never touches the bar edges */
}

/* Drawer uses same green as desktop header */
#mobileNav.drawer { background: var(--brand-forest); color:#fff; }

/* Links inside the drawer */
#mobileNav.drawer a { color:#fff; text-decoration:none; display:block; padding:14px 8px; border-radius:8px; }
#mobileNav.drawer a:hover { background: rgba(255,255,255,.08); }
#mobileNav.drawer li { border-bottom:1px solid rgba(255,255,255,.12); }

/* Highlighted CTA */
#mobileNav.drawer a.primary {
  background: var(--brand-yellow); color: var(--brand-forest);
  border-radius:10px; margin:.5rem 0; text-align:center; font-weight:700;
}

/* Drawer top row with title + Close */
.drawer-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1rem; position:sticky; top:0; z-index:1;
  background: var(--brand-forest); border-bottom:1px solid rgba(255,255,255,.12);
}
.drawer-title { font-weight:700; letter-spacing:.2px; }
.drawer-close { appearance:none; background:transparent; border:0; cursor:pointer; color:#fff; font-size:26px; line-height:1; padding:6px 8px; }
.drawer-close:focus { outline:2px solid rgba(255,255,255,.6); outline-offset:2px; }

/* Space for list */
#mobileNav.drawer .drawer-list { list-style:none; margin:0; padding:.5rem 1rem 1rem; }


/* === Force green background for mobile drawer (override any earlier white) === */
nav#mobileNav.drawer { background: var(--brand-forest) !important; color:#fff !important; }
nav#mobileNav.drawer ul,
nav#mobileNav.drawer .drawer-list { background: transparent !important; }
nav#mobileNav.drawer a { color:#fff !important; }
nav#mobileNav.drawer li { border-bottom:1px solid rgba(255,255,255,.12) !important; }
nav#mobileNav.drawer .drawer-header { background: var(--brand-forest) !important; }

.btn-group {
  display: flex;
  flex-wrap: wrap;   /* allows them to stack on smaller screens */
  gap: 0.5rem;       /* adds space between buttons */
}

