/* ================================
   ENTERPRISE ACCESS MANAGER - PUBLIC CSS
   Fullscreen Template Support
   ================================ */

/* FORCE FULLSCREEN - Ultra strong overrides */
html.eam-fullscreen-html,
html.elementor-page,
body.eam-fullscreen-body,
body.elementor-page {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden;
}

/* Elementor wrapper fullscreen */
#eam-elementor-fullscreen,
.elementor,
.elementor-inner,
.elementor-section-wrap {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove all container gaps */
.e-con,
.elementor-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Force first section to be full height */
.elementor > .elementor-section-wrap > .elementor-section:first-child,
.elementor > .elementor-section:first-child,
.elementor-inner > .elementor-section:first-child {
    min-height: 100vh !important;
}

/* Floating Access Button */
#eam-floating-access-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
}

.eam-floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.eam-floating-btn:hover {
    background: #135e96;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Modal Styles */
.eam-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.eam-modal.active {
    display: block;
}

.eam-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.eam-modal-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 90%;
    margin: 100px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.eam-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.eam-modal-close:hover {
    background: #e0e0e0;
}

.eam-modal-content h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
}

/* Form Styles */
.eam-access-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eam-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.eam-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.eam-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.eam-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.eam-submit-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.eam-error-message {
    padding: 12px;
    background: #fee;
    color: #c00;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #c00;
}

/* Fallback Page Styles */
.eam-fallback-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.eam-fallback-container {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.eam-fallback-container h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #333;
}

.eam-fallback-description {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .eam-floating-btn span {
        display: none;
    }
    
    .eam-floating-btn {
        padding: 12px 18px;
    }
    
    #eam-floating-access-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .eam-modal-content {
        padding: 30px 20px;
        margin: 50px auto;
    }
    
    .eam-fallback-container {
        padding: 40px 30px;
    }
}

