/* ==========================================================
   Elegant Modal Login — all rules scoped under .eml-modal-overlay
   to guarantee higher specificity than Elementor kit styles.
   ========================================================== */

/* -- Modal Overlay -- */
.eml-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.eml-modal-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

/* -- Modal Content Box -- */
.eml-modal-overlay .eml-modal-content {
    position: relative;
    background: #fff;
    padding: 3rem 3.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.eml-modal-overlay.is-visible .eml-modal-content {
    transform: scale(1);
    opacity: 1;
}

.eml-modal-overlay .eml-modal-content h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 24px;
}

.eml-modal-overlay .eml-modal-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 15px;
}

/* -- Close Button -- */
.eml-modal-overlay .eml-modal-close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    transition: color 0.2s ease;
}
.eml-modal-overlay .eml-modal-close:hover {
    background: none;
    color: #555;
}

/* -- Form Groups -- */
.eml-modal-overlay .eml-form-group {
    margin-bottom: 1rem;
}

.eml-modal-overlay .eml-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #222;
}

/* -- Text / Password Inputs -- */
.eml-modal-overlay .eml-form-group .eml-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    font-size: 15px;
}

/* -- Submit Button -- */
.eml-modal-overlay .eml-form-group .eml-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background-color: #1f5f66;
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
    transition: background-color 0.2s ease;
}
.eml-modal-overlay .eml-form-group .eml-submit-btn:hover {
    background-color: #174d53;
}

/* -- Form Actions Row -- */
.eml-modal-overlay .eml-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.eml-modal-overlay .eml-remember-me {
    display: flex;
    align-items: center;
    color: #222;
    font-weight: normal;
}

.eml-modal-overlay .eml-remember-me input {
    margin-right: 8px;
}

.eml-modal-overlay a.eml-forgot-password {
    color: #1f5f66;
    text-decoration: none;
}

.eml-modal-overlay a.eml-forgot-password:hover {
    text-decoration: underline;
}

/* -- Error Message -- */
.eml-modal-overlay .eml-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 1rem;
}