/* Membership Page Specific Styles */

/* Hero Section */
.membership-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.membership-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.membership-hero .hero-content {
    position: relative;
    z-index: 2;
}

.membership-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.membership-hero .hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Membership Plans */
.membership-plans {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.plan-card-premium {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

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

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0.2rem;
}

.plan-price .period {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.plan-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(15deg);
}

.plan-badge-premium {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.plan-features li i {
    color: #27ae60;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.plan-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.plan-btn-popular {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.plan-btn-popular:hover {
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.plan-btn-premium {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.plan-btn-premium:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Personal Trainer Section */
.personal-trainer {
    padding: 100px 0;
    background: white;
}

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

.trainer-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #f8f9fa;
    text-align: center;
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.trainer-card-premium {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

.trainer-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.trainer-card-premium .trainer-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.trainer-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.trainer-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.trainer-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-right: 0.2rem;
}

.trainer-price .period {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.trainer-features {
    text-align: left;
    margin-bottom: 2rem;
}

.trainer-features ul {
    list-style: none;
    padding: 0;
}

.trainer-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.trainer-features li i {
    color: #27ae60;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.trainer-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trainer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.trainer-btn-premium {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.trainer-btn-premium:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.trainer-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(15deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.modal h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.selected-plan,
.selected-trainer {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.selected-plan h4,
.selected-trainer h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-answer p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trainer-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
    
    .trainer-price .amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .membership-hero {
        padding: 100px 0 60px;
    }
    
    .membership-hero .hero-title {
        font-size: 2rem;
    }
    
    .membership-plans,
    .personal-trainer,
    .faq {
        padding: 60px 0;
    }
    
    .plan-card,
    .trainer-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1rem;
    }
}