/* Helpful Contacts OTP Plugin Styles */

/* Blur effect for unverified contact details */
.hcop-blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    display: inline-block;
    background: rgba(200, 200, 200, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.hcop-verify-link {
    color: #00b1ab;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

.hcop-verify-link:hover {
    color: #008a85;
}

/* Verification Modal Styles */
.hcop-verification-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.hcop-verification-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hcop-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hcop-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.hcop-modal-close:hover,
.hcop-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.hcop-modal-header {
    margin-bottom: 20px;
}

.hcop-modal-header h2 {
    color: #00b1ab;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.hcop-modal-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.hcop-verification-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.hcop-tab {
    padding: 12px 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    position: relative;
    margin-right: 10px;
}

.hcop-tab.active {
    color: #00b1ab;
    font-weight: bold;
}

.hcop-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00b1ab;
}

.hcop-tab-content {
    display: none;
}

.hcop-tab-content.active {
    display: block;
}

.hcop-form-group {
    margin-bottom: 20px;
}

.hcop-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.hcop-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.hcop-form-group input:focus {
    outline: none;
    border-color: #00b1ab;
    box-shadow: 0 0 0 2px rgba(0, 177, 171, 0.1);
}

.hcop-form-group input[type="password"] {
    font-family: Arial, sans-serif; /* Hide password dots on some browsers */
    letter-spacing: 2px;
}

.hcop-login-section {
    margin-top: 10px;
}

.hcop-btn {
    width: 100%;
    padding: 12px;
    background-color: #00b1ab;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hcop-btn:hover {
    background-color: #008a85;
}

.hcop-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hcop-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.hcop-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hcop-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hcop-login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.hcop-login-link a {
    color: #00b1ab;
    text-decoration: none;
    font-weight: bold;
}

.hcop-login-link a:hover {
    text-decoration: underline;
}

/* Overlay blur for entire contact section when not verified */
.hcop-overlay-blur .helpful_contacts_box,
.hcop-overlay-blur .helpful_filter_people_popup {
    position: relative;
}

.hcop-overlay-blur .helpful_contacts_box::after,
.hcop-overlay-blur .helpful_filter_people_popup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    z-index: 1;
    cursor: pointer;
}

.hcop-overlay-blur .helpful_contacts_box::before,
.hcop-overlay-blur .helpful_filter_people_popup::before {
    content: 'Click to verify and view contact details';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: #00b1ab;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Full Section Blur Overlay */
.featured-resources-section.resources-section {
    position: relative;
    transition: filter 0.3s ease;
}

.featured-resources-section.resources-section.hcop-section-blurred {
    pointer-events: none;
    user-select: none;
    overflow: visible; /* Changed to visible so overlay is not clipped */
}

.featured-resources-section.resources-section.hcop-section-blurred::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 998;
    backdrop-filter: blur(3px);
}

.featured-resources-section.resources-section.hcop-section-blurred .container {
    position: relative;
    z-index: 997;
    filter: blur(8px);
    pointer-events: none;
}

/* Ensure overlay is never blurred */
.featured-resources-section.resources-section.hcop-section-blurred .hcop-section-overlay {
    filter: none !important;
    pointer-events: auto !important;
}


.hcop-section-overlay h3 {
    color: #00b1ab;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.hcop-section-overlay p {
    color: #666;
    font-size: 16px;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.hcop-section-overlay .hcop-verify-btn {
    background-color: #00b1ab;
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
}

.hcop-section-overlay .hcop-verify-btn:hover {
    background-color: #008a85;
    color: white;
    text-decoration: none;
}

.hcop-section-overlay .hcop-login-option {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.hcop-section-overlay .hcop-login-option a {
    color: #00b1ab;
    text-decoration: none;
    font-weight: bold;
}

.hcop-section-overlay .hcop-login-option a:hover {
    text-decoration: underline;
}

/* Additional styling for blurred content */
.featured-resources-section.resources-section.hcop-section-blurred .container {
    opacity: 0.4;
}

.featured-resources-section.resources-section.hcop-section-blurred .container * {
    pointer-events: none !important;
}

/* Overlay - Always at top, never blurred */
.hcop-section-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #fff;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 90%;
    pointer-events: auto;
    filter: none !important; /* Ensure overlay is never blurred */
    backdrop-filter: none !important; /* Ensure no backdrop blur on overlay */
    -webkit-filter: none !important; /* Safari support */
}

/* When section is blurred, ensure overlay stays at top and is never blurred */
.featured-resources-section.resources-section.hcop-section-blurred .hcop-section-overlay {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hcop-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .hcop-verification-tabs {
        flex-direction: column;
    }
    
    .hcop-tab {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .hcop-section-overlay {
        padding: 30px 25px;
        top: 10px !important;
        max-width: 95%;
    }
    
    .hcop-section-overlay h3 {
        font-size: 20px;
    }
    
    .hcop-section-overlay p {
        font-size: 14px;
    }
}

