/* Housing association lease extension pages (added 29 Nov 2026)
   Used by /services/*-lease-extensions pages for housing association landlords. */

/* ---- Hero ---- */
.ha-hero {
  position: relative;
  padding: 64px 0 56px;
  background: #0f172a;
  background-image: radial-gradient(circle at 85% 20%, rgba(40, 167, 69, 0.28), transparent 45%),
                    radial-gradient(circle at 10% 90%, rgba(14, 162, 189, 0.22), transparent 40%);
  color: #fff;
}
.ha-hero .ha-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ha-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}
.ha-hero .ha-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 26px;
}
.ha-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ha-btn-primary { background: #28a745; color: #fff; box-shadow: 0 10px 24px -10px rgba(40, 167, 69, 0.8); }
.ha-btn-primary:hover { background: #1f8a39; color: #fff; transform: translateY(-1px); }
.ha-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.ha-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ha-reviewed {
  margin-top: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.ha-reviewed a { color: #fff; text-decoration: underline; }

/* ---- Article body ---- */
.ha-body { padding: 56px 0; }
.ha-body .ha-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 14px;
  color: #0f172a;
}
.ha-body .ha-content h2:first-child { margin-top: 0; }
.ha-body .ha-content h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; color: #0f172a; }
.ha-body .ha-content p,
.ha-body .ha-content li { font-size: 16.5px; line-height: 1.75; color: #374151; }
.ha-body .ha-content ul,
.ha-body .ha-content ol { padding-left: 22px; margin-bottom: 18px; }
.ha-body .ha-content li { margin-bottom: 6px; }
.ha-body .ha-content a { color: #15803d; font-weight: 600; }

.ha-answer {
  margin: 0 0 30px;
  padding: 18px 22px;
  border-left: 4px solid #28a745;
  background: #f0fdf4;
  border-radius: 0;
}
.ha-answer p { margin: 0; color: #14532d !important; }
.ha-answer strong { color: #14532d; }

.ha-note {
  margin: 22px 0;
  padding: 16px 20px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 12px;
}
.ha-note p { margin: 0; color: #78350f !important; }

/* Key facts table */
.ha-facts { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15.5px; }
.ha-facts th,
.ha-facts td { padding: 11px 14px; border-bottom: 1px solid #e5e7eb; vertical-align: top; text-align: left; }
.ha-facts th { width: 34%; color: #0f172a; font-weight: 600; background: #f8fafc; }
.ha-facts td { color: #374151; }

/* Steps */
.ha-steps { counter-reset: ha-step; list-style: none; padding-left: 0 !important; }
.ha-steps li {
  position: relative;
  padding: 14px 16px 14px 58px;
  margin-bottom: 10px !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.ha-steps li::before {
  counter-increment: ha-step;
  content: counter(ha-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ (native details/summary so the answers are always in the HTML) */
.ha-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.ha-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 17px;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ha-faq summary::-webkit-details-marker { display: none; }
.ha-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: #28a745; }
.ha-faq details[open] summary::after { content: "\2212"; }
.ha-faq details > div { padding: 0 20px 16px; }
.ha-faq details > div p { margin: 0; }

/* Sources */
.ha-sources { font-size: 14px !important; }
.ha-sources li { font-size: 14px !important; line-height: 1.6 !important; word-break: break-word; }

/* ---- Sidebar ---- */
.ha-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.ha-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; background: #fff; }
.ha-card h2,
.ha-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: #0f172a; }
.ha-card p { font-size: 15px; color: #4b5563; line-height: 1.6; margin: 0 0 14px; }
.ha-card .ha-btn { width: 100%; justify-content: center; }
.ha-price { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 15px; }
.ha-price:last-of-type { border-bottom: 0; margin-bottom: 12px; }
.ha-price strong { white-space: nowrap; color: #0f172a; }
.ha-toc { list-style: none; padding: 0; margin: 0; }
.ha-toc a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 14.5px; color: #475569; text-decoration: none; }
.ha-toc a:hover { background: #f0fdf4; color: #14532d; }
.ha-author { display: flex; gap: 12px; align-items: center; }
.ha-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.ha-author p { margin: 0; font-size: 14px; }

/* ---- Related links ---- */
.ha-related { padding: 48px 0; background: #f8fafc; border-top: 1px solid #e5e7eb; }
.ha-related h2 { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.ha-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ha-related-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}
.ha-related-grid a:hover { border-color: #28a745; color: #15803d; }
.ha-related-grid a span { display: block; font-weight: 400; font-size: 13.5px; color: #64748b; margin-top: 2px; }

/* ---- Contact form (matches /services/lease-extension) ---- */
.honey-trap { display: none !important; }
.form-control:required,
.form-select:required { border-left: 5px solid #0ea2bd !important; background-color: #fff; }
.form-control:not(:required) { border-left: 5px solid #d1d5db !important; background-color: #f9f9f9; }
.form-control:focus,
.form-select:focus { background-color: #fff; border-color: #0ea2bd; box-shadow: 0 0 0 0.25rem rgba(14, 162, 189, 0.25); }
.required-star { color: #dc3545; font-weight: bold; margin-left: 3px; }
.contact-2 .php-email-form button.send-cta[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px; margin-top: 6px; padding: 16px 28px;
  border: 0; border-radius: 12px; background: #28a745; color: #fff;
  font-size: 18px; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -10px rgba(40, 167, 69, 0.75);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-2 .php-email-form button.send-cta[type=submit]:hover { background: #1f8a39; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(40, 167, 69, 0.85); }
.contact-2 .php-email-form button.send-cta[type=submit]:focus-visible { outline: 3px solid rgba(40, 167, 69, 0.35); outline-offset: 3px; }
.contact-2 .php-email-form button.send-cta .bi { font-size: 20px; transition: transform 0.15s ease; }
.contact-2 .php-email-form button.send-cta:hover .bi { transform: translateX(4px); }
.send-cta-note { margin: 12px 0 0; font-size: 13px; color: #6c757d; }
.send-cta-note .bi { margin-right: 4px; }

@media (max-width: 991px) {
  .ha-side { position: static; }
  .ha-hero { padding: 48px 0 40px; }
}
