* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    background: #d5e8f9;
}

/* ========================================
   COLOR SCHEME - Florida Government Style
   ======================================== */
:root {
    --bg-light: #d5e8f9;
    --bg-card: #ffffff;
    --primary-blue: #245693;
    --primary-dark: #1a4170;
    --accent-green: #5cb85c;
    --accent-orange: #f0ad4e;
    --accent-red: #d9534f;
    --accent-teal: #09c;
    --white: #ffffff;
    --text-dark: #444444;
    --text-muted: #666666;
    --border-light: #dddddd;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   LOADING SECTION
   ======================================== */
.loading-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.loading-section.hidden {
    display: none;
}

/* Banner Header */
.loading-banner {
    background: linear-gradient(135deg, rgba(36, 86, 147, 0.95), rgba(26, 65, 112, 0.9));
    background-size: cover;
    padding: 25px 20px 20px;
    color: white;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.loading-banner h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-banner h1 span {
    color: #7ec8e3;
}

.loading-banner p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5cb85c, #4cae4c);
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.progress-text {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Main Content */
.loading-content {
    flex: 1;
    padding: 30px 20px;
}

.loading-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

/* Info Row */
.info-row {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-blue);
    opacity: 0.7;
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.info-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.sources-check {
    margin-left: auto;
    flex-direction: column;
    align-items: flex-start;
}

.source-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.sources-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.source {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.source.active {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-green);
    font-weight: 600;
}

.source.complete {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* Category Header */
.category-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 32px;
    height: 32px;
}

/* Category icon colors */
.category-icon.criminal {
    background: #fee2e2;
}
.category-icon.criminal svg {
    fill: #dc2626;
}

.category-icon.personal {
    background: #dbeafe;
}
.category-icon.personal svg {
    fill: #2563eb;
}

.category-icon.court {
    background: #dcfce7;
}
.category-icon.court svg {
    fill: #16a34a;
}

.category-icon.financial {
    background: #fef3c7;
}
.category-icon.financial svg {
    fill: #d97706;
}

.category-icon.media {
    background: #fce7f3;
}
.category-icon.media svg {
    fill: #db2777;
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 25px;
}

.subcategory-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.subcategory-box.loading {
    background: #fff;
    border-color: #5bc0de;
}

.subcategory-box.complete {
    background: #f0fff0;
    border-color: #5cb85c;
}

.subcategory-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.subcategory-box.loading .subcategory-text {
    color: var(--primary-blue);
}

/* Status Icon */
.status-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Spinning circle */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #5bc0de;
    border-radius: 50%;
    opacity: 0;
}

.subcategory-box.loading .spinner {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

/* Checkmark */
.checkmark {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.checkmark svg {
    width: 24px;
    height: 24px;
    fill: #5cb85c;
}

.subcategory-box.complete .spinner {
    opacity: 0;
}

.subcategory-box.complete .checkmark {
    opacity: 1;
    transform: scale(1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Privacy Bar */
.privacy-bar {
    background: #4a5568;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.privacy-bar .shield-icon {
    width: 30px;
    height: 30px;
    fill: #f0ad4e;
    flex-shrink: 0;
}

.privacy-bar .text {
    text-align: center;
}

.privacy-bar .text strong {
    color: var(--white);
    font-size: 14px;
    display: block;
}

.privacy-bar .text span {
    color: #ccc;
    font-size: 13px;
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-section {
    display: none;
    min-height: 100vh;
    background: var(--bg-light);
}

.results-section.visible {
    display: block;
}

/* Results Header - matches loading banner */
.results-header {
    background: linear-gradient(135deg, rgba(36, 86, 147, 0.95), rgba(26, 65, 112, 0.9));
    padding: 30px 20px;
    color: white;
}

.results-banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.results-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.results-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.results-header p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* Results Card */
.results-container {
    padding: 40px 20px;
}

.results-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.results-card-header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-card-header .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.results-card-header .icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.results-card-header .header-info {
    flex: 1;
}

.results-card-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.results-card-header p {
    font-size: 14px;
    opacity: 0.8;
}

.btn-header-cta {
    background: var(--accent-green);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-header-cta:hover {
    background: #4cae4c;
}

.results-card-body {
    padding: 25px;
}

/* Stats */
.stats-list {
    margin-bottom: 25px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    color: var(--text-muted);
    font-size: 14px;
}

.stat-row .value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

/* Warning Box */
.warning-box {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #8d6e00;
}

.warning-box svg {
    width: 20px;
    height: 20px;
    fill: #f9a825;
    flex-shrink: 0;
}

/* Categories */
.categories-section {
    margin-bottom: 25px;
}

.categories-section h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-tag svg {
    width: 12px;
    height: 12px;
    fill: #2e7d32;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.btn:last-child {
    margin-bottom: 0;
}

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

.btn-primary:hover {
    background: #4cae4c;
}

.btn-large {
    padding: 18px !important;
    font-size: 18px !important;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: var(--border-light);
    margin: 25px 0;
}

/* Sensitive Section */
.sensitive-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.sensitive-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.sensitive-header .lock-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sensitive-header .lock-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.sensitive-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.sensitive-header > div > p {
    font-size: 14px;
    color: #e67e22;
    font-weight: 500;
}

.modal-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-tag {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
}

.modal-intro {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-list {
    list-style: disc;
    padding: 20px 20px 20px 35px;
    margin-bottom: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.modal-list li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-list li:last-child {
    margin-bottom: 0;
}

.modal-list li strong {
    color: var(--primary-dark);
}

.modal-warning {
    font-size: 15px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding: 15px;
    background: #fef9e7;
    border-left: 4px solid #f1c40f;
    border-radius: 0 8px 8px 0;
}

.text-sensitive {
    color: #e74c3c;
    font-weight: 600;
}

.modal-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .loading-banner h1 {
        font-size: 20px;
    }

    .loading-banner p {
        font-size: 13px;
    }

    .progress-bar {
        height: 30px;
    }

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

    .info-row {
        padding: 15px 20px;
        gap: 20px;
    }

    .sources-check {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-light);
    }

    .category-header {
        padding: 15px 20px;
    }

    .category-header h2 {
        font-size: 18px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 10px;
    }

    .subcategory-box {
        padding: 14px 16px;
    }

    .privacy-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 20px;
    }

    .results-header h2 {
        font-size: 22px;
    }

    .results-title-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .success-icon {
        width: 40px;
        height: 40px;
    }

    .success-icon svg {
        width: 22px;
        height: 22px;
    }

    .results-card-header {
        flex-wrap: wrap;
    }

    .btn-header-cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .loading-banner h1 {
        font-size: 18px;
    }

    .info-item svg {
        width: 24px;
        height: 24px;
    }

    .info-value {
        font-size: 14px;
    }

    .subcategory-text {
        font-size: 13px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
    display: none !important;
}
