/**
 * ACME Content Gate Styles
 *
 * Version 2.1.0 - Full page modal overlay approach
 * The gate appears as a fixed overlay covering the entire viewport
 * Similar to the theme's .pro-services-entry-module
 */

/* ==========================================================================
   Full Page Modal Overlay
   ========================================================================== */

.acme-content-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acme-gate-modal-inner {
    width: 100%;
    max-width: 700px;
    padding: 40px 20px;
    margin: 0 auto;
}

/* ==========================================================================
   Header - Logo and Back Button
   ========================================================================== */

.acme-gate-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.acme-gate-logo {
    display: block;
    text-decoration: none;
}

.acme-gate-logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.acme-gate-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.acme-gate-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.acme-gate-back-btn:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

.acme-gate-back-arrow {
    font-size: 1.125rem;
    line-height: 1;
}

.acme-gate-modal-content {
    background: #fff;
}

.acme-gate-message {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Style the NinjaForm container within the gate */
.acme-gate-form .nf-form-cont {
    margin: 0;
}

/* ==========================================================================
   Hidden State - After Form Submission
   ========================================================================== */

.acme-content-gate-modal.acme-gate-hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Also hide when body has revealed class */
body.acme-content-revealed .acme-content-gate-modal {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .acme-gate-modal-inner {
        padding: 30px 15px;
    }

    .acme-gate-modal-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    .acme-gate-logo-img {
        max-height: 45px;
    }

    .acme-gate-back-btn {
        padding: 8px 15px;
        font-size: 0.875rem;
    }

    .acme-gate-message {
        font-size: 1rem;
    }
}
