:root {
    /* idk why this works */
    --sitetran-features-by-plan-table-column-width: auto;
}

html {
    scroll-behavior: smooth;
}

.home-page-nav.page-section {
    z-index: 1001;
}

/* monthyl/annual toggle */
.billing-toggle {
    display: flex;
    border: 1px solid var(--sitetran-colour-palette-grey-1);
    border-radius: 50px;
    width: 350px;
    margin: 20px auto;
    padding: 2px;
    transition-delay: 0.5s;
}

.billing-option {
    background: transparent;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}

#annual-billing {
    position: relative;
}

.billing-option.active {
    background: var(--sitetran-colour-palette-blue-3);
    color: white;
    border-radius: 50px;
}

.billing-option:not(.active) {
    color: black;
}

.discount-badge {
    background: var(--sitetran-colour-palette-yellow-1);
    width: 100px;
    top: 80%;
    color: #333;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 12px;
    position: absolute;
    left: calc(50% - 50px);
}

/* pricing cards */
.pricing-title {
    font-size: 50px;
    margin: 50px 0 0 0;
    transition-delay: 0.3s;
}

.pricing-cards {
    flex-wrap: nowrap;
    transition-delay: 0.7s;
}

.pricing-section-sticky {
    position: sticky;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    z-index: 1000;
    padding: 20px 0 10px 0;
    width: 100%;
}

.pricing-cards-sticky-text {
    width: 260px;
    max-width: 260px;
    min-width: 260px;
}

.pricing-section-sticky .pricing-cards {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-grow: 1;
}

.pricing-section-sticky .pricing-card {
    flex-grow: 1;
    width: auto;
}

.pricing-card .plan-name {
    font-size: 20px;
}

.pricing-card .plan-button {
    font-size: 13px;
}

.pricing-card .cursor-pointer-hover:hover {
    text-decoration: underline;
}

.pricing-card .cursor-pointer-hover {
    margin: 0;
}

.pricing-card:hover {
    transform: none;
    box-shadow: none;
}

#btn-cycle-columns-forward,
#btn-cycle-columns-back {
    float: right;
    position: absolute;
    background: white;
    border: 1px solid var(--sitetran-colour-palette-grey-1);
    padding: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
}

#btn-cycle-columns-forward {
    right: -20px;
    top: calc(50% - 20px);
}

#btn-cycle-columns-back {
    left: -20px;
    top: calc(50% - 20px);
}

/* features by plan table */

table {
    background-color: white;
}

.pricing-table-header {
    position: relative;
    cursor: pointer;
}

.pricing-table-header::after {
    content: '';
    position: absolute;
    background-image: url('/images/down-caret-blue.svg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    /* transition: transform 0.2s ease-out; */
}

table:has(.pricing-table-body.hidden) .pricing-table-header::after {
    transform: translateY(-50%) rotate(360deg);
}

.pricing-table-name {
    color: var(--sitetran-colour-palette-blue-5);
    padding-right: 50px;
    white-space: nowrap;
}

.tooltip-circle-2 {
    color: var(--sitetran-colour-palette-green-2);
    background-color: white;
    border: 1px solid var(--sitetran-colour-palette-green-2);
    font-size: 12px;
    font-weight: 600;
    height: 16px;
    width: 16px;
    line-height: 100%;
}

table tbody {
    border-top: 1px solid var(--sitetran-colour-palette-grey-1);
    background-color: white;
}

tr {
    background-color: white !important;
}

tr:hover {
    background-color: #f9f9f9 !important;
}

thead tr:hover {
    background-color: white !important;
}

th,
td {
    outline: none;
    padding: 10px;
    text-align: center;
    width: var(--sitetran-features-by-plan-table-column-width);
    background-color: transparent;
}

th {
    border: 0;
    padding: 20px;
    font-size: 20px;
    text-align: left;
}

td {
    border: 0;
    border-left: 1px solid var(--sitetran-colour-palette-grey-1);
    padding: 20px 10px;
    /* min-width: 120px;     */
}

td:first-child {
    border-left: 0;
    text-align: left;
    padding-left: 20px;
}

td:last-child {
    border-right: 0;
}

td:first-child,
th:first-child {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

#detailed-plan-comps-link {
    color: var(--sitetran-colour-palette-blue-4);
    text-decoration: none;
    text-align: center;
}

#detailed-plan-comps-link:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-section {
    max-width: 100%;
    width: 100%;
    /* background-color: var(--background-color-secondary); */
    background-color: var(--sitetran-colour-palette-blue-5);
    padding: 0;
}

.faq-title-container {
    flex: 1 1 40%;
    padding-top: 20px;
    min-width: 300px;
}

.faq-title {
    font-size: 44px;
    color: white;
}

.faq-questions-container {
    flex: 1 1 55%;
}

.faq-list {
    list-style: none;
}

.faq-item {
    padding: 20px 10px 0 10px;
    border-bottom: 2px solid var(--sitetran-colour-palette-grey-1);
    transition: background-color 0.3s ease;
    margin: 0;
}

.faq-item p {
    margin: 0;
}

.faq-icon {
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    border-radius: 50%;
    background-color: rgb(236, 236, 236);
    background-color: var(--sitetran-colour-palette-blue-4);
}

.faq-icon img {
    width: 30px;
    min-width: 30px;
    height: 30px;
    transform: rotate(270deg);
    transition: transform 0.3s ease-in-out;
}

.faq-question-wrapper {
    cursor: pointer;
    width: 100%;
}

.faq-question {
    font-size: 18px;
    font-weight: 500;
    /* color: var(--text-color-primary); */
    color: white;
}

.faq-answer {
    font-size: 14px;
    max-height: 0px;
    /* opacity: 0; */
    overflow: hidden;
    transition: padding 15s ease-out;
    color: white;
    padding: 10px 0;
}

.faq-item.active .faq-answer {
    /* opacity: 1; */
    /* max-height: 350px; */
    padding: 10px 0 20px 0;
}

.faq-item.active .faq-icon img {
    transform: rotate(360deg);
}

@media (max-width: 1024px) and (min-width: 992px) {
    .pricing-section-sticky .plan-name {
        font-size: 18px;
    }

    .pricing-section-sticky .plan-price {
        font-size: 14px;
    }

    .pricing-section-sticky .pricing-card.enterprise-plan .plan-price {
        font-size: 10px;
    }

    .pricing-section-sticky .plan-button {
        font-size: 10px;
    }
}

/* larger than 991 */
@media (min-width: 992px) {
    .pricing-section-sticky .pricing-card.enterprise-plan .plan-price {
        font-size: 12px;
    }

    .pricing-card.free-plan {
        order: 1;
    }

    .pricing-card.starter-plan {
        order: 2;
    }

    .pricing-card.pro-plan {
        order: 3;
    }

    .pricing-card.business-plan {
        order: 4;
    }

    .pricing-card.enterprise-plan {
        order: 5;
    }
}

@media (max-width: 991px) {
    .pricing-section .pricing-cards {
        flex-wrap: wrap;
    }

    .pricing-section .pricing-card {
        flex: 1 1 100%;
        /* Each item takes up the full width on small screens */
        width: 100%;
    }

    .pricing-section .card-body {
        padding: 20px;
    }

    .pricing-section-sticky .pricing-card:not(:first-child) {
        display: none;
    }

    td:not(:nth-child(1)):not(:nth-child(2)),
    th:not(:first-child) {
        display: none;
    }

    #btn-cycle-columns-forward,
    #btn-cycle-columns-back {
        display: block;
    }

    .pricing-cards-sticky-text,
    td:first-child,
    th:first-child {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .pricing-cards-sticky-text div {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .pricing-section-sticky {
        top: 60px;
    }
    .pricing-table-name {
        white-space: wrap;
    }
}

@media screen and (max-width: 575px) {
    .pricing-section-sticky {
        flex-direction: column;
        gap: 20px;
        top: -45px;
    }
    .pricing-cards-sticky-text {
        max-width: 100%;
        width: 100%;
    }

    .pricing-table-name {
        font-size: 16px;
    }

    .table-wrapper {
        margin-top: 10px;
    }
}