/* ═══════════════════════════════════════
   DIAGNOSTIC — TUNNEL
   ═══════════════════════════════════════ */
body.diagnostic-body {
    background: var(--midnight);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Progress bar */
.diag-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.diag-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(124, 152, 179, 0.15);
    border-radius: 2px;
    overflow: hidden;
}
.diag-progress-fill {
    height: 100%;
    background: var(--golden);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}
.diag-progress-label {
    font-size: 0.72rem;
    color: var(--soft-blue);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}
.diag-logo {
    flex-shrink: 0;
}
.diag-logo svg {
    width: 28px;
    height: 28px;
}

/* Screens container */
.diag-screens {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 5rem 2rem 3rem;
}

/* Individual screen */
.diag-screen {
    display: none;
    max-width: 640px;
    width: 100%;
    animation: diagFadeIn 0.5s ease-out;
}
.diag-screen.diag-capture {
    max-width: 960px;
}
.diag-screen.active {
    display: block;
}
@keyframes diagFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   INTRO SCREEN
   ═══════════════════════════════════════ */
.diag-intro {
    text-align: center;
}
.diag-intro h1 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}
.diag-intro h1 em {
    font-family: var(--font-display);
    font-style: normal;
    color: var(--golden);
    font-weight: 400;
    font-size: 1.1em;
}
.diag-intro-sub {
    font-size: 0.95rem;
    color: var(--soft-blue);
    margin-bottom: var(--space-lg);
}
.diag-intro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    max-width: 420px;
    margin: 0 auto var(--space-lg);
}
.diag-intro-list li {
    font-size: 0.88rem;
    color: var(--light-blue);
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.diag-intro-list li::before {
    content: '✓';
    color: var(--golden);
    font-weight: 700;
    flex-shrink: 0;
}
.diag-micro-proof {
    font-size: 0.75rem;
    color: var(--soft-blue);
    margin-top: var(--space-sm);
    opacity: 0.7;
}
.diag-note {
    font-size: 0.75rem;
    color: var(--soft-blue);
    margin-top: var(--space-md);
    font-style: italic;
    opacity: 0.6;
}

/* ═══════════════════════════════════════
   QUESTION SCREEN
   ═══════════════════════════════════════ */
.diag-dimension-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--golden);
    margin-bottom: var(--space-xs);
}
.diag-question h2 {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

/* Answer options */
.diag-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.diag-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(27, 73, 101, 0.06);
    border: 1px solid rgba(124, 152, 179, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--light-blue);
    line-height: 1.5;
    text-align: left;
    transition: all 0.3s;
    font-family: var(--font-body);
    width: 100%;
}
.diag-option:hover {
    background: rgba(27, 73, 101, 0.15);
    border-color: rgba(124, 152, 179, 0.25);
    color: var(--off-white);
}
.diag-option.selected {
    background: rgba(249, 220, 92, 0.08);
    border-color: rgba(249, 220, 92, 0.4);
    color: var(--off-white);
}
.diag-option-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(124, 152, 179, 0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all 0.3s;
}
.diag-option.selected .diag-option-marker {
    background: var(--golden);
    border-color: var(--golden);
}
.diag-option.selected .diag-option-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--midnight);
    border-radius: 50%;
}

/* ═══════════════════════════════════════
   TRANSITION SCREEN
   ═══════════════════════════════════════ */
.diag-transition {
    text-align: center;
}
.diag-transition-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--golden);
    margin-bottom: var(--space-md);
}
.diag-transition-stats {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}
.diag-stat {
    font-size: 0.88rem;
    color: var(--light-blue);
    line-height: 1.7;
    padding-left: 1rem;
    border-left: 2px solid rgba(249, 220, 92, 0.2);
}
.diag-transition-takeaway {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--off-white);
    background: rgba(27, 73, 101, 0.1);
    border: 1px solid rgba(124, 152, 179, 0.1);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: var(--space-lg);
    text-align: left;
    overflow: visible;
}
.diag-transition-takeaway strong {
    color: var(--golden);
}

/* ═══════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════ */
.diag-loading {
    text-align: center;
}
.diag-loading-content {
    max-width: 400px;
    margin: 0 auto;
}
.diag-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 152, 179, 0.15);
    border-top-color: var(--golden);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: diagSpin 1s linear infinite;
}
@keyframes diagSpin {
    to { transform: rotate(360deg); }
}
.diag-loading h2 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--off-white);
}
.diag-loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(124, 152, 179, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}
.diag-loading-bar-fill {
    height: 100%;
    background: var(--golden);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease-out;
}
.diag-loading-steps {
    font-size: 0.78rem;
    color: var(--soft-blue);
    transition: opacity 0.3s;
}

/* ═══════════════════════════════════════
   CAPTURE SCREEN (SPLIT LAYOUT)
   ═══════════════════════════════════════ */
.diag-capture .diag-capture-split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 960px;
    width: 100%;
    border: 1px solid rgba(124, 152, 179, 0.1);
    overflow: visible;
}
.diag-capture-left {
    background: rgba(27, 73, 101, 0.1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.diag-capture-right {
    background: var(--midnight);
    padding: 2.5rem;
    border-left: 1px solid rgba(124, 152, 179, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.diag-capture-right h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.diag-capture h2 {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}
.diag-capture h2 em {
    font-family: var(--font-display);
    font-style: normal;
    color: var(--golden);
    font-weight: 400;
    font-size: 1.1em;
}
.diag-capture-sub {
    font-size: 0.88rem;
    color: var(--soft-blue);
    margin-bottom: var(--space-md);
    line-height: 1.65;
}
.diag-capture-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: var(--space-lg);
}
.diag-capture-list li {
    font-size: 0.85rem;
    color: var(--light-blue);
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.diag-capture-list li::before {
    content: '✓';
    color: var(--golden);
    font-weight: 700;
    flex-shrink: 0;
}
.diag-capture-proof {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(124, 152, 179, 0.1);
}
.diag-capture-proof p {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--golden);
    letter-spacing: 0.05em;
}

/* Form */
.diag-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}
.diag-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--soft-blue);
    margin-bottom: 0.15rem;
}
.diag-form label .required-mark {
    color: var(--soft-blue);
    font-weight: 400;
}
.diag-form label .optional {
    font-weight: 400;
    opacity: 0.6;
}
.diag-form input,
.diag-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(27, 73, 101, 0.1);
    border: 1px solid rgba(124, 152, 179, 0.15);
    border-radius: 0;
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.3s;
    outline: none;
}
.diag-form input::placeholder {
    color: var(--soft-blue);
    opacity: 0.5;
}
.diag-form input:focus,
.diag-form select:focus {
    border-color: rgba(249, 220, 92, 0.4);
}
.diag-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C98B3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.diag-form select option {
    background: var(--midnight);
    color: var(--off-white);
}
.diag-form-submit {
    margin-top: var(--space-sm);
}
.diag-email-error {
    font-size: 0.75rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
}
.diag-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.diag-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--golden);
    cursor: pointer;
}
.diag-checkbox label {
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    color: var(--soft-blue) !important;
    line-height: 1.5;
    cursor: pointer;
}
.diag-legal {
    font-size: 0.68rem;
    color: var(--soft-blue);
    opacity: 0.5;
    margin-top: var(--space-sm);
    line-height: 1.5;
}
/* Thank you state */
.diag-thankyou {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: diagFadeIn 0.5s ease-out;
}
.diag-thankyou-icon {
    margin-bottom: var(--space-md);
}
.diag-thankyou h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}
.diag-thankyou p {
    font-size: 0.9rem;
    color: var(--light-blue);
    line-height: 1.6;
}
.diag-thankyou-spam {
    font-size: 0.78rem !important;
    color: var(--soft-blue) !important;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.diag-legal a {
    color: var(--soft-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════════════════════════
   SHARED BUTTONS
   ═══════════════════════════════════════ */
.diag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--golden);
    color: var(--midnight);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-family: var(--font-body);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}
.diag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(249, 220, 92, 0.3);
}
.diag-btn svg {
    width: 18px;
    height: 18px;
}
.diag-btn-secondary {
    background: transparent;
    border: 1px solid rgba(124, 152, 179, 0.2);
    color: var(--soft-blue);
    font-size: 0.82rem;
    padding: 0.7rem 1.5rem;
    margin-top: 0.75rem;
}
.diag-btn-secondary:hover {
    border-color: var(--golden);
    color: var(--golden);
    box-shadow: none;
    transform: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .diag-screens {
        padding: 4.5rem 1.25rem 2rem;
    }
    .diag-progress {
        padding: 0.75rem 1rem;
    }
    .diag-option {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }
    .diag-capture .diag-capture-split {
        grid-template-columns: 1fr;
    }
    .diag-capture-right {
        border-left: none;
        border-top: 1px solid rgba(124, 152, 179, 0.1);
    }
    .diag-capture-left,
    .diag-capture-right {
        padding: 2rem 1.5rem;
    }
}
