/* PG-11 / PG-05 calculator pages only. Mobile first; logical properties so Arabic (dir=rtl) mirrors. */
.hzc {
    --hzc-blue: var(--hagzi-primary, #0745d9);
    --hzc-ink: #171d29;
    --hzc-copy: #606977;
    --hzc-line: #e2e6ed;
    --hzc-wash: #eef3ff;
    --hzc-soft: #f5f7fa;
    background: #fff;
    color: var(--hzc-ink);
    padding-block: 8px 56px;
}
.hzc, .hzc * { box-sizing: border-box; }
.hzc p, .hzc h1, .hzc h2, .hzc h3, .hzc dl, .hzc dd { margin: 0; }
.hzc ul, .hzc ol { margin: 0; padding: 0; list-style: none; }
.hzc a { color: var(--hzc-blue); }
.hzc a:focus-visible, .hzc input:focus-visible, .hzc select:focus-visible, .hzc button:focus-visible { outline: 3px solid var(--hzc-blue); outline-offset: 3px; }
.hzc [hidden] { display: none !important; }
.hzc__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hzc__shell { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

.hzc__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 18px 20px; font-size: 13px; line-height: 1.5; color: #6c7481; }
.hzc__crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #b3b9c4; }
/* property-rtl.css gives li plaintext; an li holding only a link (itself an isolate) then has no strong character, turns LTR and puts the "/" after the link. */
[dir="rtl"] .hzc__crumbs li { unicode-bidi: isolate; }
.hzc__crumbs a { color: inherit; text-decoration: none; }
.hzc__crumbs a:hover { color: var(--hzc-blue); }
.hzc__crumbs [aria-current] { color: #384251; }

.hzc__title { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.hzc__intro { margin-top: 12px !important; max-width: 680px; color: var(--hzc-copy); font-size: 16px; line-height: 1.75; }
.hzc__prefilled { display: inline-block; margin-top: 14px !important; padding: 6px 12px; border-radius: 999px; background: var(--hzc-wash); color: #23314f; font-size: 13px; line-height: 1.5; }
.hzc__h2 { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; margin-bottom: 14px !important; }
.hzc__h3 { font-size: 16px; line-height: 1.4; font-weight: 650; margin-bottom: 10px !important; }

.hzc__layout { display: grid; gap: 20px; margin-top: 24px; }
.hzc__form, .hzc__result { min-width: 0; padding: 18px; border: 1px solid var(--hzc-line); border-radius: 12px; background: #fff; }
.hzc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hzc__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hzc__field--wide { grid-column: 1 / -1; }
.hzc__label { color: #3c414c; font-size: 13px; font-weight: 600; line-height: 1.4; }
.hzc__help { color: var(--hzc-copy); font-size: 12px; line-height: 1.5; }
.hzc__field input, .hzc__field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; color: var(--hzc-ink); font: inherit; font-size: 16px; }
.hzc__field input:focus, .hzc__field select:focus { border-color: var(--hzc-blue); }
.hzc__submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 16px; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--hzc-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hzc__submit:hover { background: #0638b0; }

.hzc__result { display: flex; flex-direction: column; gap: 16px; background: var(--hzc-soft); border-color: transparent; }
.hzc__headline { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 10px; background: var(--hzc-wash); }
.hzc__headline-label { color: #3c414c; font-size: 14px; font-weight: 600; }
.hzc__headline-value { font-size: clamp(28px, 7vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--hzc-ink); font-variant-numeric: tabular-nums; }
.hzc__figures { display: flex; flex-direction: column; gap: 14px; }
.hzc__list { display: grid; gap: 0; }
.hzc__list > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--hzc-line); font-size: 14px; line-height: 1.5; }
.hzc__list dt { color: var(--hzc-copy); }
.hzc__list dd { font-weight: 650; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hzc__list--compact > div { padding-block: 7px; font-size: 13.5px; }
.hzc__list-total { border-bottom: 0 !important; }
.hzc__list-total dt, .hzc__list-total dd { color: var(--hzc-ink); font-weight: 750; }
.hzc__how { color: #3c414c; font-size: 13.5px; line-height: 1.65; }
.hzc__invalid { padding: 12px 14px; border-radius: 8px; background: #fff6e5; color: #6b4a00; font-size: 14px; line-height: 1.6; }
.hzc__disclaimer { padding-inline-start: 12px; border-inline-start: 3px solid #c9d2e3; color: var(--hzc-copy); font-size: 12.5px; line-height: 1.65; }
.hzc__notice { padding: 12px 14px; border: 1px solid #f0d9a8; border-radius: 8px; background: #fffaf0; color: #5a4210; font-size: 13.5px; line-height: 1.65; }
.hzc__muted { color: var(--hzc-copy); font-size: 12.5px; line-height: 1.6; }
.hzc__upfront { padding: 14px 16px; border: 1px solid var(--hzc-line); border-radius: 10px; background: #fff; }
.hzc__link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.hzc__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 8px; background: var(--hzc-blue); color: #fff !important; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; }
.hzc__cta:hover { background: #0638b0; }

.hzc__schedule { margin-top: 32px; }
.hzc__table-wrap { overflow-x: auto; border: 1px solid var(--hzc-line); border-radius: 10px; background: #fff; }
.hzc__table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.hzc__table caption { padding: 12px 14px 4px; color: var(--hzc-copy); font-size: 12.5px; text-align: start; caption-side: top; }
.hzc__table th, .hzc__table td { padding: 10px 14px; border-bottom: 1px solid var(--hzc-line); text-align: end; white-space: nowrap; }
.hzc__table th:first-child { text-align: start; }
.hzc__table thead th { color: var(--hzc-copy); font-size: 12.5px; font-weight: 600; background: var(--hzc-soft); }
.hzc__table tbody th { font-weight: 600; }
.hzc__table tr:last-child > * { border-bottom: 0; }
.hzc__table--costs tbody th, .hzc__table--costs td:nth-child(2) { white-space: normal; }
.hzc__table--costs td:nth-child(2) { color: var(--hzc-copy); text-align: start; }
.hzc__table tfoot th, .hzc__table tfoot td { border-top: 1px solid var(--hzc-line); border-bottom: 0; font-weight: 600; }
.hzc__table tfoot th { text-align: start; }
.hzc__total th, .hzc__total td { font-size: 15px; font-weight: 800 !important; background: var(--hzc-wash); }

.hzc__others { margin-top: 36px; }
.hzc__cards { display: grid; gap: 14px; }
.hzc__card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--hzc-line); border-radius: 12px; background: #fff; color: var(--hzc-ink); text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.hzc__card a:hover { border-color: var(--hzc-blue); box-shadow: 0 8px 24px rgba(17, 30, 48, .07); }
.hzc__card-title { font-size: 17px; font-weight: 650; line-height: 1.35; }
.hzc__card-text { color: var(--hzc-copy); font-size: 14px; line-height: 1.6; }
.hzc__card-cta { margin-top: auto; padding-top: 6px; color: var(--hzc-blue); font-size: 14px; font-weight: 600; }
.hzc--hub .hzc__others { margin-top: 24px; }
.hzc--hub .hzc__disclaimer { margin-top: 28px; }

@media (min-width: 640px) {
    .hzc__shell { padding-inline: 24px; }
    .hzc__cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .hzc__submit { width: auto; }
}

@media (min-width: 960px) {
    .hzc { padding-block-end: 80px; }
    .hzc__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
    .hzc__form, .hzc__result { padding: 24px; }
    .hzc__result { position: sticky; top: 96px; }
}
