
/* =========================
   PRICES SECTION (BASE)
========================= */

.prices-section {
    border-top: 1px solid #D7DBDD;
    background: #fff;
    font-family: "Inter Tight", sans-serif;
    color: #2C3748;
     
}

.prices-left {
    padding: 32px 16px;
}

@media (min-width: 992px) {
    .prices-left {
        padding: 72px;
        border-right: 1px solid #D7DBDD;
        min-height: 800px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Desktop only - show active tab content */
@media (min-width: 992px) {
    .prices-tab-content.d-none.d-lg-block.is-active {
        display: block !important;
    }
}

/* Mobile - always hide desktop tab content */
@media (max-width: 991.98px) {
    .prices-tab-content {
        display: none !important;
    }
}
button.prices-accordion-btn {
    text-align: left;
}
/* =========================
   HEADER
========================= */

.prices-head {
    padding-bottom: 24px;
}

.prices-label,
.prices-number {
    font-size: 15px;
    font-weight: 400;
    line-height: 16.5px;
    text-transform: uppercase;
    color: rgba(44, 55, 72, 0.3);
}

/* =========================
   PRICE LIST
========================= */

.price-row {
    padding: 12px 0;
    gap: 16px;
    border-bottom: none;
}

.price-row span {
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
}

.price-row span:last-child {
    white-space: nowrap;
}

/* spacing between rows like in Figma */
.prices-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================
   DESKTOP TABS (RIGHT)
========================= */

.prices-tabs {
    background: #fff;
}

.prices-tab {
    padding: 24px 72px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #2C3748;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.prices-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2C3748;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.prices-tab.is-active::before {
    transform: scaleY(1);
}

.prices-tab:hover {
    background: rgba(44, 55, 72, 0.05);
}

.prices-tab.is-active {
    background: #2C3748;
    color: #fff;
}

/* =========================
   DESKTOP CONTENT
========================= */

.prices-tab-content {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 992px) {
    .prices-tab-content.is-active {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInContent 0.4s ease forwards;
    }
    
    .prices-tab-content:not(.is-active) {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for price rows in desktop tabs */
@media (min-width: 992px) {
    .prices-tab-content.is-active .price-row {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }
    
    .prices-tab-content.is-active .price-row:nth-child(1) { animation-delay: 0.05s; }
    .prices-tab-content.is-active .price-row:nth-child(2) { animation-delay: 0.1s; }
    .prices-tab-content.is-active .price-row:nth-child(3) { animation-delay: 0.15s; }
    .prices-tab-content.is-active .price-row:nth-child(4) { animation-delay: 0.2s; }
    .prices-tab-content.is-active .price-row:nth-child(5) { animation-delay: 0.25s; }
    .prices-tab-content.is-active .price-row:nth-child(n+6) { animation-delay: 0.3s; }
}

/* spacing groups like Figma */
.prices-tab-content .prices-list {
    gap: 40px;
}

/* =========================
   MOBILE ACCORDION
========================= */

.prices-accordion {
    border-bottom: 1px solid #D7DBDD;
    position: relative;
}

.prices-accordion-btn {
    width: 100%;
    padding: 24px 16px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #2C3748;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

/* active accordion (dark) */
.prices-accordion-btn[aria-expanded="true"],
.prices-accordion-btn.active {
    background: #2C3748 !important;
    color: #fff !important;
}

/* arrow icon */
.prices-accordion-btn .icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.prices-accordion-btn .icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 16px;
    height: 8px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M1 1l7 6 7-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.prices-accordion-btn[aria-expanded="true"] .icon::before,
.prices-accordion-btn.active .icon::before {
    transform: rotate(180deg);
}

/* accordion content */
.prices-accordion .collapse {
    background: #fff;
    padding: 0 16px;
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    visibility: hidden;
}

.prices-accordion .collapse.show {
    display: block !important;
    padding: 24px 16px 32px;
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prices-accordion .collapse:not(.show) {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    padding: 0 16px !important;
    margin: 0 !important;
    visibility: hidden !important;
}

/* Stagger animation for price rows in accordion */
.prices-accordion .collapse.show .price-row {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.prices-accordion .collapse.show .price-row:nth-child(1) { animation-delay: 0.1s; }
.prices-accordion .collapse.show .price-row:nth-child(2) { animation-delay: 0.15s; }
.prices-accordion .collapse.show .price-row:nth-child(3) { animation-delay: 0.2s; }
.prices-accordion .collapse.show .price-row:nth-child(4) { animation-delay: 0.25s; }
.prices-accordion .collapse.show .price-row:nth-child(5) { animation-delay: 0.3s; }
.prices-accordion .collapse.show .price-row:nth-child(n+6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   BUTTON
========================= */

.prices-section .btn {
    margin-top: 40px;
        padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    line-height: 16.5px;
    background: #2C3748;
    color: #fff;
    border-radius: 0;
    border: none;
        width: 150px;
}

/* =========================
   FIXES
========================= */

/* remove bootstrap focus */
.prices-tab:focus,
.prices-accordion-btn:focus {
    outline: none;
    box-shadow: none;
}
