/* Overlay */
#ein-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ein-overlay.ein-visible {
    opacity: 1;
}

/* Modal */
#ein-modal {
    background: #fff;
    max-width: 600px;
    width: 90%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#ein-overlay.ein-visible #ein-modal {
    transform: translateY(0);
}

/* Header */
#ein-header {
    background: #c2185b;
    color: #fff;
    padding: 30px 40px;
    position: relative;
}

#ein-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

#ein-close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

#ein-close-x:hover {
    opacity: 1;
}

/* Body */
#ein-body {
    padding: 25px 40px 20px;
}

#ein-description {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* Form row */
#ein-form-row {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

#ein-email {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
    outline: none;
    transition: border-color 0.2s;
}

#ein-email:focus {
    border-color: #c2185b;
}

#ein-submit {
    padding: 12px 25px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

#ein-submit:hover {
    background: #43a047;
}

#ein-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Message */
#ein-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
}

#ein-message.ein-success {
    background: #e8f5e9;
    color: #2e7d32;
}

#ein-message.ein-error {
    background: #fce4ec;
    color: #c62828;
}

/* Privacy */
#ein-privacy {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

#ein-lock {
    font-size: 14px;
    vertical-align: middle;
}

#ein-privacy a {
    color: #1a73e8;
    text-decoration: underline;
}

/* Close link */
#ein-close-link {
    display: inline-block;
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

#ein-close-link:hover {
    color: #333;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #ein-header {
        padding: 20px;
    }

    #ein-title {
        font-size: 18px;
    }

    #ein-body {
        padding: 15px 20px;
    }

    #ein-form-row {
        flex-direction: column;
        gap: 10px;
    }

    #ein-email {
        border-right: 2px solid #ddd;
        border-radius: 3px;
    }

    #ein-email:focus {
        border-color: #c2185b;
    }

    #ein-submit {
        border-radius: 3px;
    }
}
