/* ===================================================
   Pricing Table  (prefix: pt-)
   =================================================== */

/* Hide CMS artifact spacer paragraphs inside the table container */
.pricing-table > p { display: none; }

.pt-wrap {
    width: 100%;
    margin-top: 80px;
}

/* ── Table frame — provides border, radius, and clips corners ── */
.pt-table-frame {
    border-radius: 16px;
    border-top: 3px solid var(--color-primary) ;
    overflow: hidden;
    box-shadow: 0px 4px 16.8px 0px rgba(219, 228, 228, 0.8),
                inset 0px 4px 0px 0px var(--color-primary);

}

/* ── Table container — handles horizontal scroll only ── */
.pt-table-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-primary-lighter);
}

.pt-table-container::-webkit-scrollbar {
    height: 4px;
}

.pt-table-container::-webkit-scrollbar-track {
    background: var(--color-primary-lighter);
}

.pt-table-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 100px;
}

/* ── Table ── */
.pt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

/* ── Head ── */
.pt-table thead tr {
    background: transparent;
}

.pt-table thead th {
    padding: 27px 0px 20px;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;
    color: var(--color-primary);
    text-align: center;
    white-space: nowrap;
}

.pt-th-cat {
    width: 25%;
    max-width: 300px;
    min-width: 150px;
}

.pt-th-opt {
    text-align: left ;
    width: 25%;
    max-width: 300px;
    min-width: 160px;
    padding-left: 29px ;
}
.pt-blank{
    background: white;
}
/* ── Category label cell (rowspan) ── */
.pt-cat-label {
    font-size: 18px ;
    font-weight: 500;
    color: #1F2A2E ;
    text-align: left;
    vertical-align: middle;
    padding: 15px 20px;
    border-right: 1px solid var(--color-card-border);
    white-space: nowrap;
    background: #FBFAFF ;
    width: 25%;
    max-width: 300px;
    min-width: 150px;
}

/* ── Data rows ── */
.pt-row{
    border-bottom: 1px solid var(--color-card-border);
}
.pt-row:first-child{
    border-top: 1px solid var(--color-card-border);
}
.pt-row td {
    padding: 28px 16px ;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #1F2A2E;
    text-align: center;
    vertical-align: middle;
}
.pt-row td strong{
    font-size: 16px;
    font-family: var(--font-primary);
    font-weight: 600;
    color:#1F2A2E;
}
/* Category label — no row grid border; only right separator + bottom group divider */
.pt-row td.pt-cat-label {
    font-size: 18px;
    border: none;
    border-top: 1px solid var(--color-card-border);
    border-right: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
}

/* Last category label (Delivery Speed) — no bottom border */
.pt-row td.pt-cat-label--last {
    border-bottom: none;
}
.pt-row td:last-child{
    border-right: none;
    text-align: left;
    padding-left: 0px;
}

/* Blank spacer row between groups */
.pt-blank td {
    height: 40px;
    padding: 0 ;
    background: #fff;
    border: none ;
}

.tableWrapper{
margin: 100px 0 0;
border-radius: 20px;
background: #FFFFFF;
border: 1px solid #EBE8F4;
box-shadow: 0px 4px 16.8px 0px #DBE4E4CC;
}



.pt-row:hover td,
.pt-row:first-child:hover td:not(.pt-cat-label),
.pt-row:hover .pt-cat-label {
    background: var(--color-bg-primary);
}

/* Option cell — left-aligned */
.pt-opt-cell {
    text-align: left !important ;
    font-weight: 400;
    color: #1F2A2E;
    min-width: 150px;
    font-size: 16px;
    line-height: 100%;
    padding: 25px 0px 25px 29px ;
    /* background: var(--color-primary-lighter); */
    border-bottom: 1px solid var(--color-card-border) ;
}
.pt-row:first-child td:not(.pt-cat-label) {
    background: #F4F2FF;
}

/* Sub-label under option name */
.pt-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: #8B95A5;
    display: block;
    margin-top: 2px;
}

/* Price cells */
.pt-row td:not(.pt-cat-label):not(.pt-opt-cell):not(.pt-value-cell) {
    font-weight: 500;
    font-size: 14px;
    color: #1F2A2E;
}

/* Plain-text value cell (spans 4 deadline columns) */
.pt-value-cell {
    text-align: right ;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    padding-right: 24px ;
}

.pt-value-included {
    color: var(--color-primary);
}

.pt-value-addon {
    color: #E76F51;
}

/* ===== Options Wrapper (Writer Level / Delivery Speed) ===== */
.options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}
.pt-table thead th:nth-child(2){
    text-align: left;
}
/* Table styling within options-wrapper */
.option-section .pt-table-frame {
    border-top: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.option-section .pt-table {
    min-width: 100%;
}

.option-section .pt-row td {
    padding: 15px 16px;
    border: none;
    vertical-align: middle;
    text-align: left;
}

.option-section .pt-row td.pt-cat-label {
    border: none;
    border-top: 1px solid var(--color-card-border);
    border-right: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
    text-align: center;
}

.option-section .pt-row td.pt-value-cell {
    text-align: left;
    max-width: 0px;
}

.option-section .pt-row:last-child td {
    border-bottom: none;
}



.option-section .pt-cat-label {
    font-size: 18px ;
    font-weight: 500;
    color: #1F2A2E ;
    padding-left: 20px ;
    background: #FBFAFF ;
}

.option-section .pt-value-cell {
    text-align: right;
    font-weight: 400;
    color: #1F2A2E;
    padding-right: 24px ;
}

.option-section .pt-sub {
    font-size: 14px;
    color: #5F6C72;
    margin-top: 7px;
    margin-bottom: 0;
    display: block;
}

/* Hover effects for table rows */
.option-section .pt-row:hover td, 
.option-section .pt-row:hover .pt-cat-label {
    background: var(--color-bg-primary);
}

.option-section > h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2A2E;
    font-family: var(--font-primary);
    margin-bottom: 12px;
    padding-left: 2px;
}

.option-card {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--color-card-border);
    border-bottom: none;
    position: relative;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    cursor: default;
}

/* Left accent bar on hover */
.option-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1bb8aa, var(--color-primary));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.option-card:hover::before {
    transform: scaleY(1);
}

.option-card:hover {
    background: #F6FEFE;
    border-color: #B8E8DA;
    box-shadow: 0 4px 16px rgba(12, 146, 134, 0.08);
    z-index: 1;
}

.option-card:first-of-type {
    background: var(--color-primary-lighter);
    border-radius: 10px 10px 0 0;
}

.option-card:first-of-type:hover {
    background: #E2F9F5;
}

.option-card:last-child {
    border-bottom: 1px solid var(--color-card-border);
    border-radius: 0 0 10px 10px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2A2E;
    transition: color 0.25s ease;
}

.option-card:hover .option-name {
    color: var(--color-primary);
}

.option-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform 0.25s ease;
}

.option-card:hover .option-price {
    transform: translateX(-3px);
}

.option-desc {
    font-size: 12px;
    color: #8B95A5;
    margin-top: 3px;
}

/* ===== Addons Section ===== */
.addons-section {
    margin-top: 32px;
}

.addons-section > h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2A2E;
    margin-bottom: 12px;
}

.addon-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid var(--color-card-border);
    border-bottom: none;
    background: #fff;
}

.addon-card:first-of-type { border-radius: 10px 10px 0 0; }
.addon-card:last-child { border-bottom: 1px solid #D7E9E7; border-radius: 0 0 10px 10px; }

.addon-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1F2A2E;
    margin: 0 0 2px;
}

.addon-info p {
    font-size: 12px;
    color: #8B95A5;
    margin: 0;
}

.addon-price {
    font-size: 14px;
    font-weight: 600;
    color: #E76F51;
    white-space: nowrap;
}

/* ===== Guarantees Bar ===== */
.guarantees-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background: #F6FAFA;
    border: 1px solid #D7E9E7;
    border-radius: 12px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-guarantee-icon {
    font-size: 22px;
}

.guarantee-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2A2E;
    margin: 0 0 2px;
}

.guarantee-text p {
    font-size: 12px;
    color: #8B95A5;
    margin: 0;
}
.pt-table thead th:last-child {
    text-align: left;
    width: 125px;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .pricing-table {
            overflow-x: scroll;
        }
 .pt-table thead th:last-child {
     min-width: 75px;
 }
    .options-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    /* Sub-table horizontal scrolling optimization */
    .option-section .pt-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce font sizes for labels on mobile */
    .option-section .pt-cat-label,
    .pt-cat-label {
        font-size: 14px !important;
        padding: 10px 12px;
        min-width: 110px;
    }

    .option-section .pt-opt-cell,
    .pt-opt-cell {
        padding: 12px 10px 12px 15px;
        font-size: 14px;
        min-width: 100px; /* Give options enough room */
    }

    .pt-row td strong {
        font-size: 14px;
    }

    .option-section .pt-sub,
    .pt-sub {
        font-size: 11px;
    }

    /* Fix overflow in value cells (e.g. "Included") */
    .pt-value-cell,
    .option-section .pt-value-cell {
        font-size: 13px;
        padding-right: 15px;
        white-space: nowrap;
        min-width: 80px; /* Ensure text doesn't overflow */
    }

    .pt-table thead th {
        font-size: 11px;
        padding: 12px 10px;
        min-width: 70px;
    }
}

/* ── CTA Banner ── */
.pt-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--color-primary);
    border-radius: 20px;
    margin-top: 50px;
    padding: 53px 70px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.pt-cta::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
transform: translateY(-62%);
    width: 100%;
    height: 158px;
    background: url('images/bg_img.png') no-repeat center right;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.pt-cta-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.pt-cta-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 26px;
    line-height: 150%;
        color: #ffffff;
}

.pt-cta-subheading {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin: 5px 0 0;
}



/* CTA Button */
@keyframes ptBtnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.pt-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 16px 30px;
    border-radius: 100px;
    background: white;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pt-cta-btn:hover {
    background: #f8f8f8;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── Responsive ── */
@media (max-width: 575px) {
    .pt-table thead th {
        padding: 12px 10px;
        font-size: 10.5px;
    }

    .pt-row td {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .pt-row td strong {
        font-size: 14px;
    }
    
    .option-section > h3 {
        font-size: 15px;
    }

    .pt-th-opt,
    .pt-opt-cell {
        min-width: 110px;
    }

    .pt-th-cat,
    .pt-cat-label {
        min-width: 90px;
        font-size: 13px !important;
    }

    .pt-cta {
        padding: 35px 20px;
        flex-direction: column;
        gap: 20px;
        border-radius: 15px;
        text-align: center;
    }

    .pt-cta-text {
        font-size: 18px;
    } /* Fixed missing brace here */
    
    .pt-cta-btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 30px;
    }
}
