/**
 * Team Clarity Tool — scoped styles.
 *
 * All rules scoped to .kdpc-clarity-tool to prevent bleed.
 * Colors remapped from HTA teal (#1a6b5a) to P&C theme tokens.
 */

.kdpc-clarity-tool { max-width: 680px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* Progress bar */
.kdpc-clarity-tool .progress-bar { height: 3px; background: var(--color-border-light, #e8e8e8); border-radius: 2px; margin-bottom: 2.5rem; }
.kdpc-clarity-tool .progress-fill { height: 100%; background: var(--color-primary, #2383EB); border-radius: 2px; transition: width 0.4s ease; }
.kdpc-clarity-tool .progress-label { font-size: 12px; color: var(--color-stone, #6B7280); margin-bottom: 8px; letter-spacing: 0.04em; }

/* Intro screen */
.kdpc-clarity-tool .ct-eyebrow { font-size: 12px; color: var(--color-primary, #2383EB); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.kdpc-clarity-tool .ct-intro-head { font-family: var(--font-heading, 'Rubik', sans-serif); font-size: 28px; font-weight: 600; line-height: 1.3; margin-bottom: 1rem; color: var(--color-text-dark, #111); }
.kdpc-clarity-tool .ct-intro-body { font-size: 16px; line-height: 1.7; color: var(--color-text-body, #1F2937); margin-bottom: 0.75rem; }

/* Questions */
.kdpc-clarity-tool .ct-q-eyebrow { font-size: 12px; color: var(--color-primary, #2383EB); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; font-weight: 500; }
.kdpc-clarity-tool .ct-q-text { font-family: var(--font-heading, 'Rubik', sans-serif); font-size: 20px; font-weight: 500; line-height: 1.45; color: var(--color-text-dark, #111); margin-bottom: 1.75rem; }
.kdpc-clarity-tool .ct-options { display: flex; flex-direction: column; gap: 10px; }
.kdpc-clarity-tool .ct-option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--color-border-light, #E5E7EB); border-radius: var(--radius-sm, 12px); cursor: pointer; transition: border-color 0.15s, background 0.15s; background: #fff; }
.kdpc-clarity-tool .ct-option:hover { border-color: var(--color-primary, #2383EB); background: #f0f7ff; }
.kdpc-clarity-tool .ct-option.selected { border-color: var(--color-primary, #2383EB); background: #e8f2ff; }
.kdpc-clarity-tool .ct-opt-letter { font-size: 13px; font-weight: 600; color: var(--color-primary, #2383EB); min-width: 18px; margin-top: 1px; }
.kdpc-clarity-tool .ct-opt-text { font-size: 15px; line-height: 1.55; color: var(--color-text-body, #1F2937); }

/* Navigation */
.kdpc-clarity-tool .ct-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.kdpc-clarity-tool .ct-btn { padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; border: none; transition: background 0.15s, opacity 0.15s; }
.kdpc-clarity-tool .ct-btn-primary { background: var(--color-primary, #2383EB); color: #fff; }
.kdpc-clarity-tool .ct-btn-primary:hover { background: var(--color-dark, #1C2161); }
.kdpc-clarity-tool .ct-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.kdpc-clarity-tool .ct-btn-ghost { background: transparent; color: var(--color-stone, #6B7280); border: 1px solid var(--color-border-light, #E5E7EB); }
.kdpc-clarity-tool .ct-btn-ghost:hover { border-color: var(--color-stone, #6B7280); color: var(--color-text-body, #1F2937); }

/* Section dividers mid-quiz */
.kdpc-clarity-tool .ct-section-divider { padding: 1.5rem 0 1rem; }
.kdpc-clarity-tool .ct-section-divider .ct-section-tag { font-size: 11px; color: #bbb; letter-spacing: 0.1em; text-transform: uppercase; }
.kdpc-clarity-tool .ct-section-divider h3 { font-size: 17px; font-weight: 500; color: var(--color-stone, #6B7280); margin-top: 4px; }

/* Lead capture gate */
.kdpc-clarity-tool .ct-gate-head { font-family: var(--font-heading, 'Rubik', sans-serif); font-size: 24px; font-weight: 600; line-height: 1.35; margin-bottom: 0.75rem; color: var(--color-text-dark, #111); }
.kdpc-clarity-tool .ct-gate-body { font-size: 15px; line-height: 1.65; color: var(--color-stone, #6B7280); margin-bottom: 2rem; }
.kdpc-clarity-tool .ct-field { margin-bottom: 1rem; }
.kdpc-clarity-tool .ct-field label { display: block; font-size: 13px; font-weight: 500; color: var(--color-stone, #6B7280); margin-bottom: 5px; }
.kdpc-clarity-tool .ct-field input,
.kdpc-clarity-tool .ct-field select { width: 100%; padding: 11px 13px; border: 1px solid var(--color-border-light, #E5E7EB); border-radius: 8px; font-size: 15px; color: var(--color-text-dark, #111); outline: none; background: #fff; transition: border-color 0.15s; }
.kdpc-clarity-tool .ct-field input:focus,
.kdpc-clarity-tool .ct-field select:focus { border-color: var(--color-primary, #2383EB); }
.kdpc-clarity-tool .ct-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.kdpc-clarity-tool .ct-privacy { font-size: 12px; color: #aaa; margin-top: 1rem; }
.kdpc-clarity-tool .ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .kdpc-clarity-tool .ct-form-row { grid-template-columns: 1fr; } }

/* Success state (post-submit confirmation) */
.kdpc-clarity-tool .ct-success { text-align: center; padding: 1rem 0; }
.kdpc-clarity-tool .ct-success-heading { font-family: var(--font-heading, 'Rubik', sans-serif); font-size: 26px; font-weight: 600; color: var(--color-text-dark, #111); margin-bottom: 0.75rem; line-height: 1.3; }
.kdpc-clarity-tool .ct-success-body { font-size: 15px; line-height: 1.65; color: var(--color-stone, #6B7280); margin-bottom: 2rem; }
.kdpc-clarity-tool .ct-success-body strong { color: var(--color-text-dark, #111); font-weight: 600; }
.kdpc-clarity-tool .ct-success-actions { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }

/* CTA buttons (reused in success state) */
.kdpc-clarity-tool .ct-cta-btn-primary { display: block; width: 100%; padding: 15px; background: var(--color-primary, #2383EB); color: #fff; border: none; border-radius: 9px; font-size: 16px; font-weight: 500; cursor: pointer; text-align: center; transition: background 0.15s; text-decoration: none; }
.kdpc-clarity-tool .ct-cta-btn-primary:hover { background: var(--color-dark, #1C2161); }
.kdpc-clarity-tool .ct-cta-btn-secondary { display: block; width: 100%; padding: 14px; background: transparent; color: var(--color-primary, #2383EB); border: 1.5px solid var(--color-primary, #2383EB); border-radius: 9px; font-size: 15px; font-weight: 500; cursor: pointer; text-align: center; transition: background 0.15s; text-decoration: none; }
.kdpc-clarity-tool .ct-cta-btn-secondary:hover { background: #f0f7ff; }

/* You'll receive list */
.kdpc-clarity-tool .ct-receive-item { display: flex; gap: 12px; align-items: flex-start; }
.kdpc-clarity-tool .ct-receive-icon { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: #e8f2ff; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.kdpc-clarity-tool .ct-receive-title { font-size: 14px; font-weight: 500; color: var(--color-text-dark, #111); margin-bottom: 1px; }
.kdpc-clarity-tool .ct-receive-sub { font-size: 13px; color: var(--color-stone, #6B7280); line-height: 1.5; }

/* Quote box */
.kdpc-clarity-tool .ct-quote-box { background: var(--color-cloud, #F7F8FC); border: 1px solid var(--color-border-light, #E5E7EB); border-radius: var(--radius-sm, 12px); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.kdpc-clarity-tool .ct-quote-text { font-size: 13px; color: var(--color-stone, #6B7280); line-height: 1.65; font-style: italic; }
.kdpc-clarity-tool .ct-quote-attr { font-size: 12px; color: #aaa; margin-top: 6px; }

/* Animation */
.kdpc-clarity-tool .ct-fade-in { animation: kdpcCtFadeIn 0.35s ease; }
@keyframes kdpcCtFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
