/* ===================================
   Membership Page Modern Design
   =================================== */

/* Page Container */
.jrnl-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 0;
    min-height: 100vh;
}

/* Main Title */
.jrnl_body_main_title {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.jrnl_body_main_title h3 {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.jrnl_body_main_title h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 2px;
}

/* Join Us Intro Section */
.join_us_intro {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.join_us_intro h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #10b981;
}

.join_us_intro .arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join_us_intro .arrow-list li {
    position: relative;
    padding: 15px 15px 15px 35px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.join_us_intro .arrow-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.join_us_intro .arrow-list li:before {
    content: '→';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

.join_us_intro .arrow-list li strong {
    color: #047857;
    font-weight: 600;
}

/* Membership Form Section */
.membership_join_us_form {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.membership_join_us_form .well {
    background: #ffffff;
    border: none;
    box-shadow: none;
    padding: 40px;
    margin: 0;
}

/* Form Title */
.su-man-smt {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #10b981;
    position: relative;
}

.su-man-smt:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #047857;
}

/* Flash Messages */
.alert.flash-msg {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    font-weight: 500;
}

/* Form Rows */
.membership_join_us_form .row {
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
}

.membership_join_us_form .form-group {
    margin-bottom: 25px;
    padding: 0 15px;
}

/* Form Labels */
.membership_join_us_form label,
.membership_join_us_form .control-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.membership_join_us_form label .red,
.membership_join_us_form .control-label .red {
    color: #e74c3c;
    margin-left: 3px;
}

/* Form Controls */
.membership_join_us_form .form-control,
.membership_join_us_form .form-cus {
    height: 45px;
    min-height: 45px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.membership_join_us_form textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding-top: 12px;
}

.membership_join_us_form .form-control:focus,
.membership_join_us_form .form-cus:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.membership_join_us_form .form-control::placeholder {
    color: #95a5a6;
}

/* Select Dropdown */
.membership_join_us_form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Captcha Section */
.captcha-wrapper {
    position: relative;
}

.captcha-box {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 15px;
}

.captcha-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-right: 15px;
}

.captcha-code {
    background: #ffffff;
    color: #2c3e50 !important;
    font-size: 24px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 6px;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    min-width: 120px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.refresh-btn {
    background: #ffffff;
    color: #10b981;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.refresh-btn:hover {
    background: #f8f9fa;
    transform: rotate(180deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.captcha-wrapper .control-label {
    margin-top: 10px;
}

/* Error Messages */
.text-danger_form_error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Submit Button */
.membership_join_us_form .btn-info {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border: none;
    padding: 12px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
}

.membership_join_us_form .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.membership_join_us_form .text-center {
    text-align: center;
    margin-top: 30px;
}

/* How to Join Section */
.how_to_join {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.how_to_join h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #10b981;
}

.how_to_join .arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how_to_join .arrow-list li {
    position: relative;
    padding: 15px 15px 15px 35px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #047857;
    transition: all 0.3s ease;
}

.how_to_join .arrow-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.2);
}

.how_to_join .arrow-list li:before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #047857;
    font-size: 18px;
    font-weight: bold;
}

.how_to_join .arrow-list li strong {
    color: #10b981;
    font-weight: 600;
}

/* Column Width Fixes */
.col-xs-6 {
    width: 50%;
    float: left;
}

.col-xs-12 {
    width: 100%;
    float: left;
}

.col-lg-6,
.col-md-6,
.col-sm-6 {
    width: 50%;
}

.col-lg-12,
.col-md-12,
.col-sm-12 {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
    .jrnl_body_main_title h3 {
        font-size: 36px;
    }

    .join_us_intro h2,
    .how_to_join h2 {
        font-size: 24px;
    }

    .su-man-smt {
        font-size: 28px;
    }

    .membership_join_us_form .well {
        padding: 30px 20px;
    }

    .col-lg-6,
    .col-md-6 {
        width: 100%;
    }

    .membership_join_us_form .form-group {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .jrnl_body_main_title h3 {
        font-size: 28px;
    }

    .join_us_intro h2,
    .how_to_join h2 {
        font-size: 20px;
    }

    .su-man-smt {
        font-size: 24px;
    }

    .join_us_intro,
    .membership_join_us_form .well,
    .how_to_join {
        padding: 20px;
    }

    .col-sm-6 {
        width: 100%;
    }

    .captcha-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .refresh-btn {
        margin-left: 0;
        width: 100%;
    }

    .captcha-code {
        width: 100%;
    }

    .membership_join_us_form .btn-info {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .jrnl_body_main_title h3 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .join_us_intro,
    .how_to_join {
        padding: 15px;
    }

    .membership_join_us_form .well {
        padding: 20px 15px;
    }

    .col-xs-6 {
        width: 100%;
        float: none;
    }

    .membership_join_us_form .row {
        margin-left: 0;
        margin-right: 0;
    }

    .membership_join_us_form .form-group {
        padding: 0;
        width: 100% !important;
    }

    .join_us_intro .arrow-list li,
    .how_to_join .arrow-list li {
        padding: 12px 12px 12px 30px;
        font-size: 14px;
    }
}

/* Box Sizing Fix */
* {
    box-sizing: border-box;
}

/* Form Horizontal Fixes */
.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

.form-horizontal .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Additional Flexbox Support */
.membership_join_us_form form {
    width: 100%;
}

.membership_join_us_form .row {
    display: flex;
    flex-wrap: wrap;
}

/* Ensure proper alignment */
.membership_join_us_form input[type="text"],
.membership_join_us_form input[type="email"],
.membership_join_us_form input[type="tel"],
.membership_join_us_form select,
.membership_join_us_form textarea {
    display: block;
    width: 100%;
}
