/* Join Community Popup Modal */
.join-community-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.join-community-modal.active {
    display: flex;
}

.join-community-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.join-community-modal__container {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

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

.join-community-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    z-index: 1;
}

.join-community-modal__close:hover {
    color: #FDB913;
}

.join-community-modal__content {
    padding: 40px;
}

.join-community-modal__title {
    font-size: 28px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 600;
}

.join-community-modal__subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.join-community-form .form-group {
    margin-bottom: 20px;
}

.join-community-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.join-community-form input,
.join-community-form select,
.join-community-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.join-community-form input:focus,
.join-community-form select:focus,
.join-community-form textarea:focus {
    outline: none;
    border-color: #FDB913;
    box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.join-community-form__submit {
    width: 100%;
    background-color: #FDB913;
    color: #000;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
}

.join-community-form__submit:hover {
    background-color: #e5a711;
}

.join-community-form__submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-response {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.form-response.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .join-community-modal__content {
        padding: 25px;
    }
    
    .join-community-modal__title {
        font-size: 24px;
    }
}
