/* 
   MEMBERSHIP PAGE STYLES
   Description: Specific styles for membership hero, benefits, and application form.
*/

/* Hero Section */
.membership-hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--primary);
}

.membership-hero h1 {
    font-size: 48px;
    font-weight: 700;
}

.membership-hero p {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 18px;
    line-height: 28px;
}

.btn-join {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #D62828, #F05A5A);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-join:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: white;
}

/* LM Section */
.lm-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f9f1de, #ffffff);
}

.lm-img img {
    width: 100%;
    border-radius: 20px;
    transition: 0.5s;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.lm-img:hover img {
    transform: scale(1.05) rotate(1deg);
}

.lm-content h3 {
    color: #3A86C4;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Benefit Cards */
.benefit-card {
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #D62828, #F05A5A);
    opacity: 0;
    transition: 0.4s;
    z-index: 0;
}

.benefit-card:hover::before { opacity: 1; }
.benefit-card i, .benefit-card h4, .benefit-card p { position: relative; z-index: 2; }

.benefit-card i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #D62828;
    transition: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-12px);
    color: #fff;
}

.lm-content {
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-left: 6px solid #f39c12;
}

.lm-content h3 {
    color: #002d5b;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.lm-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.lm-content strong {
    color: #d35400;
    background: #fff8e1;
    padding: 2px 5px;
}

.benefit-card:hover i { color: #fff; }

/* Purpose Box */
.purpose-box {
    margin-top: 60px;
    padding: 50px;
    border-radius: 25px;
    background: linear-gradient(135deg, #3A86C4, #6FAFE0);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.purpose-box::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: #fff;
    opacity: 0.1;
    border-radius: 50%;
    bottom: -80px;
    right: -80px;
}

.purpose-box h3 { font-weight: 700; margin-bottom: 10px; }

/* Application Form */
.membership-form {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.membership-form .f-header {
    margin-bottom: 0 !important;
}

.membership-form .top-header-from {
    background: #D62828 !important;
    height: 10px;
}

.membership-form .header-bottom {
    background: #2b2d42 !important;
    border-radius: 0;
    padding: 15px 25px;
}

.membership-form .left-corner {
    background: #D62828 !important;
    width: 20px;
    height: 40px;
}

.membership-submit-btn {
    background: #D62828 !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    padding: 15px 40px !important;
}

.membership-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(214, 40, 40, 0.3) !important;
}

.membership-form-footer img {
    margin: 0 auto;
    display: block;
}

/* Form Grid & Responsive Fixes */
.from-content {
    background: #fff;
}

.from-content label {
    font-size: 15px;
    color: #333;
}

/* RESPONSIVE REFINEMENTS */
@media (max-width: 991px) {
    .membership-hero { padding: 80px 0; }
    .membership-hero h1 { font-size: 32px; }
    
    .from-content .row {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .membership-form {
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .membership-form .header-bottom {
        padding: 12px 15px;
    }
    
    .from-content {
        padding: 20px 15px !important;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .purpose-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .membership-hero h1 { font-size: 26px; }
    .membership-hero p { font-size: 16px; line-height: 24px; }
    
    .header-bottom h4 {
        font-size: 15px;
    }
    
    .custom-checkbox {
        font-size: 14px !important;
    }
    
    .checkmark {
        width: 22px !important;
        height: 22px !important;
    }

    .membership-submit-btn {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }
}
