.fc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    font-family: var(--fc-font-family, inherit);
}

.fc-modal.is-open {
    display: block;
}

.fc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.fc-modal__box {
    position: relative;
    width: min(92vw, 520px);
    max-height: 90vh;
    overflow-y: auto;
    margin: 8vh auto;
    padding: 28px;
    border-radius: 22px;
    background: var(--fc-secondary, #ffffff);
    color: var(--fc-text, #111827);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Simple floating X close button */
.fc-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 5;
    color: var(--fc-text, #111827);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.fc-modal__close:hover {
    color: var(--fc-primary, #16a34a);
}

.fc-modal__header {
    margin-bottom: 22px;
    padding-right: 42px;
}

.fc-modal__header h2 {
    margin: 0 0 8px;
    color: var(--fc-text, #111827);
    font-size: 28px;
    line-height: 1.15;
}

.fc-contact-list {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.fc-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 16px;
    color: var(--fc-text, #111827);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
}

.fc-contact-card:hover {
    border-color: var(--fc-primary, #16a34a);
    background: rgba(255, 255, 255, 0.9);
    color: var(--fc-text, #111827);
}

.fc-contact-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--fc-primary, #16a34a);
    font-size: 20px;
}

.fc-contact-card strong {
    display: block;
    color: var(--fc-text, #111827);
    font-size: 15px;
}

.fc-contact-card small {
    display: block;
    margin-top: 3px;
    color: var(--fc-text, #111827);
    opacity: 0.7;
    font-size: 13px;
}

.fc-contact-info {
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--fc-text, #111827);
}

.fc-contact-info p {
    margin: 0 0 12px;
    color: var(--fc-text, #111827);
    opacity: 0.85;
}

.fc-contact-info p:last-child {
    margin-bottom: 0;
}

.fc-contact-info strong {
    color: var(--fc-text, #111827);
    opacity: 1;
}

.fc-shortcode-button,
.fast-contact-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fc-shortcode-button {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--fc-primary, #16a34a);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.fc-shortcode-button:hover {
    opacity: 0.9;
    color: #ffffff;
}

.fast-contact-menu-item > .fast-contact-menu-link {
    font-weight: 700;
}

body.fc-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .fc-modal__box {
        margin: 4vh auto;
        padding: 22px;
        border-radius: 18px;
    }

    .fc-modal__header h2 {
        font-size: 24px;
    }

    .fc-modal__close {
        top: 10px;
        right: 14px;
        font-size: 32px;
    }
}