/* Custom Modal Styles */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--content-background, #fff);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

.custom-modal-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-font-color, #2c3e50);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-font-color, #6c757d);
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-modal-btn:hover {
    opacity: 1;
}

.custom-modal-body {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal-body p {
    margin: 0;
    line-height: 1.5;
    color: #495057;
}

.custom-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-modal-footer button {
    min-width: 80px;
}

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    .custom-modal-container {
        width: 95%;
        max-width: none;
    }
    
    .custom-modal-footer {
        flex-direction: column-reverse;
    }
    
    .custom-modal-footer button {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* SVG Fallback Styles */
.icon-visible {
    display: inline-block;
    width: 16px;
    height: 16px;
    opacity: 1;
    visibility: visible;
}

.fa-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.contact-icon i {
    position: relative;
}

.contact-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 16px;
    height: 16px;
}

/* Media query for mobile devices */
@media screen and (max-width: 767px) {
    .icon-visible {
        width: 24px;
        height: 24px;
    }
    
    .fa-fallback {
        margin: 0 5px;
    }
} 