/* Suicide Help Popup Modal Styles */
.suicide-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.suicide-help-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.suicide-help-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.suicide-help-header {
    position: relative;
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: flex-end;
}

.suicide-help-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.suicide-help-close:hover {
    background-color: #f5f5f5;
    color: #666;
}

.suicide-help-body {
    padding: 0 30px 30px 30px;
}

.suicide-help-heading {
    font-family: DM Serif Display;
    font-size: 28px;
    font-weight: 400;
    line-height: 42px;
    color: rgba(14, 20, 95, 1);
    padding: 0px 0px 5px;
    max-width: 830px;
    margin: auto;
    text-align: center;
}

.suicide-help-important {
    color: #FF5B2E;
}

.suicide-help-container {
    max-width: 100%;
}

.suicide-help-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.suicide-help-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.suicide-help-call {
    font-size: 18px;
    font-weight: 700;
    color: #FF5B2E;
    position: relative;
}

.suicide-help-call::before {
    content: "▶";
    color: #FF5B2E;
    font-size: 14px;
    margin-right: 10px;
    top: -1px;
    position: relative;
}

.suicide-help-phone {
    color: #0E145F;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .suicide-help-modal {
        padding: 15px;
    }
    
    .suicide-help-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .suicide-help-body {
        padding: 0 25px 30px 25px;
    }
    
    .suicide-help-heading {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .suicide-help-description {
        font-size: 15px;
    }
    
    .suicide-help-call {
        font-size: 16px;
    }
    
    .suicide-help-phone {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .suicide-help-modal {
        padding: 10px;
    }
    
    .suicide-help-body {
        padding: 0 20px 25px 20px;
    }
    
    .suicide-help-heading {
        font-size: 22px;
        margin-bottom: 20px;
        line-height: 130%;
    }
    
    .suicide-help-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .suicide-help-call {
        font-size: 15px;
    }
    
    .suicide-help-phone {
        font-size: 15px;
    }
}

/* Accessibility improvements */
.suicide-help-modal:focus-within {
    outline: none;
}

.suicide-help-close:focus {
    outline: 2px solid #FF5B2E;
    outline-offset: 2px;
}

/* Smooth scrolling for modal content */
.suicide-help-content {
    scroll-behavior: smooth;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .suicide-help-overlay {
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .suicide-help-content {
        border: 2px solid #000;
    }
    
    .suicide-help-important,
    .suicide-help-call,
    .suicide-help-phone {
        color: #000;
        background: #fff;
        border: 2px solid #000;
    }
}
