:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 16px;
  --maldon-red: #8C1D18;
  --topbar:#66745C;
  --topbar-dark:#4F5C46;
  --topbar-soft: rgba(102,116,92,.14);
    --brand-green: #4f6f52; /* tweak to match your header */
  }

*{ box-sizing:border-box; }

input[type="checkbox"] {
  accent-color: var(--brand-green);
}

.objection-header {
  color: var(--brand-green);
}

.objection-header:hover {
  background: #eef3ee;
}

.objection-header:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

.objection-point,
.objection-point span {
  color: #2f3a2f;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

/* Top header bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--topbar);
  color: #fff;
  text-align: center;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.2;
}

/* In-page header */
header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

header h1{
  margin:0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.tagline{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align:right;
  max-width: 360px;
}

/* Figures / images */
figure{ margin: 26px 0 0; }

.image-card{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background:#fff;
}

img{
  display:block;
  width:100%;
  height:auto;
}

.image-card img{
  max-height: 72vh;
  object-fit: cover;
}

figcaption{
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.image-info img{
  width: 75%;
  max-width: 75%;
  height: auto;
  margin: 0 auto;
}

/* Two-image gallery */
.gallery-two{
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.gallery-two figcaption{
  font-size: 12.5px;
}

/* Hover swap */
.hover-swap{
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.hover-swap img{
  display: block;
  width: 100%;
  height: auto;
}

.hover-swap img.swap{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.hover-swap:hover img.swap{
  opacity: 1;
}

/* CTA card */
.cta-card{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Default CTA typography */
.cta-card h2{
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta-card p{
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 14px;
}

/* Form */
#leadForm{
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
}

#leadForm input{
  width: 100%;
  min-height: 46px;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

#leadForm button{
  width: 100%;
  min-height: 46px;
  font-size: 16px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  background: var(--topbar-dark);
  color: #fff;
  font-weight: 800;
}

#leadForm button:hover{
  filter: brightness(0.95);
}

/* Textarea – match input styling (iOS-safe) */
textarea.form-input {
  width: 100%;
  min-height: 120px;

  font-size: 16px;
  line-height: 1.5;

  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;

  font-family: inherit;
  box-sizing: border-box;

  resize: vertical;
}

/* Disabled button */
button:disabled{
  background: #bbb !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Shared icon row */
.info-line{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* ✅ CTA title row: fixes alignment + spacing JUST for Stay informed */
.cta-card .info-line.cta-title{
  margin-bottom: 6px; /* tighter than the generic 10px */
}

.cta-card .info-line.cta-title h2{
  margin: 0;          /* remove h2 bottom margin inside this row */
  line-height: 1.05;  /* key: aligns text with icon */
}

/* CTA icon (match your other icons at 18px for consistent alignment) */
.cta-icon{
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--topbar-dark);
}

/* Consent block */
.consent-row{
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;

  margin: 0.5rem 0 0.9rem;
  padding: 0.35rem 0;
  max-width: 100%;

  font-size: 0.82rem;
  line-height: 1.35;
  color: #5f6368;
}

.consent-row input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin: 0;
  margin-top: 0.15rem;
  accent-color: var(--topbar-dark);
  border-radius: 4px;
}

.consent-text{
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  padding-left: 0.25rem;
}

.consent-text strong{
  font-weight: 700;
}

.consent-row a,
.privacy-link{
  color: var(--topbar-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(79,92,70,.35);
}

.consent-row a:hover,
.privacy-link:hover{
  border-bottom-color: rgba(79,92,70,.75);
}

@media (max-width: 480px){
  .consent-row{
    font-size: 0.8rem;
    column-gap: 0.6rem;
  }
}

/* Supporter inline stat */
.supporter-inline{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.supporter-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.supporter-count{
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.supporter-pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(90,169,181,.12);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Contact panel */
.contact-panel{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-line{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px 0;
}

.mail-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--topbar);
}

.email-link{
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  text-align: left;
}

.email-link:hover{
  text-decoration: underline;
}

/* Info panel */
.info-panel{
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF6, #FBF7EC);
  border: 1px solid rgba(201,179,126,.28);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

.info-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--topbar);
}

.info-panel h3{
  margin: 0;
  color: var(--topbar-dark);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.info-panel .subtext{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.info-panel a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  margin-top: 10px;

  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;

  background: rgba(255,255,255,.85);
  border: 1px solid rgba(102,116,92,.20);
  color: var(--topbar-dark);

  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.info-panel a:hover{
  background: rgba(102,116,92,.10);
  border-color: rgba(102,116,92,.32);
  transform: translateY(-1px);
}

/* Footer */
footer{
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

/* Mobile responsiveness */
@media (max-width: 720px){
  .gallery-two{ grid-template-columns: 1fr; }

  header{
    flex-direction: column;
    align-items:flex-start;
  }

  .tagline{ text-align:left; }
}

/* Fix alignment ONLY for the Stay informed row */
.cta-card .info-line.cta-title{
  align-items: baseline;   /* override the global center */
}

.cta-card .info-line.cta-title .cta-icon{
  align-self: baseline;
}

/* --- Pixel-perfect alignment for the Stay informed row (iOS-safe) --- */
.cta-card .info-line.cta-title{
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.cta-card .info-line.cta-title h2{
  margin: 0;
  line-height: 1.1;
}

.cta-card .info-line.cta-title .cta-icon{
  width: 18px;
  height: 18px;
  display: block;
  align-self: center;
  position: relative;
  top: 0px; /* tweak: try 0px, 1px, or 2px */
}

.point-section {
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.point-heading {
  width: 100%;
  text-align: left;
  padding: 12px;
  font-weight: bold;
  background: #f4f4f4;
  border: 0;
  cursor: pointer;
}

.point-content {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.council-logo {
  max-width: 140px;     /* sweet spot for mobile */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem; /* centre + breathing space */
}

/* === Campaign primary button === */
.campaign-btn{
  width: 100%;
  min-height: 46px;
  font-size: 16px;
  padding: 10px 12px;

  border: none;
  border-radius: 10px;

  background: var(--topbar-dark);
  color: #fff;
  font-weight: 800;

  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}

.campaign-btn:hover:not(:disabled){
  filter: brightness(0.95);
}

.campaign-btn:active:not(:disabled){
  transform: translateY(1px);
}

.objection-block {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}

.objection-header {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  background: #f6f7f4;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.objection-header .plus {
  display: inline-block;
  width: 20px;
  font-weight: bold;
  margin-right: 8px;
}

.objection-content {
  display: none;
  padding: 12px 16px;
}

.objection-content.open {
  display: block;
}

.objection-point {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.objection-point input {
  margin-top: 4px;
}

.info-line,
.warning-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  line-height: 1.5;
}

.info-icon,
.warning-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;

  background: #fff6e5;
  border-left: 4px solid #d59b2d;
  padding: 12px 14px;
  border-radius: 8px;
  flex-wrap: nowrap;
}

.warning-line strong {
  font-weight: 600;
}

.warning-text {
  display: block;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

.button-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#previewText {
  font-size: 16.5px;     /* slightly larger, very readable on iOS */
  line-height: 1.55;
  padding: 12px;
  font-family: inherit; /* keeps it consistent with your site */
}

.review-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;

  white-space: pre-wrap;
  word-break: break-word;

  max-height: none;   /* critical */
}

.primary-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
  z-index: 1000;
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}

.primary-action button {
  width: 100%;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;

  padding-top: 28px;
  padding-bottom: calc(170px + env(safe-area-inset-bottom));

  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.modal[hidden] {
  display: none !important;
}

.modal-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 0 auto 12px auto;
}

.secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 14px; /* THIS is what you're missing */
  margin-top: 20px;
}

.primary-action .campaign-btn {
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.secondary-actions .email-btn {
  opacity: 0.92;
}

.draft-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.draft-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

.primary-action .info-panel {
  margin-top: 0;
}
.primary-action .info-line {
  margin: 0;
}
.primary-action-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.modal a {
  color: var(--topbar-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79,92,70,.35);
}

.modal a:hover {
  border-bottom-color: rgba(79,92,70,.75);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: transparent;
  border-radius: 14px;
  padding: 6px;
  margin: 12px 0 20px;
}

.utility-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--topbar-dark);
  cursor: pointer;
}

.utility-btn:active {
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
}

.utility-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.icon {
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.cta-maldon {
  background: var(--maldon-red);
  color: #ffffff;
  border: none;
}

.cta-maldon:hover {
  background: #741712; /* slightly darker */
}

.cta-maldon:active {
  background: #5f120e;
}

#submitCheckModal .modal-content {
  text-align: center;
}

#submitCheckModal h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
}

/* Make anchor buttons look like real buttons */
a.campaign-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.utility-bar{
  display:flex;
  gap:10px;          /* small gap between buttons */
  margin-top:12px;
 }
 
 .utility-btn{
  flex:1;
  padding:10px 12px; /* shorter height */
  font-size:15px;
  border-radius:14px;
  border:1px solid #ddd;
  background:#f6f6f6;
 }
 
 .email-info{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:12px;
  font-size:15px;
  color:#333;
}

.email-info p{
  margin:0;
}

.email-info-icon{
  flex:0 0 18px;
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid #bbb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#777;
  margin-top:2px;
}


 .email-info{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:12px;   /* ← small gap under text */
  font-size:15px;
  color:#333;
}

.email-info p{
  margin:0;
}

.email-info-icon{
  flex:0 0 18px;      /* prevents stretching */
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid #bbb;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:12px;
  color:#777;

  margin-top:2px;
}
.copy-step{
  background:none;
  border:none;
  padding:0;
  font:inherit;
  color:var(--topbar-dark);
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}

.copy-step:active{
  opacity:0.6;
}

.portal-steps{
  text-align:left;
  padding-left:20px;
  line-height:1.5;
}

.copy-step{
  color:var(--topbar-dark);
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}

.copy-step:active{
  opacity:.6;
}

.info-line--icon {
  align-items: center; /* overrides baseline issues safely */
}

.info-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.info-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: 0.7;
}