/* JRL Estimator. Colours come from the Beaver Builder globals so they follow the site. */
.jrl-est {
  --jrl-dark: var(--fl-global-dark-blue, #050c1a);
  --jrl-blue: var(--fl-global-blue-buttons, #0193d3);
  --jrl-yellow: var(--fl-global-yellow, #fdb71b);
  --jrl-light: var(--fl-global-light-background, #f8f8f8);
  --jrl-text: var(--fl-global-body-text, #1f1f1f);
  --jrl-line: #e3e6ea;
  --jrl-radius: 10px;
  color: var(--jrl-text);
  max-width: 900px;
  margin: 0 auto;
}
.jrl-est *, .jrl-est *::before, .jrl-est *::after { box-sizing: border-box; }
.jrl-est__h { margin: 0 0 8px; }
.jrl-est__p { margin: 0 0 20px; }
.jrl-est__small { font-size: 0.9em; opacity: 0.8; }
.jrl-est__kicker { margin: 0 0 4px; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jrl-blue); font-weight: 700; }

/* progress */
.jrl-est__progress { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; }
.jrl-est__progress li { display: flex; align-items: center; gap: 6px; font-size: 0.8em; padding: 6px 12px; border-radius: 999px; background: var(--jrl-light); color: var(--jrl-text); opacity: 0.6; }
.jrl-est__progress li.is-done { opacity: 1; background: color-mix(in srgb, var(--jrl-blue) 12%, white); color: var(--jrl-blue); }
.jrl-est__progress li.is-current { opacity: 1; background: var(--jrl-dark); color: #fff; }
.jrl-est__progress li.is-done::before { content: "\2713"; font-weight: 700; }

/* category cards */
.jrl-est__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 24px; }
.jrl-est__card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--jrl-line); border-radius: var(--jrl-radius); background: #fff; cursor: pointer; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.jrl-est__card:hover { border-color: color-mix(in srgb, var(--jrl-blue) 50%, var(--jrl-line)); }
.jrl-est__card.is-on { border-color: var(--jrl-blue); box-shadow: 0 6px 20px rgba(1, 147, 211, 0.15); }
.jrl-est__card input { position: absolute; opacity: 0; pointer-events: none; }
.jrl-est__card-img { display: block; height: 120px; background-size: cover; background-position: center; }
.jrl-est__card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 44px 16px 16px; }
.jrl-est__card-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 8px; background: color-mix(in srgb, var(--jrl-blue) 12%, white); color: var(--jrl-blue); font-size: 1.2em; transition: background 0.15s, color 0.15s; }
.jrl-est__card.is-on .jrl-est__card-icon { background: var(--jrl-blue); color: #fff; }
.jrl-est__card-title { font-weight: 700; font-size: 1.05em; color: var(--jrl-dark); }
.jrl-est__card-desc { font-size: 0.9em; opacity: 0.8; }
.jrl-est__card-count { font-size: 0.78em; color: var(--jrl-blue); font-weight: 600; }
.jrl-est__tick { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--jrl-line); background: #fff; }
.jrl-est__card.is-on .jrl-est__tick { border-color: var(--jrl-blue); background: var(--jrl-blue); }
.jrl-est__card.is-on .jrl-est__tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* items */
.jrl-est__items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.jrl-est__item { border: 2px solid var(--jrl-line); border-radius: var(--jrl-radius); background: #fff; transition: border-color 0.15s; }
.jrl-est__item.is-on { border-color: var(--jrl-blue); }
.jrl-est__item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; margin: 0; }
.jrl-est__item-head input { width: 20px; height: 20px; margin: 0; accent-color: var(--jrl-blue); flex: 0 0 auto; }
.jrl-est__item-name { font-weight: 600; color: var(--jrl-dark); }
.jrl-est__item-note { font-size: 0.82em; opacity: 0.7; flex-basis: 100%; padding-left: 30px; }
.jrl-est__inputs { display: none; flex-wrap: wrap; gap: 12px; padding: 0 16px 16px 46px; }
.jrl-est__item.is-on .jrl-est__inputs { display: flex; }

/* fields */
.jrl-est__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 130px; max-width: 220px; margin: 0; font-size: 0.85em; }
.jrl-est__field input { width: 100%; padding: 10px 12px; border: 1px solid var(--jrl-line); border-radius: 6px; font-size: 1.1em; background: #fff; color: var(--jrl-text); }
.jrl-est__field input:focus { outline: 2px solid var(--jrl-blue); outline-offset: 1px; border-color: var(--jrl-blue); }
.jrl-est__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.jrl-est__form .jrl-est__field { max-width: none; }
.jrl-est__field--email, .jrl-est__field--suburb { grid-column: span 2; }
.jrl-est__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
@media (max-width: 560px) { .jrl-est__form { grid-template-columns: 1fr; } .jrl-est__field--email, .jrl-est__field--suburb { grid-column: auto; } }

/* nav + buttons */
.jrl-est__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.jrl-est__btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--jrl-blue); color: #fff !important; font-weight: 700; text-decoration: none !important; border: 2px solid var(--jrl-blue); cursor: pointer; font-size: 1em; line-height: 1.2; transition: background 0.15s, border-color 0.15s; }
.jrl-est__btn:hover { background: var(--jrl-dark); border-color: var(--jrl-dark); }
.jrl-est__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.jrl-est__btn--ghost { background: transparent; color: var(--jrl-dark) !important; border-color: var(--jrl-line); }
.jrl-est__btn--ghost:hover { background: var(--jrl-light); border-color: var(--jrl-dark); }
.jrl-est__link { background: none; border: 0; padding: 0; margin-top: 16px; color: var(--jrl-blue); text-decoration: underline; cursor: pointer; font-size: 0.9em; }

.jrl-est__warn { padding: 12px 16px; border-radius: 8px; background: color-mix(in srgb, var(--jrl-yellow) 18%, white); border-left: 4px solid var(--jrl-yellow); margin-bottom: 18px; font-size: 0.95em; }
.jrl-est__error { padding: 12px 16px; border-radius: 8px; background: #fdecec; border-left: 4px solid #d33; margin-bottom: 14px; font-size: 0.95em; }

/* results */
.jrl-est__range { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; border-radius: var(--jrl-radius); background: var(--jrl-dark); color: #fff; margin-bottom: 22px; border-left: 6px solid var(--jrl-yellow); }
.jrl-est__range-figure { font-size: 2em; font-weight: 800; line-height: 1.1; }
.jrl-est__range-figure em { font-style: normal; font-weight: 400; font-size: 0.5em; opacity: 0.8; margin: 0 6px; }
.jrl-est__range-note { font-size: 0.85em; opacity: 0.8; }
.jrl-est__table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 0.95em; }
.jrl-est__table td, .jrl-est__table th { padding: 10px 8px; border-bottom: 1px solid var(--jrl-line); text-align: left; vertical-align: top; }
.jrl-est__table small { opacity: 0.7; }
.jrl-est__cat-row th { padding-top: 18px; color: var(--jrl-blue); text-transform: uppercase; font-size: 0.8em; letter-spacing: 0.06em; border-bottom: 2px solid var(--jrl-blue); }
.jrl-est__detail { white-space: nowrap; opacity: 0.75; font-size: 0.9em; }
.jrl-est__amt { text-align: right !important; font-weight: 700; white-space: nowrap; }
.jrl-est__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.jrl-est__disclaimer { margin-top: 20px; padding: 18px 20px; background: var(--jrl-light); border-radius: var(--jrl-radius); font-size: 0.88em; }
.jrl-est__disclaimer p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .jrl-est__table { display: block; }
  .jrl-est__table tbody, .jrl-est__table tr { display: block; }
  .jrl-est__table td { display: block; border: 0; padding: 4px 8px; }
  .jrl-est__table tr { border-bottom: 1px solid var(--jrl-line); padding: 8px 0; }
  .jrl-est__detail { white-space: normal; }
  .jrl-est__amt { text-align: left !important; }
  .jrl-est__range-figure { font-size: 1.5em; }
}
