/**
 * Template Pages CSS - Consolidated styles for all page templates
 * Contact Page, Pricing Page, and other custom templates
 */

/* ===================================
   CONTACT PAGE
=================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: rgba(250, 245, 255, 0.8);
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content a,
.info-content p {
    color: rgba(250, 245, 255, 0.8);
    transition: var(--transition-fast);
}

.info-content a:hover {
    color: var(--color-primary);
}

.social-links-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(240, 171, 252, 0.2);
}

.social-links-contact h4 {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: var(--transition-normal);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.zalo {
    background: #0068ff;
}

.social-icon.telegram {
    background: #0088cc;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper {
    background: rgba(45, 27, 78, 0.6);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(240, 171, 252, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #faf5ff;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition-fast);
    background: rgba(26, 11, 46, 0.5);
    color: #faf5ff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   PRICING PAGE
=================================== */
.pricing-page {
    background: var(--color-bg-light);
}

.pricing-page .page-header-section {
    background: linear-gradient(135deg, #2d1b4e 0%, #7c3aed 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-page .page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(240, 171, 252, 0.3), transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.2), transparent 60%);
    pointer-events: none;
}

.pricing-page .page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(240, 171, 252, 0.6);
    background: linear-gradient(135deg, #ffffff, #f0abfc, #fae8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.pricing-page .page-description {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Advantages Section */
.advantages-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(240, 171, 252, 0.05));
    padding: 60px 0;
}

.section-padding-sm {
    padding: 40px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 40px 25px;
    background: rgba(45, 27, 78, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(240, 171, 252, 0.2);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
    border-color: var(--color-gold);
    background: rgba(45, 27, 78, 0.8);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

.advantage-item h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #faf5ff;
}

.advantage-item p {
    color: rgba(250, 245, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    background: rgba(45, 27, 78, 0.6);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(240, 171, 252, 0.2);
}

.toggle-btn {
    flex: 1;
    padding: 14px 35px;
    background: transparent;
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    color: rgba(250, 245, 255, 0.7);
}

.toggle-btn.active,
.toggle-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: linear-gradient(135deg, #a855f7, #f0abfc);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(240, 171, 252, 0.5);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.08) 50%, rgba(139, 92, 246, 0.12) 100%);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: 35px;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 171, 252, 0.08) 0%, transparent 70%);
    animation: wave 15s ease-in-out infinite;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(139, 92, 246, 0.2) 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.5);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 25px 70px rgba(124, 58, 237, 0.6);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7, #f0abfc);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(240, 171, 252, 0.6);
    white-space: nowrap;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-badge i {
    font-size: 16px;
    animation: starPulse 1.5s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.pricing-header {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
}

.pricing-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pricing-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #faf5ff;
    font-weight: 800;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.price .currency {
    font-size: 1.1rem;
    color: rgba(250, 245, 255, 0.7);
    font-weight: 600;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f0abfc, #fae8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    line-height: 1;
}

.price .period {
    font-size: 1.1rem;
    color: rgba(250, 245, 255, 0.7);
    font-weight: 600;
}

.pricing-description {
    color: rgba(250, 245, 255, 0.8);
    font-size: 1rem;
    margin-top: 15px;
    line-height: 1.6;
}

.pricing-body {
    padding: 30px;
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    font-size: 1rem;
    color: rgba(250, 245, 255, 0.8);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--color-gold);
    font-size: 20px;
    flex-shrink: 0;
}

.pricing-features li strong {
    color: #faf5ff;
    font-weight: 700;
    min-width: 90px;
}

.pricing-footer {
    padding: 0 30px 30px;
}

.pricing-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    gap: 12px;
}

.pricing-card.featured .pricing-footer .btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.5);
}

.pricing-card.featured .pricing-footer .btn:hover {
    box-shadow: 0 15px 45px rgba(124, 58, 237, 0.7);
    transform: translateY(-3px);
}

.text-success {
    color: #10b981;
    font-size: 22px;
}

.feature-divider {
    height: 1px;
    background: rgba(124, 58, 237, 0.2);
    margin: 15px 0;
    border: none;
}

.pricing-guarantee {
    text-align: center;
    margin-top: 15px;
    color: rgba(250, 245, 255, 0.7);
    font-size: 14px;
}

.pricing-guarantee i {
    color: var(--color-gold);
    margin-right: 5px;
}

.no-pricing {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-pricing i {
    font-size: 64px;
    color: rgba(250, 245, 255, 0.5);
    margin-bottom: 20px;
}

.no-pricing h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #faf5ff;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(45, 27, 78, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(240, 171, 252, 0.2);
}

.comparison-table thead {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    color: rgba(250, 245, 255, 0.9);
}

.comparison-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.15);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(45, 27, 78, 0.6);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    overflow: hidden;
    border: 1px solid rgba(240, 171, 252, 0.2);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(124, 58, 237, 0.15);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #faf5ff;
}

.faq-question i {
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: rgba(250, 245, 255, 0.8);
    line-height: 1.8;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Contact Page */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .social-links-contact {
        border-top-color: rgba(240, 171, 252, 0.2);
    }
    
    /* Pricing Page */
    .advantages-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .pricing-page .page-title {
        font-size: 2.5rem;
    }
    
    .price .amount {
        font-size: 3rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pricing-page .page-title {
        font-size: 2rem;
    }
    
    .advantage-item {
        padding: 30px 20px;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
