/* ============================================================
   Insurance Packages — Exact match to designer HTML/CSS
   ============================================================ */

.up-pricing-container {
    display: flex;
    gap: 15px;
    /* max-width: 1400px; */
    width: 100%;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 40px auto;
    padding: 20px;
}

/* --- CARD --- */
.up-card {
    height: fit-content;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 288px;
    padding: 4px 14px 24px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
    margin-top: 25px;
}

/* Featured card */
.up-card--featured {
    border: 2px solid #3b82f6;
    /* transform: scale(1.02); */
}

/* Dark card */
.up-card--dark {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
}

.up-card--dark .up-description {
    color: #e0f2fe;
}

.up-card--dark .up-period {
    color: #bfdbfe;
}

.up-card--dark .up-feature-item {
    color: #ffffff;
}

.up-card--dark .up-feature-item::before {
    color: #4ade80;
}

.up-card--dark .up-feature-item--disabled {
    color: #93c5fd;
}

.up-card--dark .up-feature-item--disabled::before {
    color: #93c5fd;
}

.up-card--dark .up-details-btn {
    border-color: #60a5fa;
    color: #ffffff;
}

.up-card--dark .up-limits-table {
    border-top: 1px solid #3b82f6;
}

.up-card--dark .up-limit-row {
    border-bottom: 1px solid #3b82f6;
    color: #e0f2fe;
}

.up-card--dark .up-limit-value {
    color: #ffffff;
}

/* .up-card--dark .up-promo-tag {
    background-color: #15803d;
    color: #ffffff;
} */

/* .up-card--dark .up-promo-tag::before {
    background: #fff;
    color: #15803d;
} */

/* --- BADGE --- */
.up-badge {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    text-transform: uppercase;
}

.up-badge--blue {
    background-color: #3b82f6;
}

.up-badge--orange {
    background-color: #f97316;
}

/* --- TITLE --- */
.up-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 10px;
}

/* --- PRICE --- */
.up-price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.up-price {
    color: #ff2d3b;
    font-size: 36px;
    font-weight: bold;
}

.up-currency {
    color: #ff2d3b;
    font-size: 24px;
    margin-left: 4px;
}
.up-card--dark .up-currency, .up-card--dark .up-price {
    color: white;
}

.up-period {
    font-size: 12px;
    color: #a6aeb9;
    margin-left: 6px;
}

/* --- DESCRIPTION --- */
.up-description {
    font-size: 14px;
    color: #a6aeb9;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 54px;
}

/* --- PROMO TAG --- */
.up-promo-tag {
    background-color: #e6f7ed;
    color: #107335;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 4px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.up-promo-tag::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding-top: 2px;
    padding-right: 1px;
    padding-left: 1px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --- FEATURES --- */
.up-features-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.up-feature-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #1e293b;
}

.up-feature-item::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}

.up-feature-item--disabled {
    color: #cbd5e1;
}

.up-feature-item--disabled::before {
    content: "—";
    color: #cbd5e1;
}

/* --- COMPARISON SECTION --- */
.up-comparison {
    display: none;
    background: #fff9f9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.up-card--dark .up-comparison {
    background: white;
    border-color: rgba(255,255,255,0.2);
}

.up-comparison-title {
    font-size: 13px;
    font-weight: 700;
    color: #ff5646;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.up-card--dark .up-comparison-title {
    color: #2663eb;
}

.up-comparison-arrow {
    flex-shrink: 0;
    color: #3b82f6;
}

.up-card--dark .up-comparison-arrow {
    color: #93c5fd;
}

.up-comparison-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.up-comparison-list li {
    font-size: 11px;
    color: #334155;
    padding: 3px 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.up-comparison-plus {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
}

.up-card--dark .up-comparison-plus {
    color: #93c5fd;
}

/* .up-card--dark .up-comparison-list li {
    color: #e0f2fe;
} */

/* --- DETAILS BUTTON --- */
.up-details-btn {
    background: none;
    border: 1px solid #cbd5e1;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    width: 100%;
}

.up-details-btn::after {
    content: none;
}

.up-details-chevron {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.25s ease;
}

.up-details-btn--open .up-details-chevron {
    transform: rotate(180deg);
}

.up-card--dark .up-details-chevron {
    color: #bfdbfe;
}

/* --- LIMITS TABLE --- */
.up-limits-table {
    width: 100%;
    margin-bottom: 20px;
    border-top: 1px solid #f1f5f9;
}

.up-limit-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 11px;
    border-bottom: 1px solid #d2d2d2;
    color: #525252;
}

.up-limit-value {
    font-weight: bold;
    color: #3b82f4;
    text-align: right;
}

/* --- BUY BUTTON --- */
.up-buy-btn {
    background-color: #ff5a36;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.up-buy-btn:hover {
    background-color: #e04825;
    color: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .up-pricing-container {
        flex-direction: column;
        align-items: center;
    }
    .up-card {
        width: 100%;
        max-width: 340px;
        transform: none !important;
    }
}

.up-hr{
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}