/* ═══════════════════════════════════════
   SudStop Pricing Tabs — Frontend CSS
   ═══════════════════════════════════════ */

:root{
    --color1: #021c4a;
    --color2: #cf0c2e;
    --medium-blue: #0047ba;
    --text-color: #333333;
    --light-text-color: #999999;
    --white-color: #ffffff;
    --dark-green: #345734;
    --font-family1: "Uniform";
    --font-family2: "Uniform Condensed";
}

/* ─── Wrapper ─── */
.spt-pricing-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    position: relative;
}

/* ─── Tabs Nav (Reference: trapezoid/angled tab style) ─── */
.spt-pricing-wrapper .spt-front-tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 4px solid var(--color2);
    position: relative;
    padding-left: 10px;
}

.spt-pricing-wrapper .tab-btn-wrapper{
    margin-right: -30px;
    margin-bottom: -0.08px;
    width: 180px;
    height: 37px;
    filter: drop-shadow(0 0px 4px rgba(0, 0, 0, 0.25));
}
.spt-pricing-wrapper .tab-btn-wrapper.active{
    filter: drop-shadow(0 0px 4px rgba(0, 0, 0, 0.5));
}

.spt-pricing-wrapper .spt-front-tab {
    position: relative;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color1);
    background-color: var(--white-color);
    cursor: pointer;
    transition: all .3s ease;
    clip-path: polygon(14% 0%, 86% 0%, 100% 100%, 0% 100%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spt-pricing-wrapper .spt-front-tab:hover{
    background: var(--color1);
    border-color: var(--color1);
    color: var(--white-color);
}

.spt-pricing-wrapper .spt-front-tab.active {
    background: var(--color2);
    border-color: var(--color2);
    color: var(--white-color);
}

/* ─── Panels ─── */
.spt-pricing-wrapper .spt-front-panel {
    display: none;
    opacity: 0;
    margin-top: 15px;
}

.spt-pricing-wrapper .spt-front-panel.active {
    display: block;
    animation: spt-fade-in 0.35s ease-out forwards;
}

@keyframes spt-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Grid ─── */
.spt-pricing-wrapper .spt-pricing-grid {
    display: grid;
    gap: 20px;
    padding-top: 25px;
}

.spt-cols-1 { grid-template-columns: 1fr; }
.spt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.spt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.spt-cols-4 { grid-template-columns: repeat(4, 1fr); }
.spt-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ─── Pricing Box ─── */
.spt-pricing-wrapper .spt-pricing-box {
    background: var(--white-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Header */
.spt-pricing-wrapper .spt-box-header {
    padding: 15px 0px 10px;
    text-align: center;
    position: relative;
}
.spt-pricing-wrapper .spt-box-header::before{
    content:'';
    position: absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width: 100%;
    height:100%;
    background-color: var(--white-color);
    z-index:-1;
}

.spt-pricing-wrapper .spt-box-title {
    font-family: var(--font-family1);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: normal;
    margin: 0px;
}

.spt-pricing-wrapper .spt-box-subtitle {
    color: var(--white-color);
    font-family: Uniform;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    vertical-align: super;
    margin-left: -3px;
    transform: translateY(6px);
    display: inline-block;
}

/* Body */
.spt-pricing-wrapper .spt-box-body {
    padding: 5px 10px 20px 10px;
    flex: 1;
    text-align: center;
}

.spt-pricing-wrapper .spt-box-desc {
    color: var(--text-color);
    font-size: 13px;
    margin: 0 0 12px;
    text-align: center;
}

/* Features */
.spt-pricing-wrapper .spt-features-list {
    display: inline-block;
    width: max-content;
    max-width: max-content;
    list-style: none;
    padding: 0;
    margin: 0;
}

.spt-pricing-wrapper .spt-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spt-pricing-wrapper .spt-feature-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-weight: 700;
}

.spt-pricing-wrapper .spt-feature-icon.included{
    color: var(--dark-green);
}

.spt-pricing-wrapper .spt-feature-icon.included svg{
    fill: var(--dark-green);
    width: 15px;
    height: 15px;
}

.spt-pricing-wrapper .spt-feature-icon.excluded {
    color: var(--color2);
}

.spt-pricing-wrapper .spt-feature-icon.excluded svg {
    fill: var(--color2);
    width: 15px;
    height: 15px;
}

.spt-pricing-wrapper .spt-feature.included .spt-feature-text,
.spt-pricing-wrapper .spt-feature.excluded .spt-feature-text{
    font-family: var(--font-family1);
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    font-style: normal;
}

.spt-pricing-wrapper .spt-feature.included .spt-feature-text {
    color: var(--text-color);
}

.spt-pricing-wrapper .spt-feature.excluded .spt-feature-text {
    color: var(--light-text-color);
    text-decoration: line-through;
}

/* ─── Price Section ─── */
.spt-pricing-wrapper .spt-box-price-section {
    padding: 0 5px 0 5px;
    text-align: center;
}

.spt-pricing-wrapper .spt-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap:0;
    line-height: 1;
}

.spt-pricing-wrapper .spt-price-original {
    font-family: var(--font-family2);
    font-size: 22px;
    font-weight: 600;
    color: var(--color2);
    text-decoration: line-through;
}

.spt-pricing-wrapper .spt-price-currency {
    font-family: var(--font-family2);
    font-size: 31px;
    font-weight: 600;
    font-style: normal;
    transform: translateY(-16px);
    color: var(--medium-blue);
}

.spt-pricing-wrapper .spt-price-amount {
    font-family: var(--font-family2);
    font-size: 50px;
    font-weight: 600;
    font-style: normal;
    color: var(--medium-blue);
}

.spt-pricing-wrapper .spt-price-period {
    font-family: var(--font-family2);
    font-size: 35px;
    font-weight: 600;
    color: var(--medium-blue);
}

.spt-pricing-wrapper .spt-price-desc,
.spt-pricing-wrapper .spt-price-desc-2 {
    color: var(--color1);
    font-family: var(--font-family2);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-style: normal;
    margin: 4px 0px 0px;
}

.spt-pricing-wrapper .spt-price-desc-2{
    margin:0;
}

/* Get Pricing */
.spt-pricing-wrapper .spt-get-pricing {
    padding: 0;
    position: relative;
    display: flex;
    margin-top: -10px;
    padding-bottom: 10px;
}

/* .spt-pricing-wrapper .spt-get-pricing-text {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a1f44;
    position: relative;
}

.spt-pricing-wrapper .spt-get-pricing-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #cf0c2e, #2563eb);
    border-radius: 2px;
} */

.spt-pricing-wrapper .spt-get-pricing-text {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    /* background: linear-gradient(135deg, #cf0c2e 0%, #0a1f44 100%); */
    background: var(--color2);
    padding: 12px 40px 12px 20px;
    position: relative;
    margin-left: -1px;
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
}

/* ─── Footer / Button ─── */
.spt-pricing-wrapper .spt-box-footer {
    padding: 15px 20px 20px;
    text-align: center;
}

.spt-pricing-wrapper .spt-pricing-btn {
    display: inline-block;
    background-color: var(--medium-blue);
    color: var(--white-color);
    border-style: solid;
    border-width: 1px;
    border-color: var(--medium-blue);
    border-radius: 7px;
    padding: 12px 20px 10px;
    font-family: var(--font-family1);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: normal;
    line-height:1;
}

.spt-pricing-wrapper .spt-pricing-btn:hover {
    background-color: var(--color2);
    border-color: var(--color2);
}

.spt-pricing-wrapper .spt-btn-line-1 {
    display: block;
}

.spt-pricing-wrapper .spt-btn-line-2 {
    display: block;
}

.spt-pricing-wrapper .spt-box-body,
.spt-pricing-wrapper .spt-get-pricing,
.spt-pricing-wrapper .spt-box-price-section,
.spt-pricing-wrapper .spt-box-footer{
    border-width: 0 2px 0 2px;
    border-style: solid;
    border-color: var(--medium-blue);
}
.spt-pricing-wrapper .spt-box-footer{
    border-width: 0 2px 2px 2px;
}

/* ─── Owl Carousel ─── */
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-top: 0;
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev,
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next {
    background: transparent;
    color: var(--white-color);
    width: 38px;
    height: auto;
    font-size: 20px;
    line-height: 1;
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev{
    margin-left: -60px;
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next{
    margin-right: -60px;
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev img,
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next img{
    width: 100%;
    height: 100%;   
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev.disabled,
.spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next.disabled{
    opacity: 0;
    visibility: hidden;
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-dots .owl-dot span {
    background: #cbd5e1;
}
.spt-pricing-wrapper .spt-pricing-carousel .owl-dots .owl-dot.active span {
    background: #0a1f44;
}
/* Remove the image section spacing since image is removed */
.spt-pricing-wrapper .spt-box-image { display: none; }

.spt-pricing-wrapper .spt-tab-loader-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    border-radius: 0 0 8px 8px;
}
.spt-pricing-wrapper .spt-tab-loader-container.active {
    display: flex;
}

.spt-pricing-wrapper .spt-tab-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #0a1f44;
    border-radius: 50%;
    animation: spt-tab-spin 0.6s linear infinite;
}

@keyframes spt-tab-spin {
    to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media screen and (max-width: 1380px){
    .spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev{
        margin-left: -50px;
    }
    .spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next{
        margin-right: -50px;
    }
}
@media screen and (max-width: 1200px){
    .spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev{
        margin-left: 5px;
    }
    .spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next{
        margin-right: 5px;
    }
}
@media (max-width: 1024px) {
    .spt-cols-4, .spt-cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .spt-cols-3, .spt-cols-4, .spt-cols-5 { grid-template-columns: repeat(2, 1fr); }
    .spt-pricing-wrapper .spt-front-tabs-nav { flex-wrap: wrap; gap: 10px;}
    .spt-pricing-wrapper .tab-btn-wrapper{
        margin-right: -40px;
    }
    .spt-pricing-wrapper .spt-front-tab {
        padding: 10px 18px;
        font-size: 12px;
    }
    .spt-pricing-wrapper .spt-price-original{font-size:19px;}
    .spt-pricing-wrapper .spt-price-amount { font-size: 36px; }
    .spt-pricing-wrapper .spt-price-period{font-size: 25px;}
    .spt-pricing-wrapper .spt-price-currency{font-size:25px;}
}

@media screen and (max-width: 576px){
    .spt-pricing-wrapper .spt-box-title{
        font-size: 16px;
    }
    .spt-pricing-wrapper .spt-price-amount { font-size: 30px; }
    .spt-pricing-wrapper .spt-price-period{font-size: 21px;}
    .spt-pricing-wrapper .spt-price-currency{font-size:21px;}
    .spt-pricing-wrapper .spt-get-pricing-text{
        font-size: 11px;
    }
    .spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-prev, 
    .spt-pricing-wrapper .spt-pricing-carousel .owl-nav button.owl-next{
        width: 25px;
    }
}

@media (max-width: 480px) {
    .spt-cols-2, .spt-cols-3, .spt-cols-4, .spt-cols-5 { grid-template-columns: 1fr; }

    .spt-pricing-wrapper .spt-front-tab {
        margin-right: 0;
        flex: 1;
        text-align: center;
        min-width: 0;
    }
}
