/* Plans Card */
.plans {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}

.plans .container {
    max-width: 1200px;
}

.plans .title h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.plans .title p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Original card styles for backward compatibility */
.plans .card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.plans .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.plans .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: url('../images/waves.svg') no-repeat;
    transform: rotate(180deg) translateY(86%);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.plans .card .card-header {
    background: transparent;
    border: none;
    padding: 2rem 1.5rem 1rem;
}

.plans .card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 15px;
}

.plans .card .card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.plans .card .plan-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.plans .card .price-tag {
    margin-bottom: 1.5rem;
}

.plans .card .price-tag h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.plans .card .price-tag small {
    font-size: 1rem;
}

.plans .card .plan-desc {
    color: var(--blue);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: -0.04rem;
    margin-bottom: 1.5rem;
}

.plans .card .plan-features {
    padding: 0 1.5rem;
}

.plans .card .plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plans .card .plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.plans .card .plan-features li:last-child {
    border-bottom: none;
}

.plans .card .plan-features .feature-icon {
    min-width: 30px;
    margin-right: 15px;
    color: var(--blue);
}

.plans .card .plan-features .feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--blue);
}

.plans .card .plan-features strong {
    color: var(--white);
    font-weight: 600;
}

.plans .card .btn-primary {
    background-color: var(--blue);
    border: 1px solid var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 30px;
    display: block;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 1.5rem 1.5rem 2rem;
}

.plans .card .btn-primary:hover {
    background-color: transparent;
    transform: scale(1.05);
}

/* Enhanced plan card styles */
.plan-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.plan-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card-enhanced {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: rgba(28, 31, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    position: relative;
    z-index: 1;
}

.plan-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

.plan-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 149, 244, 0.1) 0%, rgba(32, 191, 108, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.plan-card-enhanced:hover::before {
    opacity: 1;
}

.plan-card-enhanced .card-header {
    background: transparent;
    border: none;
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.plan-card-enhanced .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.plan-card-enhanced:hover .card-icon {
    background: rgba(1, 149, 244, 0.2);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(1, 149, 244, 0.3);
}

.plan-card-enhanced .card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.plan-card-enhanced .plan-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.plan-card-enhanced .price-tag {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(1, 149, 244, 0.1);
    border-radius: 10px;
    display: inline-block;
    min-width: 180px;
}

.plan-card-enhanced .price-tag h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.plan-card-enhanced .price-tag small {
    font-size: 1rem;
    color: var(--light);
}

.plan-card-enhanced .plan-desc {
    color: var(--light);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: -0.04rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.6;
}

.plan-card-enhanced .plan-features {
    padding: 0 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-card-enhanced .plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.plan-card-enhanced .plan-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.plan-card-enhanced .plan-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.plan-card-enhanced .plan-features li:hover {
    background: rgba(1, 149, 244, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.plan-card-enhanced .plan-features .feature-icon {
    min-width: 30px;
    margin-right: 15px;
    color: var(--blue);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card-enhanced .plan-features .feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--blue);
    transition: all 0.2s ease;
}

.plan-card-enhanced .plan-features li:hover .feature-icon svg {
    fill: var(--white);
    transform: scale(1.1);
}

.plan-card-enhanced .plan-features strong {
    color: var(--white);
    font-weight: 600;
}

.plan-card-enhanced .plan-features div:last-child {
    flex-grow: 1;
}

.plan-card-enhanced .card-footer {
    padding: 1.5rem 1.5rem 2rem;
    text-align: center;
}

.plan-card-enhanced .btn-order {
    background-color: var(--blue);
    border: 1px solid var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 30px;
    display: inline-block;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: calc(100% - 3rem);
    max-width: 200px;
    margin: 0 auto;
}

.plan-card-enhanced .btn-order:hover {
    background-color: transparent;
    transform: scale(1.05);
    color: var(--white);
}

@media (max-width: 992px) {
    .plans {
        padding: 3rem 0;
    }
    
    .plans .title h4 {
        font-size: 2rem;
    }
    
    .plan-card-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .plan-card-enhanced .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .plan-card-enhanced .plan-title {
        font-size: 1.5rem;
    }
    
    .plan-card-enhanced .price-tag h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .plans {
        padding: 2rem 0;
    }
    
    .plans .title h4 {
        font-size: 1.8rem;
    }
    
    .plans .title p {
        font-size: 1rem;
    }
    
    .plan-card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card-enhanced {
        border-radius: 12px;
    }
    
    .plan-card-enhanced .card-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .plan-card-enhanced .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .plan-card-enhanced .plan-title {
        font-size: 1.3rem;
    }
    
    .plan-card-enhanced .price-tag h2 {
        font-size: 1.5rem;
    }
    
    .plan-card-enhanced .plan-desc {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .plan-card-enhanced .plan-features {
        padding: 0 1rem;
    }
    
    .plan-card-enhanced .plan-features li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
    
    .plan-card-enhanced .card-footer {
        padding: 1rem 1rem 1.5rem;
    }
    
    .plan-card-enhanced .btn-order {
        font-size: 1rem;
        padding: 10px 20px;
        max-width: none;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 576px) {
    .plans .container {
        padding: 0 15px;
    }
    
    .plans .title {
        padding: 0 15px;
    }
    
    .plans .title h4 {
        font-size: 1.5rem;
    }
    
    .plan-card-enhanced .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .plan-card-enhanced .plan-title {
        font-size: 1.2rem;
    }
    
    .plan-card-enhanced .price-tag h2 {
        font-size: 1.3rem;
    }
    
    .plan-card-enhanced .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .plan-card-enhanced .plan-features li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plan-card-enhanced .plan-features .feature-icon {
        margin-right: 0;
    }
}

/* Accessibility improvements */
.plan-card-enhanced:focus-within {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.plan-card-enhanced .btn-order:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.plan-card-enhanced .plan-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* Ensure sufficient contrast for accessibility */
}

.plan-card-enhanced .price-tag h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* Ensure sufficient contrast for accessibility */
}

.plan-card-enhanced .plan-desc {
    color: var(--light);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: -0.04rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.6;
    /* Improved readability */
}

.plan-card-enhanced .plan-features strong {
    color: var(--white);
    font-weight: 600;
    /* Ensure sufficient contrast for accessibility */
}

.plan-card-enhanced .feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--blue);
    transition: all 0.2s ease;
    /* Ensure icons are visible and understandable */
}

.plan-card-enhanced .btn-order {
    background-color: var(--blue);
    border: 1px solid var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 30px;
    display: inline-block;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: calc(100% - 3rem);
    max-width: 200px;
    margin: 0 auto;
    /* Ensure button is clearly identifiable and clickable */
}

/* Focus indicators for keyboard navigation */
.plan-card-enhanced a:focus,
.plan-card-enhanced button:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.plan-card-enhanced .card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    /* Ensure images are descriptive and visible */
}

/* ARIA attributes for screen readers */
.plan-card-enhanced .price-tag small {
    font-size: 1rem;
    color: var(--light);
    /* Visually hidden but available to screen readers */
}

.plan-card-enhanced .plan-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    /* Ensure list items are clearly defined */
}

/* Feature animation */
.plan-card-enhanced .plan-features li {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for list items */
.plan-card-enhanced .plan-features li:nth-child(1) { animation-delay: 0.1s; }
.plan-card-enhanced .plan-features li:nth-child(2) { animation-delay: 0.2s; }
.plan-card-enhanced .plan-features li:nth-child(3) { animation-delay: 0.3s; }
.plan-card-enhanced .plan-features li:nth-child(4) { animation-delay: 0.4s; }

