/* Domain health check (domain-health-check.php) */

.dc-banner .texting h1 { margin-bottom: 12px; }
.dc-form { margin-top: 24px; max-width: 640px; }
.dc-form-row { display: flex; gap: 10px; margin-bottom: 14px; }
.dc-form-row .form-control { flex: 1; height: 52px; font-size: 18px; padding: 0 16px; }
.dc-form-row .cm-btns { white-space: nowrap; border: 0; margin: 0; }
.dc-form-row .cm-btns:disabled { opacity: .7; cursor: wait; }
.dc-alert, .banner-content p.dc-alert { margin-top: 12px; padding: 10px 14px; border-radius: 6px; background: #fdecec; color: #9b1c1c; font-weight: 500; }

.dc-intro, .dc-results { padding: 50px 0 70px; }
.dc-results { padding-top: 10px; }
/* The site banner leaves 170px under its content for the curve; the form only needs enough to clear it. */
@media (min-width: 992px) {
  .page-banner.sub-banner.dc-banner .banner-content .texting { padding-bottom: 120px; }
  /* Sit over the plain grey band at the bottom of the banner's curve image (same colour). */
  .dc-banner + .dc-results { margin-top: -55px; position: relative; z-index: 5; }
}
.dc-intro h3 { font-size: 20px; margin-bottom: 8px; }

.dc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 6px; }
.dc-head h2 { font-size: 28px; margin: 0 0 4px; }
.dc-domain { word-break: break-all; }
.dc-meta, .dc-private { color: #5b6472; margin: 0; }
.dc-private { font-size: 14px; margin-bottom: 24px; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-share { display: flex; gap: 6px; }
.dc-share input { width: 280px; max-width: 60vw; padding: 6px 10px; border: 1px solid #ccd3dc; border-radius: 6px; font-size: 14px; }
.dc-actions .cm-btns { border: 0; cursor: pointer; }

/* status colours */
.dc-pass { --dc: #1f8a4c; --dc-bg: #e8f6ee; }
.dc-warn { --dc: #b45309; --dc-bg: #fdf3e2; }
.dc-fail { --dc: #c62828; --dc-bg: #fdecec; }
.dc-info { --dc: #4b5563; --dc-bg: #eef1f5; }
.dc-pending, .dc-error { --dc: #6b7280; --dc-bg: #f4f5f7; }

.dc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dc-card { display: block; padding: 14px 16px; border-radius: 10px; background: #fff; border-top: 4px solid var(--dc); box-shadow: 0 1px 3px rgba(0,0,0,.08); color: inherit; text-decoration: none; }
.dc-card:hover { text-decoration: none; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.dc-card-title { display: block; font-size: 13px; color: #5b6472; text-transform: uppercase; letter-spacing: .03em; }
.dc-card-value { display: block; font-size: 18px; font-weight: 600; color: #1f2937; margin-top: 4px; overflow-wrap: anywhere; }
.dc-card-verdict { display: block; font-size: 13px; font-weight: 600; color: var(--dc); margin-top: 2px; }
.dc-card.dc-pending .dc-card-value::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid #c3c8d0; border-top-color: transparent; border-radius: 50%; animation: dc-spin .8s linear infinite; vertical-align: -1px; }
@keyframes dc-spin { to { transform: rotate(360deg); } }

.dc-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dc-ctas:empty { display: none; }
.dc-cta { padding: 18px 20px; border-radius: 10px; background: #fff7ef; border: 1px solid #f7d4b0; }
.dc-cta h3 { font-size: 18px; margin: 0 0 6px; }
.dc-cta p { margin: 0 0 12px; }

.dc-group { background: #fff; border-radius: 10px; padding: 18px 22px; margin-bottom: 16px; border-left: 5px solid var(--dc); box-shadow: 0 1px 3px rgba(0,0,0,.06); scroll-margin-top: 90px; }
.dc-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.dc-group-head h3 { font-size: 20px; margin: 0; }
.dc-group-summary { font-weight: 600; color: #374151; }
.dc-group-time { margin-left: auto; font-size: 13px; color: #8a929e; }
.dc-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--dc); background: var(--dc-bg); }
.dc-pending { color: #6b7280; margin: 4px 0 0; }

.dc-checks { list-style: none; margin: 0; padding: 0; }
.dc-check { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #eef0f3; }
.dc-check:first-child { border-top: 0; }
.dc-icon { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--dc-bg); color: var(--dc); font-weight: 700; font-size: 13px; line-height: 24px; text-align: center; }
.dc-check-body { flex: 1; min-width: 0; }
.dc-check-title { font-weight: 600; overflow-wrap: anywhere; }
.dc-check-detail { color: #4b5563; margin-top: 2px; overflow-wrap: anywhere; }
.dc-fix { margin-top: 6px; padding: 8px 12px; background: #f7f8fa; border-radius: 6px; font-size: 15px; }
.dc-details { margin-top: 8px; }
.dc-details summary { cursor: pointer; color: #2563eb; font-size: 14px; }
.dc-table-wrap { overflow-x: auto; margin-top: 8px; }
.dc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dc-table th, .dc-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #eef0f3; vertical-align: top; overflow-wrap: anywhere; }
.dc-table th { background: #f7f8fa; font-weight: 600; white-space: nowrap; }

.dc-feedback-wrap { padding: 0 0 50px; background: var(--hh-grey-100, #f0f4f8); }
.dc-intro + .dc-feedback-wrap, .dc-results + .dc-feedback-wrap { margin-top: -30px; }
.dc-feedback-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #4b5563; }
.dc-feedback { max-width: 640px; margin-top: 16px; padding: 20px 22px; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dc-feedback h3 { font-size: 20px; margin: 0 0 10px; }
.dc-feedback-kind label { display: block; font-weight: normal; margin-bottom: 4px; cursor: pointer; }
.dc-feedback-kind { margin-bottom: 10px; }
.dc-feedback textarea { margin-bottom: 12px; }
.dc-feedback input[type=email] { margin-bottom: 12px; }
.dc-optional { color: #6b7280; font-weight: normal; }
.dc-feedback-note { font-size: 14px; color: #6b7280; }
.dc-feedback-actions { display: flex; gap: 8px; }
.dc-feedback-actions .cm-btns { border: 0; cursor: pointer; }
.dc-feedback-status { margin: 10px 0 0; font-weight: 500; }
.dc-feedback-status.dc-ok { color: #1f8a4c; }
.dc-feedback-status.dc-bad { color: #c62828; }
.dc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 767px) {
  .dc-form-row { flex-direction: column; }
  .dc-group { padding: 14px 16px; }
  .dc-group-time { margin-left: 0; width: 100%; }
  .dc-share input { width: 100%; max-width: none; }
  .dc-share { width: 100%; }
}

@media print {
  header, footer, .dc-banner, .dc-actions, .dc-ctas, #tawkchat-container, iframe { display: none !important; }
  .dc-results { padding: 0; background: #fff !important; }
  .dc-group, .dc-card { box-shadow: none; break-inside: avoid; border: 1px solid #ddd; }
  .dc-details summary { display: none; }
  .dc-table-wrap { overflow: visible; }
}

.dc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dc-btn-outline { display: inline-block; padding: 8px 16px; border: 1px solid #c9d0da; border-radius: 6px; background: #fff; color: #1f2937; font-size: 14px; font-weight: 600; cursor: pointer; }
.dc-btn-outline:hover { border-color: #e85d1a; color: #e85d1a; }
