/* The diagnostic: one card, one question. Loaded only on /diagnostic. */
.dg-wrap { padding: 56px clamp(20px, 5vw, 80px) 80px; background: #F5F6F8; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.dg-app { width: 100%; max-width: 760px; }
.dg-card { background: #FFFFFF; border: 1px solid #D9DEE5; border-top: 4px solid #D89A2B; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; animation: lepRise .35s ease both; }
.dg-head { display: flex; flex-direction: column; gap: 8px; }
.dg-progress { height: 6px; background: #E4E8EE; overflow: hidden; }
.dg-progress i { display: block; height: 100%; background: #D89A2B; transition: width .3s ease; }
.dg-count, .dg-fine { font-size: 13px; color: #5B6470; }
.dg-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #D89A2B; font-weight: 700; }
.dg-intro { margin: 0; color: #5B6470; font-size: 16px; }
.dg-ask { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; color: #0B2545; }
.dg-hint { margin: 0; color: #5B6470; font-size: 15.5px; line-height: 1.55; }
.dg-options { display: flex; flex-direction: column; gap: 10px; }
.dg-option { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 16px; color: #16202A; background: #FFFFFF; border: 1.5px solid #D9DEE5; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.dg-option:hover { border-color: #0B2545; transform: translateX(2px); }
.dg-option:focus-visible { outline: 2px solid #D89A2B; outline-offset: 2px; }
.dg-option.is-on { border-color: #0B2545; background: #F0F2F5; }
.dg-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8FA0B8; position: relative; }
.dg-option.is-on .dg-dot { border-color: #0B2545; }
.dg-option.is-on .dg-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0B2545; }
.dg-insight:empty { display: none; }
.dg-insight p { margin: 0; padding: 12px 16px; background: #FBF3E3; border-left: 3px solid #D89A2B; font-size: 15px; line-height: 1.55; color: #16202A; animation: lepRise .3s ease both; }
.dg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dg-next { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; background: #0B2545; color: #FFFFFF; border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.dg-next:disabled { opacity: .45; cursor: default; }
.dg-next:not(:disabled):hover { background: #D89A2B; color: #071A33; }
.dg-back { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: #0B2545; text-decoration: underline; cursor: pointer; }
.dg-bars { display: flex; flex-direction: column; gap: 14px; }
.dg-bar { display: flex; flex-direction: column; gap: 5px; }
.dg-barhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dg-barhead strong { color: #0B2545; }
.dg-grade { font-family: "Fraunces", Georgia, serif; font-size: 22px; color: #0B2545; }
.dg-grade-big { font-size: 1.15em; color: #D89A2B; }
.dg-sub { font-family: "Manrope", system-ui, sans-serif; font-size: 16px; color: #5B6470; font-weight: 400; }
.dg-track { height: 10px; background: #E4E8EE; }
.dg-track i { display: block; height: 100%; background: #0B2545; transition: width .5s ease; }
.dg-line { font-size: 13.5px; color: #5B6470; }
.dg-gate { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #D9DEE5; padding-top: 22px; }
.dg-gate h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 24px; color: #0B2545; }
.dg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.dg-gate label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #0B2545; }
.dg-gate input[type="text"], .dg-gate input[type="email"], .dg-gate input[type="tel"], .dg-gate input:not([type]) { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B8C0CC; background: #FFFFFF; color: #16202A; }
.dg-check { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: #5B6470 !important; font-size: 14px; line-height: 1.5; }
.dg-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.dg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dg-sending { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #F5F6F8; border-left: 3px solid #D89A2B; }
.dg-sending[hidden] { display: none; }
.dg-sendbar { height: 10px; }
.dg-sendbar i { transition: width .6s ease; background-image: linear-gradient(90deg, #D89A2B 0%, #F0C46B 50%, #D89A2B 100%); background-size: 200% 100%; animation: dgShimmer 1.4s linear infinite; }
@keyframes dgShimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.dg-status { margin: 0; font-size: 14px; color: #3F7A52; min-height: 1.4em; }
.dg-status.bad { color: #9B3A23; }
.dg-option.dg-unknown { border-style: dashed; color: #5B6470; }
.dg-option.dg-unknown.is-on { border-style: solid; color: #16202A; }
.dg-missing { color: #9B3A23; }
.dg-note { margin: 0; padding: 12px 16px; background: #F0F2F5; border-left: 3px solid #0B2545; font-size: 15px; line-height: 1.55; }
.dg-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3F7A52; background: #EFF6F0; border: 1px solid #BFD8C6; padding: 4px 10px; }
.dg-inside { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: 15px; }
.dg-inside li { position: relative; padding-left: 26px; }
.dg-inside li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid #3F7A52; border-bottom: 2.5px solid #3F7A52; transform: rotate(-45deg); }
.dg-emailrow { display: flex; gap: 10px; flex-wrap: wrap; }
.dg-emailrow input { flex: 1 1 260px; min-height: 50px; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #0B2545; background: #FFFFFF; color: #16202A; }
.dg-cta { background: #D89A2B; color: #071A33; font-size: 16px; }
.dg-cta:not(:disabled):hover { background: #0B2545; color: #FFFFFF; }
.dg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .dg-fields, .dg-inside { grid-template-columns: 1fr; } .dg-emailrow .dg-next { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dg-card, .dg-insight p, .dg-sendbar i { animation: none; } .dg-option:hover { transform: none; } }
