/* ─────────────────────────────────────────────
   Contact Departments — Form Modal
   ───────────────────────────────────────────── */

/* ── Trigger button ──────────────────────────────────────────────────────── */

.contact-departments .cd-form-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
}

.contact-departments .cd-form-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Overlay — hidden by default ────────────────────────────────────────── */

.cd-modal-overlay[data-open="false"] {
    display: none;
}

.cd-modal-overlay[data-open="true"] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Backdrop ────────────────────────────────────────────────────────────── */

.cd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* ── Dialog ──────────────────────────────────────────────────────────────── */

.cd-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Close button ────────────────────────────────────────────────────────── */

.cd-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-morton-blue, #001489);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 2;
}

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

.cd-modal-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}
