/* Tally Pricing Module — scoped front-end styles */

.tpm-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #1a1a1a;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tpm-wrap *,
.tpm-wrap *::before,
.tpm-wrap *::after { box-sizing: border-box; }

.tpm-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    color: #0a2540;
    line-height: 1.2;
}

.tpm-subtitle {
    text-align: center;
    color: #5a6478;
    font-size: 15px;
    margin: 0 0 28px;
}

.tpm-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 28px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e6e8ec;
}

.tpm-tab-btn {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    color: #5a6478;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tpm-tab-btn.active {
    background: #f5b800;
    color: #0a2540;
    box-shadow: 0 2px 6px rgba(245, 184, 0, 0.3);
}

.tpm-section { display: none; }
.tpm-section.active { display: block; }

.tpm-intro {
    text-align: center;
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 24px;
    font-weight: 500;
}

.tpm-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1000px) {
    .tpm-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .tpm-cards { grid-template-columns: 1fr; }
    .tpm-title { font-size: 24px; }
}

.tpm-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    border: 1px solid #e6e8ec;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.tpm-card.tpm-popular { border: 2px solid #f5b800; }

.tpm-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #f5b800;
    color: #0a2540;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.tpm-duration {
    font-size: 15px;
    font-weight: 600;
    color: #5a6478;
    margin-bottom: 10px;
}

.tpm-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tpm-price {
    font-size: 30px;
    font-weight: 700;
    color: #0a2540;
}

.tpm-price-old {
    font-size: 16px;
    color: #99a0ad;
    text-decoration: line-through;
}

.tpm-gst {
    font-size: 12px;
    color: #5a6478;
    margin-bottom: 4px;
}

.tpm-effective {
    font-size: 12px;
    color: #1ea25a;
    font-weight: 600;
    margin-bottom: 16px;
}

.tpm-effective.tpm-placeholder { visibility: hidden; }

.tpm-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
    margin-bottom: 4px;
    line-height: 1.2;
}

.tpm-cta:hover {
    background: #1ebe5b;
    color: #fff !important;
    transform: translateY(-1px);
}

.tpm-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.tpm-perks {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.tpm-perks li {
    font-size: 13px;
    color: #2c3e50;
    padding: 4px 0 4px 22px;
    position: relative;
    list-style: none;
    margin: 0;
}

.tpm-perks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: #1ea25a;
    font-weight: 700;
    font-size: 14px;
}
