/* Vote Packages Page Styles */

/* Header Section */
.packages-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.packages-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern-bg.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.package-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.package-popular {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #f44336;
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.875rem;
    font-weight: 500;
}

.package-icon {
    font-size: 3rem;
    color: #1a237e;
    margin-bottom: 1.5rem;
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.price-currency {
    font-size: 1rem;
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.package-features {
    margin: 2rem 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #666;
}

.feature-icon {
    color: #4caf50;
}

/* Purchase Button */
.purchase-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #1a237e;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.purchase-btn:hover {
    background: #283593;
    transform: translateY(-2px);
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.payment-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.payment-icon {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .packages-header {
        padding: 3rem 0;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    .payment-icons {
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    animation: checkmark 0.5s ease-in-out forwards;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
