/* ========================================
   IT Security Assessment
   ======================================== */

/* Reduced Hero Height */
.hero-inner {
    padding: 40px 0 50px;
}
@media (max-width: 991px) {
    .hero-inner {
        padding: 30px 0 40px;
    }
}
@media (max-width: 767px) {
    .hero-inner {
        padding: 25px 0 35px;
    }
}

/* Progress Bar */
.assessment-progress {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1a2e;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: box-shadow 0.3s ease;
}
.assessment-progress.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.progress-count {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.progress-count span {
    color: var(--unio-green, #aaca2a);
}
.progress-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--unio-green, #aaca2a);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Pyramid Level Sections */
.pyramid-section {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}
.pyramid-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pyramid-section-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    border-left: 5px solid;
    transition: background 0.2s ease;
}
.pyramid-section-header:hover {
    background: rgba(0,0,0,0.02);
}
.pyramid-level-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    margin-right: 14px;
}
.pyramid-section-info {
    flex: 1;
}
.pyramid-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px 0;
}
.pyramid-section-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.pyramid-section-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.pyramid-section-count {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}
.pyramid-section-toggle {
    font-size: 14px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}
.pyramid-section.open .pyramid-section-toggle {
    transform: rotate(180deg);
}
.pyramid-section-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid #f3f4f6;
}
.pyramid-section.open .pyramid-section-body {
    display: block;
}
.pyramid-section-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 16px 0;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid;
}
.section-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.select-all-btn {
    font-size: 13px;
    color: var(--unio-green, #aaca2a);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}
.select-all-btn:hover {
    text-decoration: underline;
}
.points-badge {
    font-size: 12px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Checklist Items */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 767px) {
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid transparent;
}
.checklist-item:hover {
    background: #f9fafb;
}
.checklist-item.checked {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.checklist-item input[type="checkbox"] {
    display: none;
}
.check-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 1px;
    transition: all 0.2s ease;
    font-size: 12px;
    color: transparent;
}
.checklist-item.checked .check-indicator {
    background: var(--unio-green, #aaca2a);
    border-color: var(--unio-green, #aaca2a);
    color: #fff;
}
.check-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}
.check-description {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 3px;
    line-height: 1.4;
}

/* Contact Form Section */
.assessment-contact {
    background: #f9fafb;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    border: 1px solid #e5e7eb;
}
.assessment-contact h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.assessment-contact .lead {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* ========================================
   Results Page
   ======================================== */

/* Score Circle */
.score-display {
    text-align: center;
    padding: 40px 0;
}
.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    position: relative;
}
.score-circle svg {
    transform: rotate(-90deg);
}
.score-circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}
.score-circle-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1.5s ease;
}
.score-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.score-grade {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}
.score-percentage {
    font-size: 18px;
    color: #6b7280;
    font-weight: 600;
    margin-top: 4px;
}
.score-points {
    font-size: 14px;
    color: #9ca3af;
}

/* Grade Colors */
.grade-a .score-grade { color: #16a34a; }
.grade-a .score-circle-fill { stroke: #16a34a; }
.grade-b .score-grade { color: #2563eb; }
.grade-b .score-circle-fill { stroke: #2563eb; }
.grade-c .score-grade { color: #f59e0b; }
.grade-c .score-circle-fill { stroke: #f59e0b; }
.grade-d .score-grade { color: #f97316; }
.grade-d .score-circle-fill { stroke: #f97316; }
.grade-f .score-grade { color: #dc2626; }
.grade-f .score-circle-fill { stroke: #dc2626; }

/* Grade Summary */
.grade-summary {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 0 32px;
}
.grade-summary p {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.7;
}

/* Level Breakdown */
.level-breakdown {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 24px;
}
.level-breakdown h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.level-bar {
    margin-bottom: 16px;
}
.level-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.level-bar-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.level-bar-name i {
    width: 20px;
    text-align: center;
}
.level-bar-stats {
    font-size: 13px;
    color: #6b7280;
}
.level-bar-track {
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}
.level-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
    width: 0%;
}

/* Pyramid Visual */
.pyramid-visual {
    text-align: center;
    padding: 32px 0;
}
.pyramid-row {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}
.pyramid-block {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}
.pyramid-block.dim {
    opacity: 0.3;
}

/* Results CTAs */
.results-cta {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 32px;
}
.results-cta h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.results-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 24px;
}
.results-cta .btn {
    margin: 0 8px;
}

/* Gaps List */
.gaps-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 24px;
}
.gaps-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.gap-level-group {
    margin-bottom: 16px;
}
.gap-level-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f9fafb;
    display: inline-block;
}
.gap-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 0;
}
.gap-item {
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    list-style: none;
}

/* Print Styles */
@media print {
    .assessment-progress,
    .results-cta,
    .navbar,
    footer {
        display: none !important;
    }
    .score-circle-fill {
        transition: none;
    }
    .level-bar-fill {
        transition: none;
    }
}
