.ndhc {
    --ndhc-navy: #052b3c;
    --ndhc-navy-2: #0b3c52;
    --ndhc-cyan: #04a9df;
    --ndhc-yellow: #ffe500;
    --ndhc-ink: #082c3d;
    --ndhc-grey: #66727a;
    --ndhc-light: #f4f7f8;
    --ndhc-border: #dbe4e8;
    --ndhc-good: #15835f;
    --ndhc-good-bg: #e9f7f1;
    --ndhc-warning: #9a6500;
    --ndhc-warning-bg: #fff6d8;
    --ndhc-critical: #b43c3c;
    --ndhc-critical-bg: #fff0ef;
    --ndhc-info: #176f94;
    --ndhc-info-bg: #eaf7fc;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--ndhc-ink);
    font-family: "Be Vietnam Pro", sans-serif;
    line-height: 1.55;
}

.ndhc *,
.ndhc *::before,
.ndhc *::after {
    box-sizing: border-box;
}

.ndhc__header {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.ndhc__eyebrow {
    color: var(--ndhc-cyan);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ndhc__title {
    margin: 0;
    color: var(--ndhc-navy);
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.ndhc__intro {
    margin: 18px auto 0;
    max-width: 760px;
    color: var(--ndhc-grey);
    font-size: 1.08rem;
}

.ndhc__form {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 15%, rgba(4, 169, 223, 0.24), transparent 32%),
        linear-gradient(135deg, var(--ndhc-navy) 0%, var(--ndhc-navy-2) 100%);
    box-shadow: 0 22px 55px rgba(5, 43, 60, 0.16);
}

.ndhc__form::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.ndhc__form-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(250px, 1.6fr) repeat(2, minmax(180px, 0.8fr));
    gap: 20px;
    align-items: end;
}

.ndhc__field {
    min-width: 0;
}

.ndhc__field--domain {
    grid-column: span 1;
}

.ndhc__field[hidden] {
    display: none !important;
}

.ndhc label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
}

.ndhc label span {
    opacity: 0.72;
    font-weight: 500;
}

.ndhc input,
.ndhc select {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 10px;
    background: #fff;
    color: var(--ndhc-ink);
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ndhc input {
    padding: 0 16px;
}

.ndhc select {
    padding: 0 44px 0 16px;
    cursor: pointer;
}

.ndhc input:focus,
.ndhc select:focus {
    border-color: var(--ndhc-cyan);
    box-shadow: 0 0 0 4px rgba(4,169,223,0.23);
}

.ndhc__input-wrap {
    position: relative;
}

.ndhc__input-wrap input {
    padding-left: 48px;
}

.ndhc__input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 1;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: var(--ndhc-cyan);
    pointer-events: none;
}

.ndhc__input-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.ndhc__hint {
    margin: 7px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
}

.ndhc__actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
}

.ndhc__submit,
.ndhc__cta-button,
.ndhc__copy {
    appearance: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform 0.17s ease, box-shadow 0.17s ease, opacity 0.17s ease;
}

.ndhc__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 176px;
    min-height: 54px;
    padding: 0 25px;
    border-radius: 999px;
    background: var(--ndhc-yellow);
    color: #151515;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.ndhc__submit svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ndhc__submit:hover,
.ndhc__cta-button:hover,
.ndhc__copy:hover {
    transform: translateY(-2px);
}

.ndhc__submit:focus-visible,
.ndhc__cta-button:focus-visible,
.ndhc__copy:focus-visible,
.ndhc summary:focus-visible {
    outline: 3px solid var(--ndhc-cyan);
    outline-offset: 3px;
}

.ndhc__submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.ndhc__submit.is-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.25);
    border-top-color: #111;
    border-radius: 50%;
    animation: ndhc-spin 0.7s linear infinite;
}

.ndhc__submit.is-loading svg {
    display: none;
}

@keyframes ndhc-spin {
    to { transform: rotate(360deg); }
}

.ndhc__privacy {
    margin: 0;
    max-width: 570px;
    color: rgba(255,255,255,0.72);
    font-size: 0.84rem;
}

.ndhc__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.ndhc__status {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
}

.ndhc__status.is-visible {
    display: block;
}

.ndhc__status.is-loading {
    background: var(--ndhc-info-bg);
    color: var(--ndhc-info);
}

.ndhc__status.is-error {
    background: var(--ndhc-critical-bg);
    color: var(--ndhc-critical);
}

.ndhc__results {
    margin-top: 28px;
}

.ndhc__summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--ndhc-border);
    border-left-width: 6px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(5, 43, 60, 0.09);
    scroll-margin-top: 28px;
}

.ndhc__summary--good { border-left-color: var(--ndhc-good); }
.ndhc__summary--warning { border-left-color: var(--ndhc-warning); }
.ndhc__summary--critical { border-left-color: var(--ndhc-critical); }
.ndhc__summary--info { border-left-color: var(--ndhc-info); }

.ndhc__summary-icon,
.ndhc__finding-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 900;
}

.ndhc__summary-icon {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
}

.ndhc__summary--good .ndhc__summary-icon,
.ndhc__finding--good .ndhc__finding-icon { background: var(--ndhc-good-bg); color: var(--ndhc-good); }
.ndhc__summary--warning .ndhc__summary-icon,
.ndhc__finding--warning .ndhc__finding-icon { background: var(--ndhc-warning-bg); color: var(--ndhc-warning); }
.ndhc__summary--critical .ndhc__summary-icon,
.ndhc__finding--critical .ndhc__finding-icon { background: var(--ndhc-critical-bg); color: var(--ndhc-critical); }
.ndhc__summary--info .ndhc__summary-icon,
.ndhc__finding--info .ndhc__finding-icon { background: var(--ndhc-info-bg); color: var(--ndhc-info); }

.ndhc__summary-kicker {
    color: var(--ndhc-grey);
    font-size: 0.92rem;
}

.ndhc__summary h3,
.ndhc__health-section h3,
.ndhc__notes h3,
.ndhc__cta h3 {
    color: var(--ndhc-navy);
}

.ndhc__summary h3 {
    margin: 3px 0 7px;
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    line-height: 1.18;
}

.ndhc__summary p {
    margin: 0;
    color: var(--ndhc-grey);
}

.ndhc__summary-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.ndhc__count {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.ndhc__count--good { background: var(--ndhc-good-bg); color: var(--ndhc-good); }
.ndhc__count--warning { background: var(--ndhc-warning-bg); color: var(--ndhc-warning); }
.ndhc__count--critical { background: var(--ndhc-critical-bg); color: var(--ndhc-critical); }

.ndhc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 17px;
    color: #718087;
    font-size: 0.84rem;
}

.ndhc__partial {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--ndhc-warning-bg);
    color: var(--ndhc-warning);
    font-size: 0.9rem;
}

.ndhc__health {
    margin-top: 28px;
}

.ndhc__health-section + .ndhc__health-section {
    margin-top: 30px;
}

.ndhc__health-section h3 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.ndhc__health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ndhc__finding {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--ndhc-border);
    border-radius: 17px;
    background: #fff;
}

.ndhc__finding-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.ndhc__finding h4 {
    margin: 1px 0 6px;
    color: var(--ndhc-navy);
    font-size: 1.02rem;
    line-height: 1.35;
}

.ndhc__finding p {
    margin: 0;
    color: var(--ndhc-grey);
    font-size: 0.92rem;
}

.ndhc__records {
    margin-top: 28px;
    border: 1px solid var(--ndhc-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.ndhc__records > summary,
.ndhc__query-details > summary {
    cursor: pointer;
    list-style: none;
}

.ndhc__records > summary::-webkit-details-marker,
.ndhc__query-details > summary::-webkit-details-marker {
    display: none;
}

.ndhc__records > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    background: var(--ndhc-navy);
    color: #fff;
    font-weight: 800;
}

.ndhc__records > summary::after {
    content: "+";
    margin-left: auto;
    color: var(--ndhc-yellow);
    font-size: 1.5rem;
    line-height: 1;
}

.ndhc__records[open] > summary::after {
    content: "−";
}

.ndhc__record-total {
    margin-left: auto;
    color: rgba(255,255,255,0.72);
    font-size: 0.84rem;
    font-weight: 600;
}

.ndhc__records-body {
    padding: 20px;
}

.ndhc__records-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.ndhc__records-toolbar p {
    margin: 0;
    color: var(--ndhc-grey);
    font-size: 0.9rem;
}

.ndhc__copy {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--ndhc-yellow);
    color: #171717;
    font-size: 0.88rem;
}

.ndhc__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ndhc-border);
    border-radius: 12px;
}

.ndhc__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.ndhc__table th,
.ndhc__table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--ndhc-border);
    text-align: left;
    vertical-align: top;
}

.ndhc__table th {
    background: #edf4f7;
    color: var(--ndhc-navy);
    font-size: 0.78rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.ndhc__table tr:last-child td {
    border-bottom: 0;
}

.ndhc__table code {
    padding: 0;
    background: transparent;
    color: #163c4d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
}

.ndhc__record-value {
    display: block;
    min-width: 230px;
    max-width: 540px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ndhc__type {
    display: inline-flex;
    min-width: 55px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--ndhc-info-bg);
    color: var(--ndhc-info);
    font-weight: 800;
    font-size: 0.78rem;
}

.ndhc__empty {
    padding: 25px;
    border: 1px dashed var(--ndhc-border);
    border-radius: 12px;
    color: var(--ndhc-grey);
    text-align: center;
}

.ndhc__query-warnings {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--ndhc-warning-bg);
    color: var(--ndhc-warning);
    font-size: 0.9rem;
}

.ndhc__query-warnings ul,
.ndhc__query-details ul,
.ndhc__notes ul {
    margin: 8px 0 0 20px;
}

.ndhc__query-details {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--ndhc-border);
    color: var(--ndhc-grey);
    font-size: 0.85rem;
}

.ndhc__query-details > summary {
    color: var(--ndhc-navy);
    font-weight: 700;
}

.ndhc__query-details code {
    color: var(--ndhc-navy);
}

.ndhc__notes {
    margin-top: 24px;
    padding: 21px 23px;
    border-radius: 16px;
    background: var(--ndhc-light);
}

.ndhc__notes h3 {
    margin: 0;
    font-size: 1.08rem;
}

.ndhc__notes ul {
    color: var(--ndhc-grey);
    font-size: 0.9rem;
}

.ndhc__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 28px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 22px;
    background: var(--ndhc-navy);
    color: #fff;
}

.ndhc__cta h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.ndhc__cta p {
    margin: 0;
    max-width: 720px;
    color: rgba(255,255,255,0.78);
}

.ndhc__cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--ndhc-yellow);
    color: #151515;
}

@media (max-width: 980px) {
    .ndhc__form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ndhc__field--domain {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .ndhc__header {
        text-align: left;
    }

    .ndhc__form {
        border-radius: 20px;
    }

    .ndhc__form-grid,
    .ndhc__health-grid {
        grid-template-columns: 1fr;
    }

    .ndhc__field--domain {
        grid-column: auto;
    }

    .ndhc__actions,
    .ndhc__records-toolbar,
    .ndhc__cta {
        align-items: stretch;
        flex-direction: column;
    }

    .ndhc__submit,
    .ndhc__cta-button {
        width: 100%;
    }

    .ndhc__summary {
        grid-template-columns: 1fr;
    }

    .ndhc__records > summary {
        flex-wrap: wrap;
    }

    .ndhc__record-total {
        margin-left: 0;
    }

    .ndhc__table-wrap {
        border: 0;
        overflow: visible;
    }

    .ndhc__table,
    .ndhc__table tbody,
    .ndhc__table tr,
    .ndhc__table td {
        display: block;
        width: 100%;
    }

    .ndhc__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .ndhc__table tr {
        margin-bottom: 12px;
        padding: 11px 14px;
        border: 1px solid var(--ndhc-border);
        border-radius: 12px;
        background: #fff;
    }

    .ndhc__table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 10px;
        padding: 7px 0;
        border: 0;
    }

    .ndhc__table td::before {
        content: attr(data-label);
        color: var(--ndhc-grey);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .ndhc__record-value {
        min-width: 0;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ndhc *,
    .ndhc *::before,
    .ndhc *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
