/* Plans Grid Layout */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Recommended Plan Badge */
.recommended-plan {
    position: relative;
    overflow: visible !important;
    /* Allow badges to display outside the card boundaries */
    clip-path: none !important;
}

.recommended-banner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(to right, #f97316, #f59e0b);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
    z-index: 10;
}

/* Card animations and styling */
.plan-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    border-color: #e5e7eb;
}
.plan-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #f97316;
}

/* Special hover effect for recommended plan */
.recommended-plan:hover {
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.35), 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    border-color: #ea580c;
}

/* Savings badge */
.savings-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(to right, #f97316, #f59e0b);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
    transform: rotate(3deg);
    z-index: 10;
}

/* Feature icon styling */
.feature-icon {
    color: #f97316;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accordion styles */
.accordion {
    border-bottom: 1px solid #f3f4f6;
}
.accordion-header {
    cursor: pointer;
    padding: 1rem 0;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.accordion-content.open {
    max-height: 200px;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-icon.open {
    transform: rotate(180deg);
}

/* Testimonial styles */
.testimonial-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}
.testimonial-card:before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5rem;
    color: #f3f4f6;
    font-family: serif;
    line-height: 1;
    z-index: 0;
    opacity: 0.5;
}

/* CTA Button Animation */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.cta-button:hover::after {
    transform: translateX(100%);
}

/* Current plan card - disable hover effects */
.current-plan-card {
    cursor: default;
}

.current-plan-card:hover {
    transform: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #f97316 !important; /* Keep the orange border to show it's active */
}

/* Disable hover effects for recommended current plan */
.recommended-plan.current-plan-card:hover {
    transform: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #ea580c !important; /* Keep the darker orange border */
}

/* Background pattern */
.pattern-bg {
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 640px) {
    .plan-features {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .plan-card {
        min-height: auto;
    }
} 