/* Modern Pricing Styles */
.pricing-modern-section {
    padding: 80px 0;
    margin-top: 0;
    position: relative;
    font-family: var(--reroof-font);
    color: var(--reroof-gray);
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.pricing-modern-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    margin-bottom: 30px;
}

.pricing-modern-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.pricing-modern-card.popular {
    border: 2px solid var(--reroof-base);
    transform: scale(1.05);
}

.pricing-modern-card.popular:hover {
    transform: scale(1.05) translateY(-12px);
}

.card-modern-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    color: white;
}

.card-modern-header h3,
.card-modern-header p {
    color: white;
}

.card-modern-header.free {
    background: var(--reroof-base);
}

.card-modern-header.basic {
    background: var(--reroof-base);
}

.card-modern-header.premium {
    background: var(--reroof-base);
}

.card-modern-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--reroof-font-two);
}

.card-modern-header p {
    opacity: 0.9;
    font-size: 0.9rem;
    font-family: var(--reroof-font);
}

.card-modern-body {
    padding: 40px 30px;
    text-align: center;
}

.price-modern-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--reroof-black);
    margin: 25px 0;
    line-height: 1;
    font-family: var(--reroof-font-two);
}

.price-modern-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-modern-period {
    font-size: 1rem;
    color: #6B7280;
    display: block;
    margin-top: 8px;
    font-weight: 400;
}

.trial-modern-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.features-modern-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.features-modern-list li {
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.features-modern-list li:last-child {
    border-bottom: none;
}

.feature-modern-name {
    color: var(--reroof-gray);
    font-weight: 500;
    font-family: var(--reroof-font);
}

.feature-modern-value {
    font-weight: 700;
    color: var(--reroof-black);
    font-family: var(--reroof-font-two);
}

.feature-modern-check {
    color: #10B981;
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-modern-cross {
    color: #EF4444;
    font-weight: bold;
    font-size: 1.1rem;
}

.cta-modern-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--reroof-font-two);
}

.cta-modern-button.free {
    background: var(--reroof-base);
    color: white;
}

.cta-modern-button.free:hover {
    background: var(--reroof-black);
    transform: translateY(-2px);
}

.cta-modern-button.basic {
    background: var(--reroof-base);
    color: white;
}

.cta-modern-button.basic:hover {
    background: var(--reroof-black);
    transform: translateY(-2px);
}

.cta-modern-button.premium {
    background: var(--reroof-base);
    color: white;
}

.cta-modern-button.premium:hover {
    background: var(--reroof-black);
    transform: translateY(-2px);
}

.plan-button {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: var(--reroof-font-two);
}

.plan-button.free {
    background: var(--reroof-base);
    color: white;
}

.popular-modern-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--reroof-base);
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 109, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-modern-section {
        padding: 60px 0;
        margin-top: 0;
    }

    .pricing-modern-card.popular {
        transform: none;
    }

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

    .price-modern-display {
        font-size: 2.5rem;
    }

    .card-modern-body {
        padding: 30px 20px;
    }
}

/* Features Comparison Section */
.features-comparison-section {
    padding: 60px 0;
    /* background: #f8f9fa; */
}



.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: var(--reroof-base);
    color: white;
}

.comparison-table th {
    padding: 20px 15px;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #F3F4F6;
}

.comparison-table tbody tr:hover {
    background: #F8F9FA;
}

.feature-name {
    font-weight: 600;
    color: var(--reroof-black);
    font-family: var(--reroof-font-two);
}

.text-success {
    color: #10B981 !important;
}

.text-danger {
    color: #EF4444 !important;
}

/* Animation */
.pricing-modern-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.pricing-modern-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-modern-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-modern-card:nth-child(3) { animation-delay: 0.3s; }

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

@media (max-width: 768px) {
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}


.newsletter-one__card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.newsletter-one__card-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.newsletter-one__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}



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

.features-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.features-list li .icon-verified {
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
}

.features-list li .icon-cross {
    color: #dc3545;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
}

.features-list li:has(.icon-cross) {
    opacity: 0.6;
    text-decoration: line-through;
}

.newsletter-one__form {
    text-align: center;
    margin-top: 20px;
}

.newsletter-one__form .thm-btn {
    transition: all 0.3s ease;
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
}

.newsletter-one__form .thm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}



.icon-box {
    text-align: center;
    margin-bottom: 15px;
}

.icon-box span {
    font-size: 48px;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.newsletter-one__card:hover .icon-box span {
    transform: scale(1.1);
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-content {
    flex: 1;
    margin-bottom: 20px;
}

.plan-footer {
    margin-top: auto;
}

.plan-header h3 {
    margin: 15px 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.pricing-features-highlight {
    animation: fadeInUp 0.6s ease-out;
}

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

.price-box {
    text-align: center;
    margin: 20px 0;
}

.price-box .currency {
    font-size: 18px;
    vertical-align: top;
}

.price-box .amount {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.price-box .period {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .newsletter-one__card {
        margin-bottom: 30px;
    }

    .popular-plan {
        transform: none;
        border: 2px solid #ff6b35;
    }

    .price-box .amount {
        font-size: 28px;
    }

    .features-list li {
        font-size: 13px;
        padding: 6px 0;
    }
}

@media (max-width: 992px) {
    .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }


    .newsletter-one__card-inner {
        padding: 20px 15px;
    }

    .price-box .amount {
        font-size: 24px;
    }

    .plan-header h3 {
        font-size: 20px;
    }

    .pricing-features-highlight {
        margin: 15px 10px;
        padding: 10px;
    }
}

/* Accessibility improvements */
.newsletter-one__card:focus-within {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.thm-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading animation for cards */
.newsletter-one__card {
    animation: slideInUp 0.6s ease-out;
}

.newsletter-one__card:nth-child(2) {
    animation-delay: 0.1s;
}

.newsletter-one__card:nth-child(3) {
    animation-delay: 0.2s;
}

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