/* Backdrop */
.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center; /* center vertically */
    justify-content: center; /* center horizontally */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal-backdrop.visible {
    opacity: 1;
}

/* Popup panel */
.contact-modal {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 20px 28px;
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    
    /* Initial hidden state */
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.contact-modal.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Title */
.contact-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #006f63;
    font-weight: 700;
}

/* Contact rows */
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 1.15rem;
}

.contact-row svg {
    width: 22px;
    height: 22px;
    color: #006f63;
}


/* Contact action buttons container */
.contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Action buttons */
.contact-action-btn {
    flex: 1 1 48%;
    padding: 12px;
    background-color: #006f63;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

/* Secondary button (email) */
.contact-action-btn.secondary {
    background-color: #00a890;
}

.contact-action-btn,
.contact-action-btn.secondary {
    background-color: #006f63; /* dark green */
}


/* Responsive: stack buttons on small screens */
@media (max-width: 400px) {
    .contact-action-btn {
        flex: 1 1 100%;
    }
}


/* Close button */
.close-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #006f63;
    color: white;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
}
