/* ===================================
   Membership Page - Additional Styles
   =================================== */

/* Membership Page Header */
.membership-header {
    background: linear-gradient(135deg, rgba(7, 1, 4, 0.9), rgba(0, 0, 0, 0.8)),
                url('../images/membership-header.jpg') center/cover;
}

/* Membership Intro */
.membership-intro {
    padding: 6rem 0;
    background: var(--midnight);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.benefits-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-box {
    background: rgba(205, 153, 27, 0.05);
    border: 1px solid rgba(205, 153, 27, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-box:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(205, 153, 27, 0.3);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.benefit-box:hover .benefit-icon {
    transform: rotateY(360deg);
}

.benefit-box h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.benefit-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(7, 1, 4, 0.98), rgba(0, 0, 0, 0.98));
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

.save-badge {
    background: linear-gradient(135deg, var(--gold), var(--red));
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(205, 153, 27, 0.3);
    transition: var(--transition);
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--gold), var(--red));
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(205, 153, 27, 0.05);
    border: 1px solid rgba(205, 153, 27, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(205, 153, 27, 0.3);
}

.pricing-card.featured {
    border: 2px solid var(--gold);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--red));
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(205, 153, 27, 0.2);
}

.currency {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.plan-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.8rem 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.plan-features li i {
    color: var(--gold);
    font-size: 1.1rem;
}

.plan-features li.disabled {
    color: rgba(255, 255, 255, 0.4);
}

.plan-features li.disabled i {
    color: rgba(255, 255, 255, 0.3);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* Benefits Detail Section */
.benefits-detail-section {
    padding: 6rem 0;
    background: var(--midnight);
}

.benefits-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background: rgba(205, 153, 27, 0.05);
    border: 1px solid rgba(205, 153, 27, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(205, 153, 27, 0.2);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--red));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.detail-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Member Testimonials */
.member-testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(7, 1, 4, 0.98), rgba(0, 0, 0, 0.98));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(205, 153, 27, 0.05);
    border: 1px solid rgba(205, 153, 27, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(205, 153, 27, 0.2);
}

.stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.stars i {
    color: var(--gold);
    font-size: 1.2rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.testimonial-author h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--midnight);
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: rgba(205, 153, 27, 0.05);
    border: 1px solid rgba(205, 153, 27, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--gold);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question i {
    color: var(--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, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Membership Modal */
.membership-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.membership-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--midnight);
    border: 1px solid rgba(205, 153, 27, 0.3);
    border-radius: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(205, 153, 27, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gold);
    transform: rotate(90deg);
}

.modal-content {
    padding: 3rem;
}

.modal-content h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.membership-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(205, 153, 27, 0.3);
    border-radius: 10px;
    background: rgba(7, 1, 4, 0.5);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(205, 153, 27, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--gold);
}

.checkbox-group label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--gold);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .membership-intro,
    .pricing-section,
    .benefits-detail-section,
    .member-testimonials,
    .faq-section {
        padding: 3rem 0;
    }
    
    .benefits-showcase {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-detail-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .amount {
        font-size: 2.5rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .billing-toggle {
        flex-direction: column;
        gap: 0.8rem;
    }
}