/* ========================================
   HostBill Pricing Tables - Main Styles
   ======================================== */

.hbpt-pricing-table {
    padding: 60px 20px;
    max-width: 1472px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hbpt-pricing-container {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* Column layouts */
.hbpt-columns-2 .hbpt-pricing-container {
    grid-template-columns: repeat(2, 1fr);
}

.hbpt-columns-3 .hbpt-pricing-container {
    grid-template-columns: repeat(3, 1fr);
}

.hbpt-columns-4 .hbpt-pricing-container {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Pricing Card
   ======================================== */

.hbpt-pricing-card {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.hbpt-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: #FF8C42;
}

/* Popular card */
.hbpt-pricing-card.hbpt-popular {
    border-color: #FF8C42;
    border-width: 3px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

.hbpt-pricing-card.hbpt-popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
}

.hbpt-popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF8C42 !important;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.hbpt-popular-badge svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Card Header
   ======================================== */

.hbpt-card-header {
    margin-bottom: 30px;
    text-align: center;
    flex: 0 0 auto;
}

.hbpt-product-name {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hbpt-product-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   Pricing
   ======================================== */

.hbpt-card-pricing {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #f3f4f6;
    flex: 0 0 auto;
}

.hbpt-price-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
    line-height: 1;
}

.hbpt-currency {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-right: 4px;
    margin-top: 8px;
}

.hbpt-price {
    font-size: 56px;
    font-weight: 900;
    color: #111827;
    letter-spacing: 2px;
    line-height: 1;
}

.hbpt-price-decimal {
    font-size: 32px;
    font-weight: 700;
    color: #6b7280;
    margin-top: 8px;
}

.hbpt-billing-cycle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   Features
   ======================================== */

.hbpt-card-features {
    flex: 1 0 auto;
    margin-bottom: 30px;
}

.hbpt-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hbpt-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

.hbpt-feature-item:first-child {
    padding-top: 0;
}

.hbpt-check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #10b981;
    margin-top: 2px;
}

/* ========================================
   Button
   ======================================== */

.hbpt-card-footer {
    margin-top: auto;
}

.hbpt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #FF8C42 !important;
    color: #FFFFFF !important;
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    text-decoration: none;
    border: 1px solid #FF8C42;
    border-radius: 8px;
    padding: 10px 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hbpt-button:hover {
    background-color: #e67a35;
    border-color: #e67a35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.hbpt-button:active {
    transform: translateY(0);
}

.hbpt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #FF8C42;
    color: #FFFFFF;
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 150%;
    text-decoration: none;
    border: 1px solid #FF8C42;
    border-radius: 8px;
    padding: 10px 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hbpt-button:hover {
    background-color: #e67a35;
    border-color: #e67a35;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.hbpt-button:active {
    transform: translateY(0);
}

.hbpt-button-popular {
    background-color: #FF8C42;
    border-color: #FF8C42;
}

.hbpt-button-popular:hover {
    background-color: #e67a35;
    border-color: #e67a35;
}

.hbpt-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.hbpt-button:hover .hbpt-arrow {
    transform: translateX(4px);
}

/* ========================================
   Trust Badges
   ======================================== */

.hbpt-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 20px;
}

.hbpt-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.hbpt-trust-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* ========================================
   Error Messages
   ======================================== */

.hbpt-error {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 8px;
    padding: 16px 20px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   Minimal Style Variant
   ======================================== */

.hbpt-style-minimal .hbpt-pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px 24px;
}

.hbpt-style-minimal .hbpt-pricing-card:hover {
    border-color: #d1d5db;
    transform: translateY(-4px);
}

.hbpt-style-minimal .hbpt-product-name {
    font-size: 24px;
}

.hbpt-style-minimal .hbpt-price {
    font-size: 48px;
}

.hbpt-style-minimal .hbpt-button {
    border-radius: 8px;
    padding: 14px 24px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hbpt-columns-4 .hbpt-pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hbpt-pricing-card.hbpt-popular {
        transform: scale(1.02);
    }

    .hbpt-pricing-card.hbpt-popular:hover {
        transform: scale(1.02) translateY(-8px);
    }
}

@media (max-width: 768px) {
    .hbpt-pricing-table {
        padding: 40px 15px;
    }

    .hbpt-pricing-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .hbpt-pricing-card {
        padding: 32px 24px;
    }

    .hbpt-pricing-card.hbpt-popular {
        transform: scale(1);
    }

    .hbpt-pricing-card:hover,
    .hbpt-pricing-card.hbpt-popular:hover {
        transform: translateY(-4px);
    }

    .hbpt-product-name {
        font-size: 24px;
    }

    .hbpt-price {
        font-size: 48px;
    }

    .hbpt-trust-badges {
        gap: 20px;
        padding: 30px 15px;
    }

    .hbpt-trust-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hbpt-price {
        font-size: 42px;
    }

    .hbpt-currency {
        font-size: 20px;
    }

    .hbpt-price-decimal {
        font-size: 28px;
    }

    .hbpt-feature-item {
        font-size: 14px;
    }

    .hbpt-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ========================================
   Elementor Compatibility
   ======================================== */

.elementor-widget-container .hbpt-pricing-table {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ========================================
   Discount Banner
   ======================================== */

.hbpt-discount-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideDown 0.5s ease-out;
}

.hbpt-discount-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hbpt-discount-icon {
    font-size: 24px;
}

.hbpt-discount-text {
    font-size: 16px;
    font-weight: 500;
}

.hbpt-discount-text strong {
    font-weight: 700;
    font-size: 18px;
}

.hbpt-discount-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    margin: 0 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Discount Pricing
   ======================================== */

.hbpt-old-price {
    text-decoration: line-through;
    opacity: 0.5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
    line-height: 1;
}

.hbpt-old-price .hbpt-currency {
    font-size: 18px;
    font-weight: 600;
    margin-right: 2px;
    margin-top: 4px;
}

.hbpt-old-price .hbpt-price {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hbpt-old-price .hbpt-price-decimal {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}

.hbpt-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hbpt-has-discount .hbpt-price {
    color: #10b981;
}

.hbpt-has-discount .hbpt-popular .hbpt-price {
    color: #111827;
}

/* ========================================
   Animations
   ======================================== */

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

.hbpt-pricing-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.hbpt-pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hbpt-pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hbpt-pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.hbpt-pricing-card:nth-child(4) {
    animation-delay: 0.4s;
}
