/* ============================================
   Lead Gen Tools — Shared Styles
   Risk Assessment Quiz + IT Health Check
   ============================================ */

/* --- Quiz Container --- */
.quiz-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
}

/* --- Progress Bar --- */
.quiz-progress {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1D3FAA, #1B0958);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 20%;
}

.quiz-progress-label {
    font-size: 14px;
    font-weight: 500;
    color: #737373;
    margin-bottom: 32px;
}

/* --- Quiz Steps --- */
.quiz-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.quiz-step-icon {
    font-size: 36px;
    line-height: 1;
}

.quiz-step-title {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.quiz-step-desc {
    font-size: 15px;
    color: #737373;
}

/* --- Questions --- */
.quiz-question {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quiz-question:hover {
    border-color: #D1D5DB;
}

.quiz-question-text {
    font-size: 16px;
    font-weight: 500;
    color: #171717;
    margin-bottom: 12px;
    line-height: 1.45;
}

.quiz-answer-group {
    display: flex;
    gap: 10px;
}

.quiz-answer {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quiz-answer:hover {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.quiz-answer.selected-yes {
    border-color: #16a34a;
    background: #F0FDF4;
    color: #15803d;
}

.quiz-answer.selected-no {
    border-color: #dc2626;
    background: #FEF2F2;
    color: #b91c1c;
}

/* Unanswered shake animation */
.quiz-question--unanswered {
    animation: shake 0.4s ease;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

/* --- Quiz Navigation --- */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 16px;
}

.quiz-btn-next {
    margin-left: auto;
}

/* --- Results --- */
.quiz-results {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
}

.results-summary {
    text-align: center;
    margin-bottom: 48px;
}

.results-score-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 6px solid;
    transition: border-color 0.3s;
}

.results-score-ring.risk-high {
    border-color: #dc2626;
    background: #FEF2F2;
}

.results-score-ring.risk-medium {
    border-color: #f59e0b;
    background: #FFFBEB;
}

.results-score-ring.risk-low {
    border-color: #16a34a;
    background: #F0FDF4;
}

.results-score-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #171717;
}

.results-score-total {
    font-size: 18px;
    font-weight: 500;
    color: #737373;
}

.results-description {
    font-size: 17px;
    color: #374151;
    max-width: 540px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* --- Lead Gate Form --- */
.lead-gate {
    background: #F0F4FF;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(29, 63, 170, 0.1);
}

.lead-gate h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1B0958;
}

.lead-gate > p {
    color: #374151;
    margin-bottom: 24px;
}

.lead-gate-form .form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.lead-gate-form .form-row--2col {
    grid-template-columns: 1fr 1fr;
}

.lead-gate-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.lead-gate-form .required {
    color: #dc2626;
}

.lead-gate-form input[type="text"],
.lead-gate-form input[type="email"],
.lead-gate-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #171717;
    background: #fff;
    transition: border-color 0.2s;
}

.lead-gate-form input:focus {
    outline: none;
    border-color: #1D3FAA;
    box-shadow: 0 0 0 3px rgba(29, 63, 170, 0.1);
}

.lead-gate-form input::placeholder {
    color: #9CA3AF;
}

/* --- Pillar Breakdown (detailed results) --- */
.pillar-breakdown {
    margin-bottom: 40px;
}

.pillar-breakdown > h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1B0958;
}

.pillar-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.pillar-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pillar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pillar-card-icon {
    font-size: 24px;
}

.pillar-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #171717;
    flex: 1;
}

.pillar-card-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-good {
    background: #DCFCE7;
    color: #15803d;
}

.badge-fair {
    background: #FEF3C7;
    color: #92400e;
}

.badge-poor {
    background: #FEE2E2;
    color: #991b1b;
}

.pillar-bar-bg {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.pillar-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bar-good { background: #16a34a; }
.bar-fair { background: #f59e0b; }
.bar-poor { background: #dc2626; }

.pillar-card-score {
    font-size: 13px;
    color: #737373;
    font-weight: 500;
    margin-bottom: 12px;
}

.pillar-gaps {
    background: #FEF2F2;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.pillar-gaps strong {
    display: block;
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 8px;
}

.pillar-gaps ul {
    list-style: disc;
    padding-left: 20px;
}

.pillar-gaps li {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 4px;
}

.pillar-card-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1D3FAA;
    text-decoration: none;
}

.pillar-card-link:hover {
    text-decoration: underline;
}

/* --- Results CTA Box --- */
.results-cta-box {
    background: linear-gradient(135deg, #0F2942, #1B0958);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.results-cta-box h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
}

.results-cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.results-cta-box .btn {
    margin: 0 8px;
}

/* ============================================
   IT Health Check — Checklist Styles
   ============================================ */

/* --- Checklist Container --- */
.checklist-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
}

.checklist-results {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
}

/* --- Overall Progress --- */
.checklist-overall {
    margin-bottom: 32px;
}

.checklist-overall-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.checklist-overall-label span {
    font-size: 24px;
    font-weight: 700;
    color: #1D3FAA;
}

.checklist-overall-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.checklist-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, #1D3FAA, #1B0958);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* --- Category Cards --- */
.check-category {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.check-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.check-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.check-category-icon {
    font-size: 28px;
    line-height: 1;
}

.check-category-info {
    flex: 1;
}

.check-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 6px;
}

.check-category-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-category-bar {
    flex: 1;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.check-category-bar-fill {
    height: 100%;
    background: #1D3FAA;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.check-category-label {
    font-size: 13px;
    font-weight: 600;
    color: #737373;
    min-width: 28px;
    text-align: right;
}

/* --- Checklist Items --- */
.check-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.check-item:hover {
    background: #F9FAFB;
}

.check-item--checked {
    background: #F0FDF4;
}

.check-item--checked:hover {
    background: #DCFCE7;
}

.check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #fff;
}

.check-item--checked .check-box {
    border-color: #16a34a;
    background: #16a34a;
}

.check-item--checked .check-box::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.check-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.45;
}

.check-item--checked .check-text {
    color: #15803d;
}

/* --- Checklist Actions --- */
.checklist-actions {
    margin-top: 32px;
    text-align: center;
}

.checklist-save-note {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 12px;
}

/* --- Gap Summary --- */
.gap-summary {
    margin-bottom: 32px;
}

.gap-summary > h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1B0958;
}

.gap-perfect {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.gap-perfect h3 {
    color: #15803d;
    font-size: 20px;
    margin-bottom: 8px;
}

.gap-perfect p {
    color: #374151;
}

/* --- Cross-link Box --- */
.cross-link-box {
    text-align: center;
    padding: 32px;
    margin-top: 32px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.cross-link-box p {
    color: #374151;
    margin-bottom: 16px;
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .quiz-container,
    .quiz-results {
        padding: 24px 0;
    }

    .quiz-step-title {
        font-size: 22px;
    }

    .quiz-question {
        padding: 16px;
    }

    .quiz-answer-group {
        gap: 8px;
    }

    .quiz-answer {
        padding: 10px 16px;
        font-size: 14px;
    }

    .lead-gate {
        padding: 24px;
    }

    .lead-gate-form .form-row--2col {
        grid-template-columns: 1fr;
    }

    .results-score-ring {
        width: 110px;
        height: 110px;
    }

    .results-score-number {
        font-size: 36px;
    }

    .pillar-card {
        padding: 16px;
    }

    .results-cta-box {
        padding: 24px;
    }

    .results-cta-box .btn {
        margin: 0 4px 8px;
        width: 100%;
    }

    .checklist-container,
    .checklist-results {
        padding: 24px 0;
    }

    .check-category {
        padding: 16px;
    }

    .check-category-icon {
        font-size: 22px;
    }

    .check-category-title {
        font-size: 16px;
    }

    .check-item {
        padding: 10px 8px;
        gap: 10px;
    }

    .check-text {
        font-size: 14px;
    }

    .cross-link-box {
        padding: 24px;
    }
}
