/**
 * Financial Calculator Sub-Page Styles
 * Version: 1.0
 * Description: Styles for individual financial calculator pages
 */

/* Container and Layout */
.fc-subpage-container {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Breadcrumb Navigation - Subtle */
.fc-breadcrumb {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.fc-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.fc-breadcrumb .breadcrumb-item {
    font-size: 14px;
}

.fc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    padding: 0 8px;
}

.fc-breadcrumb .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fc-breadcrumb .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.fc-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

/* Minimal Header Section */
.fc-header-minimal {
    background: #f8f9fa;
    padding: 30px 0 20px;
    border-bottom: 2px solid #2563eb;
}

.fc-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.fc-page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Full Description (after calculator) */
.fc-full-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
    margin-top: 20px;
}

/* Calculator Section - Priority Layout */
.fc-calculator-section {
    padding: 30px 0 40px;
}

.fc-calculator-priority {
    background: white;
    padding-top: 0;
}

.fc-calculator-wrapper {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    margin-bottom: 30px;
}

.fc-calculator-main {
    border: 2px solid #2563eb;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.fc-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
}

.fc-calculator-widget {
    min-height: 450px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    position: relative;
}

/* Calculator is now the hero */
.fc-calculator-main .fc-calculator-widget {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
}

/* Results Area */
.fc-results-area {
    margin-top: 30px;
    padding: 25px;
    background: #e8f5e9;
    border-radius: 6px;
    border: 1px solid #4caf50;
}

.fc-results-area h3 {
    color: #2e7d32;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

#fc-results-content {
    font-size: 1.1rem;
    color: #333;
}

/* Enhanced Content Sections with Professional Hover Effects */
.fc-content-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.fc-content-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3ff 100%);
}

/* Animated accent line on hover */
.fc-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    transition: height 0.3s ease;
}

.fc-content-section:hover::before {
    height: 100%;
}

/* Description section (minimal styling) */
.fc-content-section.fc-description {
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #2563eb;
    margin-bottom: 40px;
}

.fc-content-section.fc-description:hover {
    background: linear-gradient(135deg, #f1f3ff 0%, #ffffff 100%);
}

/* Section titles with animated underline */
.fc-content-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.fc-content-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transition: width 0.3s ease;
}

.fc-content-section:hover h2::after {
    width: 100%;
}

.fc-content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #495057;
    transition: color 0.3s ease;
}

.fc-content-section:hover h3 {
    color: #2563eb;
}

.fc-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.fc-content ol,
.fc-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.fc-content li {
    margin-bottom: 10px;
}

/* How to Use Section - Interactive Steps */
.fc-how-to-use ol li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.fc-how-to-use ol li:hover {
    background: linear-gradient(90deg, #f1f3ff 0%, #f8f9fa 100%);
    border-left-color: #2563eb;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}

/* Understanding Section - Enhanced appearance */
.fc-understanding {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.fc-understanding:hover {
    background: linear-gradient(135deg, #f1f3ff 0%, #ffffff 100%);
}

/* Formula Section - Enhanced Visual */
.fc-formula-box {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.fc-formula-box:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.fc-formula-box code {
    display: block;
    font-size: 1.3rem;
    color: white;
    text-align: center;
    padding: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-variables ul {
    list-style: none;
    padding-left: 0;
}

.fc-variables li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.fc-variables li:last-child {
    border-bottom: none;
}

.fc-variables strong {
    color: #2563eb;
    font-weight: 600;
    margin-right: 10px;
}

/* Sidebar */
.fc-sidebar {
    position: sticky;
    top: 80px;
}

/* Calculator Controls Widget */
.fc-calculator-controls {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.fc-calculator-controls h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.fc-calculator-controls .btn {
    background: white;
    color: #2563eb;
    border: none;
}

.fc-calculator-controls .btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.fc-sidebar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.fc-sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
    border-color: #e8ebff;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3ff 100%);
}

.fc-sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.fc-sidebar-widget:hover h3 {
    color: #2563eb;
}

/* Reduce bottom padding for specific widgets */
.fc-quick-links {
    padding-bottom: 15px;
}

.fc-related-calculators {
    padding-bottom: 15px;
}

/* Quick Links */
.fc-quick-links ul {
    list-style: none;
    padding: 0;
}

.fc-quick-links li {
    margin-bottom: 4px;
}

.fc-quick-links a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fc-quick-links a:hover {
    background: #f8f9fa;
    color: #2563eb;
    padding-left: 18px;
}

/* Related Calculators */
.fc-related-list {
    list-style: none;
    padding: 0;
}

.fc-related-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.fc-related-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fc-related-list a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.fc-related-list a:hover {
    color: #2563eb;
}

.fc-related-icon {
    color: #2563eb;
    margin-right: 10px;
    font-size: 1.2rem;
}

.fc-related-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 3px;
    margin-bottom: 0;
    margin-left: 28px;
}

/* CTA Box - Enhanced Professional Style */
.fc-cta-box {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.fc-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
    opacity: 0;
}

.fc-cta-box:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.fc-cta-box:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.fc-cta-box h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.fc-cta-box p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.fc-cta-box .btn {
    background: white;
    color: #2563eb;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.fc-cta-box .btn:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    color: #1e40af;
}

/* UWorld CFA Promo Box */
.fc-promo-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fc-promo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.fc-promo-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.fc-promo-box h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: none;
}

.fc-promo-box p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fc-promo-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.fc-promo-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Related Calculators Section */
.fc-related-section {
    padding: 60px 0;
    background: #fff;
}

.fc-related-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.fc-related-grid {
    margin-top: 30px;
}

.fc-related-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    height: 100%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.fc-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fc-related-card:hover::before {
    transform: scaleX(1);
}

.fc-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.fc-related-card .fc-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fc-related-card .fc-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.fc-related-card:hover .fc-card-icon {
    transform: scale(1.1);
}

.fc-related-card .fc-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.fc-related-card:hover .fc-card-title {
    color: #2563eb;
}

.fc-related-card .fc-card-brief {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for Related Calculators */
@media (max-width: 991px) {
    .fc-related-card {
        margin-bottom: 20px;
    }

    .fc-related-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .fc-related-card {
        padding: 20px 15px;
    }

    .fc-related-card .fc-card-icon {
        font-size: 2rem;
    }

    .fc-related-card .fc-card-title {
        font-size: 1.1rem;
    }
}

/* FAQ Section */
.fc-faq-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.fc-faq-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.fc-faq-wrapper .accordion-item {
    background: white;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.fc-faq-wrapper .accordion-button {
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.fc-faq-wrapper .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #2563eb;
}

.fc-faq-wrapper .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.fc-faq-wrapper .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.fc-faq-wrapper .accordion-body {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

/* Disclaimer Section */
.fc-disclaimer-section {
    background: white;
    padding: 40px 0;
}

.fc-disclaimer-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
}

.fc-disclaimer-box h4 {
    color: #856404;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.fc-disclaimer-box p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Bottom CTA */
.fc-bottom-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.fc-bottom-cta h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.fc-bottom-cta p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.fc-bottom-cta .btn {
    background: white;
    color: #2563eb;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fc-bottom-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .fc-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .fc-page-title {
        font-size: 1.8rem;
    }

    .fc-page-subtitle {
        font-size: 1rem;
    }

    .fc-header-minimal {
        padding: 20px 0 15px;
    }

    .fc-calculator-main {
        margin-top: -10px;
    }

    .fc-calculator-wrapper {
        padding: 20px;
    }

    .fc-content-section {
        padding: 20px;
    }

    .fc-sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .fc-page-title {
        font-size: 1.8rem;
    }

    .fc-page-description {
        font-size: 1rem;
    }

    .fc-section-title {
        font-size: 1.5rem;
    }

    .fc-content-section h2 {
        font-size: 1.4rem;
    }

    .fc-bottom-cta h2 {
        font-size: 1.8rem;
    }

    .fc-bottom-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .fc-breadcrumb,
    .fc-sidebar,
    .fc-bottom-cta,
    .fc-hero-section {
        display: none;
    }

    .fc-calculator-section {
        padding: 0;
    }

    .fc-content-section {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
}

/* Professional Table Styles for Examples */
.fc-example-container {
    margin: 30px 0;
}

.scenario {
    background: #f1f3f5;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.fc-calculator-steps {
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fc-calculator-steps th {
    background: #2563eb;
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-calculator-steps td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.fc-calculator-steps tbody tr:last-child td {
    border-bottom: none;
}

.fc-calculator-steps tbody tr {
    transition: all 0.3s ease;
}

.fc-calculator-steps tbody tr:hover {
    background: linear-gradient(90deg, #f1f3ff 0%, #f8f9fa 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.fc-calculator-steps td:nth-child(1) {
    font-weight: 600;
    color: #2563eb;
    width: 60px;
}

.fc-calculator-steps td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: #f8f9fa;
    color: #495057;
}

.fc-calculator-steps td:nth-child(3) {
    font-family: 'Courier New', monospace;
    color: #28a745;
    font-weight: 600;
}

.answer-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
    background: linear-gradient(135deg, #e8f5e9 0%, #dcedc8 100%);
}

/* Animated success indicator */
.answer-box::after {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 2rem;
    color: #4caf50;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.answer-box:hover::after {
    transform: translateY(-50%) scale(1);
}

.answer-box strong {
    font-size: 1.2rem;
    color: #2e7d32;
    display: block;
    margin-bottom: 10px;
}

.answer-box p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

/* TVM Variables Styling - Enhanced with hover cards */
.tvm-variables {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.variable-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #2563eb;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.variable-item:hover {
    transform: translateY(-2px) translateX(3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #f1f3ff 0%, #ffffff 100%);
    border-left-width: 4px;
}

.variable-item h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.variable-item:hover h4 {
    color: #2563eb;
}

.variable-item ul {
    margin: 0;
    padding-left: 20px;
}

.variable-item li {
    margin: 8px 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.variable-item:hover li {
    transform: translateX(2px);
}

/* Payment Settings */
.payment-settings {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.payment-settings p {
    margin: 10px 0;
    line-height: 1.7;
}

/* Sign Convention Table */
.sign-convention-table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.sign-convention-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.sign-convention-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.sign-convention-table tbody tr:last-child td {
    border-bottom: none;
}

.sign-convention-table tbody tr:hover {
    background: #f8f9fa;
}

/* Pro Tips Section */
.pro-tips {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
}

.pro-tips h4 {
    color: #856404;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.pro-tips ul {
    margin: 0;
    padding-left: 20px;
}

.pro-tips li {
    margin: 10px 0;
    line-height: 1.6;
    color: #856404;
}

/* Mobile Responsive Tables */
@media (max-width: 768px) {
    .fc-calculator-steps {
        font-size: 0.85rem;
    }

    .fc-calculator-steps th,
    .fc-calculator-steps td {
        padding: 8px 10px;
    }

    .fc-calculator-steps td:nth-child(2),
    .fc-calculator-steps td:nth-child(3) {
        font-size: 0.8rem;
    }

    .answer-box {
        padding: 15px;
    }

    .answer-box strong {
        font-size: 1.1rem;
    }
}

/* ============================================
   SMOOTH SCROLLING AND ANIMATIONS
   ============================================ */

/* Smooth scroll for better UX */
html {
    scroll-behavior: smooth;
}

/* Highlight target section when navigated to */
.fc-content-section:target {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% {
        background: linear-gradient(135deg, #f1f3ff 0%, #e8ebff 100%);
        transform: scale(1.02);
    }
    50% {
        background: linear-gradient(135deg, #e8ebff 0%, #f1f3ff 100%);
    }
    100% {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        transform: scale(1);
    }
}

/* Enhance content readability on hover */
.fc-content-section:hover .fc-content {
    color: #212529;
}

/* Add subtle glow to focused section */
.fc-content-section:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================
   POPUP MODE STYLES
   ============================================ */

/* Hide all non-calculator elements in popup mode */
.popup-mode .fc-breadcrumb,
.popup-mode .fc-sidebar,
.popup-mode .fc-content-section,
.popup-mode .fc-faq-section,
.popup-mode .fc-bottom-cta,
.popup-mode .fc-header-minimal,
.popup-mode .fc-full-description,
.popup-mode .fc-how-to-use,
.popup-mode .fc-understanding,
.popup-mode .fc-formula,
.popup-mode .fc-examples,
.popup-mode header,
.popup-mode footer,
.popup-mode nav,
.popup-mode .admin-bar,
.popup-mode aside {
    display: none !important;
}

/* Center calculator in popup mode */
.popup-mode {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.popup-mode .fc-calculator-section {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.popup-mode .fc-calculator-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    border: 2px solid #2563eb;
}

/* Ensure full width layout in popup */
.popup-mode .container,
.popup-mode .row,
.popup-mode .col-lg-8,
.popup-mode .col-lg-4 {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Hide sidebar column completely */
.popup-mode .col-lg-4 {
    display: none !important;
}

/* Make calculator column full width */
.popup-mode .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Hide results area in popup by default */
.popup-mode #fc-results {
    display: none;
}

/* Adjust calculator widget spacing in popup */
.popup-mode .fc-calculator-widget {
    padding: 20px;
}

/* Remove any margins from calculator sections */
.popup-mode .fc-calculator-main {
    margin-bottom: 0;
}

/* Responsive adjustments for smaller popup windows */
@media (max-width: 768px) {
    .popup-mode .fc-calculator-section {
        padding: 10px;
    }

    .popup-mode .fc-calculator-wrapper {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .popup-mode .fc-calculator-widget {
        padding: 15px;
    }
}