/* =============================================
   CIVIL SUBDIVISIONS QUEENSLAND — homepage + shared extras (loaded after style.css)
   ============================================= */

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header: phone number beside the menu ---------- */
.nav__phone { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 8px 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: var(--radius-sm); }
.nav__phone .ic { width: 18px; height: 18px; color: var(--color-accent); }
.nav__phone:hover { background: rgba(255,255,255,.1); }

/* ---------- Hero additions ---------- */
.hero__actions .btn .ic { width: 19px; height: 19px; }
.hero__contact-line { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.78); }
.hero__contact-line a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(245,166,35,.7); text-underline-offset: 3px; }
.hero__contact-line a:hover { color: var(--color-accent); }
.hero__free { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--color-accent); font-weight: 700; }

/* ---------- Shared section bits ---------- */
.sec { padding: 96px 0; }
.sec--light { background: var(--color-light); }
.sec--dark { background: var(--color-dark); color: #fff; }
.sec--dark .section-title { color: #fff; }
.sec--dark .section-subtitle { color: rgba(255,255,255,.72); }
.sec .section-header { margin-bottom: 48px; }

/* ---------- How it works ---------- */
.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: how; }
.how__step { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px 22px 24px; box-shadow: var(--shadow-sm); }
.how__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); color: var(--color-dark); font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; box-shadow: 0 0 0 5px rgba(245,166,35,.16); }
.how__step h3 { font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.15; color: var(--color-dark); margin-bottom: 8px; }
.how__step p { font-size: 14.5px; line-height: 1.6; color: var(--color-text-light); }
.how__free { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #e7f6ec; color: #17803d; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .5px; vertical-align: 3px; }
.how__link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.how__link:hover { text-decoration: underline; }

/* ---------- Who we connect you with ---------- */
.network__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.net-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: box-shadow var(--transition), transform var(--transition); }
.net-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.net-card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(10,79,143,.08); color: var(--color-primary); flex: none; }
.net-card__icon .ic { width: 26px; height: 26px; }
.net-card h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-dark); line-height: 1.15; margin-bottom: 6px; }
.net-card p { font-size: 14px; line-height: 1.55; color: var(--color-text-light); }
.soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fff4de; color: #9a5b00; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .4px; vertical-align: 3px; }
.network__note { text-align: center; margin-top: 30px; font-size: 15px; color: var(--color-text-light); }
.network__note a { color: var(--color-primary); font-weight: 600; }

/* ---------- "Free means free" ---------- */
.freebox { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: #fff; border: 2px solid var(--color-accent); border-radius: var(--radius-lg); padding: 30px 34px; box-shadow: var(--shadow-md); }
.freebox__badge { width: 96px; height: 96px; border-radius: 50%; background: var(--color-accent); color: var(--color-dark); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.7rem; letter-spacing: .5px; }
.freebox h2 { font-family: var(--font-heading); font-size: 1.9rem; color: var(--color-dark); line-height: 1.15; margin-bottom: 8px; }
.freebox p { font-size: 15.5px; line-height: 1.65; color: var(--color-text); }

/* ---------- Get free help: contact options + form ---------- */
.contact.sec--light { padding-top: 56px; }
.contact.sec--light .contact__form-wrapper { background: #fff; box-shadow: var(--shadow-md); }
.form__group .chip { text-transform: none; letter-spacing: normal; font-weight: 500; }
.help__ways { display: grid; gap: 14px; margin: 26px 0 0; }
.way { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; text-decoration: none; color: inherit; transition: border-color var(--transition), box-shadow var(--transition); }
a.way:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.way__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(245,166,35,.15); color: #b26b00; flex: none; }
.way__text { display: block; }
.way strong { display: block; font-size: 15.5px; color: var(--color-dark); }
.way__sub { display: block; font-size: 14px; color: var(--color-text-light); line-height: 1.5; overflow-wrap: anywhere; }
.contact__grid > * { min-width: 0; }   /* let the email address wrap instead of widening the page on small phones */
.way .way__free { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #e7f6ec; color: #17803d; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; vertical-align: 2px; }
.help__rpeq { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 13.5px; color: var(--color-text-light); }
.help__rpeq .ic { color: var(--color-primary); width: 22px; height: 22px; }

.form__hint { font-size: 12.5px; color: var(--color-text-light); margin-top: -2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 13px; border: 1.5px solid var(--color-border); border-radius: 99px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--color-text); cursor: pointer; user-select: none; transition: all var(--transition); }
.chip input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 600; }
.chip input:checked + span small { color: var(--color-accent); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10,79,143,.2); }
.chip small { font-size: 11px; color: #9a5b00; font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--color-text); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); flex: none; }
.consent a { color: var(--color-primary); }
.form__fineprint { text-align: center; font-size: 12.5px; color: var(--color-text-light); }
.form__error { display: none; color: #c62828; font-size: 13px; }
.form__error.show { display: block; }
.form__error a { color: inherit; font-weight: 600; }

/* ---------- For professionals ---------- */
.pros { background: linear-gradient(120deg, var(--color-primary-dk), var(--color-primary)); color: #fff; padding: 56px 0; }
.pros__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.pros h2 { font-family: var(--font-heading); font-size: 2rem; line-height: 1.15; margin-bottom: 6px; }
.pros p { color: rgba(255,255,255,.82); max-width: 640px; }
.pros .btn--outline:hover { color: #fff; }

/* Keep the footer's legal links clear of the floating back-to-top button */
.site-footer__bottom { padding-right: 60px; }

/* ---------- Sticky call / callback bar on phones ---------- */
.mobile-cta { display: none; }

/* These pages use viewport-fit=cover (for the bar above): keep content clear of the notch in landscape */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__phone { display: none; }
}
@media (max-width: 1024px) {
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .network__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sec { padding: 64px 0; }
  .freebox { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .freebox__badge { margin: 0 auto; width: 80px; height: 80px; font-size: 1.45rem; }
  .pros__inner { flex-direction: column; align-items: flex-start; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    /* safe-area insets keep the buttons clear of the iPhone home bar and rounded screen corners (needs viewport-fit=cover) */
    padding: 10px max(12px, env(safe-area-inset-right)) max(14px, calc(6px + env(safe-area-inset-bottom))) max(12px, env(safe-area-inset-left));
    /* solid background on its own layer: the hero band's blur effect showed through a see-through one */
    background: var(--color-dark); border-top: 1px solid rgba(255,255,255,.12); transform: translateZ(0);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: 14.5px; white-space: nowrap; text-decoration: none; }
  .mobile-cta .ic { width: 18px; height: 18px; }
  .mobile-cta__call { background: var(--color-accent); color: var(--color-dark); }
  .mobile-cta__cb { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  /* Hide the bar while typing, so it doesn't sit on top of the field above the keyboard */
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus) .mobile-cta { display: none; }
}
@media (max-width: 360px) {
  .mobile-cta a { gap: 5px; padding: 0 6px; font-size: 13.5px; }
  .mobile-cta .ic { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
  .how__grid, .network__grid { grid-template-columns: 1fr; }
}
