/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Pricing Section */
.pricing-section {
    padding: 2rem 1rem;
    color: #333;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    background-color: #f0f0f0;
    border-radius: 9999px;
    padding: 0.25rem;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    /* Larger size */
    font-size: 1.125rem; /* Increased font size */
    padding: 0.5rem; /* Increased padding */
}

.billing-toggle button {
    padding: 0.75rem 2rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.billing-toggle button.active {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.billing-toggle .discount-tag {
    background-color: #ed7431; /* Changed to orange */
    color: white;
    padding: 0.5rem 1rem; /* Increased padding */
    border-radius: 9999px;
    font-size: 1.875rem; /* Increased font size */
    font-weight: 700;
    margin-left: 0.5rem;
}

/* ** DESKTOP STYLES ** */
.desktop-pricing-table {
    display: flex;
    overflow-x: auto;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

.desktop-pricing-table::-webkit-scrollbar {
    display: none;
}
.desktop-pricing-table {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.frozen-column {
    flex-shrink: 0;
    width: 150px;
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #f7f7f7;
    box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1);
}

.plan-columns-wrapper {
    display: flex;
    min-width: calc(100% - 150px);
}

.frozen-cell, .plan-column .plan-cell {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column; /* Changed to column to stack elements */
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.5;
}

.frozen-cell {
    text-align: left;
    justify-content: flex-start;
    font-weight: 600;
    border-right: 1px solid #e0e0e0;
    flex-direction: row; /* Keep horizontal for the frozen column */
}

.plan-column {
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.plan-column.featured {
    background-color: #e6f3ff;
    border-color: #007bff;
}

.plan-header {
    background-color: #e2e8f0;
    font-weight: 700;
    display: flex; /* Flex container for header content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.frozen-column .frozen-cell.header-cell {
    background-color: #fff;
    box-shadow: none;
    border-bottom: none;
    border-right: none;
}

.featured .plan-cell {
    background-color: #e6f3ff;
    border-color: #007bff;
}

.featured .plan-header {
    background-color: #b3d9ff;
    border-color: #007bff;
}

.plan-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.save-badge {
    background-color: #ed7431;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monthly-price-strike {
    color: #777;
    text-decoration: line-through;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.price span.currency {
    font-size: 1rem;
    font-weight: 400;
}

.price span.price-per-month {
    font-size: 1rem;
    font-weight: 400;
}

.billed-yearly {
    font-size: 0.875rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

/* Updated CTA Button Styles */
.plan-cta {
    display: block; /* Change from inline-flex to block to take up full width */
    width: 100%; /* Make the button fill the parent container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background-color: #3b82f6; /* A slightly lighter blue */
    color: white;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.plan-cta:hover {
    background-color: #ed7431; /* Orange on hover */
}

/* New secondary link style */
.plan-secondary-link {
    text-align: center; /* Center the link to match the button */
    font-size: 14px; /* Old 1rem */
    padding-right: 0; /* Remove the old padding to allow for centering */
    padding-bottom: 1.5rem;
    color: #555;
    text-decoration: none;
    margin-top: 1.5rem; /* Increased margin-top for spacing */
    transition: color 0.3s ease;
}

.plan-secondary-link:hover {
    color: #ed7431;
    text-decoration: underline;
}

.feature-icon-svg {
    width: 20px;
    height: 20px;
}
.feature-icon-svg.check {
    fill: #4CAF50;
}
.feature-icon-svg.cross {
    fill: #999;
}

/* ** Tooltip Styles ** */
/* Shared tooltip container */
.tooltip-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Tooltip icon styling */
.tooltip-icon {
    width: 12px;
    height: 12px;
    display: block;
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMiAxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIgMTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiMwQzQwQUE7fQ0KPC9zdHlsZT4NCjx0aXRsZT5pbmZvLWNpcmNsZTwvdGl0bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNiwxMS4zTDYsMTEuM2MtMi45LDAtNS4zLTIuNC01LjMtNS4zUzMuMSwwLjgsNiwwLjhsMCwwYzIuOSwwLDUuMywyLjQsNS4zLDUuM1M4LjksMTEuMyw2LDExLjN6IE02LDEyDQoJYzMuMywwLDYtMi43LDYtNlM5LjMsMCw2LDBsMCwwQzIuNywwLDAsMi43LDAsNlMyLjcsMTIsNiwxMkw2LDEyeiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTYuNyw0LjlMNSw1LjJMNC45LDUuNGwwLjMsMC4xYzAuMiwwLjEsMC4zLDAuMSwwLjIsMC40TDQuOSw4LjVjLTAuMSwwLjcsMC4xLDEsMC42LDFjMC40LDAsMC45LTAuMiwxLjEtMC40DQoJbDAuMS0wLjNDNi41LDguOCw2LjMsOC45LDYuMiw4LjlDNiw4LjksNS45LDguNyw1LjksOC41QzUuOSw4LjUsNi43LDQuOSw2LjcsNC45eiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTYuOCwzLjRjMCwwLjQtMC4zLDAuOC0wLjgsMC44UzUuMywzLjgsNS4zLDMuNFM1LjYsMi42LDYsMi42UzYuOCwzLDYuOCwzLjR6Ii8+DQo8L3N2Zz4NCg==");
    background-size: contain;
    background-repeat: no-repeat;
}

/* The actual tooltip text box */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: #0c40aa;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Position above the tooltip icon */
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0c40aa transparent transparent transparent;
}

/* Show the tooltip on hover or when a child element is focused */
.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ** MOBILE STYLES (Existing Simple List) ** */
.mobile-pricing-simple {
    display: none;
    max-width: 400px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 1rem;
    /* Removed padding from here */
    border-width: 1px;
    border-style: solid;
    border-color: black;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* New Mobile Price Container */
.mobile-price-container {
    text-align: center;
    margin-bottom: 2rem;
    background-color: #e2e8f0;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1.5rem; /* Added padding here */
    border-radius: 1rem 1rem 0 0; /* To match the border radius of the parent on top corners */
}

.mobile-monthly-price-strike {
    color: #777;
    text-decoration: line-through;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.mobile-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.mobile-price .currency {
    font-size: 1rem;
    font-weight: 400;
}

.mobile-price .price-per-month {
    font-size: 1rem;
    font-weight: 400;
}

.mobile-billed-yearly {
    font-size: 0.875rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

.mobile-pricing-simple h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    text-align: center;
}

.mobile-pricing-simple ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    padding: 0 1.5rem; /* Added padding here */
}

.mobile-pricing-simple li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.5;
}

.mobile-pricing-simple li svg {
    width: 1rem;
    height: 1rem;
    fill: #4CAF50;
    flex-shrink: 0;
}

.mobile-cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1.5rem 1.5rem 1.5rem; /* Added padding here */
}

/* Updated Mobile Button and Link Styles */
.mobile-cta-section .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    padding: 1rem 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #3b82f6; /* Blue button color */
    color: white;
    text-align: center;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.mobile-cta-section .btn:hover {
    background-color: #ed7431; /* Orange on hover */
}

/* Style for the plan name and price inside the button */
.mobile-cta-btn-name {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.mobile-cta-btn-price {
    font-size: 1rem;
    font-weight: 400;
}

/* ** MEDIA QUERIES ** */
/* Hide the desktop table and show the mobile list on small screens */
@media (max-width: 768px) {
    .desktop-pricing-table {
        display: none;
    }
    .mobile-pricing-simple {
        display: block;
    }
    .tooltip-text {
      width: 200px;
    }
}