.modal,
.twp-other-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100%;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content,
.tw-expert-modal-content {
    background-color: #fff;
    margin: 20% auto;
    padding: 12px 20px;
    border-radius: 10px;
    width: 90% !important;
    max-width: 600px;
    position: relative;
}

.modal-content>h2 {
    font-size: 18px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

label {
    display: block;
    margin-top: 10px;
}

input,
textarea {
    width: 100%;
    padding: 4px 8px !important;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn {
    background-color: #5F15D4 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 8px;
    width: 150px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn:hover {
    background-color: #5F15D4 !important;
    color: #FFF !important;
    text-decoration: underline;
}

.btn:disabled {
    background-color: #5F15D4 !important;
    color: #FFF;
}

.tw-name-container {
    display: flex;
    flex-direction: column;
    /* width: 30%; */
}


.twp-Expmodal,
.tw-expertise-modal-form,
.twi-modal,
.twc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.twp-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
}


.twp-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 0;
    color: #000;
}

.twp-close:hover,
.twp-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#experienceForm {
    width: 100%;
}

.tw-experience .experience-group {
    margin-bottom: 15px;
}

.tw-experience .experience-group label {
    display: block;
    margin-bottom: 5px;
}

.tw-experience .experience-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 12px;
}

#addExperience {
    display: inline-block;
    margin: 10px 0;
    background-color: #d41588;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.twe-checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.twe-checkbox input {
    width: auto;
}

.twe-btn-container {
    display: flex;
    gap: 1rem;
    flex-direction: column-reverse;
    align-items: center;
}

.twe-btn {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.twe-btn {
    background-color: #5F15D4;
    align-items: center;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 12px;

}

.twe-btn button {
    font-size: 14px;
    width: 100%;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.twe-btn button:hover {
    background-color: transparent;
}

.twp-premium-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.twp-premium-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    height: 400px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.twp-premium-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
}

.twp-premium-close:hover,
.twp-premium-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.tw-premium p {
    margin-bottom: 15px;
}

.tw-premium a {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.tw-premium a:hover {
    text-decoration: underline
}

.tw-try-premium-banner {
    background: url("../images/premium-bg.png");
    width: 100%;
    height: 100%;
    background-size: cover;
    /* background-position: right center; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tw-try-banner-text {
    position: absolute;
    padding: 2rem;
    bottom: 5%;
    left: 20px;
    display: flex;
    flex-direction: column;
}

.tw-try-banner-text p {
    font-size: 1.5rem;
    max-width: 400px;
    font-weight: 400;
    color: #292929;
    margin: 0 !important;
}

.tw-try-premium-banner a {
    background-color: #5F15D4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: fit-content;
    font-size: 14px;
    padding: 10px 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.tw-try-premium-banner a:hover {
    background-color: #5F15D4;
    color: #FFF;
    text-decoration: underline;
}

.twp-bio-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.twp-bio-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
}

.twp-bio-modal-content h3 {
    font-size: 18px;
}

.twp-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.twp-close:hover,
.twp-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.twp-bio-group {
    margin-bottom: 15px;
}

.twp-bio-group label {
    display: block;
    margin-bottom: 5px;
}

.twp-bio-group input,
.twp-bio-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.twc-profile-container {
    margin-top: 50px;
}

.twc-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.twc-profile-img:hover {
    opacity: 0.8;
}


.twc-modal-content {
    background: #FFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 90%;
    margin: 0 auto;
    height: fit-content;
    max-width: 600px;
    position: relative;
    display: block;
}

.twc-modal-content img {
    width: 90%;
    height: 250px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.twc-modal-content h2 {
    font-size: 18px;
    text-align: left;
}

.twc-openModal {
    all: unset;
    position: absolute;
    z-index: 10;
    right: 10px;
    top: 20px;
    background-color: #FFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.twc-openModal>i {
    color: #5F15D4;
}

.twc-openModal:hover {
    background-color: #FFF;
}

.twc-modal-content button {
    margin: 10px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.twc-close-btn {
    position: absolute;
    right: 15px;
    font-size: 36px;
    cursor: pointer;
    color: #000;
}

.twc-edit-btn {
    background: #5F15D4;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twc-delete-btn {
    background: #e74c3c;
    color: white;
}

.twi-modal-content {
    background: #FFF;
    padding: 20px;
    border-radius: 10px;
    margin: 20% auto;
    text-align: center;
    color: #007BFF;
    width: 90%;
    height: fit-content;
    max-width: 600px;
    position: relative;
}

@media screen and (min-width: 1000px) {

    .modal-content,
    .twi-modal-content {
        margin-top: 5%;
    }

    .twe-btn-container {
        flex-direction: row;
    }

    .twe-btn {
        width: auto;
    }
}

.twi-modal-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.twi-modal-content button {
    margin: 10px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.twi-modal-content h2 {
    text-align: left;
    font-size: 18px;
}

.twi-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 36px;
    cursor: pointer;
    color: #000;
}

.twi-edit-btn {
    background: #5F15D4;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Background */
.twcat-modal {
    display: none;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-top: 10%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.hide {
    display: none;
}

/* Hide Modal */
.twcat-hidden {
    display: flex;
}

/* Modal Content */
.twcat-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    position: relative;
}

/* Close Button */
.twcat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 36px;
    cursor: pointer;
}

/* Buttons */
.twcat-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
}

.twcat-btn:hover {
    background: #005f8d;
}

.twcat-submit {
    background: #28a745;
}

.twcat-submit:hover {
    background: #218838;
}

/* Input Fields */
#twcat-category-fields input {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.image-uploading {
    display: none;
    color: #5F15D4;
    gap: 10px;
}

.cv-drop-area {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border: 2px dashed #5F15D4;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.cv-drop-area:hover {
    background-color: #f4f4f4;
}

.cv-drop-area.dragover {
    background-color: #e0e0e0;
    border-color: #5F15D4 !important;
}

.cv-drop-area p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.cv-drop-area .file-name {
    font-weight: bold;
    color: #5F15D4;
}

#tw-submit-cv-btn {
    margin-top: 8px;
    background-color: #5F15D4;
    color: #FFF;
}

#cv-upload-status {
    margin-top: 10px;
    font-size: 14px;
    color: #d9534f;
}

.hidden-input {
    display: none !important;
}

.selected-skills {
    margin-bottom: 10px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
}

.selected-skill {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 15px;
}

.remove-skill {
    margin-left: 5px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

#results div {
    padding: 6px;
    cursor: pointer;
}

#results div:hover {
    background-color: #eaeaea;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.selected-item {
    background: #0073e6;
    color: white;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.remove-niche {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #ffcccb;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
}

.results-list li {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.results-list li:hover {
    background-color: #f0f0f0;
}

.show {
    display: flex;
}

.tw-expertise-modal,
.openOtherProfilesModal,
.twp-openBioModal,
.twp-openExpModal {
    position: absolute;
    right: 20px;
    top: 20px;
}

.tw-spinner {
    width: 20px;
    display: none;
    height: 20px;
    border: 4px solid rgba(154, 151, 151, 0.8);
    /* light gray */
    border-top: 4px solid #FFF;
    /* blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.show {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Feedback Modal Styling */
.feedback-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.feedback-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 95%;
    margin: 2% auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;/
}

.feedback-modal-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.feedback-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-modal-content h2 {
    text-align: center;
    line-height: 1.2;
    font-size: 3rem;
    margin: 15px 0 !important;
    color: #5E15D5;
}

.feedback-modal-content h3 {
    font-size: 2rem;
    margin: 15px 0 !important;
    color: #222;
}

.feedback-modal-content p {
    font-size: 18px;
    margin-bottom: 14px;
}
.feedback-link {
    width: 100%;
    display: flex;
    justify-content: center;
}
.feedback-link-anc {
    color: #5E15D5 !important;
    cursor: pointer;
    font-weight: 600;
    margin-top: -10px !important;
}
.feedback-btn {
    padding: 10px 20px;
    background-color: #5E15D5;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}
.feedback-btn:hover {
    color: white;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 15px;
    font-size: 2rem;
    color: #6c6b6b;
    cursor: pointer;
}