/* Pop-up Styles - SMALLER and CENTERED */
.email-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background-color: #8FBC8F;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 12px;
    width: 380px; /* Smaller fixed width */
    max-width: 90vw; /* Responsive but smaller */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { 
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1; 
    }
}

.popup-content h3 {
    color: #EA4335;
    margin-bottom: 12px;
    font-size: 20px; /* Smaller font */
}

.email-address {
    font-size: 18px; /* Smaller font */
    font-weight: bold;
    color: #1a73e8;
    margin: 12px 0;
    padding: 10px;
    background-color: #f1f8ff;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.4;
}

.email-link {
    display: inline-block;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    text-decoration: none;
    padding: 12px 24px; /* Smaller padding */
    border-radius: 6px;
    font-weight: bold;
    margin: 10px 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
    font-size: 14px; /* Smaller font */
    width: 100%; /* Full width for better mobile */
}

.email-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.4);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-color: #f1f3f4;
    color: #5f6368;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-weight: normal;
}

.close-btn:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
    transform: rotate(90deg);
}

.popup-footer {
    font-size: 12px; /* Smaller font */
    color: #666;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    line-height: 1.4;
}

.contact-info {
    margin-top: 10px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 11px; /* Smaller font */
}

/* Copy email button - smaller */
.copy-btn {
    display: inline-block;
    background-color: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px; /* Smaller font */
    width: 100%; /* Full width */
}

.copy-btn:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.email-icon {
    font-size: 36px; /* Smaller icon */
    color: #EA4335;
    margin-bottom: 8px;
}

/* Button container for better spacing */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

/* Website Content Styles */
.website-content {
    padding: 20px;
    text-align: center;
}

/* Responsive adjustments for very small screens */
@media (max-width: 350px) {
    .popup-content {
        width: 95vw;
        padding: 15px;
    }
    
    .email-address {
        font-size: 16px;
        padding: 8px;
    }
    
    .popup-content h3 {
        font-size: 18px;
    }
}