/* Modal Overlay */
.custom-modal-bg.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.custom-modal-bg.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.custom-modal {
    width: 100% !important;
    max-width: 400px !important;
    max-height: 85vh;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    font-family: 'TT-Talent-Regular' !important;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.custom-modal-bg.modal-overlay.active .custom-modal {
    transform: scale(1);
    opacity: 1;
}

.custom-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
        padding: 24px 24px 16px;
    position: sticky;
    top: 0;
    background-color: white;
    border-radius: 16px 16px 0 0;
    z-index: 5;
    color: #1D264A;
}
.custom-modal .modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
    border: 0 none !important;
}

.custom-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

.custom-modal .modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.custom-modal .modal-content::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e2a4a;
    font-family: 'TT-Talent-Regular' !important;
    margin: 0 !important;
}

.custom-modal .close-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    background-color: #f0f2f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e7eaf4;
    transition: background-color 0.2s;
    margin: 0 !important;
}

.custom-modal .close-btn:hover {
    background-color: #d9deeb;
}

.custom-modal .support-section {
    margin-bottom: 10px;
}

.support-section:first-child {
    padding-top: 16px;
}
.support-section:last-child {
    padding-bottom: 16px;
}
.custom-modal h2 {
    font-size: 16px !important;
    color: #1D264A !important;
    margin: 0 !important;
    margin-bottom: 4px !important;
    font-family: 'TT-Talent-Medium' !important;

}

.custom-modal .email-container {
    display: flex;
    position: relative;
}

.custom-modal .email {
    font-size: 16px;
    color: #5e6580;
    cursor: pointer;
}
.custom-modal .email:hover {
    color: #1D264A;
}
.custom-modal .copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1D264A;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    position: relative;
    margin: 0 !important;
}

.custom-modal .email-container:hover .copy-btn {
    opacity: 1;
    visibility: visible;
}

.custom-modal .copy-btn:focus {
    outline: none;
    border: 0 none;
    box-shadow: none;
}

.copy-feedback {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background-color: #1D264A;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
    z-index: 1010;
    pointer-events: none;
}

.copy-feedback::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e2a4a transparent transparent transparent;
}

.copy-feedback.show {
    opacity: 1;
    visibility: visible;
}
.custom-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
        padding: 16px 24px 24px;
    border-top: 1px solid #f0f2f5;
    position: sticky;
    bottom: 0;
    background-color: white;
    border-radius: 0 0 16px 16px;
    z-index: 5;
}

.custom-modal .got-it-btn {
    background-color: #1e2a4a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-modal .got-it-btn:hover {
    background-color: #152038;
}
.cursor-pointer {
    cursor:  pointer !important;
}
@media (max-height: 600px) {
    .custom-modal {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .custom-modal .modal-header, 
    .custom-modal .modal-content, 
    .custom-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
}