/**
 * Enrollment (Comfort Club) modal — extracted from frontend.php in Phase 3 PR 12.
 *
 * Markup is rendered by hales_enrollment_modal() (frontend.php) on the
 * wp_footer hook at priority 32. The accompanying <script> for focus
 * management remains inline alongside the markup.
 */

    .hales-em {
        position: fixed;
        inset: 0;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }
    .hales-em-overlay {
        position: absolute;
        inset: 0;
        background: rgba(1,22,53,0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .hales-em-container {
        position: relative;
        width: 100%;
        max-width: 800px;
        max-height: 92vh;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0,0,0,0.4);
        display: flex;
        flex-direction: column;
        animation: halesEmSlideUp 0.3s ease-out;
        transition: max-height 0.3s ease;
    }
    @keyframes halesEmSlideUp {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .hales-em-close {
        position: absolute;
        top: 10px;
        right: 12px;
        z-index: 10;
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(1,22,53,0.1);
        color: #011635;
        font-size: 22px;
        line-height: 1;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .hales-em-close:hover {
        background: rgba(1,22,53,0.2);
    }
    .hales-em-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 18px 24px 14px;
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(90deg, #d4af37 0%, #f6e27f 50%, #d4af37 100%) 1;
        flex-shrink: 0;
    }
    .hales-em-header-icon {
        font-size: 22px;
    }
    .hales-em-header-text {
        font-size: 18px;
        font-weight: 700;
        color: #011635;
        letter-spacing: -0.3px;
    }
    .hales-em-body {
        overflow: hidden;
        flex: 1;
        min-height: 0;
        transition: height 0.3s ease;
    }
    .hales-em-body iframe {
        display: block;
        width: 100%;
        border: 0;
    }
    @media (max-width: 600px) {
        .hales-em { padding: 8px; }
        .hales-em-container {
            max-width: 100%;
            max-height: 96vh;
            border-radius: 12px;
        }
        .hales-em-header {
            padding: 14px 16px 10px;
        }
    }
