/* Hagzi mortgage finder page only. Mobile first; logical properties so Arabic (dir=rtl) mirrors. No web font or image. */
.hzm {
    --hzm-blue: var(--hagzi-primary, #0745d9);
    --hzm-ink: #171d29;
    --hzm-copy: #606977;
    --hzm-line: #e2e6ed;
    --hzm-wash: #eef3ff;
    --hzm-soft: #f5f7fa;
    background: #fff;
    color: var(--hzm-ink);
    padding-block: 8px 56px;
}
.hzm, .hzm * { box-sizing: border-box; }
.hzm p, .hzm h1, .hzm h2, .hzm h3, .hzm dl, .hzm dd { margin: 0; }
.hzm ul, .hzm ol { margin: 0; padding: 0; list-style: none; }
.hzm a { color: var(--hzm-blue); }
.hzm a:focus-visible, .hzm input:focus-visible, .hzm select:focus-visible, .hzm button:focus-visible, .hzm summary:focus-visible { outline: 3px solid var(--hzm-blue); outline-offset: 3px; }
.hzm [hidden] { display: none !important; }
.hzm__shell { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

.hzm__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; }
.hzm__crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #b3b9c4; }
[dir="rtl"] .hzm__crumbs li { unicode-bidi: isolate; }
.hzm__crumbs a { color: inherit; text-decoration: none; }
.hzm__crumbs a:hover { color: var(--hzm-blue); }
.hzm__crumbs [aria-current] { color: #384251; }

.hzm__title { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.hzm__intro { margin-top: 12px !important; max-width: 680px; color: var(--hzm-copy); font-size: 16px; line-height: 1.75; }
.hzm__h2 { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; margin-bottom: 14px !important; }
.hzm__h3 { font-size: 16px; line-height: 1.4; font-weight: 650; margin-bottom: 8px !important; }

.hzm__calcs { display: grid; gap: 20px; margin-top: 24px; }
.hzm__section { margin-top: 32px; }
.hzm__card { min-width: 0; padding: 18px; border: 1px solid var(--hzm-line); border-radius: 12px; background: #fff; }

.hzm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hzm__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 550; }
.hzm__field--wide { grid-column: 1 / -1; }
.hzm__field input, .hzm__field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 8px; background: #fff; color: var(--hzm-ink); font: inherit; font-weight: 400; font-size: 16px; }
.hzm__field small { color: var(--hzm-copy); font-size: 12px; font-weight: 400; line-height: 1.5; }
.hzm__submit, .hzm__button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--hzm-blue); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.hzm__submit { margin-top: 16px; width: 100%; }

.hzm__result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hzm-line); }
.hzm__headline { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 10px; background: var(--hzm-wash); }
.hzm__headline span { color: #23314f; font-size: 14px; }
.hzm__headline strong { font-size: clamp(24px, 6vw, 32px); line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.hzm__note { margin-top: 10px !important; color: #384251; font-size: 14px; line-height: 1.6; }
.hzm__fine { margin-top: 12px !important; color: var(--hzm-copy); font-size: 13px; line-height: 1.6; }
.hzm__empty { padding: 16px; border-radius: 10px; background: var(--hzm-soft); color: #384251; line-height: 1.6; }

.hz-mortgage-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hz-mortgage-comparison { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hzm-line); border-radius: 12px; }
.hz-mortgage-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.hz-mortgage-table th, .hz-mortgage-table td { padding: 10px 12px; border-bottom: 1px solid var(--hzm-line); text-align: start; vertical-align: top; }
.hz-mortgage-table thead th { background: var(--hzm-soft); color: #384251; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hz-mortgage-table tbody th { font-weight: 600; }
.hz-mortgage-table tbody tr:last-child > * { border-bottom: 0; }
.hz-mortgage-table td { font-variant-numeric: tabular-nums; }
.hz-mortgage-table__ask { white-space: nowrap; }

.hzm__list { display: grid; gap: 0; margin-top: 12px !important; }
.hzm__list > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--hzm-line); font-size: 14px; }
.hzm__list dt { color: var(--hzm-copy); }
.hzm__list dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.hzm__list-total { font-weight: 700; }
.hzm__list-total dt { color: var(--hzm-ink); }

.hzm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px !important; font-size: 14px; }

.hzm__prose { display: grid; gap: 12px; max-width: 760px; color: #384251; font-size: 15px; line-height: 1.75; }
.hzm__guides { display: grid; gap: 14px; }
.hzm__guides p { color: #384251; font-size: 15px; line-height: 1.7; }
.hzm__faq { display: grid; gap: 10px; max-width: 760px; }
.hzm__faq details { border: 1px solid var(--hzm-line); border-radius: 10px; padding: 14px 16px; }
.hzm__faq summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.hzm__faq details p { margin-top: 10px !important; color: #384251; line-height: 1.7; }

@media (min-width: 768px) {
    .hzm__shell { padding-inline: 24px; }
    .hzm__calcs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .hzm__guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hzm__card { padding: 22px; }
}
