/**
 * TGM Business Scorecard - Frontend Styles
 *
 * @package TGM_Business_Scorecard
 */

/* CSS Variables */
:root {
    --tgm-primary-color: #2E75B6;
    --tgm-secondary-color: #1F4E79;
    --tgm-accent-color: #4CAF50;
    --tgm-text-color: #333333;
    --tgm-text-light: #666666;
    --tgm-text-muted: #999999;
    --tgm-bg-light: #f8f9fa;
    --tgm-bg-white: #ffffff;
    --tgm-border-color: #e0e0e0;
    --tgm-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --tgm-radius: 8px;
    --tgm-transition: all 0.3s ease;
}

/* Reset & Base */
.tgm-scorecard-container,
.tgm-results-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--tgm-text-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tgm-scorecard-container *,
.tgm-results-container * {
    box-sizing: border-box;
}

/* Utility Classes */
.tgm-hidden {
    display: none !important;
}

/* Screen reader only text - WCAG compliant */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Allow screen reader text to be focusable for skip links */
.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--tgm-primary-color);
    color: white;
    z-index: 100000;
}

/* Screens */
.tgm-screen {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Introduction Screen */
.tgm-intro-content {
    text-align: center;
    max-width: 600px;
}

.tgm-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.tgm-intro-headline {
    font-size: 2.5rem;
    color: var(--tgm-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.tgm-intro-subheadline {
    font-size: 1.25rem;
    color: var(--tgm-text-light);
    margin-bottom: 20px;
}

.tgm-intro-description {
    font-size: 1rem;
    color: var(--tgm-text-light);
    margin-bottom: 30px;
}

.tgm-assessment-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tgm-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tgm-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--tgm-primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.tgm-feature-text {
    font-size: 0.9rem;
    color: var(--tgm-text-light);
}

/* Buttons */
.tgm-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--tgm-radius);
    cursor: pointer;
    transition: var(--tgm-transition);
    text-decoration: none;
    text-align: center;
}

.tgm-btn-primary {
    background: var(--tgm-primary-color);
    color: white;
}

.tgm-btn-primary:hover {
    background: var(--tgm-secondary-color);
    color: white;
}

.tgm-btn-secondary {
    background: white;
    color: var(--tgm-primary-color);
    border: 2px solid var(--tgm-primary-color);
}

.tgm-btn-secondary:hover {
    background: var(--tgm-bg-light);
}

.tgm-btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.tgm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessible focus states for buttons */
.tgm-btn:focus {
    outline: 2px solid var(--tgm-primary-color);
    outline-offset: 2px;
}

.tgm-btn:focus:not(:focus-visible) {
    outline: none;
}

.tgm-btn:focus-visible {
    outline: 2px solid var(--tgm-primary-color);
    outline-offset: 2px;
}

/* Submit button loading state */
.tgm-btn .tgm-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tgm-btn .tgm-btn-loading[hidden] {
    display: none;
}

.tgm-btn .tgm-btn-text[hidden] {
    display: none;
}

.tgm-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: tgm-spin 1s linear infinite;
    display: inline-block;
}

/* Form Styles */
.tgm-form-container {
    max-width: 500px;
    width: 100%;
    background: var(--tgm-bg-white);
    padding: 40px;
    border-radius: var(--tgm-radius);
    box-shadow: var(--tgm-shadow);
}

.tgm-form-container h2 {
    margin-bottom: 10px;
    color: var(--tgm-primary-color);
}

.tgm-form-container > p {
    color: var(--tgm-text-light);
    margin-bottom: 30px;
}

.tgm-form-group {
    margin-bottom: 20px;
}

.tgm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.tgm-form-group label .required {
    color: #dc3545;
}

.tgm-form-group input[type="text"],
.tgm-form-group input[type="email"],
.tgm-form-group input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--tgm-border-color);
    border-radius: var(--tgm-radius);
    transition: var(--tgm-transition);
}

.tgm-form-group input:focus {
    outline: none;
    border-color: var(--tgm-primary-color);
    box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.2);
}

/* Accessible focus indicator for keyboard navigation */
.tgm-form-group input:focus-visible {
    outline: 2px solid var(--tgm-primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* Form error states */
.tgm-form-errors:not(:empty) {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--tgm-radius);
    margin-bottom: 20px;
}

.tgm-form-errors:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.tgm-field-error {
    border-color: #ef4444 !important;
}

.tgm-field-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.tgm-field-error-message {
    display: block;
    color: #991b1b;
    font-size: 0.875rem;
    margin-top: 5px;
}

.tgm-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.tgm-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
}

/* Questions Screen */
.tgm-questions-container {
    width: 100%;
    max-width: 700px;
}

/* Progress Bar */
.tgm-progress-container {
    margin-bottom: 30px;
}

.tgm-progress-bar {
    height: 8px;
    background: var(--tgm-border-color);
    border-radius: 4px;
    overflow: hidden;
}

.tgm-progress-fill {
    height: 100%;
    background: var(--tgm-primary-color);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.tgm-progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--tgm-text-light);
}

/* Section Header */
.tgm-section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--tgm-bg-light);
    border-radius: var(--tgm-radius);
}

.tgm-section-number {
    font-size: 0.85rem;
    color: var(--tgm-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tgm-section-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tgm-primary-color);
    margin-top: 5px;
}

/* Questions */
.tgm-question {
    margin-bottom: 30px;
}

.tgm-question-text {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: var(--tgm-text-color);
}

.tgm-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tgm-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: var(--tgm-bg-white);
    border: 2px solid var(--tgm-border-color);
    border-radius: var(--tgm-radius);
    cursor: pointer;
    transition: var(--tgm-transition);
}

.tgm-option:hover {
    border-color: var(--tgm-primary-color);
    background: var(--tgm-bg-light);
}

.tgm-option input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
    /* Ensure radio is visible but not styled oddly */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Accessible focus ring for radio buttons */
.tgm-option input[type="radio"]:focus {
    outline: 2px solid var(--tgm-primary-color);
    outline-offset: 2px;
}

.tgm-option input[type="radio"]:focus:not(:focus-visible) {
    outline: none;
}

.tgm-option input[type="radio"]:focus-visible {
    outline: 2px solid var(--tgm-primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(46, 117, 182, 0.2);
}

.tgm-option input[type="radio"]:checked + .tgm-option-text {
    color: var(--tgm-primary-color);
    font-weight: 500;
}

.tgm-option:has(input:checked) {
    border-color: var(--tgm-primary-color);
    background: rgba(46, 117, 182, 0.05);
}

/* Highlight entire option when radio is focused */
.tgm-option:has(input:focus-visible) {
    border-color: var(--tgm-primary-color);
    box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2);
}

.tgm-option-text {
    flex: 1;
    line-height: 1.5;
}

/* Navigation */
.tgm-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

#tgm-prev-btn {
    visibility: hidden;
}

.tgm-navigation.show-prev #tgm-prev-btn {
    visibility: visible;
}

/* Validation Message - accessible error state */
.tgm-validation-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
    padding: 12px 20px;
    border-radius: var(--tgm-radius);
    margin-top: 20px;
    text-align: center;
}

.tgm-validation-message:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Fieldset reset for questions - maintain accessibility */
.tgm-question[role="group"],
fieldset.tgm-question {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.tgm-question legend,
.tgm-question .tgm-question-text {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: var(--tgm-text-color);
    font-weight: normal;
    padding: 0;
    width: 100%;
}

.tgm-question .tgm-question-text:focus {
    outline: none;
}

/* Loading Screen */
.tgm-loading-content {
    text-align: center;
}

.tgm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--tgm-border-color);
    border-top-color: var(--tgm-primary-color);
    border-radius: 50%;
    animation: tgm-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes tgm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Screen */
.tgm-error-content {
    text-align: center;
    padding: 40px;
}

.tgm-error-content h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

/* =========================
   RESULTS PAGE STYLES
   ========================= */

.tgm-results-container {
    padding: 40px 20px;
}

.tgm-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.tgm-results-header .tgm-logo {
    margin-bottom: 20px;
}

.tgm-results-greeting {
    font-size: 2rem;
    color: var(--tgm-primary-color);
}

/* Overall Score */
.tgm-overall-score {
    text-align: center;
    padding: 40px;
    background: var(--tgm-bg-white);
    border: 3px solid;
    border-radius: var(--tgm-radius);
    box-shadow: var(--tgm-shadow);
    margin-bottom: 40px;
}

.tgm-score-value {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.tgm-score-label {
    font-size: 1.125rem;
    color: var(--tgm-text-light);
    margin-bottom: 20px;
}

.tgm-tier-badge {
    display: inline-block;
    padding: 10px 30px;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 30px;
}

/* Tier Summary */
.tgm-tier-summary {
    background: var(--tgm-bg-light);
    padding: 30px;
    border-radius: var(--tgm-radius);
    margin-bottom: 40px;
}

.tgm-tier-summary h2 {
    color: var(--tgm-primary-color);
    margin-bottom: 20px;
}

.tgm-summary-text {
    color: var(--tgm-text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.tgm-meaning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgm-meaning-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid var(--tgm-border-color);
}

.tgm-meaning-list li:last-child {
    border-bottom: none;
}

.tgm-meaning-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--tgm-accent-color);
    font-weight: bold;
}

/* Section Breakdown */
.tgm-section-breakdown {
    margin-bottom: 40px;
}

.tgm-section-breakdown h2 {
    color: var(--tgm-primary-color);
    margin-bottom: 20px;
}

.tgm-section-result {
    background: var(--tgm-bg-white);
    border: 1px solid var(--tgm-border-color);
    border-radius: var(--tgm-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.tgm-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: var(--tgm-transition);
}

.tgm-section-header-row:hover {
    background: var(--tgm-bg-light);
}

.tgm-section-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tgm-section-icon {
    width: 40px;
    height: 40px;
    background: var(--tgm-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgm-section-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.tgm-section-score-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tgm-section-percentage {
    font-weight: 600;
    font-size: 1.1rem;
}

.tgm-section-status {
    padding: 5px 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 15px;
}

.tgm-expand-icon {
    font-size: 1.5rem;
    color: var(--tgm-text-muted);
    transition: var(--tgm-transition);
}

.tgm-section-result.expanded .tgm-expand-icon {
    transform: rotate(45deg);
}

.tgm-section-progress {
    padding: 0 20px 15px;
}

.tgm-section-details {
    display: none;
    padding: 20px;
    background: var(--tgm-bg-light);
    border-top: 1px solid var(--tgm-border-color);
}

.tgm-section-result.expanded .tgm-section-details {
    display: block;
}

.tgm-section-description {
    color: var(--tgm-text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.tgm-section-interpretation {
    color: var(--tgm-text-color);
    line-height: 1.8;
}

/* Priorities */
.tgm-priorities {
    margin-bottom: 40px;
}

.tgm-priorities h2 {
    color: var(--tgm-primary-color);
    margin-bottom: 20px;
}

.tgm-priority {
    background: var(--tgm-bg-white);
    border-left: 4px solid var(--tgm-primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 var(--tgm-radius) var(--tgm-radius) 0;
    box-shadow: var(--tgm-shadow);
}

.tgm-priority-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.tgm-priority-number {
    width: 30px;
    height: 30px;
    background: var(--tgm-primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tgm-priority-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tgm-primary-color);
}

.tgm-priority-text {
    color: var(--tgm-text-color);
    line-height: 1.6;
    padding-left: 45px;
}

/* Bridge / CTA Section */
.tgm-bridge-section {
    background: var(--tgm-bg-white);
    border: 2px solid;
    border-radius: var(--tgm-radius);
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.tgm-bridge-section h2 {
    color: var(--tgm-primary-color);
    margin-bottom: 25px;
}

.tgm-bridge-intro,
.tgm-bridge-offer,
.tgm-bridge-value {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: left;
}

.tgm-bridge-cta-text {
    font-weight: 500;
    color: var(--tgm-text-color);
    margin-bottom: 25px;
}

.tgm-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Results Footer */
.tgm-results-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--tgm-border-color);
    color: var(--tgm-text-muted);
    font-size: 0.9rem;
}

.tgm-results-footer p {
    margin: 5px 0;
}

/* Calendly Section */
.tgm-calendly-section {
    margin-bottom: 40px;
}

.tgm-calendly-section h2 {
    color: var(--tgm-primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Honeypot field - multiple hiding methods to fool bots */
.tgm-hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Additional hiding for screen readers handled by aria-hidden */
.tgm-hp-field input,
.tgm-hp-field label {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .tgm-intro-headline {
        font-size: 1.75rem;
    }

    .tgm-score-value {
        font-size: 3.5rem;
    }

    .tgm-form-container {
        padding: 25px;
    }

    .tgm-section-header-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tgm-section-info {
        flex-direction: column;
    }

    .tgm-section-score-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tgm-priority-text {
        padding-left: 0;
    }

    .tgm-cta-buttons {
        flex-direction: column;
    }

    .tgm-cta-buttons .tgm-btn {
        width: 100%;
    }

    .tgm-navigation {
        flex-direction: column-reverse;
    }
}

/* =========================
   ACCESSIBILITY ENHANCEMENTS
   ========================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tgm-option input[type="radio"]:checked + .tgm-option-text {
        text-decoration: underline;
    }

    .tgm-option:has(input:checked) {
        outline: 3px solid currentColor;
    }

    .tgm-btn {
        border: 2px solid currentColor;
    }

    .tgm-progress-fill {
        background: currentColor;
    }
}

/* Reduced motion support - WCAG 2.1 Success Criterion 2.3.3 */
@media (prefers-reduced-motion: reduce) {
    .tgm-progress-fill,
    .tgm-btn,
    .tgm-option,
    .tgm-form-group input,
    .tgm-expand-icon,
    .tgm-section-header-row {
        transition: none;
    }

    .tgm-spinner,
    .tgm-spinner-small {
        animation: none;
        /* Show static loading indicator instead */
        border: 4px solid var(--tgm-primary-color);
        border-radius: 50%;
    }

    @keyframes tgm-spin {
        /* Animation disabled - no keyframes */
    }
}

/* Force visible focus indicators for users who need them */
@media (prefers-contrast: more) {
    *:focus {
        outline: 3px solid !important;
        outline-offset: 3px !important;
    }
}

/* ==========================================================================
   Verification Pending Page
   ========================================================================== */

.tgm-verification-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--tgm-text-color);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.tgm-verification-header {
    margin-bottom: 30px;
}

.tgm-verification-header .tgm-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.tgm-verification-greeting {
    font-size: 2rem;
    color: var(--tgm-primary-color);
    margin: 0 0 10px;
    font-weight: 700;
}

.tgm-verification-icon {
    margin: 30px 0;
    color: var(--tgm-primary-color);
}

.tgm-verification-icon svg {
    width: 80px;
    height: 80px;
}

.tgm-verification-content {
    background: var(--tgm-bg-white);
    border-radius: var(--tgm-radius);
    padding: 30px;
    box-shadow: var(--tgm-shadow);
    margin-bottom: 20px;
}

.tgm-verification-message p,
.tgm-verification-help p {
    font-size: 1.1rem;
    color: var(--tgm-text-color);
    margin: 0 0 20px;
}

.tgm-verification-help p {
    font-size: 0.95rem;
    color: var(--tgm-text-light);
}

.tgm-verification-error,
.tgm-verification-warning {
    padding: 15px;
    border-radius: var(--tgm-radius);
    margin-bottom: 20px;
}

.tgm-verification-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.tgm-verification-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.tgm-verification-error p,
.tgm-verification-warning p {
    margin: 0;
    font-size: 1rem;
}

.tgm-verification-actions {
    margin-top: 25px;
}

.tgm-resend-verification-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--tgm-primary-color);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--tgm-radius);
    cursor: pointer;
    transition: var(--tgm-transition);
}

.tgm-resend-verification-btn:hover {
    background: var(--tgm-secondary-color);
    transform: translateY(-1px);
}

.tgm-resend-verification-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.tgm-resend-verification-btn:focus {
    outline: 3px solid var(--tgm-accent-color);
    outline-offset: 2px;
}

.tgm-resend-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--tgm-radius);
    font-size: 0.95rem;
    min-height: 20px;
}

.tgm-resend-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tgm-resend-status.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.tgm-verification-footer {
    margin-top: 20px;
}

.tgm-verification-footer p {
    font-size: 0.9rem;
    color: var(--tgm-text-muted);
    margin: 0;
}

/* Verification page responsive */
@media (max-width: 600px) {
    .tgm-verification-container {
        padding: 20px 15px;
    }

    .tgm-verification-greeting {
        font-size: 1.5rem;
    }

    .tgm-verification-content {
        padding: 20px;
    }

    .tgm-verification-icon svg {
        width: 60px;
        height: 60px;
    }

    .tgm-resend-verification-btn {
        width: 100%;
        padding: 16px 24px;
    }
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

/* Landing Page Container */
.tgm-landing {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Override container max-width for landing page */
.tgm-scorecard-container:has(.tgm-landing:not(.tgm-hidden)) {
    max-width: 100%;
    padding: 0;
}

/* Hero Section */
.tgm-hero {
    text-align: center;
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, var(--tgm-primary-color) 0%, var(--tgm-secondary-color) 100%);
    color: white;
}

.tgm-hero-logo {
    margin-bottom: 30px;
}

.tgm-hero-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.tgm-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.tgm-hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.tgm-hero .tgm-btn-primary {
    background: white;
    color: var(--tgm-primary-color);
    border-color: white;
}

.tgm-hero .tgm-btn-primary:hover {
    background: #f8f8f8;
    border-color: #f8f8f8;
}

.tgm-hero-meta {
    margin: 25px 0 0;
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* Section Headings */
.tgm-section-heading {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 45px;
    color: var(--tgm-text-color);
}

/* What You'll Discover Section */
.tgm-discover {
    padding: 80px 20px;
    background: white;
}

.tgm-discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tgm-discover-card {
    text-align: center;
    padding: 30px 25px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgm-discover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tgm-discover-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--tgm-primary-color) 0%, var(--tgm-secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgm-discover-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.tgm-discover-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--tgm-text-color);
}

.tgm-discover-card p {
    font-size: 15px;
    color: var(--tgm-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Report Preview Section */
.tgm-preview {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.tgm-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tgm-preview-card {
    text-align: center;
}

.tgm-preview-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--tgm-text-color);
}

.tgm-preview-card p {
    font-size: 14px;
    color: var(--tgm-text-light);
    margin: 0;
}

/* Mockup Styles */
.tgm-preview-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tgm-preview-card:hover .tgm-preview-mockup {
    transform: scale(1.02);
}

.tgm-mockup-header {
    background: #e5e7eb;
    padding: 10px 15px;
    display: flex;
    gap: 6px;
}

.tgm-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.tgm-mockup-content {
    padding: 20px;
}

/* Score Mockup */
.tgm-mockup-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #F39C12;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgm-mockup-score-num {
    font-size: 36px;
    font-weight: 700;
    color: #F39C12;
}

.tgm-mockup-score-pct {
    font-size: 18px;
    color: #F39C12;
}

.tgm-mockup-score-label {
    font-size: 12px;
    color: var(--tgm-text-light);
    margin-bottom: 10px;
}

.tgm-mockup-tier {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #FEF3C7;
    color: #92400E;
}

/* Section Breakdown Mockup */
.tgm-mockup-sections {
    padding: 15px;
}

.tgm-mockup-section {
    margin-bottom: 10px;
}

.tgm-mockup-section:last-child {
    margin-bottom: 0;
}

.tgm-mockup-section-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
    color: var(--tgm-text-light);
}

.tgm-mockup-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.tgm-mockup-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.tgm-mockup-bar-high { background: #10B981; }
.tgm-mockup-bar-mid { background: #F39C12; }
.tgm-mockup-bar-low { background: #EF4444; }

/* PDF Mockup */
.tgm-mockup-pdf {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
    position: relative;
    margin: 10px;
}

.tgm-mockup-pdf-header {
    height: 8px;
    background: linear-gradient(135deg, var(--tgm-primary-color) 0%, var(--tgm-secondary-color) 100%);
    border-radius: 4px;
    margin-bottom: 15px;
}

.tgm-mockup-pdf-score {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.tgm-mockup-pdf-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid #F39C12;
}

.tgm-mockup-pdf-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tgm-mockup-pdf-line {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.tgm-mockup-pdf-line-short { width: 60%; }
.tgm-mockup-pdf-line-med { width: 80%; }

.tgm-mockup-pdf-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #EF4444;
}

.tgm-mockup-pdf-icon svg {
    width: 16px;
    height: 16px;
}

/* Benefits Section */
.tgm-benefits {
    padding: 80px 20px;
    background: white;
}

.tgm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.tgm-benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tgm-benefit-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--tgm-primary-color);
    flex-shrink: 0;
}

.tgm-benefit-item span {
    font-size: 15px;
    font-weight: 500;
    color: var(--tgm-text-color);
}

/* How It Works Section */
.tgm-how {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.tgm-how-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tgm-how-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
}

.tgm-how-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tgm-primary-color) 0%, var(--tgm-secondary-color) 100%);
    color: white;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tgm-how-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--tgm-text-color);
}

.tgm-how-step p {
    font-size: 14px;
    color: var(--tgm-text-light);
    margin: 0;
    line-height: 1.5;
}

.tgm-how-arrow {
    padding-top: 15px;
    color: var(--tgm-primary-color);
    opacity: 0.5;
}

.tgm-how-arrow svg {
    width: 30px;
    height: 30px;
}

/* Social Proof Section */
.tgm-proof {
    padding: 60px 20px;
    background: #f0f4f8;
    text-align: center;
}

.tgm-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 40px auto 0;
}

.tgm-proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--tgm-radius, 8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    font-weight: 500;
    color: var(--tgm-text-color, #2c3e50);
    text-align: left;
}

.tgm-proof-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--tgm-primary-color);
}

/* Objection Handler Section */
.tgm-objection {
    padding: 60px 20px;
    background: white;
}

.tgm-objection-list {
    max-width: 720px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tgm-objection-item {
    padding: 24px 28px;
    background: #f8f9fa;
    border-radius: var(--tgm-radius, 8px);
    border-left: 4px solid var(--tgm-primary-color);
}

.tgm-objection-question {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--tgm-text-color, #2c3e50);
    margin: 0 0 10px;
}

.tgm-objection-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--tgm-primary-color);
}

.tgm-objection-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    padding-left: 30px;
}

/* Final CTA Section */
.tgm-final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--tgm-primary-color) 0%, var(--tgm-secondary-color) 100%);
    text-align: center;
    color: white;
}

.tgm-final-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
    color: white;
}

.tgm-final-cta p {
    font-size: 18px;
    margin: 0 0 35px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tgm-final-cta .tgm-btn-primary {
    background: white;
    color: var(--tgm-primary-color);
    border-color: white;
}

.tgm-final-cta .tgm-btn-primary:hover {
    background: #f8f8f8;
    border-color: #f8f8f8;
}

.tgm-final-meta {
    margin: 20px 0 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Large Button */
.tgm-btn-large {
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
}

/* Landing Page Responsive Styles */
@media (max-width: 900px) {
    .tgm-discover-grid,
    .tgm-preview-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .tgm-benefits-grid {
        grid-template-columns: 1fr;
    }

    .tgm-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tgm-how-grid {
        flex-direction: column;
        align-items: center;
    }

    .tgm-how-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
}

@media (max-width: 600px) {
    .tgm-hero {
        padding: 40px 20px 60px;
    }

    .tgm-hero-title {
        font-size: 28px;
    }

    .tgm-hero-subtitle {
        font-size: 16px;
    }

    .tgm-section-heading {
        font-size: 24px;
    }

    .tgm-discover,
    .tgm-preview,
    .tgm-benefits,
    .tgm-how,
    .tgm-proof,
    .tgm-objection,
    .tgm-final-cta {
        padding: 50px 20px;
    }

    .tgm-proof-grid {
        grid-template-columns: 1fr;
    }

    .tgm-objection-answer {
        padding-left: 0;
    }

    .tgm-btn-large {
        padding: 16px 35px;
        font-size: 16px;
    }

    .tgm-final-cta h2 {
        font-size: 24px;
    }

    .tgm-final-cta p {
        font-size: 15px;
    }
}

/* Print styles - ensure content is readable when printed */
@media print {
    .tgm-navigation,
    .tgm-progress-container,
    .tgm-spinner,
    .tgm-btn-loading {
        display: none !important;
    }

    .tgm-hidden {
        display: block !important;
    }

    .tgm-option:has(input:checked) {
        background: #f0f0f0 !important;
        border: 2px solid #000 !important;
    }
}

/* =========================
   RESULTS PAGE - TAB NAVIGATION
   ========================= */

.tgm-report-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--tgm-bg-light);
    padding: 8px;
    border-radius: var(--tgm-radius);
}

.tgm-report-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tgm-text-light);
    cursor: pointer;
    border-radius: var(--tgm-radius);
    transition: var(--tgm-transition);
}

.tgm-report-tab:hover {
    background: rgba(46, 117, 182, 0.1);
    color: var(--tgm-primary-color);
}

.tgm-report-tab.active {
    background: var(--tgm-primary-color);
    color: white;
}

.tgm-report-tab:focus {
    outline: 2px solid var(--tgm-primary-color);
    outline-offset: 2px;
}

/* Tab Content */
.tgm-tab-content {
    display: none;
}

.tgm-tab-content.active {
    display: block;
}

/* =========================
   RESULTS PAGE - SECTION CIRCLES (Overview)
   ========================= */

.tgm-section-circles {
    margin-bottom: 40px;
}

.tgm-section-circles h2 {
    color: var(--tgm-primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.tgm-circles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tgm-circle-item {
    text-align: center;
    padding: 20px;
    background: var(--tgm-bg-white);
    border-radius: var(--tgm-radius);
    box-shadow: var(--tgm-shadow);
}

.tgm-circle {
    width: 80px;
    height: 80px;
    border: 4px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.tgm-circle-percentage {
    font-size: 1.5rem;
    font-weight: 700;
}

.tgm-circle-label {
    display: block;
    font-weight: 500;
    color: var(--tgm-text-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tgm-circle-status {
    display: inline-block;
    padding: 4px 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

/* =========================
   RESULTS PAGE - QUICK PRIORITIES
   ========================= */

.tgm-quick-priorities {
    margin-bottom: 40px;
}

.tgm-quick-priorities h2 {
    color: var(--tgm-primary-color);
    margin-bottom: 20px;
}

.tgm-priority-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tgm-priority-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--tgm-bg-white);
    border-left: 4px solid;
    border-radius: 0 var(--tgm-radius) var(--tgm-radius) 0;
    box-shadow: var(--tgm-shadow);
}

.tgm-priority-badge {
    width: 35px;
    height: 35px;
    background: var(--tgm-primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.tgm-priority-card-content h4 {
    margin: 0 0 5px;
    color: var(--tgm-text-color);
}

.tgm-priority-score {
    font-size: 0.9rem;
    color: var(--tgm-text-light);
}

/* =========================
   RESULTS PAGE - ACCORDION SECTIONS (Detailed Analysis)
   ========================= */

.tgm-section-accordion {
    background: var(--tgm-bg-white);
    border: 1px solid var(--tgm-border-color);
    border-radius: var(--tgm-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.tgm-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: var(--tgm-transition);
}

.tgm-accordion-header:hover {
    background: var(--tgm-bg-light);
}

.tgm-accordion-content {
    display: none;
    padding: 20px;
    background: var(--tgm-bg-light);
    border-top: 1px solid var(--tgm-border-color);
}

.tgm-section-accordion.expanded .tgm-accordion-content {
    display: block;
}

.tgm-section-accordion.expanded .tgm-expand-icon {
    transform: rotate(45deg);
}

/* =========================
   RESULTS PAGE - DIAGNOSIS BOX
   ========================= */

.tgm-diagnosis-box {
    background: var(--tgm-bg-white);
    border-left: 4px solid;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 var(--tgm-radius) var(--tgm-radius) 0;
}

.tgm-diagnosis-box h4 {
    margin: 0 0 10px;
    color: var(--tgm-text-color);
    font-size: 1rem;
}

.tgm-diagnosis-box p {
    margin: 0;
    color: var(--tgm-text-color);
    line-height: 1.7;
}

/* =========================
   RESULTS PAGE - WORKING/HOLDING GRID
   ========================= */

.tgm-working-holding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.tgm-whats-working,
.tgm-whats-holding {
    background: var(--tgm-bg-white);
    padding: 20px;
    border-radius: var(--tgm-radius);
}

.tgm-whats-working {
    border: 1px solid #28a745;
}

.tgm-whats-holding {
    border: 1px solid #dc3545;
}

.tgm-whats-working h4,
.tgm-whats-holding h4 {
    margin: 0 0 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tgm-whats-working h4 {
    color: #28a745;
}

.tgm-whats-holding h4 {
    color: #dc3545;
}

.tgm-whats-working ul,
.tgm-whats-holding ul {
    margin: 0;
    padding-left: 20px;
}

.tgm-whats-working li,
.tgm-whats-holding li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--tgm-text-color);
}

/* =========================
   RESULTS PAGE - COST BOX & METRICS
   ========================= */

.tgm-cost-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: var(--tgm-radius);
    margin-bottom: 20px;
}

.tgm-cost-box h4 {
    margin: 0 0 10px;
    color: #856404;
    font-size: 1rem;
}

.tgm-cost-box > p {
    margin: 0 0 15px;
    color: #856404;
    line-height: 1.7;
}

.tgm-cost-metrics {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tgm-cost-metric {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-radius: var(--tgm-radius);
    min-width: 100px;
}

.tgm-metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #856404;
}

.tgm-metric-label {
    display: block;
    font-size: 0.8rem;
    color: #856404;
    margin-top: 5px;
}

/* =========================
   RESULTS PAGE - OPPORTUNITY BOX
   ========================= */

.tgm-opportunity-box {
    background: #d4edda;
    border: 1px solid #28a745;
    padding: 20px;
    border-radius: var(--tgm-radius);
    margin-bottom: 20px;
}

.tgm-opportunity-box h4 {
    margin: 0 0 10px;
    color: #155724;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tgm-opportunity-box p {
    margin: 0;
    color: #155724;
    line-height: 1.7;
}

/* =========================
   RESULTS PAGE - WARNING SIGNS & COMMON MISTAKES
   ========================= */

.tgm-warning-signs {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    padding: 20px;
    border-radius: var(--tgm-radius);
    margin-bottom: 20px;
}

.tgm-warning-signs h4 {
    margin: 0 0 15px;
    color: #c53030;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tgm-warning-signs ul {
    margin: 0;
    padding-left: 20px;
}

.tgm-warning-signs li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #742a2a;
}

.tgm-common-mistakes {
    background: #fef3e2;
    border: 1px solid #fbd38d;
    padding: 20px;
    border-radius: var(--tgm-radius);
}

.tgm-common-mistakes h4 {
    margin: 0 0 15px;
    color: #c05621;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tgm-common-mistakes ul {
    margin: 0;
    padding-left: 20px;
}

.tgm-common-mistakes li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #7b341e;
}

/* =========================
   RESULTS PAGE - 90-DAY ROADMAP
   ========================= */

.tgm-roadmap {
    background: var(--tgm-bg-white);
    padding: 30px;
    border-radius: var(--tgm-radius);
    box-shadow: var(--tgm-shadow);
    margin-bottom: 40px;
}

.tgm-roadmap h3 {
    text-align: center;
    color: var(--tgm-primary-color);
    margin: 0 0 30px;
}

.tgm-roadmap-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tgm-roadmap-phase {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.tgm-phase-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    color: white;
    border-radius: var(--tgm-radius);
    margin-bottom: 12px;
}

.tgm-phase-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tgm-phase-title {
    font-weight: 600;
    font-size: 1rem;
}

.tgm-phase-period {
    font-weight: 600;
    color: var(--tgm-text-color);
    margin-bottom: 5px;
}

.tgm-phase-focus {
    font-size: 0.9rem;
    color: var(--tgm-text-light);
}

.tgm-roadmap-connector {
    width: 30px;
    height: 3px;
    background: var(--tgm-border-color);
}

/* =========================
   RESULTS PAGE - ACTION PLAN
   ========================= */

.tgm-action-intro {
    color: var(--tgm-text-light);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.7;
}

.tgm-priority-actions {
    margin-bottom: 40px;
}

.tgm-action-section {
    background: var(--tgm-bg-white);
    border-left: 4px solid;
    border-radius: 0 var(--tgm-radius) var(--tgm-radius) 0;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--tgm-shadow);
}

.tgm-action-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tgm-action-priority-badge {
    padding: 6px 14px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 15px;
}

.tgm-action-section-header h3 {
    margin: 0;
    color: var(--tgm-text-color);
    flex: 1;
}

.tgm-action-tier-badge {
    padding: 4px 12px;
    background: var(--tgm-bg-light);
    color: var(--tgm-text-light);
    font-size: 0.8rem;
    border-radius: 12px;
}

.tgm-action-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tgm-action-card {
    background: var(--tgm-bg-light);
    padding: 20px;
    border-radius: var(--tgm-radius);
    position: relative;
}

.tgm-action-card.tgm-quick-win {
    border: 2px solid #28a745;
    background: #f8fff8;
}

.tgm-quick-win-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
}

.tgm-action-card h4 {
    margin: 0 0 12px;
    color: var(--tgm-primary-color);
    font-size: 1.1rem;
}

.tgm-action-description {
    margin: 0 0 15px;
    color: var(--tgm-text-color);
    line-height: 1.6;
}

.tgm-action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.tgm-action-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.tgm-meta-icon {
    color: var(--tgm-primary-color);
}

.tgm-meta-label {
    font-weight: 500;
    color: var(--tgm-text-light);
}

.tgm-meta-value {
    color: var(--tgm-text-color);
}

.tgm-action-howto {
    background: var(--tgm-bg-white);
    padding: 15px;
    border-radius: var(--tgm-radius);
    border: 1px solid var(--tgm-border-color);
}

.tgm-action-howto h5 {
    margin: 0 0 10px;
    color: var(--tgm-primary-color);
    font-size: 0.95rem;
}

.tgm-action-howto p {
    margin: 0;
    color: var(--tgm-text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.tgm-maintenance-message {
    background: #d4edda;
    border: 1px solid #28a745;
    padding: 20px;
    border-radius: var(--tgm-radius);
}

.tgm-maintenance-message p {
    margin: 0;
    color: #155724;
    line-height: 1.6;
}

/* =========================
   RESULTS PAGE - NEXT STEPS SUMMARY
   ========================= */

.tgm-next-steps-summary {
    background: var(--tgm-bg-light);
    padding: 30px;
    border-radius: var(--tgm-radius);
    margin-bottom: 40px;
}

.tgm-next-steps-summary h3 {
    margin: 0 0 20px;
    color: var(--tgm-primary-color);
}

.tgm-numbered-steps {
    margin: 0;
    padding-left: 25px;
}

.tgm-numbered-steps li {
    margin-bottom: 12px;
    color: var(--tgm-text-color);
    line-height: 1.6;
}

.tgm-numbered-steps li:last-child {
    margin-bottom: 0;
}

/* =========================
   RESULTS PAGE - ICONS (Simple CSS Icons)
   ========================= */

.tgm-icon-check::before {
    content: "\2713";
    color: #28a745;
}

.tgm-icon-alert::before {
    content: "\26A0";
    color: #dc3545;
}

.tgm-icon-target::before {
    content: "\1F3AF";
}

.tgm-icon-warning::before {
    content: "\26A0";
    color: #c53030;
}

.tgm-icon-x::before {
    content: "\2717";
    color: #c05621;
}

.tgm-icon-clock::before {
    content: "\23F0";
}

.tgm-icon-effort::before {
    content: "\1F4AA";
}

/* =========================
   RESULTS PAGE - RESPONSIVE STYLES
   ========================= */

@media (max-width: 768px) {
    .tgm-report-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tgm-report-tab {
        width: 100%;
    }

    .tgm-circles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tgm-working-holding-grid {
        grid-template-columns: 1fr;
    }

    .tgm-roadmap-timeline {
        flex-direction: column;
        gap: 20px;
    }

    .tgm-roadmap-connector {
        width: 3px;
        height: 20px;
    }

    .tgm-roadmap-phase {
        max-width: 100%;
        width: 100%;
    }

    .tgm-action-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tgm-cost-metrics {
        flex-direction: column;
    }

    .tgm-cost-metric {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tgm-circles-grid {
        grid-template-columns: 1fr;
    }

    .tgm-circle {
        width: 100px;
        height: 100px;
    }

    .tgm-circle-percentage {
        font-size: 1.75rem;
    }
}

/* =============================================
   Score & Radar Chart Grid
   ============================================= */

.tgm-score-radar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .tgm-score-radar-grid {
        grid-template-columns: 1fr;
    }
}

.tgm-score-radar-grid .tgm-overall-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.tgm-radar-chart-container {
    background: var(--tgm-bg-white);
    padding: 30px;
    border-radius: var(--tgm-radius);
    box-shadow: var(--tgm-shadow);
    text-align: center;
}

.tgm-radar-chart-container h3 {
    margin-bottom: 20px;
    color: var(--tgm-primary-color);
    font-size: 1.25rem;
}

.tgm-radar-chart {
    max-width: 100%;
    height: auto;
}

/* SVG Gauge */
.tgm-gauge-svg {
    display: block;
    margin: 0 auto 15px;
}

.tgm-gauge-progress {
    transition: stroke-dasharray 1s ease-out;
}

/* =============================================
   Key Findings, Risk Warning, Next Step
   ============================================= */

.tgm-key-findings {
    background: var(--tgm-bg-light);
    padding: 25px;
    border-radius: var(--tgm-radius);
    margin-bottom: 25px;
}

.tgm-key-findings h3 {
    color: var(--tgm-primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.tgm-key-findings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgm-key-findings li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tgm-key-findings li:last-child {
    border-bottom: none;
}

.tgm-key-findings li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--tgm-primary-color);
    border-radius: 50%;
}

.tgm-risk-warning {
    background: #fff3cd;
    border-left: 4px solid;
    padding: 20px 25px;
    border-radius: 0 var(--tgm-radius) var(--tgm-radius) 0;
    margin-bottom: 25px;
}

.tgm-risk-warning h4 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tgm-risk-warning p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.tgm-next-step {
    background: #d4edda;
    padding: 20px 25px;
    border-radius: var(--tgm-radius);
    margin-bottom: 25px;
}

.tgm-next-step h4 {
    color: #155724;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tgm-next-step p {
    color: #155724;
    margin: 0;
    line-height: 1.6;
}

/* =========================
   EXPECTED OUTCOMES / 90-DAY ROADMAP
   ========================= */

.tgm-expected-outcomes {
    background: var(--tgm-bg-light);
    padding: 30px;
    border-radius: var(--tgm-radius);
    margin: 30px 0;
}

.tgm-expected-outcomes h3 {
    margin: 0 0 10px;
    color: var(--tgm-primary-color);
    font-size: 1.4em;
}

.tgm-outcomes-intro {
    color: var(--tgm-text-muted);
    margin-bottom: 25px;
    font-size: 1em;
}

.tgm-outcomes-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .tgm-outcomes-timeline {
        grid-template-columns: 1fr;
    }
}

.tgm-outcome-phase {
    background: #fff;
    border-radius: var(--tgm-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tgm-phase-header {
    padding: 15px 20px;
    color: #fff;
    text-align: center;
}

.tgm-phase-label {
    display: block;
    font-size: 0.85em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tgm-phase-title {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
}

.tgm-phase-items {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.tgm-phase-items li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 0.95em;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
}

.tgm-phase-items li:last-child {
    border-bottom: none;
}

.tgm-phase-items li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--tgm-primary-color);
    font-weight: bold;
}

/* Icon for arrow-right */
.tgm-icon-arrow-right::before {
    content: '\2192';
    font-size: 1.1em;
}

/* =========================
   SECTION SCORE BARS (Horizontal)
   ========================= */

.tgm-section-scores {
    background: #fff;
    border-radius: var(--tgm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tgm-section-scores h2 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 16px;
    font-weight: 600;
}

.tgm-section-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.tgm-bar-label {
    width: 130px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: right;
    flex-shrink: 0;
}

.tgm-bar-container {
    flex: 1;
    background: #f0f0f0;
    border-radius: 8px;
    height: 28px;
    position: relative;
    overflow: hidden;
}

.tgm-bar-fill {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.8s ease;
    min-width: 40px;
}

.tgm-bar-percentage {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tgm-bar-status {
    width: 100px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tgm-section-bar-row {
        flex-wrap: wrap;
    }

    .tgm-bar-label {
        width: 100%;
        text-align: left;
    }

    .tgm-bar-container {
        width: calc(100% - 110px);
    }
}

/* =========================
   OVERVIEW KEY FINDINGS
   ========================= */

.tgm-overview-findings {
    background: #fff;
    border-radius: var(--tgm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tgm-overview-findings h2 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 14px;
    font-weight: 600;
}

.tgm-finding-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tgm-finding-arrow {
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.tgm-finding-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* =========================
   RISK PROFILE
   ========================= */

.tgm-risk-profile {
    background: #fff;
    border-radius: var(--tgm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #fd7e14;
}

.tgm-risk-profile h3 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.tgm-risk-profile p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* =========================
   PRIORITY RANKING GRID
   ========================= */

.tgm-priority-ranking {
    background: #fff;
    border-radius: var(--tgm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tgm-priority-ranking h2 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 16px;
    font-weight: 600;
}

.tgm-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .tgm-priority-grid {
        grid-template-columns: 1fr;
    }
}

.tgm-priority-box {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    position: relative;
}

.tgm-priority-box.tgm-top-priority {
    border-width: 2px;
    background: rgba(220, 53, 69, 0.03);
}

.tgm-priority-tag {
    position: absolute;
    top: -10px;
    right: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tgm-priority-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.tgm-priority-rank {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.tgm-priority-box .tgm-priority-score {
    font-size: 20px;
    font-weight: 800;
}

.tgm-priority-box-status {
    font-size: 12px;
    color: #666;
}

/* =========================
   SECTION INLINE ACTIONS
   ========================= */

.tgm-section-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.tgm-section-actions h4 {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tgm-inline-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tgm-inline-action {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid transparent;
}

.tgm-inline-action.tgm-quick-win {
    border-color: rgba(40, 167, 69, 0.25);
}

.tgm-inline-action-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.tgm-action-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.tgm-inline-action-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tgm-inline-action-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}

.tgm-quick-win-inline {
    font-size: 9px;
    font-weight: 700;
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.tgm-inline-action-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 8px;
    padding-left: 42px;
}

.tgm-inline-howto {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 6px;
    border-left: 2px solid #ddd;
    margin-left: 42px;
}

.tgm-howto-label {
    font-weight: 600;
}

.tgm-inline-action-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-left: 42px;
}

.tgm-inline-meta {
    font-size: 11px;
    color: #999;
}

/* =========================
   EXPECTED OUTCOMES METRICS
   ========================= */

.tgm-expected-outcomes-metrics {
    background: #fff;
    border-radius: var(--tgm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tgm-expected-outcomes-metrics h3 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 14px;
    font-weight: 600;
}

.tgm-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .tgm-outcomes-grid {
        grid-template-columns: 1fr;
    }
}

.tgm-outcome-metric {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.tgm-outcome-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.tgm-outcome-label {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
    margin-bottom: 8px;
}

.tgm-outcome-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.tgm-outcome-before {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.tgm-outcome-after {
    font-size: 14px;
    color: #28a745;
    font-weight: 700;
}

/* =============================================
   VISUAL REDESIGN - Results Page Polish
   ============================================= */

/* --- Hero Banner --- */
.tgm-results-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    margin: -40px -20px 40px;
    padding: 48px 40px 0;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

.tgm-results-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(46, 117, 182, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(46, 117, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tgm-results-hero .tgm-results-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.tgm-results-hero .tgm-results-header .tgm-logo {
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.tgm-results-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 8px;
}

.tgm-results-hero .tgm-results-greeting {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

/* --- Tab Navigation (inside hero) --- */
.tgm-results-hero .tgm-report-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 1;
}

.tgm-results-hero .tgm-report-tab {
    padding: 12px 28px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.tgm-results-hero .tgm-report-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tgm-results-hero .tgm-report-tab.active {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tgm-results-hero .tgm-report-tab:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* --- Overall Score Card --- */
.tgm-score-radar-grid .tgm-overall-score {
    border: none;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-score-accent {
    height: 6px;
    width: 100%;
}

.tgm-score-body {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tgm-score-body .tgm-gauge-svg {
    margin-bottom: 20px;
}

.tgm-tier-badge {
    display: inline-block;
    padding: 10px 32px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* --- Radar Chart Card --- */
.tgm-radar-chart-container {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tgm-radar-chart-container h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 24px;
}

/* --- Tier Summary --- */
.tgm-tier-summary {
    background: #ffffff;
    padding: 0;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border-top: 4px solid;
    overflow: hidden;
}

.tgm-tier-summary h2 {
    color: #1a1a2e;
    margin: 0;
    padding: 28px 32px 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tgm-summary-text {
    padding: 16px 32px 0;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.tgm-meaning-list {
    padding: 8px 32px 28px;
    margin: 0;
}

.tgm-meaning-list li {
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.tgm-meaning-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tgm-bullet-color, var(--tgm-primary-color));
    opacity: 0.12;
}

.tgm-meaning-list li::after {
    content: "\2713";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tgm-bullet-color, var(--tgm-primary-color));
    font-weight: 700;
    font-size: 0.75rem;
}

/* --- Section Scores Bars --- */
.tgm-section-scores {
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-section-scores h2 {
    font-size: 0.72rem;
    margin-bottom: 20px;
}

.tgm-bar-container {
    background: #eef2f7;
    border-radius: 10px;
    height: 32px;
}

.tgm-bar-fill {
    border-radius: 10px;
    min-width: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tgm-bar-percentage {
    font-size: 0.72rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tgm-bar-status {
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tgm-section-bar-row {
    padding: 8px 0;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.tgm-section-bar-row:hover {
    background: #f8fafc;
}

/* --- Key Findings --- */
.tgm-overview-findings {
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-overview-findings h2 {
    font-size: 0.72rem;
}

.tgm-finding-item {
    padding: 12px 16px;
    background: #f4f7fb;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tgm-finding-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tgm-finding-text {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
}

/* --- Risk Profile --- */
.tgm-risk-profile {
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, #fff 0%, #fffbf5 100%);
}

/* --- Priority Ranking --- */
.tgm-priority-ranking {
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-priority-box {
    padding: 18px 20px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgm-priority-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tgm-priority-box.tgm-top-priority {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.04) 0%, rgba(220, 53, 69, 0.02) 100%);
}

/* --- Accordion (Detailed Analysis) --- */
.tgm-section-accordion {
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.tgm-section-accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tgm-section-accordion.expanded {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.tgm-accordion-header {
    padding: 20px 24px;
    border-radius: 14px;
}

.tgm-accordion-content {
    padding: 24px;
    background: #fafbfc;
    border-top: 1px solid #eef2f7;
}

.tgm-section-progress {
    padding: 0 24px 16px;
}

.tgm-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #eef2f7;
    overflow: hidden;
}

.tgm-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Diagnosis box refinement */
.tgm-diagnosis-box {
    border-radius: 0 12px 12px 0;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-diagnosis-box h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Working/Holding cards */
.tgm-whats-working,
.tgm-whats-holding {
    border-radius: 12px;
    padding: 22px;
}

.tgm-whats-working {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.tgm-whats-holding {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Cost/Impact box */
.tgm-cost-box {
    border-radius: 12px;
    background: linear-gradient(135deg, #fffcf0 0%, #fff8e1 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tgm-cost-metric {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    flex: 1;
    min-width: 120px;
}

/* Opportunity box */
.tgm-opportunity-box {
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Warning/Mistakes */
.tgm-warning-signs {
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.tgm-common-mistakes {
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbf0 0%, #fef3e2 100%);
    border: 1px solid rgba(192, 86, 33, 0.15);
    margin-bottom: 20px;
}

/* --- 90-Day Roadmap (Action Plan) --- */
.tgm-roadmap {
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.tgm-roadmap h3 {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.tgm-phase-header {
    border-radius: 12px;
    padding: 14px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tgm-phase-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
}

.tgm-roadmap-connector {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e0e0e0, #ccc);
    border-radius: 2px;
}

/* --- Action Section Cards --- */
.tgm-action-section {
    border-radius: 0 16px 16px 0;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border-left-width: 5px;
}

.tgm-action-priority-badge {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tgm-action-card {
    border-radius: 12px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgm-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tgm-action-card.tgm-quick-win {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fff8 100%);
    border: 2px solid rgba(40, 167, 69, 0.25);
}

.tgm-quick-win-badge {
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tgm-action-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tgm-action-howto {
    border-radius: 10px;
    border: 1px solid #eef2f7;
    padding: 18px;
    background: #ffffff;
}

/* --- Expected Outcomes Metrics --- */
.tgm-expected-outcomes-metrics {
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-outcome-metric {
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f4f7fb 100%);
    transition: transform 0.2s ease;
}

.tgm-outcome-metric:hover {
    transform: translateY(-2px);
}

/* --- Next Steps Summary --- */
.tgm-next-steps-summary {
    border-radius: 16px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tgm-numbered-steps li {
    padding: 8px 0;
}

.tgm-numbered-steps li::marker {
    color: var(--tgm-primary-color);
    font-weight: 700;
}

/* --- Bridge / CTA Section --- */
.tgm-bridge-section {
    border-radius: 16px;
    padding: 40px;
    margin-top: 48px;
    border: 2px solid;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.tgm-bridge-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.tgm-bridge-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 28px;
}

/* Expected outcomes in bridge */
.tgm-expected-outcomes {
    border-radius: 14px;
    padding: 28px;
}

.tgm-outcome-phase {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.tgm-outcome-phase:hover {
    transform: translateY(-3px);
}

/* CTA Buttons */
.tgm-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.tgm-cta-buttons .tgm-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    text-decoration: none;
}

.tgm-cta-buttons .tgm-btn-primary {
    box-shadow: 0 4px 16px rgba(46, 117, 182, 0.3);
}

.tgm-cta-buttons .tgm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46, 117, 182, 0.4);
}

.tgm-cta-buttons .tgm-btn-secondary {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Footer --- */
.tgm-results-footer {
    text-align: center;
    padding: 32px 0 16px;
    color: #bbb;
    font-size: 0.8rem;
}

.tgm-results-footer p {
    margin: 4px 0;
}

/* --- Inline Actions in Detailed Analysis --- */
.tgm-inline-action {
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.tgm-inline-action:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tgm-inline-action.tgm-quick-win {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: rgba(40, 167, 69, 0.2);
}

.tgm-inline-howto {
    border-radius: 8px;
    border-left: 3px solid var(--tgm-primary-color);
    background: #f8fafc;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .tgm-results-hero {
        margin: -40px -20px 32px;
        padding: 32px 20px 0;
        border-radius: 0 0 16px 16px;
    }

    .tgm-results-hero .tgm-results-greeting {
        font-size: 1.5rem;
    }

    .tgm-results-hero .tgm-report-tabs {
        flex-direction: column;
        gap: 4px;
        border-radius: 12px 12px 0 0;
    }

    .tgm-results-hero .tgm-report-tab {
        width: 100%;
        padding: 10px 20px;
    }

    .tgm-tier-summary h2 {
        padding: 24px 20px 0;
    }

    .tgm-summary-text {
        padding: 12px 20px 0;
    }

    .tgm-meaning-list {
        padding: 8px 20px 24px;
    }

    .tgm-section-scores,
    .tgm-overview-findings,
    .tgm-priority-ranking,
    .tgm-expected-outcomes-metrics {
        padding: 20px;
    }

    .tgm-bridge-section {
        padding: 28px 20px;
    }

    .tgm-roadmap {
        padding: 24px 20px;
    }

    .tgm-action-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tgm-results-hero .tgm-results-greeting {
        font-size: 1.3rem;
    }

    .tgm-results-eyebrow {
        font-size: 0.65rem;
    }
}
