html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    margin: 0;
    box-sizing: border-box;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYx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An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

* {
    --assisto-bg: #eeeeee;
    --assisto-primary: #0ba292;
    --assisto-primary-focus: #0B8F81;
    --assisto-primary-filter: brightness(0) saturate(100%) invert(35%) sepia(97%) saturate(3512%) hue-rotate(156deg) brightness(93%) contrast(91%);
    --assisto-primary-rgb: 11, 143, 129;
    --assito-secondary: #00C9AF;
    --assito-secondary-focus: #058373;
    --assisto-primary-focus-border: rgba(11, 142, 128, 0.34);
    --assisto-tertiary: #4a80d1;
    --assisto-tertiary-rgb: 74, 128, 209;
    --assisto-border: #929292;
    --assisto-blue: #2683D4;
    --assisto-blue-filter: brightness(0) saturate(100%) invert(42%) sepia(86%) saturate(706%) hue-rotate(172deg) brightness(91%) contrast(88%);
    --assisto-white-filter: brightness(0) saturate(100%) invert(94%) sepia(100%) saturate(0%) hue-rotate(115deg) brightness(104%) contrast(102%);
    --assisto-action-bg: #FCF7EE;
    --assisto-action-bg-border: rgba(0, 0, 0, 0.12);
    --assisto-primary-text: black;
    --assisto-secondary-text: #747474;
    --assisto-highlight-yellow: #bcdf0c;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shifts during navigation */
body {
    scroll-padding-top: 0;
    scroll-behavior: smooth;
}

.user-content-page{
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: auto;
    margin-bottom: 5rem;
}

.user-content-page.large{
    overflow: hidden;
}

.user-content-page-container{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    width: 100%;
}

@media (min-width: 841px){
    .user-content-page-container{
        padding: 4rem 4rem 2rem 4rem;
    }
}


/* Ensure content stays in place during navigation */
.content {
    scroll-margin-top: 0;
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: var(--assisto-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--assisto-bg);
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--assisto-primary);
    margin-bottom: 1rem;
}

/* Search Container Styles */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.search-header h1 {
    color: var(--assisto-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-header .lead {
    color: var(--assisto-secondary-text);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Shared Page Container */
.page-container {
    margin: 0 auto;
    padding: 0;
}

/* Affiliate Program Styles */
.affiliate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.affiliate-content {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.affiliate-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.affiliate-card h2 {
    color: var(--assisto-primary);
    margin-bottom: 1.5rem;
}

.affiliate-description {
    margin: 2rem 0;
    line-height: 1.6;
}

.affiliate-cta {
    text-align: center;
    margin-top: 2rem;
}

.affiliate-cta .btn-primary {
    background-color: var(--assisto-primary);
    border-color: var(--assisto-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.affiliate-cta .btn-primary:hover {
    background-color: var(--assisto-primary-focus);
    border-color: var(--assisto-primary-focus);
}

.citation-results {
    margin: 0 auto;
    margin-bottom: 40px;
    max-width: 1024px;
}

.citation {
    padding: 12px;
    max-width: 1024px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .section-header h2 {
        color: var(--assisto-primary);
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-header .lead {
        color: var(--assisto-secondary-text);
        font-size: 1.25rem;
        max-width: 800px;
        margin: 0 auto;
    }

.highlight {
    color: var(--assisto-highlight-yellow);
    font-weight: bold;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 0;
    width: 90%;
}

/* ========================================
   MODAL STYLES - Shared across components
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.visible {
    display: flex;
    overflow: hidden;
    height: 100vh;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    border-bottom: #424242;
}

.modal-panel {
    pointer-events: all;
    z-index: 1001;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 850px;
    width: 90%;
    max-height: 90%;
    margin: auto;
    display: none;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    padding: 1rem 1.5rem 1rem 1.5rem;
    overflow-y: scroll;
}

    .modal-panel.visible {
        overflow: hidden;
        height: 100vh;
        display: flex;
    }

.modal-content {
    width: 100%;
    overflow-y: auto;
    padding: 2rem;
}

/* Complete report modal states */
.complete-report {
    display: none;
}

.modal.complete .complete-report {
    display: block;
}

.close-complete-report-text {
    display: none;
}

.modal.complete .see-complete-report-text {
    display: none;
}

.modal.complete .close-complete-report-text {
    display: inline-block;
}

/* Mobile responsive modal styles */
@media (max-width: 480px) {
    .modal.visible, .modal-panel.visible {
        overflow: scroll;
    }

    .modal-panel.visible {
        max-height: 95%;
        width: 94%;
    }
}
