/* Floating Table of Contents Styles */
.toc-floating {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 250px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toc-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    font-size: 14px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    display: block;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background: #e9ecef;
    color: #007cba;
}

.toc-section {
    font-weight: 500;
    color: #333;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-section:first-child {
    margin-top: 0;
}

@media (max-width: 1200px) {
    .toc-floating {
        display: none;
    }
}

/* Scroll offset for anchor links */
html {
    scroll-behavior: smooth;
}

h2[id],
h3[id] {
    scroll-margin-top: 20px;
}

/* Page-specific styles */
.mission-section,
.intro-section {
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 0;
    text-align: center;
}

.mission-section h2,
.intro-section h2 {
    margin-top: 0;
}

.mission-section p:first-of-type,
.intro-section p:first-of-type {
    font-size: 1.1em;
}

.mission-section p:last-of-type,
.intro-section p:last-of-type {
    text-align: center;
    font-style: italic;
    margin-top: 1.5em;
    color: #666;
}

.section-header {
    margin-top: -30px !important;
    margin-bottom: 0.8em !important;
}

.toc-container {
    padding: 15px 0;
}

.toc-container-alt {
    padding: 10px 0;
}

/* Inline style replacements */
.faq-question {
    font-weight: 500;
    margin-top: 1.5em;
}

.faq-q-marker {
    color: #333;
    margin-right: 15px;
    font-weight: 300;
    font-size: 1.4em;
    font-family: 'Inter', sans-serif;
    display: inline;
}

.checklist-item {
    margin-bottom: 8px;
}

.checklist-checkbox {
    margin-right: 8px;
}

.checklist-list {
    list-style: none;
    padding-left: 0;
}

.plan-button {
    margin-top: 1em;
}

.link-blue {
    color: #007bff;
}

.enterprise-button {
    background-color: #28a745;
    margin-top: 1em;
}

.info-header {
    margin-top: 0;
}

.security-list {
    text-align: left;
    margin: 1em 0;
    padding-left: 1.2em;
}

.small-text {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

/* Form Styles */
.payment-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#card-element {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    box-sizing: border-box;
    min-height: 40px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    margin-top: 0.5rem;
    font-size: 14px;
}

.security-info {
    background: #e8f5e8;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 14px;
    color: #155724;
}

.checkout-container {
    margin: 0 auto;
}

.order-summary {
    padding: 1.5rem 0;
    margin: 1rem 0;
}

.price-highlight {
    font-weight: 600;
    color: #007bff;
}

.note-item-centered {
    text-align: center;
}

.note-icon {
    margin-bottom: 10px;
    margin-top: -10px !important;
}

.note-title {
    margin-bottom: 3px;
}

/* Info Box Styles */
.info-box-centered {
    text-align: center;
}

.security-title {
    margin-top: 2em;
    margin-bottom: 10px;
}

.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1em;
    margin-bottom: 2em !important;
}

.security-badge {
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 20px;
}

.security-badge-green {
    background: #28a745;
}

.security-badge-blue {
    background: #17a2b8;
}

.security-badge-gray {
    background: #6c757d;
}

.faq-item {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 20px;
    display: none;
    border-top: 1px solid #ddd;
}

.faq-answer.active {
    display: block;
}

.status-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.status-working {
    background: #d4edda;
    color: #155724;
}

.status-issue {
    background: #f8d7da;
    color: #721c24;
}

.status-resolved {
    background: #d1ecf1;
    color: #0c5460;
}

.code-block {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
    margin: 10px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}