/**
 * MedPrepOnline - Static Pages CSS
 * Styling for FAQ, Support, Help Center, Privacy Policy, Terms, Cookie Policy, Disclaimer
 * Follows the teal gradient theme
 */

/* ============================================
   COMMON STATIC PAGE STYLES
   ============================================ */

.static-page {
    min-height: 100vh;
    background: var(--bg-light);
}

/* Page Hero Banner */
.static-hero {
    background: var(--primary-gradient);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.static-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.static-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(15deg);
}

.static-hero .container {
    position: relative;
    z-index: 2;
}

.static-hero h1 {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.static-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.static-hero .breadcrumb {
    background: transparent;
    margin-bottom: 1.5rem;
    padding: 0;
}

.static-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.static-hero .breadcrumb-item a:hover {
    color: white;
}

.static-hero .breadcrumb-item.active {
    color: white;
}

.static-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Page Content Container */
.static-content {
    padding: 60px 0 80px;
}

.static-content-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    border: 1px solid var(--border-light);
}

.static-content-card h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
    border-image: var(--primary-gradient);
    border-image-slice: 1;
}

.static-content-card h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.static-content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.static-content-card ul,
.static-content-card ol {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.static-content-card li {
    margin-bottom: 0.5rem;
}

.static-content-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.static-content-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.toc-card h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    display: block;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-left-color: var(--primary-color);
}

/* Last Updated Badge */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.last-updated i {
    font-size: 0.875rem;
}

/* ============================================
   FAQ PAGE STYLES
   ============================================ */

.faq-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.faq-search {
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.faq-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.faq-search input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.faq-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.faq-category-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-category-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-primary);
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.expanded {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-question h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.expanded .faq-toggle {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.expanded .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
}

.faq-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.faq-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-light);
}

/* ============================================
   SUPPORT PAGE STYLES
   ============================================ */

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.support-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.support-card:hover::before {
    transform: scaleX(1);
}

.support-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: var(--shadow-primary);
}

.support-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.support-card .btn {
    padding: 0.625rem 1.5rem;
}

/* Contact Form */
.contact-form-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-form-section h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-section .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-floating label {
    color: var(--text-secondary);
}

.form-floating .form-control:focus~label {
    color: var(--primary-color);
}

.form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 179, 217, 0.15);
}

textarea.form-control {
    min-height: 150px;
}

/* Support Info Sidebar */
.support-info-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(79, 179, 217, 0.2);
}

.support-info-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(79, 179, 217, 0.2);
}

.support-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.support-info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.support-info-text h5 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.support-info-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   HELP CENTER STYLES
   ============================================ */

.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.help-category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.help-category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.help-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.help-category-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.help-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.help-category-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.help-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-links-list li {
    margin-bottom: 0.5rem;
}

.help-links-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.help-links-list a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.help-links-list a i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* Quick Links Panel */
.quick-links-panel {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
}

.quick-links-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.quick-link-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(5px);
}

.quick-link-item i {
    width: 30px;
    text-align: center;
}

/* Popular Articles */
.popular-articles {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.popular-articles h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-number {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.article-content h5 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.article-content h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.article-content h5 a:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Cookie, Disclaimer)
   ============================================ */

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h2 i {
    color: var(--primary-color);
}

.legal-highlight {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.legal-highlight p {
    margin: 0;
    color: var(--text-dark);
}

.legal-list {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    margin: 1rem 0;
}

.legal-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.legal-list li::marker {
    color: var(--primary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--primary-light);
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid rgba(79, 179, 217, 0.2);
}

.contact-box h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cookie Settings Panel */
.cookie-settings {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    margin: 1.5rem 0;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cookie-setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-setting-info h5 {
    margin: 0 0 0.25rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.cookie-setting-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gray-dark);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary-gradient);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled+.toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
    .static-hero h1 {
        font-size: 2.25rem;
    }

    .static-content-card {
        padding: 2rem;
    }

    .toc-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .toc-card {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .toc-card h5 {
        width: 100%;
    }

    .toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .toc-list li {
        margin: 0;
    }

    .toc-list a {
        padding: 0.375rem 0.75rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .toc-list a:hover,
    .toc-list a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .static-hero {
        padding: 60px 0 40px;
    }

    .static-hero h1 {
        font-size: 1.875rem;
    }

    .static-content {
        padding: 40px 0 60px;
    }

    .static-content-card {
        padding: 1.5rem;
    }

    .support-options {
        grid-template-columns: 1fr;
    }

    .help-categories-grid {
        grid-template-columns: 1fr;
    }

    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .faq-category-btn {
        white-space: nowrap;
    }

    .faq-question h4 {
        font-size: 0.9rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .static-hero h1 {
        font-size: 1.5rem;
    }

    .static-hero p {
        font-size: 1rem;
    }

    .support-card {
        padding: 1.5rem;
    }

    .support-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .contact-form-section {
        padding: 1.5rem;
    }
}

/* Print Styles for Legal Documents */
@media print {
    .static-hero {
        background: none !important;
        color: black;
        padding: 20px 0;
    }

    .static-hero h1 {
        color: black;
        -webkit-text-fill-color: black;
    }

    .toc-sidebar {
        display: none;
    }

    .static-content-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .btn,
    .contact-box {
        display: none;
    }
}