/* ========================================
   KOPERASI DESA MERAH PUTIH - MEMBERSHIP STYLE
   File: assets/css/keanggotaan.css
   Deskripsi: Styling khusus untuk halaman Keanggotaan
   ======================================== */

/* --- 1. PAGE HEADER EXTENSIONS --- */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    margin-bottom: 0;
    position: relative;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- 2. BENEFITS SECTION --- */
.benefits-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.benefit-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.benefit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--light-gray);
    transition: background 0.3s ease;
}

.benefit-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.benefit-box:hover::before {
    background: var(--primary-red);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(220, 20, 60, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-box:hover .benefit-icon {
    background: var(--primary-red);
    transform: rotateY(180deg);
}

.benefit-icon i {
    font-size: 2.2rem;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

.benefit-box:hover .benefit-icon i {
    color: var(--white);
}

.benefit-box h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.25rem;
}

.benefit-box p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- 3. MEMBERSHIP TYPES --- */
.membership-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    align-items: center;
    /* Center vertically if heights differ */
}

.membership-type-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.membership-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.membership-type-card.featured {
    transform: scale(1.05);
    /* Make it stand out */
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.15);
    border: 2px solid var(--primary-red);
    z-index: 2;
}

.membership-type-card.featured:hover {
    transform: scale(1.08);
    /* Higher hover effect */
}

.featured-badge {
    position: absolute;
    top: 30px;
    right: -30px;
    background: var(--warning);
    color: var(--dark);
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.membership-header {
    background: #f8f9fa;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px dashed #ddd;
    position: relative;
}

.membership-type-card.featured .membership-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    border-bottom: none;
}

.membership-header h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: inherit;
}

.membership-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
    margin-right: 5px;
}

.membership-price .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.membership-price .period {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

.membership-price .special {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.membership-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.membership-body>p {
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
    color: #666;
}

.membership-features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
    /* Push button down */
}

.membership-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray);
}

.membership-features li:last-child {
    border-bottom: none;
}

.membership-features li i {
    color: var(--success);
    margin-top: 4px;
    font-size: 1rem;
}

/* --- 4. PROCESS / TIMELINE --- */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 50px 0 20px;
    gap: 20px;
}

/* Connecting Line */
.process-timeline::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    min-height: 2.4em;
    /* Align text */
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* --- 5. REGISTRATION LAYOUT --- */
.registration-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Info */
.registration-info {
    position: sticky;
    top: 100px;
}

.registration-info h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

.info-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-red);
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.requirement-list,
.document-list {
    list-style: none;
}

.requirement-list li,
.document-list li {
    padding: 8px 0;
    color: var(--gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-list li i,
.document-list li i {
    color: var(--primary-red);
    font-size: 1rem;
    width: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--dark-gray);
    width: 30px;
    text-align: center;
}

.download-section {
    background: var(--dark);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.download-section h3 {
    color: var(--white);
}

.download-section p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Main Form */
.registration-form {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.registration-form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-red);
}

.form-section {
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
}

.form-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #eee;
}

.form-section:hover::before {
    background: var(--primary-red);
    /* Active indicator */
}

.form-section h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--dark);
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.radio-label input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
}

.radio-text strong {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-red);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray);
}

.checkbox-label input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* --- 6. TESTIMONIALS --- */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    position: relative;
}

.testimonial-card::after {
    content: '\201D';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(220, 20, 60, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--dark);
}

.author-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #aaa;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .registration-container {
        grid-template-columns: 1fr;
        /* Stack sidebar on top/bottom */
    }

    .registration-info {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .download-section {
        grid-column: span 2;
    }

    .benefits-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .process-timeline {
        flex-direction: column;
        gap: 0;
        margin-left: 20px;
        /* Space for connecting line */
        padding-left: 30px;
    }

    /* Vertical Line for Mobile */
    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 3px;
        height: auto;
    }

    .process-step {
        text-align: left;
        padding-left: 20px;
        margin-bottom: 40px;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .step-number {
        transform: scale(0.8);
        margin: 0;
        /* Clear auto margins */
        flex-shrink: 0;
        margin-left: -65px;
        /* Pull back to overlap line */
        background: var(--white);
        /* Ensure cover line */
    }

    .process-step:hover .step-number {
        transform: scale(0.9);
    }

    .process-step h3 {
        margin-bottom: 5px;
        min-height: auto;
    }

    .benefits-showcase {
        grid-template-columns: 1fr;
    }

    .registration-info {
        grid-template-columns: 1fr;
    }

    .download-section {
        grid-column: span 1;
    }

    .registration-form {
        padding: 30px 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* --- 7. FAQ SECTION --- */
/* Reuse existing FAQ styles from knowledge page where possible, or define specific overrides here */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background: var(--white);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #fafafa;
    color: var(--primary-red);
}

.faq-item.active .faq-question {
    color: var(--primary-red);
    background: #fafafa;
}

.faq-question i {
    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.3s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height */
    padding-bottom: 25px;
    /* Add padding when open */
    border-top: 1px dashed #eee;
}

.faq-answer p {
    padding: 0 25px;
    padding-top: 15px;
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 576px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .membership-types {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .registration-form {
        padding: 20px 15px;
    }

    .radio-label,
    .checkbox-label {
        font-size: 0.9rem;
    }

    .benefit-box {
        padding: 30px 20px;
    }
}

/* --- 8. DEVELOPMENT NOTICE --- */
.form-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-notice i {
    font-size: 1.8rem;
    color: #856404;
}

.form-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-disabled {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    filter: grayscale(0.5);
}